3.0RC1 won't do a graceful restart on FreeBSD 6.1

Discussion in 'General' started by phallstrom, Jan 17, 2007.

  1. phallstrom

    phallstrom New Member

    Hi -

    Just installed 3.0RC1 and have noticed that when I do a 'graceful restart' within the admin panel it doesn't start itself back up. I base this on the fact that no lshttpd process is running.

    Here's my info:

    I am using the freebsd6 package.


    (note this is running inside of a freebsd jail)

    FreeBSD bravo.pjkh.com 6.0-RELEASE-p7 FreeBSD 6.0-RELEASE-p7 #2: Fri Apr 21 22:28:28 CDT 2006 root@alpha.pjkh.com:/usr/obj/usr/src/sys/ALPHA i386

    /usr/local/lsws/logs/error.log
    -----------------------------------------------------------
    Code:
    2007-01-17 01:36:58.485 [NOTICE] Loading LiteSpeed/3.0RC1 Standard ...
    2007-01-17 01:36:58.490 [NOTICE] [ADMIN] server socket: 127.0.0.1:7923
    2007-01-17 01:36:58.491 [NOTICE] Loading configuration from /usr/local/lsws/conf/httpd_config.xml ...
    2007-01-17 01:36:58.494 [NOTICE] Recovering server socket: [72.36.232.219:9000]
    2007-01-17 01:36:58.494 [NOTICE] Failed to set accept-filter 'httpready': Invalid argument
    2007-01-17 01:36:58.495 [NOTICE] Recovering server socket: [72.36.232.219:9001]
    2007-01-17 01:36:58.495 [NOTICE] Failed to set accept-filter 'httpready': Invalid argument
    2007-01-17 01:36:58.495 [INFO] old priority: 0, new priority: 0
    2007-01-17 01:36:58.495 [INFO] [config:server:basic] For better obscurity, server version number is hidden in the response header.
    2007-01-17 01:36:58.803 [ERROR] HttpListener::start(): Can't listen at address adminListener: Address already in use!
    2007-01-17 01:36:58.803 [ERROR] HttpServer::addListener(adminListener) failed to create new listener
    2007-01-17 01:36:58.803 [ERROR] [config:admin:listener:adminListener] failed to start SSL listener on address *:9001!
    2007-01-17 01:36:58.803 [ERROR] [config:admin:listener] No listener is available for admin virtual host!
    2007-01-17 01:36:58.803 [ERROR] Fatal error in configuration, exit!
    2007-01-17 01:36:59.200 [NOTICE] [Child: 16713] Shut down successfully! 
    2007-01-17 01:36:59.200 [NOTICE] [AdminPHP] stop worker processes
    -----------------------------------------------------------

    /usr/local/lsws/logs/error.log.2007_01_17
    -----------------------------------------------------------
    Code:
    2007-01-17 01:36:35.721 [NOTICE] Loading LiteSpeed/3.0RC1 Standard ...
    2007-01-17 01:36:35.724 [NOTICE] [ADMIN] server socket: 127.0.0.1:7362
    2007-01-17 01:36:35.724 [NOTICE] Loading configuration from /usr/local/lsws/conf/httpd_config.xml ...
    2007-01-17 01:36:35.726 [INFO] old priority: 0, new priority: 0
    2007-01-17 01:36:35.726 [INFO] [config:server:basic] For better obscurity, server version number is hidden in the response header.
    2007-01-17 01:36:35.739 [NOTICE] The maximum number of file descriptor limit is set to 11095.
    2007-01-17 01:36:35.740 [WARN] [config:server:vhosts] missing <virtualHostList>
    2007-01-17 01:36:35.743 [NOTICE] [AutoRestarter] new child process with pid=16713 is forked!
    2007-01-17 01:36:35.743 [WARN] sysctl: Failed to set 'kern.sugid_coredump', core dump may not be available!
    2007-01-17 01:36:35.743 [NOTICE] [child: 16713] Successfully change current user to www
    2007-01-17 01:36:35.744 [NOTICE] [Child: 16713] Setup swapping space...
    2007-01-17 01:36:35.744 [NOTICE] [Child: 16713] LiteSpeed/3.0RC1 Standard starts successfully!
    2007-01-17 01:36:36.102 [NOTICE] [AutoUpdate] Checking for new releases...
    2007-01-17 01:36:36.341 [INFO] [AutoUpdate] No new update.
    2007-01-17 01:36:53.257 [NOTICE] [208.64.244.73:55127-0#_AdminVHost] [STDERR] PHP Warning:  array_keys() [<a href='function.array-keys'>function.array-keys</a>]: The first argument should be an array in /usr/local/lsws/admin/html.3.0RC1/classes/ConfCenter.php on line 67
    2007-01-17 01:36:53.257 [NOTICE] [208.64.244.73:55127-0#_AdminVHost] [STDERR] PHP Warning:  Invalid argument supplied for foreach() in /usr/local/lsws/admin/html.3.0RC1/classes/Service.php on line 72
    2007-01-17 01:36:53.258 [NOTICE] [208.64.244.73:55127-0#_AdminVHost] [STDERR] PHP Warning:  array_keys() [<a href='function.array-keys'>function.array-keys</a>]: The first argument should be an array in /usr/local/lsws/admin/html.3.0RC1/classes/ConfCenter.php on line 67
    2007-01-17 01:36:53.258 [NOTICE] [208.64.244.73:55127-0#_AdminVHost] [STDERR] PHP Warning:  Invalid argument supplied for foreach() in /usr/local/lsws/admin/html.3.0RC1/classes/Service.php on line 72
    2007-01-17 01:36:58.413 [NOTICE] [208.64.244.73:55128-0#_AdminVHost] [STDERR] PHP Warning:  array_keys() [<a href='function.array-keys'>function.array-keys</a>]: The first argument should be an array in /usr/local/lsws/admin/html.3.0RC1/classes/ConfCenter.php on line 67
    2007-01-17 01:36:58.413 [NOTICE] [208.64.244.73:55128-0#_AdminVHost] [STDERR] PHP Warning:  Invalid argument supplied for foreach() in /usr/local/lsws/admin/html.3.0RC1/classes/Service.php on line 72
    2007-01-17 01:36:58.472 [NOTICE] Server restart request from admin interface!
    2007-01-17 01:36:58.472 [NOTICE] [Child: 16713] Start shutting down gracefully ...
    2007-01-17 01:36:58.472 [INFO] Stop listener *:9000.
    2007-01-17 01:36:58.472 [INFO] Stop listener *:9001.
    2007-01-17 01:36:59.203 [NOTICE] [AutoRestarter] cleanup children processes and unix sockets belong to process 16713 !
    2007-01-17 01:36:59.304 [NOTICE] [AutoRestarter] child process with pid=16713 exited with status=0!
    2007-01-17 01:36:59.304 [NOTICE] [PID:16708] Server Stopped!
    -----------------------------------------------------------

    stderr.log is empty.

    The same thing happens if I do /usr/local/etc/rc.d/lsws.sh restart.

    Let me know what other information you need to trouble shoot...
  2. phallstrom

    phallstrom New Member

    Oops, I meant 6.0, not 6.1
  3. mistwang

    mistwang LiteSpeed Staff

    You need to change the listeners from *:9000, *:9001 to 72.36.232.219:9000, 72.36.232.219:9001, in order for the new lshttpd process to recover those listener sockets. That's probably is the side effect of freebsd jail.
  4. phallstrom

    phallstrom New Member

    Hrm. That is causing another problem, constant restarts...

    Code:
    2007-01-17 14:18:44.351 [NOTICE] Loading LiteSpeed/3.0RC1 Standard ...
    2007-01-17 14:18:44.353 [NOTICE] [ADMIN] server socket: 127.0.0.1:7665
    2007-01-17 14:18:44.353 [NOTICE] Loading configuration from /usr/local/lsws/conf/httpd_config.xml ...
    2007-01-17 14:18:44.356 [INFO] old priority: 0, new priority: 0
    2007-01-17 14:18:44.356 [INFO] [config:server:basic] For better obscurity, server version number is hidden in the response header.
    2007-01-17 14:18:44.369 [NOTICE] The maximum number of file descriptor limit is set to 11095.
    2007-01-17 14:18:44.370 [WARN] [config:server:vhosts] missing <virtualHostList>
    2007-01-17 14:18:44.372 [NOTICE] [AutoRestarter] new child process with pid=72257 is forked!
    2007-01-17 14:18:44.373 [WARN] sysctl: Failed to set 'kern.sugid_coredump', core dump may not be available!
    2007-01-17 14:18:44.373 [NOTICE] [child: 72257] Successfully change current user to www
    2007-01-17 14:18:44.373 [NOTICE] [Child: 72257] Setup swapping space...
    2007-01-17 14:18:44.373 [NOTICE] [Child: 72257] LiteSpeed/3.0RC1 Standard starts successfully!
    2007-01-17 14:18:45.101 [NOTICE] [AutoUpdate] Checking for new releases...
    2007-01-17 14:18:45.270 [INFO] [AutoUpdate] No new update.
    2007-01-17 14:18:58.924 [NOTICE] [AutoRestarter] child process with pid=72257 received signal=6, no core file is created!2007-01-17 14:18:58.945 [NOTICE] [AutoRestarter] cleanup children processes and unix sockets belong to process 72257 !
    2007-01-17 14:18:58.999 [NOTICE] [AutoRestarter] new child process with pid=72289 is forked!
    2007-01-17 14:18:59.000 [WARN] sysctl: Failed to set 'kern.sugid_coredump', core dump may not be available!
    2007-01-17 14:18:59.000 [NOTICE] [child: 72289] Successfully change current user to www
    2007-01-17 14:18:59.000 [NOTICE] [Child: 72289] Setup swapping space...
    2007-01-17 14:18:59.000 [NOTICE] [Child: 72289] LiteSpeed/3.0RC1 Standard starts successfully!
    2007-01-17 14:19:21.315 [NOTICE] [AutoRestarter] child process with pid=72289 received signal=6, no core file is created!2007-01-17 14:19:21.336 [NOTICE] [AutoRestarter] cleanup children processes and unix sockets belong to process 72289 !
    2007-01-17 14:19:21.437 [NOTICE] [AutoRestarter] new child process with pid=72326 is forked!
    2007-01-17 14:19:21.437 [WARN] sysctl: Failed to set 'kern.sugid_coredump', core dump may not be available!
    2007-01-17 14:19:21.437 [NOTICE] [child: 72326] Successfully change current user to www
    2007-01-17 14:19:21.437 [NOTICE] [Child: 72326] Setup swapping space...
    2007-01-17 14:19:21.438 [NOTICE] [Child: 72326] LiteSpeed/3.0RC1 Standard starts successfully!
    2007-01-17 14:20:13.568 [NOTICE] SIGTERM received, stop server...
    2007-01-17 14:20:13.569 [NOTICE] [Child: 72326] Start shutting down gracefully ...
    2007-01-17 14:20:13.569 [INFO] Stop listener 72.36.232.219:9000.
    2007-01-17 14:20:13.569 [INFO] Stop listener 72.36.232.219:9001.
    2007-01-17 14:20:13.569 [NOTICE] [Child: 72326] Shut down successfully! 
    2007-01-17 14:20:13.569 [NOTICE] [AdminPHP] stop worker processes
    2007-01-17 14:20:13.573 [NOTICE] [AutoRestarter] cleanup children processes and unix sockets belong to process 72326 !
    2007-01-17 14:20:13.673 [NOTICE] [AutoRestarter] child process with pid=72326 exited with status=0!
    2007-01-17 14:20:13.673 [NOTICE] [PID:72253] Server Stopped!
  5. mistwang

    mistwang LiteSpeed Staff

    Signal 6 is SIGBUS, I don't know why. If you want you can set "kern.sugid_coredump" manually to let lshttpd dump a core then use gdb to check the stack backtrace of the core file.
  6. phallstrom

    phallstrom New Member

    Hrm. Well I tried to manually undo my IP changes and couldn't get squat to work, so just did a reinstall, verified that it won't do a restart with *:9000, then changed both listeners to MY_IP:xxxx and everything works like it's supposed to.

    So I'm thinking maybe I messed something else up, or perhaps it's the SSL stuff I had setup. I'll keep playing with it and see if i can break it again.

    Thanks!
  7. phallstrom

    phallstrom New Member

    I re-enabled the SSL on the admin listener and it still restarts just fine...

    So, at this point I think my problem must have been due to solar flares :)

Share This Page