1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.1 Issues with 502 Error while Adding User in Admin CP

Discussion in 'Troubleshooting and Problems' started by kingston, Jul 20, 2013.

  1. kingston

    kingston Well-Known Member

    I get this error message in the logs when I type in a username to add it and tab to next field when it tries to validate it (I get a 502 error on the admin panel).

    Any ideas?
     
  2. kingston

    kingston Well-Known Member

    While adding a user through the Admin CP when it goes to verify the user doesn't already exist I get a 502 error from my server. I moved servers a few weeks ago and a few things are acting odd, this is one of them. I cannot find the cause of it except with this error message in the logs:

    Code:
    2013/07/20 14:51:37 [error] 25008#0: *69671 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: *.*.*.*, server: forum.spiritcompany.com, request: "POST /admin.php?users/0/validate-field HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "forum.spiritcompany.com", referrer: "http://forum.spiritcompany.com/admin.php?users/add"
    I posted this I think in the wrong forum earlier. Anyone know why this is happening or what I can look at to fix it? I worry what is causing it is indicative of bigger things.
     
  3. Mike

    Mike XenForo Developer Staff Member

    That likely indicates that PHP is crashing. Unfortunately, it'll be problematic to debug. You may be best trying to upgrade your PHP install (and associated parts, such as APC, XCache, etc).
     
  4. kingston

    kingston Well-Known Member

    Thanks for the tip. I am currently on the latest 5.4 release on aptitude for Ubuntu 12.04. Would you recomend 5.5?
     
  5. Mike

    Mike XenForo Developer Staff Member

    I'd probably say that 5.4 is more stable than 5.5 just given that it's been just getting bug fixes for longer.

    There are a few other debugging ideas here: http://stackoverflow.com/questions/1733306/nginx-errors-readv-and-recv-failed

    The basic issue is that error is completely useless to try to find a root cause as it's so vague. The script shouldn't be a particularly long running one, which makes me think that something is crashing. Trying to get confirmation of that would help. It could be a conflict between installed PHP extensions. If you have anything that heavily modifies the core of PHP (APC/XCache, suhosin, etc), it'd be worth disabling them to test.
     
  6. kingston

    kingston Well-Known Member

    It was APC 3.1.13. Thanks for the help. Disabled APC and it worked fine. Now I just need to find one that works well with my setup. Thanks again!
     
    Mike likes this.
  7. dbembibre

    dbembibre Active Member

    I have similar issues when put nginx as reverse proxy of apache, all my slow php scripts die by timeouts defined in php.
    Scripts that take longer that his specified timeout simply die adn nginx report recv error as the connection is closed from the php process.
     

Share This Page