Jump to content

Around once or twice a week, 503 timeout error


sampsonzak

Recommended Posts

I have had a 503 error on my site show up over the last few months that I've noticed, and I cannot figure out what is causing it.

 

I've checked through logs, deleted large sql rows from past plugins, disabled plugins, bought a cache plugin, and a whole lot more, and it's still happening.

 

Are there any plugins, or tools I can use to find out what exactly is causing it? My webhost have tried to help, but seeing as PrestaShop only uses index.php, they cannot help or point me in any direction at all.

 

I even upgraded my webhost, even though I have less than <20 concurrent users.. so my server is not underpowered, something, somewhere is causing it to go extremely high load for ~5 minutes, being offline - then back to normal and is fine again.. for a few days atleast?

 

I am lost, and I have no idea what to do except make the jump to Magento 2. I would rather not but I feel that it may be beneficial in the long run. I've had too many issues with PrestaShop, and I do not have a clue what I can do now.

 

I would appreciate any recommendations, or any sort of tool I could use to debug what is causing these high cpu usage spikes. I have logged lots of things down in a notepad, weekly XML requests, catalog fetch times, etc etc. Nothing matches up or makes sense.

 

I noticed considerable less CPU usage when I disabled the 'infinite scroll module' and much better CPU usage when enabling 'page cache ultimate'. Other than this, I'm clueless on what to even look at next.

 

Looked at slow SQL queries: over 300k rows in my PS_Affiliates table. Cleaned this, no change.

 

[Wed May 13 07:33:27.897840 2020] [:error] [pid 49708] Execute of /home/airmodel/public_html/index.php stopped because of load 256.02
[Wed May 13 07:33:27.897684 2020] [:error] [pid 49708] Execute of /home/airmodel/public_html/index.php stopped because of load 256.02
[Wed May 13 07:33:27.897075 2020] [:error] [pid 49871] Execute of /home/airmodel/public_html/index.php stopped because of load 256.02
[Wed May 13 07:33:27.897054 2020] [:error] [pid 45769] Execute of /home/airmodel/public_html/index.php stopped because of load 256.02
[Wed May 13 07:33:27.894251 2020] [:error] [pid 48485] Execute of /home/airmodel/public_html/index.php stopped because of load 256.02
[Wed May 13 07:33:27.894236 2020] [:error] [pid 49711] Execute of /home/airmodel/public_html/index.php stopped because of load 256.02
[Wed May 13 07:33:27.894232 2020] [:error] [pid 45770] Execute of /home/airmodel/public_html/index.php stopped because of load 256.02
[Wed May 13 07:33:27.894051 2020] [:error] [pid 48485] Execute of /home/airmodel/public_html/index.php stopped because of load 256.02
[Wed May 13 07:33:27.894051 2020] [:error] [pid 49711] Execute of /home/airmodel/public_html/index.php stopped because of load 256.02
[Wed May 13 07:33:27.894051 2020] [:error] [pid 45770] Execute of /home/airmodel/public_html/index.php stopped because of load 256.02
[Wed May 13 07:33:27.794068 2020] [:error] [pid 46106] Execute of /home/airmodel/public_html/index.php stopped because of load 256.02
[Wed May 13 07:33:12.591560 2020] [:error] [pid 49708] Execute of /home/airmodel/public_html/index.php stopped because of load 105.60
[Wed May 13 07:33:12.542491 2020] [:error] [pid 45769] Execute of /home/airmodel/public_html/index.php stopped because of load 105.60
[Wed May 13 07:33:12.542357 2020] [:error] [pid 48485] Execute of /home/airmodel/public_html/index.php stopped because of load 105.60
[Wed May 13 07:33:12.542144 2020] [:error] [pid 45770] Execute of /home/airmodel/public_html/index.php stopped because of load 105.60
[Wed May 13 07:33:12.545909 2020] [:error] [pid 49711] Execute of /home/airmodel/public_html/index.php stopped because of load 105.60
[Wed May 13 07:33:12.544701 2020] [:error] [pid 48725] Execute of /home/airmodel/public_html/index.php stopped because of load 105.60

 

Thank you to anyone who can help or give some advice on this!

 

 

CPU Usage - 20-4-20.png

CPU Usage - 21-4-20.png

CPU Usage - 22-4-20.png

CPU Usage - 23-4-20.png

CPU Usage - 24-4-20.png

CPU Weekly - 14-4-20 to 21-4-20.png

CPU Weekly - 20-4-20 to 27-4-20.png

high cpu - 22-4-20.png

Edited by sampsonzak
cpanel error log (see edit history)
Link to comment
Share on other sites

  • 2 months later...
  • 3 months later...
On 8/7/2020 at 12:15 PM, Belén García-Vaquero said:

A mi me está pasando  igual. Llevo una semana sin poder entrar como administrador a mi página. Siempre me sale el error 503 y no es de mi servidor sino de Prestashop. ¿Alguien sabe cómo solucionarlo? ¡Gracias!

The error which was causing this was a plugin I had which was "Google Tag Manager by Línea Gráfica". It was around a year old. I updated the plugin and my site has worked flawlessly since. If you use this plugin, make sure you update it to the latest version.

 

Additionally, I wish I did this: Enable debugging mode on your store, and inspect element on the webpage to look see if you can find any errors, - this is how I found errors relating to this plugin which made me update it - and it worked. I was stuck on this for a good month, I was very close to closing my PrestaShop and moving over to Magento.

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...