Mautic Community Forums

Migrate to another server

Your software
My PHP version is : 7.4
*My MySQL: 8.0.26
Updating/Installing Errors
*I am Installing
Upgrading/installing via : Web

display_errors = Off
max_execution_time = 120
max_input_time = 300
max_input_vars = 10000
memory_limit = 512M
post_max_size = 8M
session.gc_maxlifetime = 1440
session.save_path = “/var/cpanel/php/sessions/ea-php74”
upload_max_filesize = 2M
zlib.output_compression = Off

These errors are showing in the Mautic log :

Your problem
My problem is :

Hi I have a problem: I have an installation with version 4.0 I have saved the files and a copy of the database. On another server with another domain I have uploaded the files, created a database and imported the one from the other account. I modified the local.php file with the name and pass of the new database.
In short, everything seems to be fine. All the necessary steps to move an installation to another server with another domain.

Login without problem. But after a few minutes I log out and log in again and the browser shows error 524 time out.

And I don’t know what to do to solve it.

Look at the local.php file to update all the URLS. Cache,Logs ect. Then clear the cache and verify file permissions are correct.

Hello, thank you very much for the reply.

Yes all that I have done, the local.php file is modified, cache cleared, etc.
The question is that after doing all that, you can access you can navigate through the contacts menu, desktop, etc… But when you go to enter the section on the right where the settings and everything else is blocked. And from that first lock, and always appears error 524 time out.

Hi, btw did you use Redis?

Hi, thank you very much for the reply and the interest.

I am not using redis.
What I see is that if I install from startup with the version 4.0.0.0 package everything installs correctly.

But if I upgrade from a previous version, or simply in version 4 I reinstall it in another domain, following all the necessary steps (local.php, import DB, add folder with the files, clean cache, etc.) It does not work.
It only works fine if you install version 4 clean from the beginning. If not, what happens is what I explained in the problem above.

One more question: DB version is the same?

Yes, it is.

Your software
My PHP version is : 7.4
*My MySQL: 8.0.26
[/quote]

I have done many tests, and what I see is that if I install the application on a new hosting it works.

But if I perform a migration from another installation, or update the new installation stops working. And I have the problem that I have commented in the previous messages.

This is what is in var/log/mautic_prod-2021-10-04.php

