参考URL。
http://www.itefix.no/i2/node/11817
以下は詳細。
### rsyncがエラーになる。
$ sudo emerge --sync >>> Starting rsync with rsync://192.168.0.100/gentoo-portage... >>> Checking server timestamp ... rsync: read error: Connection reset by peer (104) rsync error: error in rsync protocol data stream (code 12) at io.c(760) [Receiver=3.0.8] >>> Retrying... !!! Exhausted addresses for 192.168.0.100
### rsyncサーバー側の再インストール。
$ sudo emerge --oneshot -avt net-misc/rsync $ sudo /etc/init.d/rsyncd restart
### rsyncクライアント側。
$ rsync -avz 192.168.0.100:~/.bashrc ./ Enter passphrase for key '/home/username/.ssh/id_rsa': receiving incremental file list rsync: ../sysdeps/unix/sysv/linux/getpagesize.c:32: __getpagesize: Assertion `_rtld_global_ro._dl_pagesize != 0' failed. rsync: connection unexpectedly closed (9 bytes received so far) [Receiver] rsync error: error in rsync protocol data stream (code 12) at io.c(601) [Receiver=3.0.8]
### rsyncサーバーの再インストール後。
$ rsync -avz 192.168.0.100:~/.bashrc ./ Enter passphrase for key '/home/username/.ssh/id_rsa': receiving incremental file list .bashrc sent 30 bytes received 1851 bytes 537.43 bytes/sec total size is 4908 speedup is 2.61
### rsyncサーバー側のglibcを更新している。
$ sudo genlop sys-libs/glibc Sun Apr 24 21:29:33 2011 >>> sys-libs/glibc-2.11.3 Fri May 20 15:12:51 2011 >>> sys-libs/glibc-2.12.2
### 違うエラーになった。
$ sudo emerge --sync >>> Starting rsync with rsync://192.168.0.100/gentoo-portage... >>> Checking server timestamp ... @ERROR: invalid uid nobody rsync error: error starting client-server protocol (code 5) at main.c(1516) [Receiver=3.0.8] >>> Retrying... !!! Exhausted addresses for 192.168.0.100
試しに別のサーバーで/etc/rsyncd.confの設定を変えて、そこにemerge --syncしたところ動作する。
$ rsync -avz 192.168.0.100::gentoo-portage/app-accessibility/SphinxTrain/ . @ERROR: invalid uid nobody rsync error: error starting client-server protocol (code 5) at main.c(1516) [Receiver=3.0.8]
$ rsync -avz 192.168.0.200::gentoo-portage/app-accessibility/SphinxTrain/ . receiving incremental file list ./ ...
http://www.itefix.no/i2/node/11817
### uid, gid 追加。
$ rcsdiff -r1.2 /etc/config-archive/etc/rsyncd.conf,v /etc/rsyncd.conf =================================================================== RCS file: /etc/config-archive/etc/rsyncd.conf,v retrieving revision 1.2 diff -r1.2 /etc/rsyncd.conf 16a17,18 > uid = 65534 > gid = 65534
### nobodyはある。たぶん1000番ぐらいまでしか調べなくなったとか?
$ grep nobody /etc/passwd nobody:x:65534:65534:nobody:/:/bin/false
0 件のコメント:
コメントを投稿