503 errors when uploading pictures

dotpro

Active Member
#1
I am getting 503 errors when uploading more than 5 pictures in Xenforo / Xenforo Medial Gallery. Some of the other thread mentioned to change server settings, so I did:

External App (was already set)
Memory Soft Limit (bytes)
2047M
Memory Hard Limit (bytes)
2047M

Memory Soft Limit (bytes)
1024M
Memory Hard Limit (bytes)
1024M

CGI Settings
Memory Soft Limit (bytes)
1024M
Memory Hard Limit (bytes)
1024M


The following error occurred:

503
Service Unavailable

The server is temporarily busy, try again later!



Your image upload quota:
Maximum Dimensions:
5,000px x 5,000px
Maximum File Size (MB):
10 MB
Maximum Storage Quota (MB):
Unlimited
Maximum Items Per Upload:
20 Items
Allowed Extensions:
png, jpg, jpeg, jpe, gif
 

mistwang

LiteSpeed Staff
#2
Will it work if you upload less than 5 pictures? Does the picture size matter?
Do you have Apache setup, will Apache work if switch back to Apache?
Have you checked error log and stderr.log for related log messages?
It could be PHP crashed. Need to follow the 503 trouble shooting guide in our wiki to find out why.
 

dotpro

Active Member
#3
Will it work if you upload less than 5 pictures? Does the picture size matter?
Do you have Apache setup, will Apache work if switch back to Apache?
Have you checked error log and stderr.log for related log messages?
It could be PHP crashed. Need to follow the 503 trouble shooting guide in our wiki to find out why.
Hi,

5 and less pictures work without any error. The size does not matter as long as its less than what is defined and all pictures are less than 5000x5000 resolution.

I have not tried apache, I will give it a shot and report back.
 

dotpro

Active Member
#4
apache does not work either

this error when uploading with apache:

The following error occurred:

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator at webmaster to inform them of the time this error occurred, and the actions you performed just before this error.

More information about this error may be available in the server error log.
 

dotpro

Active Member
#5
switched to litespeed and this is what I see in the error log:




