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

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Bug Reports > server stopped suddenly...

Reply
 
Thread Tools Display Modes
  #1  
Old 12-31-2003, 07:38 AM
Fed Fed is offline
New Member
 
Join Date: Dec 2003
Posts: 3
Default server stopped suddenly...

hello,

i have been testing litespeed for two weeks and all this time it was very-very nice, thank you!
but today it stopped suddenly, and i never could start it again
when starting, it works four minutes, than stops with this lines in errorlog:

2003-12-31 14:58:42.829 [ERROR] HttpListener::start(): Can't listen at address *:7080: Address already in use!
2003-12-31 14:58:42.829 [ERROR] HttpServer::addListener(*:7080) failed to create new listener
2003-12-31 14:58:42.829 [ERROR] [config:admin:listener:adminListener] failed to start listener on address *:7080!
2003-12-31 14:58:42.829 [ERROR] [config:admin:listener] No listener is available for admin virtual host!
2003-12-31 14:58:42.829 [ERROR] Fatal error in configuration, exit!

why? what does it mean? i didn't touch it!
please help.
Reply With Quote
  #2  
Old 12-31-2003, 12:52 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
Fed,

Thank you for trying our product.

Are you testing the standard edition?
Looks like TCP port 7080 is still occupied by another process. Before you try to start the server again, make sure all "lshttpd" processes are gone.

Do "ps -ef | grep lshttpd", kill all processes listed, use "kill -9 <pid>" if it wont exit.

make sure 7080 is not used by other application, use the following command as root:
"lsof | grep 7080"
You can change the port used by lshttpd by changing the value of <address> in lsws/admin/conf/admin_config.xml.

If you are still experiencing the sudden stop, please set "debug level" to "high" and send error.log.* to bug@litespeedtech.com

Please keep us posted with your experience.

Thanks.
Reply With Quote
  #3  
Old 01-02-2004, 08:50 AM
Fed Fed is offline
New Member
 
Join Date: Dec 2003
Posts: 3
mistwang,

thank you for your reply!
yes, its a standard edition.
i have found out the problem: my access.log file reached 2G and that was why lshttpd stopped.
so its working again!
and looks nice 8)

i have one suggestion:
i'd like to add "charset" line to the httpd's header; like this:
Content-Type: text/html; charset=windows-1251
it would be very fine!

do you plan this in future releases?
thank you.
Reply With Quote
  #4  
Old 01-02-2004, 09:50 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
Quote:
Originally Posted by Fed
i have found out the problem: my access.log file reached 2G and that was why lshttpd stopped.
Please tell me more about this, I want to have this issue addressed.
lshttpd should rotate the log file automatically when the size limit is reached, it failed to do so? Or you set the size limit bigger than 2G?
Or there is no enough disk space left?

Quote:
i'd like to add "charset" line to the httpd's header; like this:
Content-Type: text/html; charset=windows-1251
it would be very fine!

do you plan this in future releases?
Next release will allow you to add that in the MIME definition file. By doing so, Content-Type of all static html page will be affected. Not sure if it is what you'd like?

Support for multi-languages is low priority on our current to do list.

Best Regards.
Reply With Quote
  #5  
Old 01-03-2004, 10:54 AM
Fed Fed is offline
New Member
 
Join Date: Dec 2003
Posts: 3
Quote:
Originally Posted by mistwang
Please tell me more about this, I want to have this issue addressed.
lshttpd should rotate the log file automatically when the size limit is reached, it failed to do so? Or you set the size limit bigger than 2G?
Or there is no enough disk space left?
logfile size was default (10M) and there is more than 10G of free space, but you are right: lshttpd did not rotate it ...
error log was rotated each time when server reloaded, but access log was not rotated (it became more than 200M for 24h) even after reload and restart.

Quote:
Originally Posted by mistwang

Quote:
i'd like to add "charset" line to the httpd's header; like this:
Content-Type: text/html; charset=windows-1251
it would be very fine!

do you plan this in future releases?
Next release will allow you to add that in the MIME definition file. By doing so, Content-Type of all static html page will be affected. Not sure if it is what you'd like?

Support for multi-languages is low priority on our current to do list.

Best Regards.
and what about dynamic pages

i mean something like "DefaultCharset" directive in Apache server. for example, my Apache httpd does return this header when i telnet host 80 and request HEAD:
Server: Apache
X-Powered-By: PHP/4.3.3
Connection: close
Content-Type: text/html; charset=windows-1251

and this helpes me in some situations.

i have one more problem and this one is more harmful
when server's load is high i often get error 503:

503 Service Unavailable
The server is temporarily busy, try again later!

and there are 2 peculiarities about it:
1) only PHP scripts are affected; perl and other cgis and static files are served fine.
2) as usual, when i get error 503 for my php pages, admin interface works fine and even fast! why? it is written in php as i can see...

i tried different values for max connections, max cgi instances, but had no success...
how could this be resolved?

thank you.
Reply With Quote
  #6  
Old 01-03-2004, 05:55 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
Quote:
Originally Posted by Fed
lshttpd did not rotate it ...
Ok, it is fixed, thank you for pointing it out.

Quote:
and what about dynamic pages
I suppose it should be generated dynamically. :-)

Quote:
i mean something like "DefaultCharset" directive in Apache server.
I guess you mean "AddDefaultCharset".
Ok, we can add this feature in future release.


Quote:
i have one more problem and this one is more harmful
when server's load is high i often get error 503:
We just fixed a bug that could cause trouble for busy site, if you interested, you can try the new release. I will send you a PM regarding it.

And another possibility is the "initial timeout" of your PHP FCGI configuration is lower than the maximum time needed for PHP to process certain kind of request. Please increase it if you do have such kind of PHP script.

And you can decrease "retry timeout" to let lshttpd retry the problematic Fast CGI application more quickly.

Best Regards.
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
Stopped virtual hosts do not stay stopped PSS Feedback/Feature Requests 1 06-10-2007 08:48 PM
Client never gets server response Renuplex Ruby/Rails 9 04-23-2007 06:55 AM
access.log suddenly stopped logging marstall Install/Configuration 3 01-20-2007 07:38 PM
Upgrade to 2.2.4 stopped server pcguru Bug Reports 2 10-31-2006 03:26 PM
server send back RST packet and disconnect session clark1 Bug Reports 4 09-30-2006 05:44 PM


All times are GMT -7. The time now is 08:58 PM.



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