• 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

faeronsayn

Well-known member
#1
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!
 

faeronsayn

Well-known member
#6
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.
 

Jake Bunce

XenForo moderator
Staff member
#9
Any addons or file customizations? Is there anything in the log?

Admin CP -> Tools -> Server Error Log

The server did not respond in time. Please try again.
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.
 

faeronsayn

Well-known member
#10
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.
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]
 

Jake Bunce

XenForo moderator
Staff member
#11
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

Well-known member
#12
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
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.
 

SneakyDave

Well-known member
#13
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.
 

Jake Bunce

XenForo moderator
Staff member
#15
The Server Did Not Respond In Time ... when they tried to click the xF "like" button on a post.
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.
 

Jake Bunce

XenForo moderator
Staff member
#16
i dont have a mail server installed because i use google app mail. is there a better solution for this?
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
 

Andy.N

Well-known member
#17
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
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/
 

Deebs

Well-known member
#18
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.
 

SneakyDave

Well-known member
#19
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.
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.
 

Jake Bunce

XenForo moderator
Staff member
#20
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.