LiteSpeed Support Forums

LiteSpeed Support Forums (http://www.litespeedtech.com/support/forum/index.php)
-   Bug Reports (http://www.litespeedtech.com/support/forum/forumdisplay.php?f=9)
-   -   Bug with File Uploads in 2.1.7 (http://www.litespeedtech.com/support/forum/showthread.php?t=329)

ripkens 12-20-2005 11:05 AM

Bug with File Uploads in 2.1.7
 
After upgrading to 2.1.7 enterprise, File uploads will result in 404 error even if file size is below php.ini settings or lsws tuning settings

We allow file uploads up to 200M which are no problem with our settings. It takes some time but it works fine.

After we got back to 2.1.6 everything is just fine again

mistwang 12-20-2005 11:14 AM

Is that with LSAPI PHP?

Are you sure it is 404 error? 404 is file not found.

Is there any thing special for the URL for the upload request, like special context, rewritten url etc?

Can you please give 2.1.8 a try, just download the new release by changing the version number.

Thanks,
George

ripkens 12-20-2005 11:20 AM

It is with self compiled php 4.3.9 (http://www.mobile2day.de/info.php) running as lsphp (just replaced original one)

The error is 404 because server does not respond to request in any way, so its the same error Firefox gets when not finding a server
"Document contains no data"

The error occurs sometimes after 5 seconds, sometimes after 30, dont know what it is.

It seems that the server behaves like that only if it is under load, on a test IP we "sometimes" could upload a 7M File, on the produktion IP it doesnt even except 1400K

ripkens 12-20-2005 11:23 AM

iam getting off work right now, here in germany its already 8PM


good night and if you need mor information, just email me, but i will look here again tommorrow anyways

Marcus

mistwang 12-20-2005 12:21 PM

Quote:

It seems that the server behaves like that only if it is under load, on a test IP we "sometimes" could upload a 7M File, on the produktion IP it doesnt even except 1400K
Does that mean that the problem can be reproduced on your test server with large files? Sometimes it work, sometimes it does not. If so, can you please turn on debug logging on the test server, then send the error.log to bug @ litespeedtech.com. debug logging is not recommended for production server.

To turn on debug logging, the server level "log level" must be set to "DEBUG". then you can use the "Toggle debug lgging" feature or set Server level "Debug level" to "HIGH".

To keep the size of log file minimum, you can keep deleting the lsws/logs/error.log until the problem occur.

If the bug only happens on production under load, it will be much harder to fix.

ripkens 12-20-2005 11:53 PM

Hi,

first of all, it took me 5 hours to find out that the error was based on zhe update to 2.1.7. I really checked every logfile i could find on the server to see whats happening - nothing -

I saw the upload process with a grep on my local ip in the stderr but suddenly it just stopped, no error, no warnings.


But i do have some suggestions to make everybodys live easier:

1. Toggle debug mod should also show a state (0,1) to see if it is on or not
2. Place of core dumps should be changeble, our /tmp is only 1G and it run full twice.
3. If Admin email is set, put a checkbox there to define that core dumps are sent with mail, even if core dump is deactivated (override), the server died twice tonight and i dont have core dump because of /tmp might be running full again

I cpuld see in the core files, that there where errors complaining about HTTPS. It said that the page requested is only allowed in HTTPS, checked all vhosts and could not find any errors what this could cause.

I also can not update a produktion IP server to 2.1.7 because we get to many problems with our developer teams due to upload errors.
The test IP could be used, but the error seems to be harder on load. On the test IP where only me is on the server, we can reproduce the error but it is different behaviour. Sometimes the upload works, sometimes it doesnt, and if it fails i dont see anything in the DEBUG log.
So i suggest implement suggestion No 3 to make it easier to debug.


Marcus

mistwang 12-21-2005 07:02 AM

Hi Marcus,

Sorry about that.

When admin email is set, lshttpd should only keep the latest 10 core files, we will reduce it to 5. Sometime the core file is just too big to be sent in a email. changing the core file directory is a good idea.

If you don't mind please send us the core files you have for analysis, at least the back trace from the email.

Please make sure that the "Log Level" has been set to "DEBUG" at server level and vhost level, otherwise you will not see any debug message in the log.

Thank you for your help.
George

ripkens 12-21-2005 07:15 AM

I had hundreds of core dumps.

i had to delete them all to get the server working and then i disabled the core dump. That means i dont have a dump right now.

But i get Emails everey couple hours with this:

At [21/Dec/2005:16:12:51 +0100], web server with pid=14825 received unexpected signal=11, no core file is created. A new instance of web server will be started automatically!

At [21/Dec/2005:16:02:40 +0100], web server with pid=12112 received unexpected signal=11, no core file is created. A new instance of web server will be started automatically!

mistwang 12-21-2005 07:29 AM

I guess the hundreds of core files you got is before you set the admin email, don't you?

It should be ok to enabled core dump once the admin email is set, as long as your /tmp has enough space left for maximum 10 core files.

If you do mind, please enable core dump, maybe temporarily, we need to analyze the core or the backtrace to fix the bug.

And please switch to the debug build of lshttpd before enable core dump, you can found the debug build binary in the installation package, lsws-2.1.x/bin/lshttpd.dbg. please copy it over to where lshttpd is installed then change the symbolic link "lshttpd" to "lshttpd.dbg".

Once we identify the location of bug, we will fix it quickly.

Thanks,
George

ripkens 12-21-2005 08:27 AM

I have put sum core files here:

http://www.mobile2day.de/core_dump/

These are from HOST WEB5 and i will add them always if i find new ones


Marcus


All times are GMT -7. The time now is 10:27 PM.