[Resolved] XenForo Rebuild Attachment Thumbnails 503

Status
Not open for further replies.
#1
Hello,

When running "Rebuild Attachment Thumbnails" in XenForo, I'm getting a 503 Service Unavailable error after approximately 13-14 minutes. During this time the process will run normally and the attachment thumbnail count will increase as normal.
The same happens with 4.2.23 and 5.0/5.0.1/5.0.2

Here's the error log from when the error comes up.

Code:
2015-07-11 00:44:18.208 [INFO] [85.75.x.x:40411:HTTP2-239] connection to [uds://tmp/lshttpd/lsphp5.sock.19398] on request #36, confirmed, 1, associated process: -1, running: 0, error: Connection reset by peer!
2015-07-11 00:44:18.209 [NOTICE] [85.75.x.x:40411:HTTP2-239] POST request in process stage, fail with 503 
2015-07-11 00:44:18.209 [NOTICE] [85.75.x.x:40411:HTTP2-239] oops! 503 Service Unavailable
2015-07-11 00:44:18.209 [NOTICE] [85.75.x.x:40411:HTTP2-239] Content len: 161, Request line: 'POST /admin.php?tools/run-deferred HTTP/1.1'
2015-07-11 00:44:18.209 [INFO] [85.75.x.x:40411:HTTP2-239] Cookie len: 126, _ga=GA1.3.9xxxxxxx4.141xxxx79; xf_session=e81cb89xxxxxxxxxxxx761d66; xf_session_admin=d97d66xxxxxxxxxxxx
2015-07-11 00:44:18.209 [INFO] [85.75.x.x:40411:HTTP2-239] File not found [/home/admin/public_html/503.shtml]
I checked my config for any timeout setting with a value around 12-15 minutes but can't find anything.

Any hints?

Thanks
- G.
 
#3
Hello,

I'm afraid it didn't work. I tried setting "External Application Abort" to No Abort, "Connection Timeout (secs)" to 3600, max_input_time and max_execution_time in php.ini to 3600, as well as the .htaccess code you mentioned - unfortunately after 15 minutes I got a 503 error again.

Code:
2015-07-11 11:19:31.337 [INFO] [85.75.x.x:46312:HTTP2-253] connection to [uds://tmp/lshttpd/lsphp5.sock.6686] on request #53, confirmed, 1, associated process: -1, running: 0, error: Connection reset by peer!
2015-07-11 11:19:31.338 [NOTICE] [85.75.x.x:46312:HTTP2-253] POST request in process stage, fail with 503 
2015-07-11 11:19:31.338 [NOTICE] [85.75.x.x:46312:HTTP2-253] oops! 503 Service Unavailable
2015-07-11 11:19:31.338 [NOTICE] [85.75.x.x:46312:HTTP2-253] Content len: 161, Request line: 'POST /admin.php?tools/run-deferred HTTP/1.1'
2015-07-11 11:19:31.338 [INFO] [85.75.x.x:46312:HTTP2-253] Cookie len: 126, _ga=GA1.3.9xxx904.14195xxxx9; xf_session=c93c60b24xxxxxxxxxxxx00c1341c; xf_session_admin=f56bf2b2xxxxxxxxxx50ede
2015-07-11 11:19:31.338 [INFO] [85.75.x.x:46312:HTTP2-253] File not found [/home/admin/public_html/503.shtml]
 
#7
The server was configured as suExec Daemon, but I also tried suExec ProcessGroup - same thing: 503 error after approximately 13-14 minutes.

I have an opcache.php script to monitor my opcache and was checking used_memory, num_cached_scripts/keys, or anything else that might go above limits while running the rebuild attachment thumbnails, but everything was normal - no increase at all.

PS: I also checked csf as you mentioned, nothing there either :/
 

NiteWave

Administrator
#8
have you audit the memory lsphp5 process(which run "Rebuild Attachment Thumbnails" script) ?
it may consume more and more memory after long time running.

you can try increase lsphp5 External App
Memory Soft Limit (bytes)
Memory Hard Limit (bytes)
to very large value, say both 8G, and enable opcode cache, see if still 503 ?

we encountered an user case, increase the memory limit to 2G(usually it's big enough), but still 503 error. after increase to 8G or so, the 503 finally gone!
 
Status
Not open for further replies.
Top