Jump to content

502 error on admin panel


Recommended Posts

So I'm suddently having problems with my back-end. It all started yesterday morning (10.00), when I wanted to remove a test product from my website. The back-end would not work on my mobile, that's why I decided to do it the next day. Today. the first problem I encountered was that the webshop was loading very slowly. This made me go to my admin panel, because I remembered that I hadn't put on all the performance saving tricks. After putting it on, the webshop and back-end wouldn't load anymore. Both were giving me a 502 Proxy error (see image below):

spacer.png

After that, I went into my hosting support and they referred me to the error log. 

That shows the following:

This is happening before it went wrong:

11.04.2020 22:57:22 simracingproducts.nl [client 109.36.7.0] AH01215: PHP Fatal error:  Uncaught  --> Smarty: Invalid compiled template for 'layouts/layout-left-column.tpl' <-- : /home/strato/http/premium/rid/17/19/510141719/htdocs/index.php
11.04.2020 22:57:22 simracingproducts.nl [client 109.36.7.0] AH01215:   thrown in /mnt/web214/b3/19/510141719/htdocs/vendor/smarty/smarty/libs/sysplugins/smarty_template_resource_base.php on line 116: /home/strato/http/premium/rid/17/19/510141719/htdocs/index.php
11.04.2020 22:57:22 simracingproducts.nl [client 109.36.7.0] AH01215: PHP Fatal error:  Uncaught  --> Smarty: Invalid compiled template for 'file:_partials/javascript.tpl' <-- : /home/strato/http/premium/rid/17/19/510141719/htdocs/index.php
11.04.2020 22:57:22 simracingproducts.nl [client 109.36.7.0] AH01215:   thrown in /mnt/web214/b3/19/510141719/htdocs/vendor/smarty/smarty/libs/sysplugins/smarty_template_resource_base.php on line 116: /home/strato/http/premium/rid/17/19/510141719/htdocs/index.php
11.04.2020 22:57:22 simracingproducts.nl [client 109.36.7.0] AH01215: PHP Warning:  touch(): Utime failed: Stale NFS file handle in /mnt/web214/b3/19/510141719/htdocs/vendor/smarty/smarty/libs/sysplugins/smarty_template_compiled.php on line 178: /home/strato/http/premium/rid/17/19/510141719/htdocs/index.php
11.04.2020 22:57:22 simracingproducts.nl [client 109.36.7.0] AH01215: : /home/strato/http/premium/rid/17/19/510141719/htdocs/index.php
11.04.2020 22:57:22 simracingproducts.nl [client 109.36.7.0] AH01215: PHP Fatal error:  Uncaught  --> Smarty: Invalid compiled template for 'module:ps_linklist/views/templates/hook/linkblock.tpl' <-- : /home/strato/http/premium/rid/17/19/510141719/htdocs/index.php
11.04.2020 22:57:22 simracingproducts.nl [client 109.36.7.0] AH01215:   thrown in /mnt/web214/b3/19/510141719/htdocs/vendor/smarty/smarty/libs/sysplugins/smarty_template_resource_base.php on line 116: /home/strato/http/premium/rid/17/19/510141719/htdocs/index.php
11.04.2020 23:32:20 simracingproducts.nl [client 2a03:2880:3000::] AH01215: PHP Fatal error:  Uncaught  --> Smarty: Invalid compiled template for 'module:tm_leftbanner2/views/templates/hook/tmleftbanner2.tpl' <-- : /home/strato/http/premium/rid/17/19/510141719/htdocs/index.php
11.04.2020 23:32:20 simracingproducts.nl [client 2a03:2880:3000::] AH01215:   thrown in /mnt/web214/b3/19/510141719/htdocs/vendor/smarty/smarty/libs/sysplugins/smarty_template_resource_base.php on line 116: /home/strato/http/premium/rid/17/19/510141719/htdocs/index.php

(this is the part where I go into the back-end and have trouble loading)
 

