{"id":704,"date":"2010-05-08T17:03:29","date_gmt":"2010-05-08T08:03:29","guid":{"rendered":"http:\/\/www.joewein.net\/blog\/?p=704"},"modified":"2010-05-08T17:04:02","modified_gmt":"2010-05-08T08:04:02","slug":"rsyncserver-not-started-because-pid-file-rsyncd-pid-exists","status":"publish","type":"post","link":"https:\/\/joewein.net\/blog\/2010\/05\/08\/rsyncserver-not-started-because-pid-file-rsyncd-pid-exists\/","title":{"rendered":"RsyncServer not started because pid file rsyncd.pid exists"},"content":{"rendered":"<p>I had a scary experience today because one of my Windows PCs &#8220;blue screened&#8221;, i.e. it crashed. While the &#8220;Blue Screen of Death&#8221; was fairly common in Windows 95 and 98, it is unusual to see it on any healthy machine running Windows 2000, XP, 2003 or 2008 Server, Vista or Windows 7. <\/p>\n<p>Since the CPU fan of the machine had been running faster than normal recently, I had already suspected it of dust buildup in the CPU heat sink and when I opened up the machine, my suspicion was confirmed. I pulled out some dust and vacuumed the machine before starting it up again.<\/p>\n<p>The machine booted normally and the fan was quiet, but I got alerts from another machine that it could not connect to the Rsync server of the restarted machine. I use an Rsync service for Windows to synchronize data updates between various machines. The service was shown with startup mode &#8220;Automatic&#8221;, which means it should start whenever Windows is booted, but it was not showing as &#8220;Started&#8221;. Looking into the log file at &#8220;C:\\Program Files\\ICW\\rsyncd.log&#8221; I found several of these error messages, one each for every restart I had performed after the crash:<\/p>\n<blockquote><p>2010\/05\/08 15:37:45 [2128] rsync: failed to create pid file rsyncd.pid: File exists (17)<br \/>\n2010\/05\/08 15:37:45 [2128] rsync error: error in file IO (code 11) at clientserver.c(985) [receiver=3.0.6]<br \/>\n2010\/05\/08 15:52:32 [2120] rsync: failed to create pid file rsyncd.pid: File exists (17)<br \/>\n2010\/05\/08 15:52:32 [2120] rsync error: error in file IO (code 11) at clientserver.c(985) [receiver=3.0.6]<br \/>\n2010\/05\/08 16:11:13 [2644] rsync: failed to create pid file rsyncd.pid: File exists (17)<br \/>\n2010\/05\/08 16:11:13 [2644] rsync error: error in file IO (code 11) at clientserver.c(985) [receiver=3.0.6]<\/p><\/blockquote>\n<p>Probably the sudden crash had prevented the Rsync service from deleting its pid (process ID) file, as it normally does when it is shut down orderly. <\/p>\n<p>After I deleted &#8220;C:\\Program Files\\ICW\\rsyncd.pid&#8221; I was able to start the service and the other machine could connect to it and synchronize with it properly.<\/p>\n<p>Hopefully the machine will keep running reliably again now that the heat sink is clean again. I will keep checking it for dust buildup at least monthly now that the summer months are approaching.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I had a scary experience today because one of my Windows PCs &#8220;blue screened&#8221;, i.e. it crashed. While the &#8220;Blue Screen of Death&#8221; was fairly common in Windows 95 and 98, it is unusual to see it on any healthy &hellip; <a href=\"https:\/\/joewein.net\/blog\/2010\/05\/08\/rsyncserver-not-started-because-pid-file-rsyncd-pid-exists\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,14,27,24,23],"tags":[],"class_list":["post-704","post","type-post","status-publish","format-standard","hentry","category-computers","category-software","category-windows-7","category-windows-vista","category-windows-xp"],"_links":{"self":[{"href":"https:\/\/joewein.net\/blog\/wp-json\/wp\/v2\/posts\/704","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/joewein.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/joewein.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/joewein.net\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/joewein.net\/blog\/wp-json\/wp\/v2\/comments?post=704"}],"version-history":[{"count":6,"href":"https:\/\/joewein.net\/blog\/wp-json\/wp\/v2\/posts\/704\/revisions"}],"predecessor-version":[{"id":710,"href":"https:\/\/joewein.net\/blog\/wp-json\/wp\/v2\/posts\/704\/revisions\/710"}],"wp:attachment":[{"href":"https:\/\/joewein.net\/blog\/wp-json\/wp\/v2\/media?parent=704"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/joewein.net\/blog\/wp-json\/wp\/v2\/categories?post=704"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/joewein.net\/blog\/wp-json\/wp\/v2\/tags?post=704"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}