Website shows 502 Bad Gateway error intermittently

Created:

2017-04-05 08:42:12 UTC

Modified:

2017-08-08 13:44:45 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Website shows 502 Bad Gateway error intermittently

Applicable to:

  • Plesk for Linux

Symptoms

After migration WordPress website shows 502 Bad Gateway error intermittently.

The WordPress site has WP All Import plugin enabled on the source server and scheduled tasks like the following one are configured to execute every 5 minutes on the domain:

wget -q -O /dev/null "http://example.com/wp-cron.php?import_key=uHjHg-J&import_id=25&action=processing"

The old server is active and there are a lot of requests to wp-cron.php from the old IP in the domain's access_log:

# tail -n 10000  /var/www/vhosts/system/example.xom/logs/access_log |cut -f 1 -d ' '|sort|uniq -c|sort -nr
3463 203.0.113.2

Cause

Cron task are made by WP All Import plugin on the active source server cause high load on the domain.

Resolution

Suspend subscription example.com on the source server.

Have more questions? Submit a request
Please sign in to leave a comment.