12.04.2020 10:02:23 simracingproducts.nl [client 2a02:a449:4300::] FastCGI: "/home/strato/http/fastcgi/rid/17/19/510141719/htdocs/admin169rohge3/index.php" aborted: no response after 243 sec (idle timeout 240 sec)
12.04.2020 10:02:23 simracingproducts.nl [client 2a02:a449:4300::] FastCGI: "/home/strato/http/fastcgi/rid/17/19/510141719/htdocs/admin169rohge3/index.php" aborted: no response after 243 sec (idle timeout 240 sec)
12.04.2020 10:02:23 simracingproducts.nl [client 2a02:a449:4300::] FastCGI: "/home/strato/http/fastcgi/rid/17/19/510141719/htdocs/admin169rohge3/index.php" aborted: no response after 243 sec (idle timeout 240 sec)
12.04.2020 10:02:23 simracingproducts.nl [client 2a02:a449:4300::] FastCGI: "/home/strato/http/fastcgi/rid/17/19/510141719/htdocs/admin169rohge3/index.php" aborted: no response after 243 sec (idle timeout 240 sec)
12.04.2020 10:02:23 simracingproducts.nl [client 2a02:a449:4300::] FastCGI: "/home/strato/http/fastcgi/rid/17/19/510141719/htdocs/admin169rohge3/index.php" aborted: no response after 243 sec (idle timeout 240 sec)
12.04.2020 10:02:23 simracingproducts.nl [client 2a02:a449:4300::] FastCGI: "/home/strato/http/fastcgi/rid/17/19/510141719/htdocs/admin169rohge3/index.php" aborted: no response after 243 sec (idle timeout 240 sec)
12.04.2020 10:02:24 simracingproducts.nl [client 2a02:a449:4300::] FastCGI: "/home/strato/http/fastcgi/rid/17/19/510141719/htdocs/index.php" aborted: no response after 243 sec (idle timeout 240 sec)
12.04.2020 10:02:34 simracingproducts.nl [client 2a02:a449:4300::] FastCGI: "/home/strato/http/fastcgi/rid/17/19/510141719/htdocs/admin169rohge3/index.php" aborted: no response after 243 sec (idle timeout 240 sec)

So I tried reaching the performance panel, which was still possible, and I turned off all the smart caching features, that resulted in the following error:

13.04.2020 14:29:53 simracingproducts.nl [client 217.19.31.0] End of script output before headers: index.php
13.04.2020 14:29:53 simracingproducts.nl [client 217.19.31.0] End of script output before headers: index.php
13.04.2020 14:29:53 simracingproducts.nl [client 217.19.31.0] End of script output before headers: index.php
13.04.2020 14:29:53 simracingproducts.nl [client 217.19.31.0] End of script output before headers: index.php
13.04.2020 14:29:53 simracingproducts.nl [client 217.19.31.0] End of script output before headers: index.php
13.04.2020 14:29:53 simracingproducts.nl [client 217.19.31.0] End of script output before headers: index.php
13.04.2020 14:29:53 simracingproducts.nl [client 217.19.31.0] End of script output before headers: index.php
13.04.2020 14:30:02 simracingproducts.nl [client 217.19.31.0] End of script output before headers: index.php
13.04.2020 14:30:53 simracingproducts.nl [client 217.19.31.0] End of script output before headers: index.php

For the rest:

  • When I directly go to the Performance link from my history, I can open it. 
  • Adjusting settings in the performance panel is possible, but takes really long.
  • Normal page works after 10 minutes when the problem occurred in the back-end.
  • It can also load the main dashboard screen, but clicking on something results in the error.
  • Turning on debug-mode doesn't show anything on the back-end. 
Edited by timveldhuis (see edit history)
Link to comment
Share on other sites

On 4/13/2020 at 5:54 PM, timveldhuis said:

Turning on debug-mode doesn't show anything on the back-end. 

Anything in the error log?

First thing I would try is a cache reset by renaming /var/cache to /var/cache_old on the server

Link to comment
Share on other sites

Ah, okay. These are from yesterday:

