Recurring 502 gateway errors on WP sites

May 2, 2016 893 views
PHP WordPress MySQL

Hi

After installing my 5th wordpress site on my server a week ago, I've been experiencing many 502 errors. None of the sites load anymore.

I've tried restarting the php service and even temporarily increased my droplet size but it doesn't seem to be working. i had a dev look at it and he fixed the issue for a few days but its back. He said the php service had stopped running.

Here is some information from the sever:

02:45:08 AM CPU %usr %nice %sys %iowait %irq %soft %steal %guest %gnice %idle
02:45:08 AM all 8.92 0.00 2.41 0.63 0.00 0.03 0.00 0.00 0.00 88.00

avg-cpu: %user %nice %system %iowait %steal %idle
8.83 0.00 2.41 0.62 0.00 88.13

Device: tps kBread/s kBwrtn/s kBread kBwrtn
vda 44.03 624.78 569.89 335917 306408

avg-cpu: %user %nice %system %iowait %steal %idle
0.00 0.00 0.00 0.00 0.00 100.00

Device: tps kBread/s kBwrtn/s kBread kBwrtn
vda 2.00 0.00 16.00 0 16

         total       used       free     shared    buffers     cached

Mem: 2001 508 1493 64 34 249
-/+ buffers/cache: 225 1776
Swap: 0 0 0

Variables (--variable-name=value)
and boolean options {FALSE|TRUE} Value (after reading options)


character-sets-dir (No default value)
data-file-length 0
keys-used 18446744073709551615
max-record-length 9223372036854775807
set-auto-increment 0
set-collation (No default value)
sort-records 0
tmpdir (No default value)
key-buffer-size 520192
key-cache-block-size 1024
myisam-block-size 1024
read-buffer-size 262136
write-buffer-size 262136
sort-buffer-size 2097144
myisam-sort-buffer-size 2097144
sort-key-blocks 16
decode-bits 9
ft-min-word-len 4
ft-max-word-len 84
ft-stopword-file (No default value)
stats-method nulls_unequal

What is the issue and how do I fix it?

2 comments
  • Did your dev indicate any PHP errors that he had seen? You may find the errors here: /var/log/apache2/error.log

  • Its an nginx server, so i went to:

    /var/log/nginx

    none of those files have been modified recently.

Be the first one to answer this question.