Rsync 常见问题及解决方法

上一篇 / 下一篇  2008-11-07 17:18:15 / 天气: 晴朗 / 心情: 平静

Rsync Errors & solutions
参见http://www.rollingr.net/wordpress/2007/05/01/installing-and-running-rsync/4/

Make error
options.c:24:18: popt.h: No such file or directory
make: *** [options.o] Error 1
Solution
Missing popt.h Change configure to include --with-included-popt


Connect Error
@ERROR: auth failed on module rsyncd_module
rsync error: error starting client-server protocol (code 5) at main.c(1383) [receiver=2.6.9]
Solution
Check /var/log/rsyncd.log file for further details


rsyncd.log Error
secrets file must not be other-accessible (see strict modes option)
continuing without secrets file
Solution
EITHER set option strict modes = false in initial section of configuration file OR chmod 600 /path/to/secrets


rsyncd.log Error
Ignoring badly formed line in configuration file: xxx
Solution
Check syntax of line given (xxx) in /etc/rsyncd.conf. It should consist of an option, an equals sign (=) and a value.


rsyncd.log Error
rsync: chroot /path/to/files failed: Operation not permitted (1)
Solution
Set Module Option use chroot = false if you do not have super user access. When “use chroot” is false, symlinks may only be relative paths pointing to other files within the root path, for security reasons and leading slashes are removed from most absolute paths


rsync Client error
rsync: read error: Connection reset by peer (104)
rsync error: error in rsync protocol data stream (code 12) at io.c(604) [receiver=2.6.9]
OR
rsync: getaddrinfo: mydomain.com xxx: no address associated with hostname.
rsync error: error in socket IO (code 10) at clientserver.c(104) [receiver=2.6.9]
OR
rsync: failed to connect to mydomain.com: Connection refused (111)
rsync error: error in socket IO (code 10) at clientserver.c(104) [receiver=2.6.9]
Solution
No rsync server runnning on specified port of server. Check that correct port was specified. Also, check that the rsync server is running by typing ps -auxww.


rsync Client error
@ERROR: auth failed on module rsyncd_module
rsync error: error starting client-server protocol (code 5) at /home/lapo/packaging/tmp/rsync-2.6.6/main.c(1171)
Solution
rsync needs to be called with the username before the site name. For example rsync -auvzbP /cygwin/local/path/ user@remotehost.com::desired_module --port=8730


rsync Client error
14 [main] ? (2164) C:\Program Files\cwRsync\bin\ssh.exe: *** fatal error - C:\Program Files\cwRsync\bin\ssh.exe: *** system shared memory version mismatch detected - 0×2D1E009C/0×75BE009C.
Solution
Make sure that you are running SSH from the same directory as rsync. This problem is probably due to using incompatible versions of the cygwin DLL. Search for cygwin1.dll using the Windows Start->Find/Search facility and delete all but the most recent version. The most recent version *should* reside in x:\cygwin\bin, where ‘x’ is the drive on which you have installed the cygwin distribution. Rebooting is also suggested if you are unable to find another cygwin DLL.


rsync Client error
@ERROR: auth failed on module rsyncd_module
rsync error: error starting client-server protocol (code 5) at main.c(1383) [receiver=2.6.9]
Solution
Mismatch between “auth users” line for module rsyncd_module in configuration file (Normally /etc/rsyncd.conf) and users listed in “secrets file” specified in module’s definition.


rsync Client error
/bin/sh: rsync: command not found
rsync: connection unexpectedly closed (0 bytes received so far) [receiver]
rsync error: error in rsync protocol data stream (code 12) at io.c(453) [receiver=2.6.9]
Solution
Check that rsync is in the path of your SSH session as the environment may well be different for SSH to that for a normal login. To verify this, try executing the commandssh -2 -v mylogin@mydomain.com “env|grep -i path”. You can modify /.ssh/authorized_keys to include the line command=”/etc/rsyncd/wrapper.sh” as the first line. You will need to create the wrapper and make it executable. @@@


rsync Client error
Solution

::...
免责声明:
当前网页内容, 由 大妈 ZoomQuiet 使用工具: ScrapBook :: Firefox Extension 人工从互联网中收集并分享;
内容版权归原作者所有;
本人对内容的有效性/合法性不承担任何强制性责任.
若有不妥, 欢迎评注提醒:

或是邮件反馈可也:
askdama[AT]googlegroups.com


点击注册~> 获得 100$ 体验券: DigitalOcean Referral Badge

订阅 substack 体验古早写作:


关注公众号, 持续获得相关各种嗯哼:
zoomquiet


自怼圈/年度番新

DU22.4
关于 ~ DebugUself with DAMA ;-)
粤ICP备18025058号-1
公安备案号: 44049002000656 ...::