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.