[2021-10-04 22:05:34] mautic.WARNING: PHP Warning - require(/home/veroglx7em/public_html/var/cache/prod/ContainerSPiMbI1/getSwiftmailer_EmailSender_ListenerService.php): failed to open stream: No such file or directory - in file /home/veroglx7em/public_html/var/cache/prod/ContainerSPiMbI1/appAppKernelProdContainer.php - at line 2225 {“file”:“getSwiftmailer_EmailSender_ListenerService.php”,“lazyLoad”:true}
[2021-10-04 22:05:34] mautic.ERROR: PHP Notice: require(): Failed opening required ‘/home/veroglx7em/public_html/var/cache/prod/ContainerSPiMbI1/getSwiftmailer_EmailSender_ListenerService.php’ (include_path=’.:/opt/cpanel/ea-php74/root/usr/share/pear’) - in file /home/veroglx7em/public_html/var/cache/prod/ContainerSPiMbI1/appAppKernelProdContainer.php - at line 2225
[2021-10-04 22:05:34] mautic.ERROR: Symfony\Component\Debug\Exception\FatalErrorException: Notice: require(): Failed opening required ‘/home/veroglx7em/public_html/var/cache/prod/ContainerSPiMbI1/getSwiftmailer_EmailSender_ListenerService.php’ (include_path=’.:/opt/cpanel/ea-php74/root/usr/share/pear’) - in file /home/veroglx7em/public_html/var/cache/prod/ContainerSPiMbI1/appAppKernelProdContainer.php - at line 2225
[2021-10-04 22:48:56] mautic.WARNING: PHP Warning - require(/home/veroglx7em/public_html/var/cache/prod/ContainerN57Y2bR/getMautic_Form_Type_FormconfigService.php): failed to open stream: No such file or directory - in file /home/veroglx7em/public_html/var/cache/prod/ContainerN57Y2bR/appAppKernelProdContainer.php - at line 2227 {“file”:“getMautic_Form_Type_FormconfigService.php”,“lazyLoad”:true}
[2021-10-04 22:48:56] mautic.ERROR: PHP Notice: require(): Failed opening required ‘/home/veroglx7em/public_html/var/cache/prod/ContainerN57Y2bR/getMautic_Form_Type_FormconfigService.php’ (include_path=’.:/opt/cpanel/ea-php74/root/usr/share/pear’) - in file /home/veroglx7em/public_html/var/cache/prod/ContainerN57Y2bR/appAppKernelProdContainer.php - at line 2227
[2021-10-04 22:48:56] mautic.ERROR: Symfony\Component\Debug\Exception\FatalErrorException: Notice: require(): Failed opening required ‘/home/veroglx7em/public_html/var/cache/prod/ContainerN57Y2bR/getMautic_Form_Type_FormconfigService.php’ (include_path=’.:/opt/cpanel/ea-php74/root/usr/share/pear’) - in file /home/veroglx7em/public_html/var/cache/prod/ContainerN57Y2bR/appAppKernelProdContainer.php - at line 2227
[2021-10-04 22:48:56] mautic.WARNING: PHP Warning - require(/home/veroglx7em/public_html/var/cache/prod/ContainerN57Y2bR/getRouting_LoaderService.php): failed to open stream: No such file or directory - in file /home/veroglx7em/public_html/var/cache/prod/ContainerN57Y2bR/appAppKernelProdContainer.php - at line 2227 {“file”:“getRouting_LoaderService.php”,“lazyLoad”:true}
[2021-10-04 22:48:56] mautic.ERROR: PHP Notice: require(): Failed opening required ‘/home/veroglx7em/public_html/var/cache/prod/ContainerN57Y2bR/getRouting_LoaderService.php’ (include_path=’.:/opt/cpanel/ea-php74/root/usr/share/pear’) - in file /home/veroglx7em/public_html/var/cache/prod/ContainerN57Y2bR/appAppKernelProdContainer.php - at line 2227
[2021-10-04 22:48:56] mautic.ERROR: Symfony\Component\Debug\Exception\FatalErrorException: Notice: require(): Failed opening required ‘/home/veroglx7em/public_html/var/cache/prod/ContainerN57Y2bR/getRouting_LoaderService.php’ (include_path=’.:/opt/cpanel/ea-php74/root/usr/share/pear’) - in file /home/veroglx7em/public_html/var/cache/prod/ContainerN57Y2bR/appAppKernelProdContainer.php - at line 2227
[2021-10-04 22:48:56] mautic.WARNING: PHP Warning - require(/home/veroglx7em/public_html/var/cache/prod/ContainerN57Y2bR/getRouting_LoaderService.php): failed to open stream: No such file or directory - in file /home/veroglx7em/public_html/var/cache/prod/ContainerN57Y2bR/appAppKernelProdContainer.php - at line 2227 {“file”:“getRouting_LoaderService.php”,“lazyLoad”:true}
[2021-10-04 22:48:56] mautic.ERROR: PHP Notice: require(): Failed opening required ‘/home/veroglx7em/public_html/var/cache/prod/ContainerN57Y2bR/getRouting_LoaderService.php’ (include_path=’.:/opt/cpanel/ea-php74/root/usr/share/pear’) - in file /home/veroglx7em/public_html/var/cache/prod/ContainerN57Y2bR/appAppKernelProdContainer.php - at line 2227
[2021-10-04 22:48:56] mautic.ERROR: Symfony\Component\Debug\Exception\FatalErrorException: Notice: require(): Failed opening required ‘/home/veroglx7em/public_html/var/cache/prod/ContainerN57Y2bR/getRouting_LoaderService.php’ (include_path=’.:/opt/cpanel/ea-php74/root/usr/share/pear’) - in file /home/veroglx7em/public_html/var/cache/prod/ContainerN57Y2bR/appAppKernelProdContainer.php - at line 2227
[2021-10-04 22:48:56] mautic.WARNING: PHP Warning - require(/home/veroglx7em/public_html/var/cache/prod/ContainerN57Y2bR/getRouting_LoaderService.php): failed to open stream: No such file or directory - in file /home/veroglx7em/public_html/var/cache/prod/ContainerN57Y2bR/appAppKernelProdContainer.php - at line 2227 {“file”:“getRouting_LoaderService.php”,“lazyLoad”:true}
[2021-10-04 22:48:56] mautic.ERROR: PHP Notice: require(): Failed opening required ‘/home/veroglx7em/public_html/var/cache/prod/ContainerN57Y2bR/getRouting_LoaderService.php’ (include_path=’.:/opt/cpanel/ea-php74/root/usr/share/pear’) - in file /home/veroglx7em/public_html/var/cache/prod/ContainerN57Y2bR/appAppKernelProdContainer.php - at line 2227
[2021-10-04 22:48:56] mautic.ERROR: Symfony\Component\Debug\Exception\FatalErrorException: Notice: require(): Failed opening required ‘/home/veroglx7em/public_html/var/cache/prod/ContainerN57Y2bR/getRouting_LoaderService.php’ (include_path=’.:/opt/cpanel/ea-php74/root/usr/share/pear’) - in file /home/veroglx7em/public_html/var/cache/prod/ContainerN57Y2bR/appAppKernelProdContainer.php - at line 2227
[2021-10-04 22:48:56] mautic.WARNING: PHP Warning - require(/home/veroglx7em/public_html/var/cache/prod/ContainerN57Y2bR/getRouting_LoaderService.php): failed to open stream: No such file or directory - in file /home/veroglx7em/public_html/var/cache/prod/ContainerN57Y2bR/appAppKernelProdContainer.php - at line 2227 {“file”:“getRouting_LoaderService.php”,“lazyLoad”:true}
[2021-10-04 22:48:56] mautic.ERROR: PHP Notice: require(): Failed opening required ‘/home/veroglx7em/public_html/var/cache/prod/ContainerN57Y2bR/getRouting_LoaderService.php’ (include_path=’.:/opt/cpanel/ea-php74/root/usr/share/pear’) - in file /home/veroglx7em/public_html/var/cache/prod/ContainerN57Y2bR/appAppKernelProdContainer.php - at line 2227
[2021-10-04 22:48:56] mautic.ERROR: Symfony\Component\Debug\Exception\FatalErrorException: Notice: require(): Failed opening required ‘/home/veroglx7em/public_html/var/cache/prod/ContainerN57Y2bR/getRouting_LoaderService.php’ (include_path=’.:/opt/cpanel/ea-php74/root/usr/share/pear’) - in file /home/veroglx7em/public_html/var/cache/prod/ContainerN57Y2bR/appAppKernelProdContainer.php - at line 2227