« 1:20:57 | Main | The Blind Watchmaker »

November 06, 2005

The doc is out there

This morning I've rebooted under Ubuntu 5.04 because I already have an rsync script set up there. What it does is gets the latest version of mcraig.org including this blog copied to my local disk. That way if anything goes wrong at mcraig.org, I can just copy the whole thing back up there.

So I run my script and boom:

ssh_exchange_identification: Connection closed by remote host
rsync: connection unexpectedly closed (0 bytes received so far) [receiver]
rsync error: error in rsync protocol data stream (code 12) at io.c(359)

If you're like me, you have no idea what might have happened at line 359 in io.c. But you do have Google. Two clicks later, I get to an email answer from last Thursday:

I've noticed that somehow rights of some directories are changed during rsync-ing. So I've tried to reset rights (added write access for owner) in all directoris recursievely after each rsync try. I don't know if this was the reason but this is 1st time for more than 2 weeks now it succeeded!

Ah! Yes, it's true that I've probably been in there as a different user. A quick chmod -R and it works like a charm. Don't tell my boss I could be replaced by a web browser and Google access to the world's mailing lists. On the other hand, every time this happens I'm more convinced our internal mailing lists would be a big help to sys admins and developers everywhere.

Posted by Mark at November 6, 2005 11:19 AM

Trackback Pings

TrackBack URL for this entry:
http://mcraig.org/movabletype/mt-tb.cgi/990