Code:
-01-06 19:31:50.697 [INFO] [198.52.97.90:51897-1#APVH_user.com] File not found [/home/user/public_html/forums/data/xengallery/106/106884-387daffc39aa01e718d5112a905d8c38.jpg]
2016-01-06 19:31:50.698 [INFO] [198.52.97.90:51897-1#APVH_user.com] File not found [/home/user/public_html/404.shtml]
2016-01-06 19:31:50.867 [INFO] [APVH_user_Suphp:] PID: 12795, add child process pid: 16908, procinfo: 0x36d6660
2016-01-06 19:31:51.338 [INFO] [APVH_user_Suphp:] PID: 12795, add child process pid: 16911, procinfo: 0x3709040
2016-01-06 19:31:51.570 [INFO] [APVH_user_Suphp:] PID: 12795, add child process pid: 16916, procinfo: 0x31e6c00
2016-01-06 19:31:53.124 [INFO] [198.52.97.90:51897-5#APVH_user.com] File not found [/home/user/public_html/forums/data/xengallery/106/106885-d9e90970bb0e1a6b9256ec14b94e2c61.jpg]
2016-01-06 19:31:53.124 [INFO] [198.52.97.90:51897-5#APVH_user.com] File not found [/home/user/public_html/404.shtml]
2016-01-06 19:31:54.826 [INFO] [198.52.97.90:51897-8#APVH_user.com] File not found [/home/user/public_html/forums/data/xengallery/106/106888-f8f5e154e82730bc667622afc1d60761.jpg]
2016-01-06 19:31:54.827 [INFO] [198.52.97.90:51897-8#APVH_user.com] File not found [/home/user/public_html/404.shtml]
2016-01-06 19:31:55.394 [INFO] [198.52.97.90:51909-2#APVH_user.com] File not found [/home/user/public_html/forums/data/xengallery/106/106883-e4c89890311eb79a286e47f05a65ed39.jpg]
2016-01-06 19:31:55.394 [INFO] [198.52.97.90:51909-2#APVH_user.com] File not found [/home/user/public_html/404.shtml]
2016-01-06 19:31:55.706 [INFO] [198.52.97.90:51909-4#APVH_user.com] File not found [/home/user/public_html/forums/data/xengallery/106/106894-75244b850f439e627006f7d19050e38b.jpg]
2016-01-06 19:31:55.706 [INFO] [198.52.97.90:51909-4#APVH_user.com] File not found [/home/user/public_html/404.shtml]
2016-01-06 19:32:12.032 [INFO] [APVH_user_Suphp:] PID: 12795, add child process pid: 17081, procinfo: 0x36d6660
2016-01-06 19:32:23.608 [INFO] [APVH_user_Suphp:] PID: 12795, add child process pid: 17185, procinfo: 0x31e6c00
2016-01-06 19:32:50.946 [INFO] [APVH_user_Suphp:] PID: 12795, add child process pid: 17442, procinfo: 0x31e6c00
2016-01-06 19:32:56.524 [INFO] [APVH_user_Suphp:] PID: 12795, add child process pid: 17471, procinfo: 0x35abd70
2016-01-06 19:33:12.075 [INFO] [APVH_user_Suphp:] PID: 12795, add child process pid: 18184, procinfo: 0x36d6660
2016-01-06 19:33:31.394 [INFO] [APVH_user_Suphp:] PID: 12795, add child process pid: 18333, procinfo: 0x36d6660
2016-01-06 19:34:05.941 [INFO] [APVH_user_Suphp:] PID: 12795, add child process pid: 18573, procinfo: 0x35abd70
2016-01-06 19:34:24.197 [INFO] [APVH_user_Suphp:] PID: 12795, add child process pid: 18709, procinfo: 0x36d6660
2016-01-06 19:34:24.491 [INFO] [APVH_user_Suphp:] PID: 12795, add child process pid: 18716, procinfo: 0x31eaed0
2016-01-06 19:34:24.937 [INFO] [APVH_user_Suphp:] PID: 12795, add child process pid: 18718, procinfo: 0x31e6c00
2016-01-06 19:34:27.028 [INFO] [APVH_user_Suphp:] PID: 12795, add child process pid: 18729, procinfo: 0x3709040
2016-01-06 19:34:40.612 [INFO] [APVH_user_Suphp:] PID: 12795, add child process pid: 18863, procinfo: 0x3709040
2016-01-06 19:34:47.998 [INFO] [APVH_user_Suphp:] PID: 12795, add child process pid: 18960, procinfo: 0x31eaed0
2016-01-06 19:35:00.820 [INFO] [73.54.213.62:40413-0#APVH_user.com] connection to [/tmp/lshttpd/APVH_user_Suphp.sock.671] on request #2, confirmed, 1, associated process: 18863, running: 1, error: Connection reset by peer!
2016-01-06 19:35:00.820 [NOTICE] [73.54.213.62:40413-0#APVH_user.com] POST request in process stage, fail with 503
2016-01-06 19:35:00.820 [NOTICE] [73.54.213.62:40413-0#APVH_user.com] oops! 503 Service Unavailable
2016-01-06 19:35:00.820 [NOTICE] [73.54.213.62:40413-0#APVH_user.com] Content len: 10700, Request line: 'POST /forums/gallery/save-media HTTP/1.1'
2016-01-06 19:35:00.820 [INFO] [73.54.213.62:40413-0#APVH_user.com] Cookie len: 366, ulp-onload-UX9b5WOK65tSt2Ha=ilovelencha; ulp-onexit-UX9b5WOK65tSt2Ha=ilovelencha; xf_edit_language_id=1; xf_edit_style_id=2; xf_FilterList_adminphptemplates=0%2Cxengallery_rss; xf_user=1%2C550325df61e11211a93809e3178571b853279cf4; xf_session=9f5a894c099a02d8b5bc182ed5af8a4e; xf_session_admin=d95bf11c82fc4fe7fadbc2c0f8cb188d; _gat=1; _ga=GA1.2.1350837219.1451622122
2016-01-06 19:35:00.820 [NOTICE] [73.54.213.62:40413-0#APVH_user.com] Redirect: #1, URL: /forums/index.php
2016-01-06 19:35:00.820 [INFO] [73.54.213.62:40413-0#APVH_user.com] abort request..., code: 4
2016-01-06 19:35:00.820 [INFO] [73.54.213.62:40413-0#APVH_user.com] File not found [/home/user/public_html/503.shtml]
Running version 4.2.23
 

mistwang

LiteSpeed Staff
#6
Anything in stderr.log around
2016-01-06 19:35:00.820

It looks like not a memory limit issue. I wonder if PHP crashed. have you tried another version of PHP?
 

dotpro

Active Member
#7
This is what stderr.log has

[STDERR] zend_mm_heap corrupted

I've not tried another version of php, I'm afraid to try it as it might break something else which is working. :eek:\
 

dotpro

Active Member
#9
both apache and litespeed not work.

looks like an php issue.


what's the memory_limit of php ?
(create a phpinfo.php under document root, access it and search for memory_limit)
memory_limit 256M


Try different version of php or is this configuration issue? running
php 5.4.44
 

NiteWave

Administrator
#10
I prefer configuration issue.

has you posted questions on Xenforo forum ? maybe they're experienced with similar issue and know the answer.

5 and less pictures work without any error
if uploading 6 very small images also has the problem, not likely an memory issue, rather an configuration limit ? just a guess.
 

dotpro

Active Member
#13

NiteWave

Administrator
#14
please PM access to your server if you're ok,
will try to upload 6 small images to see if can 100% reproduce the issue,
if can reproduce the issue easily, should be able to dig out the root cause.
 

dotpro

Active Member
#15
please PM access to your server if you're ok,
will try to upload 6 small images to see if can 100% reproduce the issue,
if can reproduce the issue easily, should be able to dig out the root cause.
Thanks. I did upload 6 small pictures and they were uploaded without any error. The size was around between 140kb to 250kb.
 
Top