[uds://tmp/lshttpd/lsphp5.sock] Request in process stage, fail with 503

Discussion in 'General' started by danyclaut, Jul 5, 2009.

  1. danyclaut

    danyclaut New Member

    Hi!

    I have Cpanel, litespeed enterprise and a phpBB forum.

    Some of my users are receiving the 503 error when they want to access to a page.

    In error log, I can see :

    connection to [uds://tmp/lshttpd/lsphp5.sock] on request #344, confirmed: 1, Connection reset by peer!

    [uds://tmp/lshttpd/lsphp5.sock] Request in process stage, fail with 503

    oops! 503 Service Unavailable

    Content len: 0, Request line:
    (null)


    Do you have an idea why some of my users are receving this erro?

    thanks!
  2. anewday

    anewday Moderator

    Could be due to the security (throttling) settings. I see this same entry on my logs when a certain spider crawls my forums, it is being too aggresive. What values do you have for static/dynamic requests/s, soft/hard limit, etc. ?
  3. danyclaut

    danyclaut New Member

    Hi, my members are receiving this error, not only bot. And it's very random.

    There my setting :

    Static Requests/second 35
    Dynamic Requests/second 30
    CPU Soft Limit (sec) 0
    CPU Hard Limit (sec) 0
    Memory Soft Limit (bytes) 2000M
    Memory Hard Limit (bytes) 2500M
    Process Soft Limit 5000
    Process Hard Limit 10000

    Should I increase static and dynamic resquests per seconds?
  4. mistwang

    mistwang LiteSpeed Staff

    That's due to PHP crash in middle of a request.
    If you use 5.2.10, you should fall back to 5.2.9, there are stability issue with 5.2.10.
  5. danyclaut

    danyclaut New Member

    Hi! Thanks for your reply!

    My php is 5.2.8... this version is stable?
  6. anewday

    anewday Moderator

    Which litespeed version are you using?
  7. danyclaut

    danyclaut New Member

    Version 4.0.5
  8. mistwang

    mistwang LiteSpeed Staff

    It is hard to say which version is the most reliable one, as different user may trigger different bug. My suggestion is to try 5.2.9 and 5.2.10 on your server see which one is the best for you.
  9. danyclaut

    danyclaut New Member

    Hi! Thanks a lot for your recommandations.

    I upgrade my php to 5.2.10 and a part of my phpbb forum visitors are receiving again the error 503.

    When a visitor clear their cookies, he no longer receive the error 503.

    Should I upgrade the max connections in php.ini ?

  10. anewday

    anewday Moderator

    As he said earlier: "If you use 5.2.10, you should fall back to 5.2.9, there are stability issue with 5.2.10."
  11. danyclaut

    danyclaut New Member

    I recompiled php to 5.2.9 and it's doing the same thing again...error 503 :(
  12. mistwang

    mistwang LiteSpeed Staff

    Does the script takes long time to process?
  13. danyclaut

    danyclaut New Member

    No, it's a phpbb forum, so it's very small tasks.

    For exemple, a member want to read a reply in the forum : error 503. He can't access to this forum without clear his forum cookies.

    I have 50 000 uniques visitors per day, but only a little part got this error. One day, this member receive this error, an other day it's an other...

    The error come in rush hour(load average=3) and during the nigh(load average = .02)
  14. mistwang

    mistwang LiteSpeed Staff

    Please try downloading 4.0.6 build and upgrade manually, a build of 4.0.6 has problem causing random 503 errors, it has been available on our web site for a little while, then fixed. To be safe, update again.

    Does 503 error happen at the beginning when you switch to LiteSpeed or, it starts to happen with certain PHP version or LSWS version?
  15. danyclaut

    danyclaut New Member

    Since I switch to LSWS, I got this random 503 error(php crash).

    You said that 5.06 have random 503 error and you want that I install it?
  16. anewday

    anewday Moderator

    Yes, better update it again to make sure it's the newest 4.0.6 build.
  17. danyclaut

    danyclaut New Member

    Ok, now, I have 4.05, I'll upgrade it to 4.06. According to you, it will fix the random 503 error issue(PHP5 crash) ?
  18. danyclaut

    danyclaut New Member

    Just another question, is it normal that connect to php is "reset by peer" ?

    connection to [uds://tmp/lshttpd/lsphp5.sock] on request #10, confirmed: 0, Connection reset by peer!

    thanks
  19. anewday

    anewday Moderator

    That's normal.
  20. mistwang

    mistwang LiteSpeed Staff

    Initial build of 4.0.7 may have 503 error problem. latest one should be fixed, can you try again?

Share This Page