Hi mautic community!
I’m in the process of upgrading mautic from v3 to v4 and have an issue. See the details below.
Can someone help me out and point me into the right direction?
Thank you in advance!
Your software
- My PHP version is : 7.4.33
- My MySQL version is: 5.7.31
- using the docker image for mautic. Upgrading from v3 to v4 image tag
Updating/Installing Errors
I am : Updating
Upgrading via: Command Line, docker
These errors are showing in the Mautic log :
Ensuring Mautic database is present
MySQL Connection Error: (2002) Connection refused
Warning: mysqli::__construct(): (HY000/2002): Connection refused in /makedb.php on line 20
MySQL Database Created
========================================================================
This server is now configured to run Mautic!
The following information will be prefilled into the installer (keep password field empty):
Host Name: mautic-mysql-svc:3306
Database Name: mautic
Database Username: mautic
Database Password: <password>
========================================================================
========================================================================
Updating existing mautic config
========================================================================
There are no commands defined in the "mautic:cache" namespace.
Did you mean one of these?
doctrine:cache
mautic
mautic:assets
mautic:broadcasts
mautic:campaigns
mautic:citrix
mautic:contacts
mautic:email
mautic:emails
mautic:install
mautic:integration
mautic:integration:pipedrive
mautic:integrations
mautic:iplookup
mautic:maintenance
mautic:messages
mautic:plugins
mautic:queue
mautic:reports
mautic:segments
mautic:social
mautic:theme
mautic:transifex
mautic:translation
mautic:unusedip
mautic:update
mautic:webhooks
Your problem
My problem is : the above error appears when I launch mautic using the v4 docker image.
Steps I have tried to fix the problem:
Tried deleting the /var/www/html/var/cache
directory.
What did I actually do?
We have mautic v3 running, with the data directory coming from a volume mounted at /var/www/html
. I did not find any guidelines how to upgrade from v3 to v4. So I figured I could do it by changing the image and hope mautic will try to figure things out. Changing the image to v4 and then launching mautic let’s that error appear.