<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>夜行人 &#187; Rsync</title>
	<atom:link href="http://www.187299.com/archives/tag/rsync/feed" rel="self" type="application/rss+xml" />
	<link>http://www.187299.com</link>
	<description>寻觅生命中的那一片浅草......</description>
	<lastBuildDate>Tue, 07 Sep 2010 08:33:45 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>rsync error: error in rsync protocol data stream</title>
		<link>http://www.187299.com/archives/1350</link>
		<comments>http://www.187299.com/archives/1350#comments</comments>
		<pubDate>Fri, 20 Nov 2009 06:56:03 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Rsync]]></category>

		<guid isPermaLink="false">http://www.187299.com/?p=1350</guid>
		<description><![CDATA[今天去检查备份文件，发现有台服务器的文件没有同步过来 手动同步一下，报以下错误 rsync: connection unexpectedly closed (0 bytes received so far) [receiver] rsync error: error in rsync protocol data stream (code 12) at i... ]]></description>
			<content:encoded><![CDATA[<p>今天去检查备份文件，发现有台服务器的文件没有同步过来<br />
手动同步一下，报以下错误</p>
<p>rsync: connection unexpectedly closed (0 bytes received so far) [receiver]<br />
rsync error: error in rsync protocol data stream (code 12) at io.c(359)</p>
<p>试过以下方法，都不可以<br />
重启rsync<br />
重装rsync<br />
查看rsync的密码文件，没有错</p>
<p>最后服务器上看<br />
netstat -tlnp<br />
发现监听873端口的变成了rpc.statd，而不是rsync<br />
tcp        0      0 0.0.0.0:873                 0.0.0.0:*                   LISTEN      3659/rpc.statd</p>
<p>晚上搜索了，知道这是nfslock的进程,马上<br />
service portmap stop<br />
service nfs stop<br />
service nfslock stop</p>
<p>chkconfig --level 2345 portmap off<br />
chkconfig --level 2345 nfslock off<br />
chkconfig --level 2345 nfs off</p>
<p>再开启<br />
/usr/local/bin/rsync --daemon</p>
<p>此时同步，终于成功了</p>
]]></content:encoded>
			<wfw:commentRss>http://www.187299.com/archives/1350/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
