Hi, I am having a problem where puppetd won''t start on one of my RHEL 5 machines with the --listen option enabled. 0.23.2 seems to run fine but 0.24.0 dies leaving the pid file still there. I installed puppet using the latest gem from reductive labs. It works fine on what is meant to be an identical system. I tried running strace and it seems to exit after trying to write to a bad file descriptor: rt_sigaction(SIGINT, {SIG_DFL}, {0x34f2c8d0b0, [INT], SA_RESTORER|SA_RESTART, 0x3dde2300b0}, 8) = 0 close(7) = 0 munmap(0x2aaaaaaad000, 4096) = 0 close(7) = -1 EBADF (Bad file descriptor) munmap(0x2aaaaaaac000, 4096) = 0 write(7, "\25\3\1\0 -\2040\17\311F \372bz\\\10Gi\2}\344\325S\247j\373\257`\361}b"..., 37) = -1 EBADF (Bad file descriptor) close(4) = 0 munmap(0x2aaaad757000, 4096) = 0 close(3) = 0 munmap(0x2aaaad756000, 4096) = 0 exit_group(0) = ? Nothing is written to the log file so I am not sure what else i can do to debug. It works fine with the --test option as this disables listen anyway. -- Iain Pople Systems Interface Technical Lead University of Melbourne
On Thu, 2007-12-20 at 15:59 +1100, Iain Pople wrote:> I tried running strace and it seems to exit after trying to write to a > bad file descriptor: > > rt_sigaction(SIGINT, {SIG_DFL}, {0x34f2c8d0b0, [INT], > SA_RESTORER|SA_RESTART, 0x3dde2300b0}, 8) = 0 > close(7) = 0 > munmap(0x2aaaaaaad000, 4096) = 0 > close(7) = -1 EBADF (Bad file descriptor) > munmap(0x2aaaaaaac000, 4096) = 0 > write(7, "\25\3\1\0 -\2040\17\311F > \372bz\\\10Gi\2}\344\325S\247j\373\257`\361}b"..., 37) = -1 EBADF (Bad > file descriptor)It also closes the fd twice ... can you dig up the corresponding open from the strace ? Maybe that will make things clearer. David
David Lutterkort wrote:> On Thu, 2007-12-20 at 15:59 +1100, Iain Pople wrote: >> I tried running strace and it seems to exit after trying to write to a >> bad file descriptor: >> >> rt_sigaction(SIGINT, {SIG_DFL}, {0x34f2c8d0b0, [INT], >> SA_RESTORER|SA_RESTART, 0x3dde2300b0}, 8) = 0 >> close(7) = 0 >> munmap(0x2aaaaaaad000, 4096) = 0 >> close(7) = -1 EBADF (Bad file descriptor) >> munmap(0x2aaaaaaac000, 4096) = 0 >> write(7, "\25\3\1\0 -\2040\17\311F >> \372bz\\\10Gi\2}\344\325S\247j\373\257`\361}b"..., 37) = -1 EBADF (Bad >> file descriptor) > > It also closes the fd twice ... can you dig up the corresponding open > from the strace ? Maybe that will make things clearer. > > DavidIt looks like it is the socket: socket(PF_INET, SOCK_STREAM, IPPROTO_TCP) = 7 -- Iain Pople Systems Interface Technical Lead University of Melbourne