Problems upgrading 2.15.3

Your software
My Mautic version is: 2.15.3
My PHP version is: 7.0.33

Your problem
My problem is: I’ve tried to upgrade to Mautic 2.15.3 (via web interface and then via command line) without success.
Following https://www.mautic.org/docs/en/tips/update-failed.html?_ga=2.95035164.1471250511.1571699534-1885548884.1571699534 I cannot

Now when I access mautic in the browser I got the error:

The site is currently offline due to encountering an error. If the problem persists, please contact the system administrator.

System administrators, check server logs for errors.

These errors are showing in the log:
[2019-10-22 02:51:47] mautic.CRITICAL: Uncaught PHP Exception Symfony\Component\Debug\Exception\FatalErrorException: “Compile Error: require(): Failed opening required ‘/var/www/mautic.services.byclosure.com/app/cache/prod/doctrine/orm/Proxies/__CG__MauticPluginBundleEntityPlugin.php’ (include_path=’.:/usr/share/php:/usr/share/pear:’)” at /var/www/mautic.services.byclosure.com/vendor/doctrine/common/lib/Doctrine/Common/Proxy/AbstractProxyFactory.php line 209 {“exception”:"[object] (Symfony\Component\Debug\Exception\FatalErrorException(code: 0): Compile Error: require(): Failed opening required ‘/var/www/mautic.services.byclosure.com/app/cache/prod/doctrine/orm/Proxies/__CG__MauticPluginBundleEntityPlugin.php’ (include_path=’.:/usr/share/php:/usr/share/pear:’) at /var/www/mautic.services.byclosure.com/vendor/doctrine/common/lib/Doctrine/Common/Proxy/AbstractProxyFactory.php:209)"}
[2019-10-22 02:52:44] mautic.WARNING: PHP Warning - require(/var/www/mautic.services.byclosure.com/app/cache/prod/doctrine/orm/Proxies/__CG__MauticPluginBundleEntityPlugin.php): failed to open stream: No such file or directory - in file /var/www/mautic.services.byclosure.com/vendor/doctrine/common/lib/Doctrine/Common/Proxy/AbstractProxyFactory.php - at line 209 {“className”:“Mautic\PluginBundle\Entity\Plugin”,“classMetadata”:"[object] (Doctrine\ORM\Mapping\ClassMetadata: Doctrine\ORM\Mapping\ClassMetadataInfo@000000005ade103400007fc0d799b856)",“proxyClassName”:“Proxies\CG\Mautic\PluginBundle\Entity\Plugin”,“fileName”:"/var/www/mautic.services.byclosure.com/app/cache/prod/doctrine/orm/Proxies/__CG__MauticPluginBundleEntityPlugin.php"}
[2019-10-22 02:52:44] mautic.ERROR: PHP Notice: require(): Failed opening required ‘/var/www/mautic.services.byclosure.com/app/cache/prod/doctrine/orm/Proxies/__CG__MauticPluginBundleEntityPlugin.php’ (include_path=’.:/usr/share/php:/usr/share/pear:’) - in file /var/www/mautic.services.byclosure.com/vendor/doctrine/common/lib/Doctrine/Common/Proxy/AbstractProxyFactory.php - at line 209
[2019-10-22 02:52:44] mautic.ERROR: Symfony\Component\Debug\Exception\FatalErrorException: Notice: require(): Failed opening required ‘/var/www/mautic.services.byclosure.com/app/cache/prod/doctrine/orm/Proxies/__CG__MauticPluginBundleEntityPlugin.php’ (include_path=’.:/usr/share/php:/usr/share/pear:’) - in file /var/www/mautic.services.byclosure.com/vendor/doctrine/common/lib/Doctrine/Common/Proxy/AbstractProxyFactory.php - at line 209
[2019-10-22 02:52:44] mautic.CRITICAL: Uncaught PHP Exception Symfony\Component\Debug\Exception\FatalErrorException: “Compile Error: require(): Failed opening required ‘/var/www/mautic.services.byclosure.com/app/cache/prod/doctrine/orm/Proxies/__CG__MauticPluginBundleEntityPlugin.php’ (include_path=’.:/usr/share/php:/usr/share/pear:’)” at /var/www/mautic.services.byclosure.com/vendor/doctrine/common/lib/Doctrine/Common/Proxy/AbstractProxyFactory.php line 209 {“exception”:"[object] (Symfony\Component\Debug\Exception\FatalErrorException(code: 0): Compile Error: require(): Failed opening required ‘/var/www/mautic.services.byclosure.com/app/cache/prod/doctrine/orm/Proxies/__CG__MauticPluginBundleEntityPlugin.php’ (include_path=’.:/usr/share/php:/usr/share/pear:’) at /var/www/mautic.services.byclosure.com/vendor/doctrine/common/lib/Doctrine/Common/Proxy/AbstractProxyFactory.php:209)"}
[2019-10-22 02:53:04] mautic.WARNING: PHP Warning - require(/var/www/mautic.services.byclosure.com/app/cache/prod/doctrine/orm/Proxies/__CG__MauticPluginBundleEntityPlugin.php): failed to open stream: No such file or directory - in file /var/www/mautic.services.byclosure.com/vendor/doctrine/common/lib/Doctrine/Common/Proxy/AbstractProxyFactory.php - at line 209 {“className”:“Mautic\PluginBundle\Entity\Plugin”,“classMetadata”:"[object] (Doctrine\ORM\Mapping\ClassMetadata: Doctrine\ORM\Mapping\ClassMetadataInfo@000000003e31526500007fc0c30122d4)",“proxyClassName”:“Proxies\CG\Mautic\PluginBundle\Entity\Plugin”,“fileName”:"/var/www/mautic.services.byclosure.com/app/cache/prod/doctrine/orm/Proxies/__CG__MauticPluginBundleEntityPlugin.php"}
[2019-10-22 02:53:04] mautic.ERROR: PHP Notice: require(): Failed opening required ‘/var/www/mautic.services.byclosure.com/app/cache/prod/doctrine/orm/Proxies/__CG__MauticPluginBundleEntityPlugin.php’ (include_path=’.:/usr/share/php:/usr/share/pear:’) - in file /var/www/mautic.services.byclosure.com/vendor/doctrine/common/lib/Doctrine/Common/Proxy/AbstractProxyFactory.php - at line 209
[2019-10-22 02:53:04] mautic.ERROR: Symfony\Component\Debug\Exception\FatalErrorException: Notice: require(): Failed opening required ‘/var/www/mautic.services.byclosure.com/app/cache/prod/doctrine/orm/Proxies/__CG__MauticPluginBundleEntityPlugin.php’ (include_path=’.:/usr/share/php:/usr/share/pear:’) - in file /var/www/mautic.services.byclosure.com/vendor/doctrine/common/lib/Doctrine/Common/Proxy/AbstractProxyFactory.php - at line 209
[2019-10-22 02:53:04] mautic.CRITICAL: Uncaught PHP Exception Symfony\Component\Debug\Exception\FatalErrorException: “Compile Error: require(): Failed opening required ‘/var/www/mautic.services.byclosure.com/app/cache/prod/doctrine/orm/Proxies/__CG__MauticPluginBundleEntityPlugin.php’ (include_path=’.:/usr/share/php:/usr/share/pear:’)” at /var/www/mautic.services.byclosure.com/vendor/doctrine/common/lib/Doctrine/Common/Proxy/AbstractProxyFactory.php line 209 {“exception”:"[object] (Symfony\Component\Debug\Exception\FatalErrorException(code: 0): Compile Error: require(): Failed opening required ‘/var/www/mautic.services.byclosure.com/app/cache/prod/doctrine/orm/Proxies/__CG__MauticPluginBundleEntityPlugin.php’ (include_path=’.:/usr/share/php:/usr/share/pear:’) at /var/www/mautic.services.byclosure.com/vendor/doctrine/common/lib/Doctrine/Common/Proxy/AbstractProxyFactory.php:209)"}
[2019-10-22 02:53:33] mautic.WARNING: PHP Warning - require(/var/www/mautic.services.byclosure.com/app/cache/prod/doctrine/orm/Proxies/__CG__MauticPluginBundleEntityPlugin.php): failed to open stream: No such file or directory - in file /var/www/mautic.services.byclosure.com/vendor/doctrine/common/lib/Doctrine/Common/Proxy/AbstractProxyFactory.php - at line 209 {“className”:“Mautic\PluginBundle\Entity\Plugin”,“classMetadata”:"[object] (Doctrine\ORM\Mapping\ClassMetadata: Doctrine\ORM\Mapping\ClassMetadataInfo@0000000006d5106c00007fc0bde13dec)",“proxyClassName”:“Proxies\CG\Mautic\PluginBundle\Entity\Plugin”,“fileName”:"/var/www/mautic.services.byclosure.com/app/cache/prod/doctrine/orm/Proxies/__CG__MauticPluginBundleEntityPlugin.php"}
[2019-10-22 02:53:33] mautic.ERROR: PHP Notice: require(): Failed opening required ‘/var/www/mautic.services.byclosure.com/app/cache/prod/doctrine/orm/Proxies/__CG__MauticPluginBundleEntityPlugin.php’ (include_path=’.:/usr/share/php:/usr/share/pear:’) - in file /var/www/mautic.services.byclosure.com/vendor/doctrine/common/lib/Doctrine/Common/Proxy/AbstractProxyFactory.php - at line 209
[2019-10-22 02:53:33] mautic.ERROR: Symfony\Component\Debug\Exception\FatalErrorException: Notice: require(): Failed opening required ‘/var/www/mautic.services.byclosure.com/app/cache/prod/doctrine/orm/Proxies/__CG__MauticPluginBundleEntityPlugin.php’ (include_path=’.:/usr/share/php:/usr/share/pear:’) - in file /var/www/mautic.services.byclosure.com/vendor/doctrine/common/lib/Doctrine/Common/Proxy/AbstractProxyFactory.php - at line 209
[2019-10-22 02:53:33] mautic.CRITICAL: Uncaught PHP Exception Symfony\Component\Debug\Exception\FatalErrorException: “Compile Error: require(): Failed opening required ‘/var/www/mautic.services.byclosure.com/app/cache/prod/doctrine/orm/Proxies/__CG__MauticPluginBundleEntityPlugin.php’ (include_path=’.:/usr/share/php:/usr/share/pear:’)” at /var/www/mautic.services.byclosure.com/vendor/doctrine/common/lib/Doctrine/Common/Proxy/AbstractProxyFactory.php line 209 {“exception”:"[object] (Symfony\Component\Debug\Exception\FatalErrorException(code: 0): Compile Error: require(): Failed opening required ‘/var/www/mautic.services.byclosure.com/app/cache/prod/doctrine/orm/Proxies/__CG__MauticPluginBundleEntityPlugin.php’ (include_path=’.:/usr/share/php:/usr/share/pear:’) at /var/www/mautic.services.byclosure.com/vendor/doctrine/common/lib/Doctrine/Common/Proxy/AbstractProxyFactory.php:209)"}

