503 Errors

Discussion in 'General' started by freeballt, Jun 3, 2011.

  1. freeballt

    freeballt New Member

    Myself and other users of my site have been getting 503 errors in abundance and I've been trying to figure out why. It seems to be linked to two error messages, both listed above. The first has to do with cookie length, and if that is the case, what is the maximum cookie length permitted by Litespeed? If there is a limit, is there a way of disabling it?

    The second error, I am unable to replicate, but appears all through out my error logs.

    Running vBulletin with 4.1.1...

    An assistance would be appreciated.
    Last edited: Jun 3, 2011
  2. NiteWave

    NiteWave Administrator

    there is a setting:
    Server->Tuning->Max Request Header Size (bytes)

    but usually it's not a problem.

    another clue is to check if ip_conntrack tables is full.

    check:
    #cat /proc/sys/net/ipv4/ip_conntrack_max
    #cat /proc/sys/net/ipv4/netfilter/ip_conntrack_count
  3. freeballt

    freeballt New Member

    Clearing bbthread_lastview and bbforum_view seems to fix the issue whenever I have the first error (and they are the bulk of the cookie when they get that big). Other vbulletin forums hosted with litespeed seem to have this common issue.

    Also, Max Request Header Size (bytes) 16380. Cookie len: 540 is no where near 16380.

    What is the cause for the second error? Is it a generic error or does it have another purpose?
    Last edited: Jun 3, 2011
  4. NiteWave

    NiteWave Administrator

    the 2nd "error" is not error, just info, can ignore it safely in general.
  5. freeballt

    freeballt New Member

    Hmm, well someone emailed me and told me that they had a 503, they gave me their IP and that was the only thing on the log.

    Error #1 still remains with cookies.
  6. NiteWave

    NiteWave Administrator

    in browser?
  7. freeballt

    freeballt New Member

    Yes, they make the cookie very large. Every time someone views a thread, it adds that thread id to the cookie. They can get very large. I've had reports of people getting 503 errors while viewing threads, the only way to fix it is to remove the cookies.

    The first error shows up in the log when that occurs.
  8. NiteWave

    NiteWave Administrator

    Thanks for the info!

    maybe need modify the vBulletin code, limit size of cookie vaule bbthread_lastview and bbforum_view, truncate them when too big.
  9. freeballt

    freeballt New Member

    Yeah, but when should I truncate it? Max Request Header Size does not represent the cookie maximum size, and since it seems to be a cookie related error, I don't know what the limit is. If I were to completely remove those two cookies, it would completely limit several aspects of my forum, including latest post, subscribed threads, and forums that have been read (not including the functions I am aware of). Could you give me any more information about the limits?
  10. NiteWave

    NiteWave Administrator

    first, need locate the vB source code where set the cookies.
    in example of bbforum_view, it keeps recent-visited-forum history of a user, limit to recent 10 forums, not appending it forever.
  11. freeballt

    freeballt New Member

    Doing that would still cause forum issues.

    Why does that size of the cookie work fine with apache but not litespeed?
  12. webizen

    webizen New Member

  13. freeballt

    freeballt New Member

    Right, but this error doesn't occur with the same version of php w/ apache. Apache is too slow, that's why I use litespeed. Litespeed has an issue with cookies (perhaps since PHP is compiled with whatever optimizations you guys add?), preventing some of my users from even browsing the forum = big problem.

    Just fixed someone's problem on MSN Messenger:
    His error was "Error 101 (net::ERR_CONNECTION_RESET):" with Chrome.

    Edit: other websites are having the same issue http://www.litespeedtech.com/support/forum/archive/index.php/t-3887.html
    Last edited: Jun 9, 2011
  14. NiteWave

    NiteWave Administrator

    please do Force Reinstall 4.1.1 now. the cookie issue may disappear. Will work better than apache in this regards as well!
  15. freeballt

    freeballt New Member

    Same thing as before. I've experienced it personally and I reinstalled it last night. You guys can easily replicate it on your side, save a large cookie and test it with this board which I am assuming is hosted with litespeed.
  16. mistwang

    mistwang LiteSpeed Staff

    can we login and take a look at your server.
    It is not that easy to reproduce in our lab, otherwise, it should have been fixed easily.
  17. freeballt

    freeballt New Member

    If compiling it without Suhosin doesn't fix it, then sure.

    Could that be the issue? PHP hardening... if the cookie gets too big reject it and 503?
    Last edited: Jun 10, 2011
  18. NiteWave

    NiteWave Administrator

    no, should not. if you can work out a test case, can reproduce the 503 error, that should be very helpful.
  19. cmanns

    cmanns New Member

    Disabling shuosin will probably def help.

    We havnt had any issues and we hosted large vb with millions of posts and hundreds of active users.
  20. superlink

    superlink New Member

    Anyone knows how to fix this issue?, same problem here using vBulletin. These 503 errors only happens with POST requests from different php files randomly.

    Thanks

Share This Page