Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.os.linux.misc > #1193

thttpd fails to start following upgrade to Debian squeeze

From Mark Hobley <markhobley@yahoo.donottypethisbit.co>
Newsgroups comp.os.linux.misc
Subject thttpd fails to start following upgrade to Debian squeeze
Date 2011-05-21 02:53 +0000
Organization A noiseless patient Spider
Message-ID <ir79ec$9p7$2@dont-email.me> (permalink)

Show all headers | View raw


The thttpd server fails to start following upgrade to Debian squeeze.

There are no entries create in /var/log/syslog, /var/log/messages or
/var/log/thttpd.log

A system trace reveals the following:

# strace -f /etc/init.d/thttpd start
execve("/etc/init.d/thttpd", ["/etc/init.d/thttpd", "start"], [/* 11 vars
*/]) = 0 brk(0)                                  = 0x83a6000
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or
directory) mmap2(NULL, 4096, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7887000
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or
directory) open("/etc/ld.so.cache", O_RDONLY)      = 3 fstat64(3,
{st_mode=S_IFREG|0644, st_size=16309, ...}) = 0 mmap2(NULL, 16309,
PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7883000 close(3)                       
        = 0 access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such
file or directory) open("/lib/libc.so.6", O_RDONLY)        = 3 read(3,
"\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0po\1\0004\0\0\0"..., 512)
= 512 fstat64(3, {st_mode=S_IFREG|0755, st_size=1319084, ...}) = 0
mmap2(NULL, 1329480, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0)
= 0xb773e000 mprotect(0xb787c000, 4096, PROT_NONE)   = 0 mmap2(0xb787d000,
12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3,
0x13e) = 0xb787d000 mmap2(0xb7880000, 10568, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7880000 close(3)         
                      = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb773d000
set_thread_area({entry_number:-1 -> 6, base_addr:0xb773d8d0,
limit:1048575, seg_32bit:1, contents:0, read_exec_only:0,
limit_in_pages:1, seg_not_present:0, useable:1}) = 0 mprotect(0xb787d000,
8192, PROT_READ)   = 0 mprotect(0xb78a4000, 4096, PROT_READ)   = 0
munmap(0xb7883000, 16309)               = 0 getpid()                      
         = 1765 rt_sigaction(SIGCHLD, {SIG_DFL, [CHLD], SA_RESTART},
{SIG_DFL, [], 0}, 8) = 0 geteuid32()                             = 0
brk(0)                                  = 0x83a6000 brk(0x83c7000)        
                 = 0x83c7000 getppid()                               =
1764 getcwd("/volumes/vol3a/var/log", 4096)  = 23
open("/etc/init.d/thttpd", O_RDONLY)    = 3 fcntl64(3, F_DUPFD, 10)       
         = 10 close(3)                                = 0 fcntl64(10,
F_SETFD, FD_CLOEXEC)        = 0 rt_sigaction(SIGINT, NULL, {SIG_DFL, [],
0}, 8) = 0 rt_sigaction(SIGINT, {0x8056520, ~[RTMIN RT_1], 0}, NULL, 8) =
0 rt_sigaction(SIGQUIT, NULL, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGQUIT, {SIG_DFL, ~[RTMIN RT_1], 0}, NULL, 8) = 0
rt_sigaction(SIGTERM, NULL, {SIG_DFL, [], 0}, 8) = 0 rt_sigaction(SIGTERM,
{SIG_DFL, ~[RTMIN RT_1], 0}, NULL, 8) = 0 read(10, "#!/bin/sh\n\n### BEGIN
INIT INFO\n#"..., 8192) = 1490 stat64("/usr/sbin/thttpd",
{st_mode=S_IFREG|0755, st_size=79336, ...}) = 0 geteuid32()               
             = 0 stat64("/etc/thttpd/thttpd.conf", {st_mode=S_IFREG|0644,
st_size=1501, ...}) = 0 stat64("/etc/default/thttpd",
{st_mode=S_IFREG|0644, st_size=140, ...}) = 0 open("/etc/default/thttpd",
O_RDONLY)   = 3 fcntl64(3, F_DUPFD, 10)                 = 11 close(3)     
                          = 0 fcntl64(11, F_SETFD, FD_CLOEXEC)        = 0
read(11, "#\n#  This file is read by the th"..., 8192) = 140 read(11, "",
8192)                      = 0 close(11)                               = 0
exit_group(0)
                           = ?

Does anyone know what is going wrong here?

FWIW, the configuration file /etc/thttpd/thttpd.conf is as follows:

# Port: portnum
# Sets the port number which will be listened by thttpd. # Default: 80
#
port=80

# chroot/nochroot
# Sets whether thttpd will chroot after starting. # Default: nochroot
nochroot

# user: userid
# Specified which user to switch after intialiazation when started as
root. # Default: www-data
user=httpd

# host: hostname
# Specifies a hostname to bind to.
# Default: Bind to all supported hostnames on the local machine. #
host=grugler

# Logfile: logfile path
# Specifies a file for logging.
# Default: Log via syslog()
logfile=/var/log/thttpd.log

# throttles: file
# Specifies a file of throttle settings. # Default:
/etc/thttpd/throttle.conf
throttles=/etc/thttpd/throttle.conf

# urlpat: pattern
# Specifies which URL can only be only be accessed from the local server.
# Default: None
# urlpat=*.mpeg|*.mp3|*.wav|*.gz|*.jpg|*.gif

# dir: directory
# Specifies a directory to chdir() to after thttpd starts. # This
directory will most likely be the directory you will be serving your #
clients from.
# Default: `cwd`
dir=/volumes/vol3a/www

# cgipat: pattern
# Specifies which URL may contain executable CGI files. # Default: None
cgipat=/cgi-bin/*

The webserver was working just fine prior to upgrade to squeeze using the
same configuration.

Mark.

-- 
Mark Hobley
Linux User: #370818  http://markhobley.yi.org/

Back to comp.os.linux.misc | Previous | NextNext in thread | Find similar | Unroll thread


Thread

thttpd fails to start following upgrade to Debian squeeze Mark Hobley <markhobley@yahoo.donottypethisbit.co> - 2011-05-21 02:53 +0000
  Re: thttpd fails to start following upgrade to Debian squeeze Richard Kettlewell <rjk@greenend.org.uk> - 2011-05-21 09:36 +0100
    Re: thttpd fails to start following upgrade to Debian squeeze Richard Kettlewell <rjk@greenend.org.uk> - 2011-05-21 09:46 +0100
    Re: thttpd fails to start following upgrade to Debian squeeze Mark Hobley <markhobley@yahoo.donottypethisbit.co> - 2011-05-21 09:08 +0000
      Re: thttpd fails to start following upgrade to Debian squeeze Richard Kettlewell <rjk@greenend.org.uk> - 2011-05-21 10:19 +0100

csiph-web