Updating mautic in docker

Your software
My PHP version is : 7.1
My MySQL version is: 5.7

Updating/Installing Errors
I am (delete as applicable): Updating
Upgrading/installing via (delete as applicable) : Command Line

These errors are showing in the installer :

ERR_MAUTIC_3_MIGRATIONS_IDENTIFICATION_FAILED: We couldn't reliably detect the amount of available database migrations.

ERR_MAUTIC_3_MIGRATIONS_IDENTIFICATION_FAILED: We couldn't reliably detect the amount of available database migrations.. For more details about this message, see http://mau.tc/m3-upgrade-error#err_mautic_3_migrations_identification_failed

These errors are showing in the Mautic log : Nothing

These errors are showing in the upgrade_log.txt file (located in the root of your Mautic instance when an upgrade has been attempted - ensure you remove or redact any sensitive data such as domain names in the file path) :

ERR_MAUTIC_3_MIGRATIONS_IDENTIFICATION_FAILED: We couldn't reliably detect the amount of available database migrations.

ERR_MAUTIC_3_MIGRATIONS_IDENTIFICATION_FAILED: We couldn't reliably detect the amount of available database migrations.. For more details about this message, see http://mau.tc/m3-upgrade-error#err_mautic_3_migrations_identification_failed

Your problem
My problem is :

Since I am using docker-mautic, my PHP version is locked to 7.1 so I tried to change my docker image to use docker-mautic v3. Since the docker image does not do anything if it sees app/AppKernel.php, my install should not changed from 2.16.3 and it should ideally be a smooth sailing. However, even after multiple attempts I have not been able to update to mautic 3.

After the error happens for the first time, the error coded page says to rerun the script. On re-running it fails with this error:

Warning: rename(/var/www/html/themes,/var/www/html/mautic-2-backup-files/themes): Directory not empty in /var/www/html/upgrade_v3.php on line 1359

Warning: rename(/var/www/html/bin,/var/www/html/mautic-2-backup-files/bin): Directory not empty in /var/www/html/upgrade_v3.php on line 1359

Warning: rename(/var/www/html/translations,/var/www/html/mautic-2-backup-files/translations): Directory not empty in /var/www/html/upgrade_v3.php on line 1359

Warning: rename(/var/www/html/app,/var/www/html/mautic-2-backup-files/app): Directory not empty in /var/www/html/upgrade_v3.php on line 1359

Warning: rename(/var/www/html/media,/var/www/html/mautic-2-backup-files/media): Directory not empty in /var/www/html/upgrade_v3.php on line 1359

Warning: rename(/var/www/html/plugins,/var/www/html/mautic-2-backup-files/plugins): Directory not empty in /var/www/html/upgrade_v3.php on line 1359

Warning: rename(/var/www/html/vendor,/var/www/html/mautic-2-backup-files/vendor): Directory not empty in /var/www/html/upgrade_v3.php on line 1359

ERR_MOVE_MAUTIC_2_AND_3_FILES: Error while moving Mautic 2 or 3 files: One or more files couldn't be moved to the Mautic 2 temp folder. This is really, really bad. Errors: themes,bin,translations,app,media,plugins,vendor

ERR_MOVE_MAUTIC_2_AND_3_FILES: Error while moving Mautic 2 or 3 files: One or more files couldn't be moved to the Mautic 2 temp folder. This is really, really bad. Errors: themes,bin,translations,app,media,plugins,vendor. For more details about this message, see http://mau.tc/m3-upgrade-error#err_move_mautic_2_and_3_files

Steps I have tried to fix the problem :

I have tried running the script as www-data, as root, but neither worked. I also tried to see if I could update php in docker v2 container and then upgrade, but no luck.

This is something that would get better traction on Docker forums since you’re actually asking how to change the PHP settings you require for your Mautic Install in a Docker environment.

Hi… Running Mautic as a Docker holder is an efficient alternate route contrasted with arranging Apache, MySQL, PHP and transferring the documents yourself. In the event that you have to raise a Mautic case instantly, this is the best approach to do it.

Docker compartments are additionally simple to reinforcement. You can utilize the docker spare order to handily send out both your Mautic records and MySQL information base as a .tar file. Then again, to make a picture that is a depiction of your running compartment, use docker submit. Utilizing either sort of reinforcement, you could without much of a stretch dispatch your compartments on another Docker have on the off chance that you ever expected to. On the off chance that you run your Docker holders underway, you should plan to reinforcement routinely.

I had same problem because of this environment:

 -e MAUTIC_TRUSTED_PROXIES=0.0.0.0/0 

After disable above parameter and start again, it fixed.

If doesn’t solve the problem run this command and send the result of it:

php bin/console

Also you can use this environment and work in mautic 3 and 4:

 -e MAUTIC_TRUSTED_PROXIES=["0.0.0.0/0"]
1 Like