Steps I have tried to fix the problem:
$ sudo php app/console cache:clear
// Clearing the cache for the prod environment with debug false
[OK] Cache for the “prod” environment (debug=false) was successfully cleared.

$ sudo php app/console mautic:update:find
Great! You are running the current version of Mautic.

$ sudo php app/console mautic:update:apply
Are you sure you wish to update Mautic to the latest version? y
Step 1 [->--------------------------] Loading update information…

Could not read the cached update data to apply the update.

Hi @vascoas and welcome back to the forums!

Sorry to hear you’ve had some problems with updating your Mautic instance, which version were you upgrading from, and what happened in the first instance when you tried to update via the web interface?

What happened later when you tried to update via the command line?

I wonder if there might be some kind of file/folder permissions issue going on, has anything changed in that regard? It might be worth trying to reset using chmod in case something has gone wrong:

find . -type d -exec chmod 755 {} \;
find . -type f -exec chmod 644 {} \;

Also double check the ownership of the files.

See if that makes any difference?

Hi @rcheesley thank you for your reply and sorry for only being following up this now: not on my best interest, I know :confused:

Regarding the update via web interface it didn’t work (same result). Since I have other mautic instance I directly tried on that on to exclusively update via terminal. I’m not sure if the issue is exactly the same, but the results are: neither the instances worked.

When trying to update via the command line:

I’ve re-checked file/folder permissions and ran your commands, but everything seems normal, although I’m still getting the referred error.

Any other ideia?

Thanks!

1 Like

Did you run mautic:update:find first? I didn’t see it in your print screen above.

You should first run the command

mautic:update:find

Then you should run

mautic:update:apply

Yes @rcheesley I did try to run mautic:update:find first with no better results.

I ended up asking for help on fiverr https://www.fiverr.com/logixbytes/upgrade-mautic-to-latest-version and they fixed my issue. According to them it was a problem of permissions and some files didn’t have upgrade accordingly, they ended up re-upgraded mautic and everything has starting to work again.

Thank you so much for your replies @rcheesley.

1 Like

Hello @rcheesley,

Could you explain what these two commands do? I’m having an install with the same issue as here and running these commands I get the error “Operation not permitted” (or some words similar: in Spanish linux).

Thanks!