LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Bug Reports > Bug with File Uploads in 2.1.7

Reply
 
Thread Tools Display Modes
  #1  
Old 12-20-2005, 11:05 AM
ripkens ripkens is offline
Member
 
Join Date: Dec 2005
Location: Bavaria
Posts: 20
Default 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
Reply With Quote
  #2  
Old 12-20-2005, 11:14 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,603
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
Reply With Quote
  #3  
Old 12-20-2005, 11:20 AM
ripkens ripkens is offline
Member
 
Join Date: Dec 2005
Location: Bavaria
Posts: 20
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
Reply With Quote
  #4  
Old 12-20-2005, 11:23 AM
ripkens ripkens is offline
Member
 
Join Date: Dec 2005
Location: Bavaria
Posts: 20
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
Reply With Quote
  #5  
Old 12-20-2005, 12:21 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,603
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.
Reply With Quote
  #6  
Old 12-20-2005, 11:53 PM
ripkens ripkens is offline
Member
 
Join Date: Dec 2005
Location: Bavaria
Posts: 20
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
Reply With Quote
  #7  
Old 12-21-2005, 07:02 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,603
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
Reply With Quote
  #8  
Old 12-21-2005, 07:15 AM
ripkens ripkens is offline
Member
 
Join Date: Dec 2005
Location: Bavaria
Posts: 20
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!
Reply With Quote
  #9  
Old 12-21-2005, 07:29 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,603
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
Reply With Quote
  #10  
Old 12-21-2005, 08:27 AM
ripkens ripkens is offline
Member
 
Join Date: Dec 2005
Location: Bavaria
Posts: 20
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
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
lot's of Failed to open file hichew Install/Configuration 4 04-28-2007 11:15 AM
Uploading files / tmp file creation BuhBompus PHP 10 12-07-2006 08:49 AM
Problem installing LiteSpeed 2.2.1 Standard on UNIX perezsy Install/Configuration 17 09-22-2006 09:53 AM
Php file uploads result in "connection reset" error bazza PHP 7 06-09-2006 12:25 PM
Generating the user password file for .htaccess usage... dnebing Install/Configuration 2 03-15-2004 09:52 AM


All times are GMT -7. The time now is 02:19 AM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.