{"id":209,"date":"2010-12-18T14:40:33","date_gmt":"2010-12-18T12:40:33","guid":{"rendered":"http:\/\/www.mediamill.de\/blog\/?p=209"},"modified":"2010-12-05T00:42:11","modified_gmt":"2010-12-04T22:42:11","slug":"rsync-fehlermeldung-protocol-version-mismatch-is-your-shell-clean-rsync-error-protocol-incompatibility-code-2-at-compat-c171-receiver3-0-4","status":"publish","type":"post","link":"https:\/\/www.mediamill.de\/blog\/2010\/12\/18\/rsync-fehlermeldung-protocol-version-mismatch-is-your-shell-clean-rsync-error-protocol-incompatibility-code-2-at-compat-c171-receiver3-0-4\/","title":{"rendered":"RSYNC Fehlermeldung: protocol version mismatch &#8212; is your shell clean? (rsync error: protocol incompatibility (code 2) at compat.c(171) [receiver=3.0.4])"},"content":{"rendered":"<p>Als ich ein Script testen wollte, das ein Verzeichnis mit rsync und ssh von Server1 auf Server2 spiegeln sollte, verweigerte rsync seinen Dienst mit folgender Fehlermeldung:<\/p>\n<p class=\"codeblock\">protocol version mismatch &#8212; is your shell clean?<br \/>\nrsync error: protocol incompatibility (code 2) at compat.c(171) [receiver=3.0.4]<\/p>\n<p>Eine <a title=\"Mailing list ARChives\" href=\"http:\/\/marc.info\/?l=rsync&amp;m=100263876212594&amp;w=2\" target=\"_blank\">Webrecherche<\/a> brachte die L\u00f6sung des Problems. Eigentlich h\u00e4tte man mit der Fehlermeldung &#8222;is your shell clean?&#8220; selbst darauf kommen k\u00f6nnen.<\/p>\n<p>Auf dem Server, auf den ich mit rsync zugreifen wollte, befand sich ein Startskript .bashrc mit folgendem Eintrag:<\/p>\n<p class=\"codeblock\">\nLOGINSTATION=`who | cut -d&#8220;(&#8220; -f2 | cut -d&#8220;)&#8220; -f1`<br \/>\necho Login von: $LOGINSTATION\n<\/p>\n<p>Dieses Skript produzierte bei einem Login eine Ausgabe wie diese:<\/p>\n<p class=\"codeblock\">\nLogin von: 11-66-100-10-dynip.superkabel.de\n<\/p>\n<p>Diese Meldung brachte nun RSYNC aus dem Tritt. Anscheinend setzt rsync eine Loginshell ohne zus\u00e4tzliche Meldungen vorraus. Deshalb auch die Fehlermeldung: \u201cis your shell clean?\u201d<\/p>\n<p>Wenn die Meldung aus der .bashrc entfernt wird, funktionierte RSYNC wieder wie gewohnt.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Als ich ein Script testen wollte, das ein Verzeichnis mit rsync und ssh von Server1 auf Server2 spiegeln sollte, verweigerte rsync seinen Dienst mit folgender Fehlermeldung: protocol version mismatch &#8212; is your shell clean? rsync error: protocol incompatibility (code 2) at compat.c(171) [receiver=3.0.4] Eine Webrecherche brachte die L\u00f6sung des Problems. Eigentlich h\u00e4tte man mit der [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,30,8,4,7],"tags":[],"class_list":["post-209","post","type-post","status-publish","format-standard","hentry","category-linux","category-linux-befehle","category-rsync","category-ssh","category-unix-befehle"],"_links":{"self":[{"href":"https:\/\/www.mediamill.de\/blog\/wp-json\/wp\/v2\/posts\/209","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.mediamill.de\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.mediamill.de\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.mediamill.de\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.mediamill.de\/blog\/wp-json\/wp\/v2\/comments?post=209"}],"version-history":[{"count":9,"href":"https:\/\/www.mediamill.de\/blog\/wp-json\/wp\/v2\/posts\/209\/revisions"}],"predecessor-version":[{"id":231,"href":"https:\/\/www.mediamill.de\/blog\/wp-json\/wp\/v2\/posts\/209\/revisions\/231"}],"wp:attachment":[{"href":"https:\/\/www.mediamill.de\/blog\/wp-json\/wp\/v2\/media?parent=209"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.mediamill.de\/blog\/wp-json\/wp\/v2\/categories?post=209"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.mediamill.de\/blog\/wp-json\/wp\/v2\/tags?post=209"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}