Upgrade mautic from 2.16.5 to 4.4.9

Hi team,

We are currently using mautic 2.16.5 and want to upgrade it to 4.4.9. However I created a new mautic instance 4.4.9 and tried to do database migration but it is not working as there are multiple errors which i am receiving while dumping the data to new DB.

Also i tried a manual approach where I just copied the contacts and emails from old DB to new DB it worked fine. However it was not having the statistical data as well as images in email was missing.

Can someone suggest me the best approach which I should be following for the upgrade.

Regards,
Vikas Varade

Hello Vikas, you need to do it step by step.

If you need further help, I can do this migration for you.
Joey

1 Like

Thanks Joey ! I just missed to inform that I have deployed the mautic on the kubernetes cluster.

I am using below code as deployment manifest.

apiVersion: apps/v1
kind: Deployment
metadata:
namespace: mautic
name: mautic
labels:
app: mautic
spec:
replicas: 1
selector:
matchLabels:
app: mautic
template:
metadata:
labels:
app: mautic
spec:
containers:
- image: mautic/mautic:v4
name: mautic
env:
- name: MAUTIC_DB_HOST
value: XXXXXXXX
- name: MAUTIC_DB_USER
value: XXXXXXXX
- name: MAUTIC_DB_PASSWORD
valueFrom:
secretKeyRef:
name: lovia-prod-mautic
key: db-password
- name: MAUTIC_DB_NAME
value: mautic
- name: MAUTIC_RUN_CRON_JOBS
value: ‘true’
#- name: MAUTIC_TRUSTED_PROXIES
# value: nginx-ingress-controller.default.svc.cluster.local
#value: 192.168.140.0/32
ports:
- containerPort: 80
name: mautic
# Commenting below working code for Volume
volumeMounts:
- mountPath: “/var/www/html”
name: mautic-var-www-html
# Health check
#livenessProbe:
# initialDelaySeconds: 10
# periodSeconds: 10
# httpGet:

1 Like

Oh okay.
I hope someone who knows kubernetes will share the solution.

1 Like