502 Bad Gateway – wp-admin/admin-ajax.php

  • October 1, 2013 at 16:37 #9573
    Bruce
    Guest

    Hello,

    I am receiving this error in Firebug Console:

    POST http://tenthingsyou.com/wp-admin/admin-ajax.php 502 Bad Gateway 307ms jquery...=1.10.2 (line 5)

    This causes the Amazon information to not display at all.

    I developed the site on local dev (XAMPP), and I did not receive this error at all. After moving the site (tenthingsyou.com) to my host (KnownHost VPS), I got the errors, and the display problem.

    To troubleshoot, I deactivated all plugins. With all plugins deactivated except for AmazonSimpleAdmin, the 502 Bad Gateway errors exists, and the Amazon data does not display. If AmazonSimpleAdmin is deactivated, the 502 errors go away.

    I contacted my hosts (Knownhost – who are excellent) support, and they agree that it is the AmazonSimpleAdmin plugin. They have checked the entire VPS server configuration for issues, and find none.

    The server configuration is:
    Apache 2.2.25 on CENTOS 6.4
    I am running PHP version 5.4.17, with DSO handler, and mod_ruid2
    I am using Nginx Admin (v4.5) (http://nginxcp.com/) as a front end reverse proxy

    The tenthingsyou.com is run on WordPress version 3.6.1, on the Genesis Framework (version 2.0.1). I am using the most current version of AmazonSimpleAdmin.

    All sites on my VPS work perfectly, and none of them have ever had a 502 Bad Gateway issue.

    I really, really like your plugin, and would love to use it if this can be resolved.

    Thank you.

    October 5, 2013 at 15:10 #9592
    Timo
    Member

    Hi Bruce,
    thanks for using my plugin and your detailed report. I haven’t run the plugin with your configs but I guess the problem is the last point:
    I am using Nginx Admin (v4.5) (http://nginxcp.com/) as a front end reverse proxy

    Probably the request to the Amazon webservice from the plugin does not get through. I found many similar discussions on stackoverflow:
    http://stackoverflow.com/search?q=502+Bad+Gateway+nginx+proxy

    As I do not have much experiences with nginx and front end reverse proxy, I am sorry that I can not give you more information / a solution. But I am interested in finding the solution here of course. Please let me know when you are one step closer to resolving this issue.

You must be logged in to reply to this topic.