* [sisyphus] rsync
@ 2004-09-24 6:06 iLL
2004-09-24 7:30 ` Sergey Golovin
0 siblings, 1 reply; 3+ messages in thread
From: iLL @ 2004-09-24 6:06 UTC (permalink / raw)
To: sisyphus
Hi!
С некоторых пор (несколько месяцев) rsync у меня перестал выходить при ошибке.
Пишет в лог:
rsync error: error in rsync protocol data stream (code 12) at io.c(354)
коды и строки меняются.
Причем бессистемно, иногда выходит иногда нет.
У меня скрипт для закачки сизифа.
rsync должен при выпадении по ошибке через таймаут запустить заново,
а при err=0 скрипт должен перекинуть целостный репозитарий в другое место и выйти.
Это только у меня?
--
===-iLya Bryzgalow aka iLL-=== _/ _/ _/
Astronomy_Linux_Krasnodar_Russia _/ _/
Linux User #301257 _/ _/ _/
ICQ:43835329 _/ _/ _/
JID://ill@jabber.org _/ _/ _/
http://www.krumn.oilnet.ru_/ _/ _/
ftp://ftp.krumn.oilnet.ru_/ _/_/_/ _/_/_/
i don't smoke and wish you the same!
kernel-2.6.8-std26-smp-alt9 ALT Linux Sisyphus (20040921)
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [sisyphus] rsync
2004-09-24 6:06 [sisyphus] rsync iLL
@ 2004-09-24 7:30 ` Sergey Golovin
2004-10-27 16:35 ` Dmitry V. Levin
0 siblings, 1 reply; 3+ messages in thread
From: Sergey Golovin @ 2004-09-24 7:30 UTC (permalink / raw)
To: sisyphus
[-- Attachment #1: Type: text/plain, Size: 2387 bytes --]
* iLL <ill@krumn.oilnet.ru> [24 Sep Fri 10:06]
> Hi!
> С некоторых пор (несколько месяцев) rsync у меня перестал выходить при ошибке.
> Пишет в лог:
> rsync error: error in rsync protocol data stream (code 12) at io.c(354)
> коды и строки меняются.
У меня не работает с такой же диагностикой rsync --daemon при попытке
записать файл. Причем, только если в описании модуля прописан
непривилегированный пользователь, если же пишу
uid = root
gid = root
, то все ОК.
Написал в рассылку по rsync, но пока ответа нет. Наверное, тот диалект
английского, который получается из школьного немецкого, не передал
смысла :-( .
********* Моя конфигурация **************
rsync 2.6.2
2.4.20-alt16-up
========== /etc/rsyncd.conf =============
log file = /var/log/rsync
[routers]
comment = Our Backups
path = /mnt/backup/routers
uid = archiver
gid = archiver
use chroot = true
read only = false
list = true
auth users = me
secrets file = /etc/rsyncd.secrets
strict modes = true
dont compress = *
hosts allow = 127.0.0.1
hosts deny = *.*.*.*
========== end /etc/rsyncd.conf =========
========== /etc/rsyncd.secrets ==========
me:itsme
========== end /etc/rsyncd.secrets ======
ls -la /mnt/backup/routers/
total 12
drwxrwxr-x 3 archiver archiver 4096 Сен 17 14:34 .
drwxr-xr-x 7 archiver archiver 4096 Сен 17 22:59 ..
drwxr-xr-x 2 archiver archiver 4096 Сен 17 14:34 tmp
*********** Конец конфигурации **********
Теперь если запустить демон:
strace -f rsync --daemon --no-detach 2>~/tmp/strace.out
и попытаться записать "туда" файл:
rsync -vvv resume.txt rsync://me@localhost/routers/
или
rsync -vvv resume.txt me@localhost::routers/
то получаем:
========================================
opening tcp connection to localhost port 873
Password:
send_file_list done
send_files starting
send_files phase=1
rsync: connection unexpectedly closed (73 bytes read so far)
rsync error: error in rsync protocol data stream (code 12) at io.c(342)
_exit_cleanup(code=12, file=io.c, line=342): about to call exit(12)
========================================
часто номер строки 354
=========== /var/log/rsync =============
2004/09/21 12:00:23 [8245] rsync: connection unexpectedly closed (77
bytes read so far)
2004/09/21 12:00:23 [8245] rsync error: error in rsync protocol data
stream (code 12) at io.c(342)
=========== end /var/log/rsync =========
--
Sergey Golovin
[-- Attachment #2: strace.out --]
[-- Type: text/plain, Size: 26166 bytes --]
execve("/usr/bin/rsync", ["rsync", "--daemon", "--no-detach"], [/* 33 vars */]) = 0
uname({sys="Linux", node="mstation.hq.samkon.ru", ...}) = 0
brk(0) = 0x8083a14
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=74763, ...}) = 0
mmap2(NULL, 74763, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40014000
close(3) = 0
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\340\21"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=26220, ...}) = 0
mmap2(NULL, 25184, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x40027000
mmap2(0x4002d000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x6) = 0x4002d000
close(3) = 0
mprotect(0xbffff000, 4096, PROT_READ|PROT_WRITE|PROT_EXEC|0x1000000) = -1 EINVAL (Invalid argument)
mprotect(0xbfff8000, 32768, PROT_READ|PROT_WRITE|PROT_EXEC) = -1 ENOMEM (Cannot allocate memory)
mprotect(0xbfffc000, 16384, PROT_READ|PROT_WRITE|PROT_EXEC) = -1 ENOMEM (Cannot allocate memory)
mprotect(0xbfffe000, 8192, PROT_READ|PROT_WRITE|PROT_EXEC) = 0
mprotect(0xbfffc000, 8192, PROT_READ|PROT_WRITE|PROT_EXEC) = -1 ENOMEM (Cannot allocate memory)
mprotect(0xbfffd000, 4096, PROT_READ|PROT_WRITE|PROT_EXEC) = -1 ENOMEM (Cannot allocate memory)
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@)\0\000"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=63444, ...}) = 0
mmap2(NULL, 76976, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x4002e000
mmap2(0x4003d000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xe) = 0x4003d000
mmap2(0x4003f000, 7344, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x4003f000
close(3) = 0
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\320Q\1"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=1094832, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40041000
mmap2(NULL, 1101572, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x40042000
mmap2(0x40149000, 16384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x107) = 0x40149000
mmap2(0x4014d000, 7940, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x4014d000
close(3) = 0
mprotect(0x40149000, 4096, PROT_READ) = 0
munmap(0x40014000, 74763) = 0
rt_sigaction(SIGUSR1, {0x8052010, [USR1], SA_RESTORER|SA_RESTART, 0x40069958}, {SIG_DFL}, 8) = 0
rt_sigaction(SIGUSR2, {0x8052040, [USR2], SA_RESTORER|SA_RESTART, 0x40069958}, {SIG_DFL}, 8) = 0
rt_sigaction(SIGCHLD, {0x8052070, [CHLD], SA_RESTORER|SA_RESTART, 0x40069958}, {SIG_DFL}, 8) = 0
time(NULL) = 1095751756
geteuid32() = 0
umask(0) = 022
brk(0) = 0x8083a14
brk(0x80a4a14) = 0x80a4a14
brk(0) = 0x80a4a14
brk(0x80a5000) = 0x80a5000
rt_sigaction(SIGINT, {0x804a9e0, [INT], SA_RESTORER|SA_RESTART, 0x40069958}, {SIG_DFL}, 8) = 0
rt_sigaction(SIGHUP, {0x804a9e0, [HUP], SA_RESTORER|SA_RESTART, 0x40069958}, {SIG_DFL}, 8) = 0
rt_sigaction(SIGTERM, {0x804a9e0, [TERM], SA_RESTORER|SA_RESTART, 0x40069958}, {SIG_DFL}, 8) = 0
rt_sigaction(SIGPIPE, {SIG_IGN}, {SIG_DFL}, 8) = 0
getcwd("/root", 4095) = 6
getsockopt(0, SOL_SOCKET, SO_TYPE, 0xbffff8f0, 0xbffff8f4) = -1 ENOTSOCK (Socket operation on non-socket)
open("/etc/rsyncd.conf", O_RDONLY|O_LARGEFILE) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=660, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40014000
read(3, "log file = /var/log/rsync\n[updat"..., 4096) = 660
close(3) = 0
munmap(0x40014000, 4096) = 0
time(NULL) = 1095751756
open("/etc/localtime", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=767, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40014000
read(3, "TZif\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\16\0\0\0\16"..., 4096) = 767
close(3) = 0
munmap(0x40014000, 4096) = 0
umask(022) = 0
open("/var/log/rsync", O_WRONLY|O_APPEND|O_CREAT|O_LARGEFILE, 0666) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=15790, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40014000
fstat64(3, {st_mode=S_IFREG|0644, st_size=15790, ...}) = 0
_llseek(3, 15790, [15790], SEEK_SET) = 0
umask(0) = 022
getpid() = 9187
time(NULL) = 1095751756
write(3, "2004/09/21 12:29:16 [9187] rsync"..., 80) = 80
socket(PF_INET6, SOCK_DGRAM, 0) = -1 EAFNOSUPPORT (Address family not supported by protocol)
socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 4
connect(4, {sa_family=AF_INET, sin_port=htons(873), sin_addr=inet_addr("0.0.0.0")}, 16) = 0
getsockname(4, {sa_family=AF_INET, sin_port=htons(32796), sin_addr=inet_addr("127.0.0.1")}, [16]) = 0
close(4) = 0
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
socket(PF_INET6, SOCK_STREAM, 6) = -1 EAFNOSUPPORT (Address family not supported by protocol)
listen(4, 5) = 0
close(3) = 0
munmap(0x40014000, 4096) = 0
select(5, [4], NULL, NULL, NULL) = 1 (in [4])
accept(4, {sa_family=AF_INET, sin_port=htons(41321), sin_addr=inet_addr("127.0.0.1")}, [16]) = 3
rt_sigaction(SIGCHLD, {0x805e410, [CHLD], SA_RESTORER|SA_RESTART, 0x40069958}, {0x8052070, [CHLD], SA_RESTORER|SA_RESTART, 0x40069958}, 8) = 0
fork() = 9193
[pid 9187] close(3 <unfinished ...>
[pid 9193] close(4 <unfinished ...>
[pid 9187] <... close resumed> ) = 0
[pid 9193] <... close resumed> ) = 0
[pid 9187] select(5, [4], NULL, NULL, NULL <unfinished ...>
[pid 9193] umask(022) = 0
[pid 9193] open("/var/log/rsync", O_WRONLY|O_APPEND|O_CREAT|O_LARGEFILE, 0666) = 4
[pid 9193] fstat64(4, {st_mode=S_IFREG|0644, st_size=15870, ...}) = 0
[pid 9193] mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40014000
[pid 9193] fstat64(4, {st_mode=S_IFREG|0644, st_size=15870, ...}) = 0
[pid 9193] _llseek(4, 15870, [15870], SEEK_SET) = 0
[pid 9193] umask(0) = 022
[pid 9193] open("/etc/rsyncd.conf", O_RDONLY|O_LARGEFILE) = 5
[pid 9193] fstat64(5, {st_mode=S_IFREG|0644, st_size=660, ...}) = 0
[pid 9193] mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40015000
[pid 9193] read(5, "log file = /var/log/rsync\n[updat"..., 4096) = 660
[pid 9193] read(5, "", 4096) = 0
[pid 9193] close(5) = 0
[pid 9193] munmap(0x40015000, 4096) = 0
[pid 9193] setsockopt(3, SOL_SOCKET, SO_KEEPALIVE, [1], 4) = 0
[pid 9193] fcntl64(3, F_GETFL) = 0x2 (flags O_RDWR)
[pid 9193] fcntl64(3, F_SETFL, O_RDWR|O_NONBLOCK) = 0
[pid 9193] select(4, NULL, [3], NULL, {60, 0}) = 1 (out [3], left {60, 0})
[pid 9193] write(3, "@RSYNCD: 28\n", 12) = 12
[pid 9193] select(4, [3], NULL, NULL, {60, 0}) = 1 (in [3], left {60, 0})
[pid 9193] read(3, "@", 1) = 1
[pid 9193] select(4, [3], NULL, NULL, {60, 0}) = 1 (in [3], left {60, 0})
[pid 9193] read(3, "R", 1) = 1
[pid 9193] select(4, [3], NULL, NULL, {60, 0}) = 1 (in [3], left {60, 0})
[pid 9193] read(3, "S", 1) = 1
[pid 9193] select(4, [3], NULL, NULL, {60, 0}) = 1 (in [3], left {60, 0})
[pid 9193] read(3, "Y", 1) = 1
[pid 9193] select(4, [3], NULL, NULL, {60, 0}) = 1 (in [3], left {60, 0})
[pid 9193] read(3, "N", 1) = 1
[pid 9193] select(4, [3], NULL, NULL, {60, 0}) = 1 (in [3], left {60, 0})
[pid 9193] read(3, "C", 1) = 1
[pid 9193] select(4, [3], NULL, NULL, {60, 0}) = 1 (in [3], left {60, 0})
[pid 9193] read(3, "D", 1) = 1
[pid 9193] select(4, [3], NULL, NULL, {60, 0}) = 1 (in [3], left {60, 0})
[pid 9193] read(3, ":", 1) = 1
[pid 9193] select(4, [3], NULL, NULL, {60, 0}) = 1 (in [3], left {60, 0})
[pid 9193] read(3, " ", 1) = 1
[pid 9193] select(4, [3], NULL, NULL, {60, 0}) = 1 (in [3], left {60, 0})
[pid 9193] read(3, "2", 1) = 1
[pid 9193] select(4, [3], NULL, NULL, {60, 0}) = 1 (in [3], left {60, 0})
[pid 9193] read(3, "8", 1) = 1
[pid 9193] select(4, [3], NULL, NULL, {60, 0}) = 1 (in [3], left {60, 0})
[pid 9193] read(3, "\n", 1) = 1
[pid 9193] select(4, [3], NULL, NULL, {60, 0}) = 1 (in [3], left {60, 0})
[pid 9193] read(3, "r", 1) = 1
[pid 9193] select(4, [3], NULL, NULL, {60, 0}) = 1 (in [3], left {60, 0})
[pid 9193] read(3, "o", 1) = 1
[pid 9193] select(4, [3], NULL, NULL, {60, 0}) = 1 (in [3], left {60, 0})
[pid 9193] read(3, "u", 1) = 1
[pid 9193] select(4, [3], NULL, NULL, {60, 0}) = 1 (in [3], left {60, 0})
[pid 9193] read(3, "t", 1) = 1
[pid 9193] select(4, [3], NULL, NULL, {60, 0}) = 1 (in [3], left {60, 0})
[pid 9193] read(3, "e", 1) = 1
[pid 9193] select(4, [3], NULL, NULL, {60, 0}) = 1 (in [3], left {60, 0})
[pid 9193] read(3, "r", 1) = 1
[pid 9193] select(4, [3], NULL, NULL, {60, 0}) = 1 (in [3], left {60, 0})
[pid 9193] read(3, "s", 1) = 1
[pid 9193] select(4, [3], NULL, NULL, {60, 0}) = 1 (in [3], left {60, 0})
[pid 9193] read(3, "\n", 1) = 1
[pid 9193] getpeername(3, {sa_family=AF_INET, sin_port=htons(41321), sin_addr=inet_addr("127.0.0.1")}, [16]) = 0
[pid 9193] getpeername(3, {sa_family=AF_INET, sin_port=htons(41321), sin_addr=inet_addr("127.0.0.1")}, [16]) = 0
[pid 9193] socket(PF_UNIX, SOCK_STREAM, 0) = 5
[pid 9193] connect(5, {sa_family=AF_UNIX, path="/var/run/nscd/socket"}, 110) = -1 ENOENT (No such file or directory)
[pid 9193] close(5) = 0
[pid 9193] open("/etc/nsswitch.conf", O_RDONLY) = 5
[pid 9193] fstat64(5, {st_mode=S_IFREG|0644, st_size=1854, ...}) = 0
[pid 9193] mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40015000
[pid 9193] read(5, "#\n# Please refer to nsswitch.con"..., 4096) = 1854
[pid 9193] read(5, "", 4096) = 0
[pid 9193] close(5) = 0
[pid 9193] munmap(0x40015000, 4096) = 0
[pid 9193] open("/etc/ld.so.cache", O_RDONLY) = 5
[pid 9193] fstat64(5, {st_mode=S_IFREG|0644, st_size=74763, ...}) = 0
[pid 9193] mmap2(NULL, 74763, PROT_READ, MAP_PRIVATE, 5, 0) = 0x4014f000
[pid 9193] close(5) = 0
[pid 9193] open("/lib/libnss_files.so.2", O_RDONLY) = 5
[pid 9193] read(5, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0`\33\0\000"..., 512) = 512
[pid 9193] fstat64(5, {st_mode=S_IFREG|0644, st_size=34204, ...}) = 0
[pid 9193] mmap2(NULL, 37532, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 5, 0) = 0x40015000
[pid 9193] mmap2(0x4001d000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 5, 0x7) = 0x4001d000
[pid 9193] close(5) = 0
[pid 9193] munmap(0x4014f000, 74763) = 0
[pid 9193] open("/dev/urandom", O_RDONLY) = 5
[pid 9193] read(5, "q\211\333\254z\214\217\330", 8) = 8
[pid 9193] close(5) = 0
[pid 9193] getpid() = 9193
[pid 9193] open("/dev/urandom", O_RDONLY) = 5
[pid 9193] read(5, "%8(\2430k\355\202", 8) = 8
[pid 9193] close(5) = 0
[pid 9193] open("/etc/resolv.conf", O_RDONLY) = 5
[pid 9193] fstat64(5, {st_mode=S_IFREG|0644, st_size=85, ...}) = 0
[pid 9193] mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4001f000
[pid 9193] read(5, "search hq.samkon.ru \n#nameserver"..., 4096) = 85
[pid 9193] read(5, "", 4096) = 0
[pid 9193] close(5) = 0
[pid 9193] munmap(0x4001f000, 4096) = 0
[pid 9193] open("/etc/host.conf", O_RDONLY) = 5
[pid 9193] fstat64(5, {st_mode=S_IFREG|0644, st_size=26, ...}) = 0
[pid 9193] mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4001f000
[pid 9193] read(5, "order hosts,bind\nmulti on\n", 4096) = 26
[pid 9193] read(5, "", 4096) = 0
[pid 9193] close(5) = 0
[pid 9193] munmap(0x4001f000, 4096) = 0
[pid 9193] open("/etc/hosts", O_RDONLY) = 5
[pid 9193] fcntl64(5, F_GETFD) = 0
[pid 9193] fcntl64(5, F_SETFD, FD_CLOEXEC) = 0
[pid 9193] fstat64(5, {st_mode=S_IFREG|0644, st_size=101, ...}) = 0
[pid 9193] mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4001f000
[pid 9193] read(5, "127.0.0.1\t\tlocalhost.localdomain"..., 4096) = 101
[pid 9193] close(5) = 0
[pid 9193] munmap(0x4001f000, 4096) = 0
[pid 9193] open("/etc/hosts", O_RDONLY) = 5
[pid 9193] fcntl64(5, F_GETFD) = 0
[pid 9193] fcntl64(5, F_SETFD, FD_CLOEXEC) = 0
[pid 9193] fstat64(5, {st_mode=S_IFREG|0644, st_size=101, ...}) = 0
[pid 9193] mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4001f000
[pid 9193] read(5, "127.0.0.1\t\tlocalhost.localdomain"..., 4096) = 101
[pid 9193] read(5, "", 4096) = 0
[pid 9193] close(5) = 0
[pid 9193] munmap(0x4001f000, 4096) = 0
[pid 9193] open("/etc/hosts", O_RDONLY) = 5
[pid 9193] fcntl64(5, F_GETFD) = 0
[pid 9193] fcntl64(5, F_SETFD, FD_CLOEXEC) = 0
[pid 9193] fstat64(5, {st_mode=S_IFREG|0644, st_size=101, ...}) = 0
[pid 9193] mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4001f000
[pid 9193] read(5, "127.0.0.1\t\tlocalhost.localdomain"..., 4096) = 101
[pid 9193] close(5) = 0
[pid 9193] munmap(0x4001f000, 4096) = 0
[pid 9193] gettimeofday({1095751763, 104965}, NULL) = 0
[pid 9193] getpid() = 9193
[pid 9193] select(4, NULL, [3], NULL, {60, 0}) = 1 (out [3], left {60, 0})
[pid 9193] write(3, "@RSYNCD: AUTHREQD K0tTK4QGgnD5JN"..., 41) = 41
[pid 9193] select(4, [3], NULL, NULL, {60, 0}) = 1 (in [3], left {57, 440000})
[pid 9193] read(3, "m", 1) = 1
[pid 9193] select(4, [3], NULL, NULL, {60, 0}) = 1 (in [3], left {60, 0})
[pid 9193] read(3, "e", 1) = 1
[pid 9193] select(4, [3], NULL, NULL, {60, 0}) = 1 (in [3], left {60, 0})
[pid 9193] read(3, " ", 1) = 1
[pid 9193] select(4, [3], NULL, NULL, {60, 0}) = 1 (in [3], left {60, 0})
[pid 9193] read(3, "F", 1) = 1
[pid 9193] select(4, [3], NULL, NULL, {60, 0}) = 1 (in [3], left {60, 0})
[pid 9193] read(3, "9", 1) = 1
[pid 9193] select(4, [3], NULL, NULL, {60, 0}) = 1 (in [3], left {60, 0})
[pid 9193] read(3, "u", 1) = 1
[pid 9193] select(4, [3], NULL, NULL, {60, 0}) = 1 (in [3], left {60, 0})
[pid 9193] read(3, "6", 1) = 1
[pid 9193] select(4, [3], NULL, NULL, {60, 0}) = 1 (in [3], left {60, 0})
[pid 9193] read(3, "C", 1) = 1
[pid 9193] select(4, [3], NULL, NULL, {60, 0}) = 1 (in [3], left {60, 0})
[pid 9193] read(3, "6", 1) = 1
[pid 9193] select(4, [3], NULL, NULL, {60, 0}) = 1 (in [3], left {60, 0})
[pid 9193] read(3, "A", 1) = 1
[pid 9193] select(4, [3], NULL, NULL, {60, 0}) = 1 (in [3], left {60, 0})
[pid 9193] read(3, "F", 1) = 1
[pid 9193] select(4, [3], NULL, NULL, {60, 0}) = 1 (in [3], left {60, 0})
[pid 9193] read(3, "4", 1) = 1
[pid 9193] select(4, [3], NULL, NULL, {60, 0}) = 1 (in [3], left {60, 0})
[pid 9193] read(3, "P", 1) = 1
[pid 9193] select(4, [3], NULL, NULL, {60, 0}) = 1 (in [3], left {60, 0})
[pid 9193] read(3, "/", 1) = 1
[pid 9193] select(4, [3], NULL, NULL, {60, 0}) = 1 (in [3], left {60, 0})
[pid 9193] read(3, "c", 1) = 1
[pid 9193] select(4, [3], NULL, NULL, {60, 0}) = 1 (in [3], left {60, 0})
[pid 9193] read(3, "V", 1) = 1
[pid 9193] select(4, [3], NULL, NULL, {60, 0}) = 1 (in [3], left {60, 0})
[pid 9193] read(3, "4", 1) = 1
[pid 9193] select(4, [3], NULL, NULL, {60, 0}) = 1 (in [3], left {60, 0})
[pid 9193] read(3, "g", 1) = 1
[pid 9193] select(4, [3], NULL, NULL, {60, 0}) = 1 (in [3], left {60, 0})
[pid 9193] read(3, "o", 1) = 1
[pid 9193] select(4, [3], NULL, NULL, {60, 0}) = 1 (in [3], left {60, 0})
[pid 9193] read(3, "a", 1) = 1
[pid 9193] select(4, [3], NULL, NULL, {60, 0}) = 1 (in [3], left {60, 0})
[pid 9193] read(3, "l", 1) = 1
[pid 9193] select(4, [3], NULL, NULL, {60, 0}) = 1 (in [3], left {60, 0})
[pid 9193] read(3, "F", 1) = 1
[pid 9193] select(4, [3], NULL, NULL, {60, 0}) = 1 (in [3], left {60, 0})
[pid 9193] read(3, "1", 1) = 1
[pid 9193] select(4, [3], NULL, NULL, {60, 0}) = 1 (in [3], left {60, 0})
[pid 9193] read(3, "q", 1) = 1
[pid 9193] select(4, [3], NULL, NULL, {60, 0}) = 1 (in [3], left {60, 0})
[pid 9193] read(3, "A", 1) = 1
[pid 9193] select(4, [3], NULL, NULL, {60, 0}) = 1 (in [3], left {60, 0})
[pid 9193] read(3, "\n", 1) = 1
[pid 9193] open("/etc/rsyncd.secrets", O_RDONLY|O_LARGEFILE) = 5
[pid 9193] stat64("/etc/rsyncd.secrets", {st_mode=S_IFREG|0600, st_size=10, ...}) = 0
[pid 9193] read(5, "m", 1) = 1
[pid 9193] read(5, "e", 1) = 1
[pid 9193] read(5, ":", 1) = 1
[pid 9193] read(5, "i", 1) = 1
[pid 9193] read(5, "t", 1) = 1
[pid 9193] read(5, "s", 1) = 1
[pid 9193] read(5, "m", 1) = 1
[pid 9193] read(5, "e", 1) = 1
[pid 9193] read(5, "\n", 1) = 1
[pid 9193] close(5) = 0
[pid 9193] geteuid32() = 0
[pid 9193] socket(PF_UNIX, SOCK_STREAM, 0) = 5
[pid 9193] connect(5, {sa_family=AF_UNIX, path="/var/run/nscd/socket"}, 110) = -1 ENOENT (No such file or directory)
[pid 9193] close(5) = 0
[pid 9193] open("/etc/passwd", O_RDONLY) = 5
[pid 9193] fcntl64(5, F_GETFD) = 0
[pid 9193] fcntl64(5, F_SETFD, FD_CLOEXEC) = 0
[pid 9193] fstat64(5, {st_mode=S_IFREG|0644, st_size=2416, ...}) = 0
[pid 9193] mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4001f000
[pid 9193] read(5, "root:x:0:0:HQ MStation:/root:/bi"..., 4096) = 2416
[pid 9193] close(5) = 0
[pid 9193] munmap(0x4001f000, 4096) = 0
[pid 9193] socket(PF_UNIX, SOCK_STREAM, 0) = 5
[pid 9193] connect(5, {sa_family=AF_UNIX, path="/var/run/nscd/socket"}, 110) = -1 ENOENT (No such file or directory)
[pid 9193] close(5) = 0
[pid 9193] open("/etc/group", O_RDONLY) = 5
[pid 9193] fcntl64(5, F_GETFD) = 0
[pid 9193] fcntl64(5, F_SETFD, FD_CLOEXEC) = 0
[pid 9193] fstat64(5, {st_mode=S_IFREG|0644, st_size=1256, ...}) = 0
[pid 9193] mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4001f000
[pid 9193] read(5, "root:x:0:root\nbin:x:1:root,bin,d"..., 4096) = 1256
[pid 9193] close(5) = 0
[pid 9193] munmap(0x4001f000, 4096) = 0
[pid 9193] chroot("/mnt/backup/routers") = 0
[pid 9193] chdir("/") = 0
[pid 9193] setgid32(512) = 0
[pid 9193] open("/proc/sys/kernel/ngroups_max", O_RDONLY) = -1 ENOENT (No such file or directory)
[pid 9193] setgroups32(1, [512]) = 0
[pid 9193] setuid32(512) = 0
[pid 9193] getrlimit(0x6, 0xbfffd5d8) = 0
[pid 9193] setrlimit(RLIMIT_NPROC, {rlim_cur=1, rlim_max=1}) = 0
[pid 9193] geteuid32() = 512
[pid 9193] select(4, NULL, [3], NULL, {60, 0}) = 1 (out [3], left {60, 0})
[pid 9193] write(3, "@RSYNCD: OK\n", 12) = 12
[pid 9193] select(4, [3], NULL, NULL, {60, 0}) = 1 (in [3], left {60, 0})
[pid 9193] read(3, "-", 1) = 1
[pid 9193] select(4, [3], NULL, NULL, {60, 0}) = 1 (in [3], left {60, 0})
[pid 9193] read(3, "-", 1) = 1
[pid 9193] select(4, [3], NULL, NULL, {60, 0}) = 1 (in [3], left {60, 0})
[pid 9193] read(3, "s", 1) = 1
[pid 9193] select(4, [3], NULL, NULL, {60, 0}) = 1 (in [3], left {60, 0})
[pid 9193] read(3, "e", 1) = 1
[pid 9193] select(4, [3], NULL, NULL, {60, 0}) = 1 (in [3], left {60, 0})
[pid 9193] read(3, "r", 1) = 1
[pid 9193] select(4, [3], NULL, NULL, {60, 0}) = 1 (in [3], left {60, 0})
[pid 9193] read(3, "v", 1) = 1
[pid 9193] select(4, [3], NULL, NULL, {60, 0}) = 1 (in [3], left {60, 0})
[pid 9193] read(3, "e", 1) = 1
[pid 9193] select(4, [3], NULL, NULL, {60, 0}) = 1 (in [3], left {60, 0})
[pid 9193] read(3, "r", 1) = 1
[pid 9193] select(4, [3], NULL, NULL, {60, 0}) = 1 (in [3], left {60, 0})
[pid 9193] read(3, "\n", 1) = 1
[pid 9193] select(4, [3], NULL, NULL, {60, 0}) = 1 (in [3], left {59, 960000})
[pid 9193] read(3, "-", 1) = 1
[pid 9193] select(4, [3], NULL, NULL, {60, 0}) = 1 (in [3], left {60, 0})
[pid 9193] read(3, "v", 1) = 1
[pid 9193] select(4, [3], NULL, NULL, {60, 0}) = 1 (in [3], left {60, 0})
[pid 9193] read(3, "v", 1) = 1
[pid 9193] select(4, [3], NULL, NULL, {60, 0}) = 1 (in [3], left {60, 0})
[pid 9193] read(3, "v", 1) = 1
[pid 9193] select(4, [3], NULL, NULL, {60, 0}) = 1 (in [3], left {60, 0})
[pid 9193] read(3, "\n", 1) = 1
[pid 9193] select(4, [3], NULL, NULL, {60, 0}) = 1 (in [3], left {60, 0})
[pid 9193] read(3, ".", 1) = 1
[pid 9193] select(4, [3], NULL, NULL, {60, 0}) = 1 (in [3], left {60, 0})
[pid 9193] read(3, "\n", 1) = 1
[pid 9193] select(4, [3], NULL, NULL, {60, 0}) = 1 (in [3], left {60, 0})
[pid 9193] read(3, "r", 1) = 1
[pid 9193] select(4, [3], NULL, NULL, {60, 0}) = 1 (in [3], left {60, 0})
[pid 9193] read(3, "o", 1) = 1
[pid 9193] select(4, [3], NULL, NULL, {60, 0}) = 1 (in [3], left {60, 0})
[pid 9193] read(3, "u", 1) = 1
[pid 9193] select(4, [3], NULL, NULL, {60, 0}) = 1 (in [3], left {60, 0})
[pid 9193] read(3, "t", 1) = 1
[pid 9193] select(4, [3], NULL, NULL, {60, 0}) = 1 (in [3], left {60, 0})
[pid 9193] read(3, "e", 1) = 1
[pid 9193] select(4, [3], NULL, NULL, {60, 0}) = 1 (in [3], left {60, 0})
[pid 9193] read(3, "r", 1) = 1
[pid 9193] select(4, [3], NULL, NULL, {60, 0}) = 1 (in [3], left {60, 0})
[pid 9193] read(3, "s", 1) = 1
[pid 9193] select(4, [3], NULL, NULL, {60, 0}) = 1 (in [3], left {60, 0})
[pid 9193] read(3, "/", 1) = 1
[pid 9193] select(4, [3], NULL, NULL, {60, 0}) = 1 (in [3], left {60, 0})
[pid 9193] read(3, "\n", 1) = 1
[pid 9193] stat64("//", {st_mode=S_IFDIR|0775, st_size=4096, ...}) = 0
[pid 9193] select(4, [3], NULL, NULL, {60, 0}) = 1 (in [3], left {60, 0})
[pid 9193] read(3, "\n", 1) = 1
[pid 9193] getpid() = 9193
[pid 9193] time(NULL) = 1095751765
[pid 9193] write(4, "2004/09/21 12:29:25 [9193] rsync"..., 87) = 87
[pid 9193] time(NULL) = 1095751765
[pid 9193] select(4, NULL, [3], NULL, {60, 0}) = 1 (out [3], left {60, 0})
[pid 9193] write(3, "U\330OA", 4) = 4
[pid 9193] time(NULL) = 1095751765
[pid 9193] fcntl64(3, F_GETFL) = 0x802 (flags O_RDWR|O_NONBLOCK)
[pid 9193] fcntl64(3, F_GETFL) = 0x802 (flags O_RDWR|O_NONBLOCK)
[pid 9193] select(4, [3], NULL, NULL, {60, 0}) = 1 (in [3], left {60, 0})
[pid 9193] read(3, "\0\0\0\0\0", 8184) = 5
[pid 9193] time(NULL) = 1095751765
[pid 9193] stat64("/", {st_mode=S_IFDIR|0775, st_size=4096, ...}) = 0
[pid 9193] chdir("/") = 0
[pid 9193] socketpair(PF_UNIX, SOCK_STREAM, 0, [5, 6]) = 0
[pid 9193] fcntl64(5, F_GETFL) = 0x2 (flags O_RDWR)
[pid 9193] fcntl64(5, F_SETFL, O_RDWR|O_NONBLOCK) = 0
[pid 9193] fcntl64(6, F_GETFL) = 0x2 (flags O_RDWR)
[pid 9193] fcntl64(6, F_SETFL, O_RDWR|O_NONBLOCK) = 0
[pid 9193] fork() = -1 EAGAIN (Resource temporarily unavailable)
[pid 9193] close(6) = 0
[pid 9193] select(4, NULL, [3], NULL, {60, 0}) = 1 (out [3], left {60, 0})
[pid 9193] write(3, "\4\0\0\7\377\377\377\377", 8) = 8
[pid 9193] select(6, [5], NULL, NULL, {60, 0}) = 1 (in [5], left {60, 0})
[pid 9193] read(5, "", 4) = 0
[pid 9193] getpid() = 9193
[pid 9193] time(NULL) = 1095751765
[pid 9193] write(4, "2004/09/21 12:29:25 [9193] rsync"..., 88) = 88
[pid 9193] rt_sigaction(SIGUSR1, {SIG_IGN}, {0x8052010, [USR1], SA_RESTORER|SA_RESTART, 0x40069958}, 8) = 0
[pid 9193] rt_sigaction(SIGUSR2, {SIG_IGN}, {0x8052040, [USR2], SA_RESTORER|SA_RESTART, 0x40069958}, 8) = 0
[pid 9193] getpid() = 9193
[pid 9193] time(NULL) = 1095751765
[pid 9193] write(4, "2004/09/21 12:29:25 [9193] rsync"..., 99) = 99
[pid 9193] munmap(0x40014000, 4096) = 0
[pid 9193] SYS_252(0xc, 0x1000, 0x8083c80, 0x40149678, 0x40149678) = -1 ENOSYS (Function not implemented)
[pid 9193] _exit(12) = ?
<... select resumed> ) = ? ERESTARTNOHAND (To be restarted)
--- SIGCHLD (Child exited) @ 0 (0) ---
waitpid(-1, NULL, WNOHANG) = 9193
waitpid(-1, NULL, WNOHANG) = -1 ECHILD (No child processes)
rt_sigaction(SIGCHLD, {0x805e410, [CHLD], SA_RESTORER|SA_RESTART, 0x40069958}, {0x805e410, [CHLD], SA_RESTORER|SA_RESTART, 0x40069958}, 8) = 0
sigreturn() = ? (mask now [])
select(5, [4], NULL, NULL, NULL <unfinished ...>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [sisyphus] rsync
2004-09-24 7:30 ` Sergey Golovin
@ 2004-10-27 16:35 ` Dmitry V. Levin
0 siblings, 0 replies; 3+ messages in thread
From: Dmitry V. Levin @ 2004-10-27 16:35 UTC (permalink / raw)
To: ALT Linux Sisyphus mailing list
[-- Attachment #1: Type: text/plain, Size: 818 bytes --]
On Fri, Sep 24, 2004 at 12:30:45PM +0500, Sergey Golovin wrote:
> * iLL <ill@krumn.oilnet.ru> [24 Sep Fri 10:06]
> > Hi!
> > С некоторых пор (несколько месяцев) rsync у меня перестал выходить при ошибке.
> > Пишет в лог:
> > rsync error: error in rsync protocol data stream (code 12) at io.c(354)
> > коды и строки меняются.
>
> У меня не работает с такой же диагностикой rsync --daemon при попытке
> записать файл. Причем, только если в описании модуля прописан
> непривилегированный пользователь, если же пишу
>
> uid = root
> gid = root
>
> , то все ОК.
>
> Написал в рассылку по rsync, но пока ответа нет. Наверное, тот диалект
> английского, который получается из школьного немецкого, не передал
> смысла :-( .
This bug is ALT-specific, fixed in rsync-server-2.6.3-alt2.
--
ldv
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2004-10-27 16:35 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-09-24 6:06 [sisyphus] rsync iLL
2004-09-24 7:30 ` Sergey Golovin
2004-10-27 16:35 ` Dmitry V. Levin
ALT Linux Sisyphus discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
public-inbox-index sisyphus
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.sisyphus
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git