14.04.2020 23:44:55 simracingproducts.nl [client 217.19.31.0] AH01215: PHP Warning:  Uncaught Symfony\\Component\\Debug\\Exception\\ContextErrorException: Warning: require(/mnt/web214/b3/19/510141719/htdocs/var/cache/dev/Container7ru6xxs/getPrestashop_Translation_DatabaseLoaderService.php): failed to open stream: No such file or directory in /mnt/web214/b3/19/510141719/htdocs/var/cache/dev/Container7ru6xxs/appDevDebugProjectContainer.php:1711: /home/strato/http/premium/rid/17/19/510141719/htdocs/admin169rohge3/index.php
14.04.2020 23:44:55 simracingproducts.nl [client 217.19.31.0] AH01215: Stack trace:: /home/strato/http/premium/rid/17/19/510141719/htdocs/admin169rohge3/index.php
14.04.2020 23:44:55 simracingproducts.nl [client 217.19.31.0] AH01215: #0 /mnt/web214/b3/19/510141719/htdocs/var/cache/dev/Container7ru6xxs/appDevDebugProjectContainer.php(1711): require(): /home/strato/http/premium/rid/17/19/510141719/htdocs/admin169rohge3/index.php
14.04.2020 23:44:55 simracingproducts.nl [client 217.19.31.0] AH01215: #1 /mnt/web214/b3/19/510141719/htdocs/var/cache/dev/Container7ru6xxs/appDevDebugProjectContainer.php(3739): Container7ru6xxs\\appDevDebugProjectContainer->load('getPrestashop_T...'): /home/strato/http/premium/rid/17/19/510141719/htdocs/admin169rohge3/index.php
14.04.2020 23:44:55 simracingproducts.nl [client 217.19.31.0] AH01215: #2 /mnt/web214/b3/19/510141719/htdocs/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/ServiceLocator.php(64): Container7ru6xxs\\appDevDebugProjectContainer->Container7ru6xxs\\{closure}(): /home/strato/http/premium/rid/17/19/510141719/htdocs/admin169rohge3/index.php
14.04.2020 23:44:55 simracingproducts.nl [client 217.19.31.0] AH01215: #3 /mnt/web214/b3/19/510141719/htdocs/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Translation/Translator.php(141): Symfony\\Component\\Depen in /mnt/web214/b3/19/510141719/htdocs/var/cache/dev/Container7ru6xxs/appDevDebugProjectContainer.php on line 1711: /home/strato/http/premium/rid/17/19/510141719/htdocs/admin169rohge3/index.php
14.04.2020 23:44:55 simracingproducts.nl [client 217.19.31.0] AH01215: PHP Fatal error:  Container7ru6xxs\\appDevDebugProjectContainer::load(): Failed opening required '/mnt/web214/b3/19/510141719/htdocs/var/cache/dev/Container7ru6xxs/getPrestashop_Translation_DatabaseLoaderService.php' (include_path='/mnt/web214/b3/19/510141719/htdocs/vendor/pear/pear_exception:/mnt/web214/b3/19/510141719/htdocs/vendor/pear/console_getopt:/mnt/web214/b3/19/510141719/htdocs/vendor/pear/pear-core-minimal/src:/mnt/web214/b3/19/510141719/htdocs/vendor/pear/archive_tar:.:/opt/RZphp72/includes') in /mnt/web214/b3/19/510141719/htdocs/var/cache/dev/Container7ru6xxs/appDevDebugProjectContainer.php on line 1711: /home/strato/http/premium/rid/17/19/510141719/htdocs/admin169rohge3/index.php

 

Link to comment
Share on other sites

Unfortunately, it only shows:

15.04.2020 11:38:58 simracingproducts.nl [client 217.19.31.0] End of script output before headers: index.php
15.04.2020 11:38:58 simracingproducts.nl [client 217.19.31.0] End of script output before headers: index.php
15.04.2020 11:38:58 simracingproducts.nl [client 217.19.31.0] End of script output before headers: index.php
15.04.2020 11:38:58 simracingproducts.nl [client 217.19.31.0] End of script output before headers: index.php
15.04.2020 11:38:58 simracingproducts.nl [client 217.19.31.0] End of script output before headers: index.php

Bottom of the page error log shows:

spacer.png

Link to comment
Share on other sites

So, as I was not coming further, I decided to migrate my whole webshop to another domain. I wasn't too happy with Strato anyways.

All is working okay, except for the SEO & URLs page. It throws the following error:

[Wed Apr 15 13:41:51.652224 2020] [lsapi:error] [pid 312508:tid 139865651922688] [client 217.19.31.185:52680] [host veldhuisracing.nl] Backend fatal error: PHP Fatal error:  Symfony\\Component\\Debug\\DebugClassLoader::loadClass(): Failed opening required '/home/veldhuis/domains/veldhuisracing.nl/public_html/vendor/composer/../../src/PrestaShopBundle/Form/Admin/Configure/ShopParameters/TrafficSeo/Meta/MetaSettingsFormDataProvider.php' (include_path='/home/veldhuis/domains/veldhuisracing.nl/public_html/vendor/pear/pear_exception:/home/veldhuis/domains/veldhuisracing.nl/public_html/vendor/pear/console_getopt:/home/veldhuis/domains/veldhuisracing.nl/public_html/vendor/pear/pear-core-minimal/src:/home/veldhuis/domains/veldhuisracing.nl/public_html/vendor/pear/archive_tar:.:/usr/local/php56/lib/php') in /home/veldhuis/domains/veldhuisracing.nl/public_html/vendor/symfony/symfony/src/Symfony/Component/Debug/DebugClassLoader.php on line 156\n, referer: http://veldhuisracing.nl/admin169rohge3/index.php?controller=AdminDashboard&token=f484494f6d644c6b7696c050f8dfba7f

I can't find any similar file in those folders, so what is going on?

Link to comment
Share on other sites

So I found the problem. The folder /src/PrestaShopBundle/form/admin/configure/ShopParameters/TrafficSeo was lost. I copied it from the original prestashop files into the shop. Now it's working again.

 

Still, no solution on the original Strato domain. I think it is going to stay a mystery and that I won't be able to fix it. If anyone has a solution, I will keep the original installation intact and let me know!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...