Feedback 502 Bad Gateway error

Discussion in 'Support & Feedback' started by indyonline, Mar 6, 2013.

  1. #1
    Shawn, I been seeing this error for the last 3 days. It only happens once a day, the first time I open the site that day. Just thought I would let ya know in case nobody else has yet.

    (If it's my browser or PC let me know. I didnt do a search for that error.)

    The following error occurred:
    502 Bad Gateway
    nginx
    
    Code (markup):
    nginx.jpg
     
    indyonline, Mar 6, 2013 IP
    FreeFun4Every1 likes this.
  2. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,334
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #2
    Hmmm... I haven't seen that myself... 100% of the time, but only when you initially come to the site?
     
    digitalpoint, Mar 6, 2013 IP
  3. indyonline

    indyonline Prominent Member

    Messages:
    4,626
    Likes Received:
    248
    Best Answers:
    2
    Trophy Points:
    335
    #3
    Ya, the first time I sign on for the day. For the last 3 days.
     
    indyonline, Mar 6, 2013 IP
  4. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,334
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #4
    Any specific end point/URL you start with?
     
    digitalpoint, Mar 6, 2013 IP
  5. indyonline

    indyonline Prominent Member

    Messages:
    4,626
    Likes Received:
    248
    Best Answers:
    2
    Trophy Points:
    335
    #5
    forums.digitalpoint.com
     
    indyonline, Mar 6, 2013 IP
  6. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,334
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #6
    If you flip to a different browser are you able to recreate the initial issue? Maybe like a session creation thing?
     
    digitalpoint, Mar 6, 2013 IP
  7. indyonline

    indyonline Prominent Member

    Messages:
    4,626
    Likes Received:
    248
    Best Answers:
    2
    Trophy Points:
    335
    #7
    I wasn't able to with IE.
    Do you think maybe it's because I used http in the url not https?
    The bookmark on my browsers toolbar was pointed to http from the old site.
    (i just changed it)
     
    Last edited: Mar 6, 2013
    indyonline, Mar 6, 2013 IP
  8. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,334
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #8
    It shouldn't (it should automatically redirect)... what browser/version/OS are you using normally?
     
    digitalpoint, Mar 6, 2013 IP
  9. indyonline

    indyonline Prominent Member

    Messages:
    4,626
    Likes Received:
    248
    Best Answers:
    2
    Trophy Points:
    335
    #9
    I edited my last post while you was replying, tell me if you think that's it.
     
    indyonline, Mar 6, 2013 IP
  10. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,334
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #10
    I guess see if it happens tomorrow... But I can't think of a reason it would matter... Hmmm...
     
    digitalpoint, Mar 6, 2013 IP
  11. indyonline

    indyonline Prominent Member

    Messages:
    4,626
    Likes Received:
    248
    Best Answers:
    2
    Trophy Points:
    335
    #11
    it just did it to me again after a restart, cached cleared and logged in again. Using https this time
    --
    FF 19.0 and Windows 7
     
    indyonline, Mar 6, 2013 IP
  12. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,334
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #12
    What if you use the normal log out button and restart browser? Just wondering if it's something weird with the initial session creation...
     
    digitalpoint, Mar 6, 2013 IP
  13. indyonline

    indyonline Prominent Member

    Messages:
    4,626
    Likes Received:
    248
    Best Answers:
    2
    Trophy Points:
    335
    #13
    nope, didn't do it.
     
    indyonline, Mar 6, 2013 IP
  14. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,334
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #14
    Well, just for good measure, I patched the web server with a new version of the SPDY protocol (which is what is used if you are on Opera, Firefox or Chrome)... It didn't say *what* fixes there are... just says "some fixes". So I guess let me know if you run into it again...

    http://nginx.org/patches/spdy/CHANGES.txt
     
    digitalpoint, Mar 6, 2013 IP
    indyonline likes this.
  15. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,334
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #15
    Was just thinking about this again... It could actually be the SPDY thing since IE doesn't support it, and SPDY *does* do some special things when you first connect (it creates a permanent connection it reuses for you). So with it not happening with IE, but happening with Firefox...

    Maybe "some fixes" means, "make it work right on first connect with Firefox" lol
     
    digitalpoint, Mar 6, 2013 IP
    indyonline likes this.
  16. tattoos

    tattoos Prominent Member

    Messages:
    1,903
    Likes Received:
    150
    Best Answers:
    0
    Trophy Points:
    335
    #16
    I've had this a few times as well, although I can't recall it happening today.

    I use Chrome version 25.0.1364.152 m, WinXP and I access the site through https://forums.digitalpoint.com/watched/threads

    I thought it may have had something to do with my adblocker playing up, but because it didn't keep occurring once I started browsing the site, I didn't pursue it.

    For an unrelated reason I was in the adblocker settings today and noticed I had the DP sub domains "blogs" and "advertising" in the exclude list which triggered my memory about the 502.
    I removed the excluded domains, restated chrome, then added "advertising" again.

    Not sure if that was causing the bad gateway, but thought I'd mention it.

    Cheers
    James
     
    tattoos, Mar 6, 2013 IP
  17. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,334
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #17
    Nah... Ad blocker could do some weird things, but not that. :)

    After thinking about how SPDY holds connections, I had another thought... The front-end load balancer were set to drop connections after 15 seconds of being idle... made some adjustments there too. But I don't think that could cause a 502 on the web server either.
     
    digitalpoint, Mar 6, 2013 IP
  18. tattoos

    tattoos Prominent Member

    Messages:
    1,903
    Likes Received:
    150
    Best Answers:
    0
    Trophy Points:
    335
    #18


    Actually, When it first happened I was going to take a screenshot but got distracted when my phone rung, when I turned back to the computer less than a minute later, the bad gateway sign was gone. I don't think I touched anything.

    Would SPDY dropping the connection have caused the message to disappear, or does it just time out after a while?
     
    tattoos, Mar 6, 2013 IP
  19. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,334
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #19
    As far as I know, you have to click somewhere in the browser window to make it go away... Connection dropping definitely couldn't close it. Maybe the normal errors in XenForo has some really long timeout though and I just never waited long enough to see them go away on their own.
     
    digitalpoint, Mar 6, 2013 IP
  20. tattoos

    tattoos Prominent Member

    Messages:
    1,903
    Likes Received:
    150
    Best Answers:
    0
    Trophy Points:
    335
    #20

    OK. Yeah I can't remember clicking anything, but I may have done and not realized.

    Cheers
     
    tattoos, Mar 6, 2013 IP