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

Site Timing out when posting

Discussion in 'Troubleshooting and Problems' started by faeronsayn, Dec 10, 2011.

  1. faeronsayn

    faeronsayn Well-Known Member

    When posting threads or just a quick reply, my site seems to time out.

    it does not seem to be a server fault since my server load is very minimal at around 0.60 ave. So I am not sure what is actually causing this, some times I go into a couple of threads and post, and it posts fine, but other times and most of the time its timing out, and I'd need to refresh to see my post.

    If anyone has a solution please let me know!
     
  2. steel_curtain

    steel_curtain Well-Known Member

  3. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

  4. faeronsayn

    faeronsayn Well-Known Member

  5. steel_curtain

    steel_curtain Well-Known Member

    As Jake said above; can you provide more details?
     
  6. faeronsayn

    faeronsayn Well-Known Member

    Okay so when I am posting a quick reply, usually what happens is that it loads for a long time and then it comes up with the error I posted above.

    Then I refresh and my message is there, it does not show that animation / updates the post right infront of you, but instead just endlessly loads until it comes up with that error. This is happening while I post quick replies, post threads, post replies to Private messages and so on.
     
  7. steel_curtain

    steel_curtain Well-Known Member

    Like Jake asked... is this happening on a specific browser, all browsers, other users, only yourself?
     
  8. faeronsayn

    faeronsayn Well-Known Member

    Happening on Chrome and Firefox both, using different accounts. It seems to be a problem with all users.
     
  9. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Any addons or file customizations? Is there anything in the log?

    Admin CP -> Tools -> Server Error Log

    That's a javascript timeout (30 seconds). See this post to the end:

    http://xenforo.com/community/threads/one-styles-code-is-merging-with-another.19468/#post-250365

    As you can see in that thread, you can edit the js files to increase the timeout. But submitting a post shouldn't take longer than 30 seconds to begin with. Maybe your server is just slow.
     
  10. faeronsayn

    faeronsayn Well-Known Member

    Well sometimes it takes less than 5 - 10 seconds, and then sometimes it just does not do it, server average load is quite low hovering around 0.3 - 0.6 so not sure what it really is.

    I do get some stuff in the server error log.

    Its this

    Zend_Mail_Protocol_Exception: Connection timed out - library/Zend/Mail/Protocol/Abstract.php:277

    Code:
    [COLOR=#141414][SIZE=13px]array(3) {
      ["url"] => string(80) "http://www.shadygamer.com/threads/testing-the-post-thread-stuffs.11947/add-reply"
      ["_GET"] => array(0) {
      }
      ["_POST"] => array(8) {
        ["message_html"] => string(11) "<p>test</p>"
        ["_xfRelativeResolver"] => string(71) "http://www.shadygamer.com/threads/testing-the-post-thread-stuffs.11947/"
        ["attachment_hash"] => string(32) "fe201b61b7d72fabc71dd119578c9b4b"
        ["last_date"] => string(10) "1323496672"
        ["_xfToken"] => string(53) "2,1323497459,11db597360bc217a1eb134860ac8bca78734b84f"
        ["_xfRequestUri"] => string(46) "/threads/testing-the-post-thread-stuffs.11947/"
        ["_xfNoRedirect"] => string(1) "1"
        ["_xfResponseType"] => string(4) "json"
      }
    }[/SIZE][/COLOR]
    
     
  11. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Ah ha. Notification emails are failing. That explains why the problem doesn't happen for every reply, because some threads might not have anyone "watching" and hence no emails are sent.

    Check your mail configuration:

    Admin CP -> Home -> Options -> Email Options
     
    faeronsayn likes this.
  12. faeronsayn

    faeronsayn Well-Known Member

    Damn I knew it was the notification emails x.x, my google apps is not currently working for me properly, so I've switched it back to normal, and lets see how it goes.
     
  13. SneakyDave

    SneakyDave Well-Known Member

    I'm getting a similar problem (The Server Did Not Respond In Time) from one user using the same Chrome version I am. I haven't seen the error, and there aren't any messages in the error log. Would there be PHP errors logged somewhere else? I have seen server log errors appear before, but for minor things I was able to mitigate.

    They aren't logged in through Facebook, and they say that it happened when they tried to click the xF "like" button on a post.
     
  14. Andy.N

    Andy.N Well-Known Member

    i dont have a mail server installed because i use google app mail. is there a better solution for this?
     
  15. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    That means the server didn't respond within 30 seconds. It's a timeout in the javascript. I don't see how liking a post could cause such a delay. There is no notification email involved there.

    Are you able to reproduce the error yourself? Check the log in the control panel:

    Admin CP -> Tools -> Server Error Log

    Try disabling your addons if you have any installed.
     
  16. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Are you experiencing the same timeout when posting? Chances are good it's a failed connection to the mail server. It should show up in the logs:

    Admin CP -> Tools -> Server Error Log

    If it's a problem with the mail connection then you need to confirm your mail settings:

    Admin CP -> Home -> Options -> Email Options
     
  17. Andy.N

    Andy.N Well-Known Member

    Yes, Jake. It's the former that sometimes connection to google mail server timed out.
    I'm trying to find a better solution to offload the email task to another server.

    I'm reading about the new Amazon email services which hopefully is more reliable. Not sure how to get it to work with Xenforo yet.
    http://aws.amazon.com/ses/
     
  18. Deebs

    Deebs Well-Known Member

    What I do is run a local copy of Exim which PHP sends the mail to directly (basically a fire and forget about it). Then Exim runs a queue runner every 5 mins and offloads the mail to my smarthost. This way PHP doesn't timeout as Exim is always running.
     
    Mike, Digital Doctor and lazy llama like this.
  19. SneakyDave

    SneakyDave Well-Known Member

    I realize its a javascript time out, but according to the source, the error didn't happen after 30 seconds, but maybe they didn't realize how long they were waiting.

    There are no addons other than the Tapatalk add-on, and there's nothing reported in the server logs, which would be nice as to pinpointing the problem.
     
  20. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Try disabling that addon to see if that is the cause. And I still want to confirm that you are able to reproduce this problem yourself. It's hard to troubleshoot something that you can't reproduce.
     

Share This Page