Quoting Paul Slootman <[EMAIL PROTECTED]>:
On Tue 10 May 2005, Roberto C. Sanchez wrote:>> >>>I'm guessing this is related to #307923. Please add a line >>>log file = /var/log/rsyncd.log >>>to the top of /etc/rsyncd.conf, and try it again. At least, I'm assuming >>>you're using an rsync daemon; you give very little information on how >>>rsync is being used. >>> If you could clarify, should there be a space between log and file?
Yes. (Exactly as shown above.) It should be outside any module definitions, i.e. at the top of the file.
There was no /etc/rsyncd.conf, so I created it and restarted both systemimager processes (client and server). Still no joy.
The problem is it hangs on the fopen() for the log file. I have (briefly) looked at the source for the log.c and rsync.c files, but I don't see where the log file name comes from. Also, systemimager creates a config on the fly and uses that, instead of the default rsync config.
-Roberto
Incidentally, here is an ltrace:
free(0x809a390) = <void> fclose(0x809a220) = 0 time(NULL) = 1115748033 localtime(0xbffffac4) = 0x40168300 openlog("rsyncd", 9, 24) = <void> vsnprintf("rsyncd version 2.6.4 starting, l"..., 4608, "rsyncd version %s starting, list"..., 0xbffffad8) = 53 strlen("rsyncd version 2.6.4 starting, l"...) = 53 memcpy(0xbfffe070, "rsyncd version 2.6.4 starting, l"..., 53) = 0xbfffe070 syslog(6, "%s", "rsyncd version 2.6.4 starting, l"...) = <void> snprintf("873", 10, "%d", 873) = 3 getaddrinfo(NULL, "873", 0xbffff8c0, 0xbffff8a8) = 0 malloc(12) = 0x809a2f0 socket(10, 1, 6) = -1 socket(2, 1, 6) = 4 setsockopt(4, 1, 2, 0xbffff8a4, 4) = 0 bind(4, 0x809a2d8, 16, 0xbffff8a4, 4) = 0 freeaddrinfo(0x809a278) = <void> listen(4, 5, 0, 0, 2) = 0 select(5, 0xbffff9b0, 0, 0, 0) = 1 accept(4, 0xbffff930, 0xbffff928, 0, 0) = 5 signal(17, 0x8066220) = 0x8056f40 fork(rsync: fopen() of log-file failed: No such file or directory (2) _exit_cleanup(code=6, file=log.c, line=168): entered rsync error: daemon unable to append to log-file (code 6) at log.c(168) _exit_cleanup(code=6, file=log.c, line=168): about to call exit(6) <unfinished ...> --- SIGCHLD (Child exited) --- waitpid(-1, NULL, 1) = 13046 waitpid(-1, NULL, 1) = -1 signal(17, 0x8066220) = 0x8066220 <... fork resumed> ) = 13046 close(5) = 0 select(5, 0xbffff9b0, 0, 0, 0
Here is an strace:
uname({sys="Linux", node="santiago", ...}) = 0
brk(0) = 0x8099f28
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x40017000
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.preload", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=15503, ...}) = 0
old_mmap(NULL, 15503, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40018000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/lib/libpopt.so.0", 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\0\20\24\0"..., 512) =
512fstat64(3, {st_mode=S_IFREG|0644, st_size=26624, ...}) = 0
old_mmap(NULL, 29712, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x4001c000
old_mmap(0x40023000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3,
0x6000) = 0x40023000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/lib/libresolv.so.2", 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\0\240)\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=64924, ...}) = 0
old_mmap(NULL, 73640, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40024000
old_mmap(0x40033000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3,
0xf000) = 0x40033000
old_mmap(0x40034000, 8104, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x40034000
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\0\360^\1"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=1244688, ...}) = 0
old_mmap(NULL, 1254852, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40036000
old_mmap(0x4015e000, 32768, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3,
0x127000) = 0x4015e000
old_mmap(0x40166000, 9668, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x40166000
close(3) = 0
munmap(0x40018000, 15503) = 0
rt_sigaction(SIGUSR1, {0x8056ed0, [USR1], SA_RESTORER|SA_RESTART, 0x4005f6f8},
{SIG_DFL}, 8) = 0
rt_sigaction(SIGUSR2, {0x8056f00, [USR2], SA_RESTORER|SA_RESTART, 0x4005f6f8},
{SIG_DFL}, 8) = 0
rt_sigaction(SIGCHLD, {0x8056f40, [CHLD], SA_RESTORER|SA_RESTART, 0x4005f6f8},
{SIG_DFL}, 8) = 0
time(NULL) = 1115748906
geteuid32() = 0
umask(0) = 022
brk(0) = 0x8099f28
brk(0x80baf28) = 0x80baf28
brk(0) = 0x80baf28
brk(0x80bb000) = 0x80bb000
open("/etc/popt", O_RDONLY) = -1 ENOENT (No such file or directory)
getuid32() = 0
geteuid32() = 0
open("/root/.popt", O_RDONLY) = -1 ENOENT (No such file or directory)
rt_sigaction(SIGINT, {0x804a850, [INT], SA_RESTORER|SA_RESTART, 0x4005f6f8},
{SIG_DFL}, 8) = 0
rt_sigaction(SIGHUP, {0x804a850, [HUP], SA_RESTORER|SA_RESTART, 0x4005f6f8},
{SIG_DFL}, 8) = 0
rt_sigaction(SIGTERM, {0x804a850, [TERM], SA_RESTORER|SA_RESTART, 0x4005f6f8},
{SIG_DFL}, 8) = 0
rt_sigaction(SIGPIPE, {SIG_IGN}, {SIG_DFL}, 8) = 0
getcwd("/root", 4095) = 6
getsockopt(0, SOL_SOCKET, SO_TYPE, 0xbffffac0, 0xbffffac4) = -1 ENOTSOCK (Socket
operation on non-socket)
open("/tmp/rsyncd.conf.13906", O_RDONLY|O_LARGEFILE) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=256, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x40018000
read(3, "#\n# \"SystemImager\"\n#\n# This fil"..., 4096) = 256
close(3) = 0
munmap(0x40018000, 4096) = 0
time(NULL) = 1115748906
open("/etc/localtime", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=1267, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x40018000
read(3, "TZif\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\4\0\0\0\4\0"..., 4096) =
1267
close(3) = 0
munmap(0x40018000, 4096) = 0
socket(PF_FILE, SOCK_DGRAM, 0) = 3
fcntl64(3, F_SETFD, FD_CLOEXEC) = 0
connect(3, {sa_family=AF_FILE, path="/dev/log"}, 16) = 0
time([1115748906]) = 1115748906
getpid() = 13915
rt_sigaction(SIGPIPE, {0x4010a210, [], SA_RESTORER, 0x4005f6f8}, {SIG_IGN}, 8) =
send(3, "<30>May 10 14:15:06 rsyncd[13915"..., 88, 0) = 88
rt_sigaction(SIGPIPE, {SIG_IGN}, NULL, 8) = 0
socket(PF_INET6, SOCK_STREAM, IPPROTO_TCP) = -1 EAFNOSUPPORT (Address family not
supported by protocol)
socket(PF_INET, SOCK_STREAM, IPPROTO_TCP) = 4
setsockopt(4, SOL_SOCKET, SO_REUSEADDR, [1], 4) = 0
bind(4, {sa_family=AF_INET, sin_port=htons(873), sin_addr=inet_addr("0.0.0.0")},
16) = 0
listen(4, 5) = 0
select(5, [4], NULL, NULL, NULL) = 1 (in [4])
accept(4, {sa_family=AF_INET, sin_port=htons(54578),
sin_addr=inet_addr("192.168.2.1")}, [16]) = 5
rt_sigaction(SIGCHLD, {0x8066220, [CHLD], SA_RESTORER|SA_RESTART, 0x4005f6f8},
{0x8056f40, [CHLD], SA_RESTORER|SA_RESTART, 0x4005f6f8}, 8) = 0
fork() = 13919
rsync: fopen() of log-file failed: No such file or directory (2)
_exit_cleanup(code=6, file=log.c, line=168): entered
rsync error: daemon unable to append to log-file (code 6) at log.c(168)
_exit_cleanup(code=6, file=log.c, line=168): about to call exit(6)
--- SIGCHLD (Child exited) @ 0 (0) ---
waitpid(-1, NULL, WNOHANG) = 13919
waitpid(-1, NULL, WNOHANG) = -1 ECHILD (No child processes)
rt_sigaction(SIGCHLD, {0x8066220, [CHLD], SA_RESTORER|SA_RESTART, 0x4005f6f8},
{0x8066220, [CHLD], SA_RESTORER|SA_RESTART, 0x4005f6f8}, 8) = 0
sigreturn() = ? (mask now [RTMIN])
close(5) = 0
select(5, [4], NULL, NULL, NULL <unfinished ...>
-- Roberto C. Sanchez http://familiasanchez.net/~sanchezr
-- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]