Package: at
Version: 3.1.10.2
Severity: normal

Hello,

Once a month I run a script on my server with "at now", but atd doesnt send the 
output 
on email when the script ends (generally after 20-30 hours), it leaves it in 
/var/spool/cron/atspool 
I am not able to reproduce this problem in any other way, so I tried
to use strace to debug it.
That's what I found when my script ends (pid 28809):

[pid 28809] exit_group(1)               = ?
Process 28809 detached
<... wait4 resumed> NULL, 0, NULL)      = 28809
--- SIGCHLD (Child exited) @ 0 (0) ---
wait4(-1, 0x7fff56ce83dc, WNOHANG, NULL) = -1 ECHILD (No child processes)
rt_sigreturn(0xffffffffffffffff)        = 28809
setreuid(1, 0)                          = 0
setregid(1, 0)                          = 0
open("/etc/security/pam_env.conf", O_RDONLY) = 0
fstat(0, {st_mode=S_IFREG|0644, st_size=2980, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0x7f3dbb6c2000
read(0, "#\n# This is the configuration fil"..., 4096) = 2980
read(0, ""..., 4096)                    = 0
close(0)                                = 0
munmap(0x7f3dbb6c2000, 4096)            = 0
open("/etc/environment", O_RDONLY)      = 0
fstat(0, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0x7f3dbb6c2000
read(0, ""..., 4096)                    = 0
close(0)                                = 0
munmap(0x7f3dbb6c2000, 4096)            = 0
getuid()                                = 1
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2652, ...}) = 0
sendto(7, "<86>Jun 22 17:26:03 atd[28807]: p"..., 86, MSG_NOSIGNAL, NULL, 0) = 
-1 ECONNREFUSED (Connection refused)
close(7)                                = 0
socket(PF_FILE, SOCK_DGRAM, 0)          = 0
fcntl(0, F_SETFD, FD_CLOEXEC)           = 0
connect(0, {sa_family=AF_FILE, path="/dev/log"...}, 110) = 0
sendto(0, "<86>Jun 22 17:26:03 atd[28807]: p"..., 86, MSG_NOSIGNAL, NULL, 0) = 
86
munmap(0x7f3dba310000, 2107528)         = 0
munmap(0x7f3dba0f7000, 2197472)         = 0
munmap(0x7f3db9ebf000, 2322880)         = 0
munmap(0x7f3db9ca3000, 2209368)         = 0
munmap(0x7f3db9a9f000, 2110360)         = 0
setregid(0, 1)                          = 0
setreuid(0, 1)                          = 0
stat("a00946014cce0d", {st_mode=S_IFREG|0600, st_size=3973, ...}) = 0
open("a00946014cce0d", O_RDONLY)        = 1
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2652, ...}) = 0
sendto(0, "<75>Jun 22 17:26:03 atd[28807]: O"..., 74, MSG_NOSIGNAL, NULL, 0) = 
74
exit_group(1)                           = ?
Process 28807 detached

Comparing with a working at jobs, it seems to me that the problem is
sendto(7, "<86>Jun 22 17:26:03 atd[28807]: p"..., 86, MSG_NOSIGNAL, NULL, 0) = 
-1 ECONNREFUSED (Connection refused)

Is there any reason that can prevent atd to connect to that socket?

Thanks,
Emiliano

-- System Information:
Debian Release: 5.0.6
  APT prefers oldstable
  APT policy: (500, 'oldstable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-bpo.5-amd64 (SMP w/24 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages at depends on:
ii  libc6                     2.7-18lenny4   GNU C Library: Shared libraries
ii  libpam0g                  1.0.1-5+lenny1 Pluggable Authentication Modules l
ii  lsb-base                  3.2-20         Linux Standard Base 3.2 init scrip
ii  postfix [mail-transport-a 2.5.5-1.1      High-performance mail transport ag

at recommends no packages.

at suggests no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to