{"issue":{"state":"open","pull_request":{"diff_url":null,"html_url":null,"patch_url":null},"milestone":null,"user":{"avatar_url":"https://secure.gravatar.com/avatar/76eb842b26e75ac10be02dbc1645dd37?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"76eb842b26e75ac10be02dbc1645dd37","url":"https://api.github.com/users/axkibe","login":"axkibe","id":495407},"assignee":null,"updated_at":"2011-11-16T15:02:36Z","labels":[{"name":"Priority-Medium","color":"ededed","url":"https://api.github.com/repos/axkibe/lsyncd/labels/Priority-Medium"},{"name":"Type-Defect","color":"ededed","url":"https://api.github.com/repos/axkibe/lsyncd/labels/Type-Defect"}],"closed_at":null,"comments":1,"url":"https://api.github.com/repos/axkibe/lsyncd/issues/42","body":"Originally filed by jus...@techadvise.com on 2011-01-17T21:56:29\n\nImagine a setup of workstation A, lsyncd server B, and lsyncd target C.\r\n\r\nWhat steps will reproduce the problem?\n1.  On workstation A, `rsync -avz some-dir B:/path/lsyncd/watches/`\r\n2.  rsync creates a bunch of hidden temporary files on B, which triggers inotify.\r\n3.  Crazyness ensues, ending with:\r\nxargs: illegal option -- 0\r\nxargs: Usage: xargs: [-t] [-p] [-e[eofstr]] [-E eofstr] [-I replstr] [-i[replstr]] [-L #] [-l[#]] [-n # [-x]] [-s size] [cmd [args ...]]\r\nMon Jan 17 15:43:44 2011 Error: Critical exitcode.\r\nxargs: illegal option -- 0\r\nxargs: Usage: xargs: [-t] [-p] [-e[eofstr]] [-E eofstr] [-I replstr] [-i[replstr]] [-L #] [-l[#]] [-n # [-x]] [-s size] [cmd [args ...]]\r\n\r\n\r\nWhat is the expected output? What do you see instead?\nServer should handle this gracefully.\r\n\r\nWhat version of the product are you using? On what operating system?\n2.0.1","html_url":"https://github.com/axkibe/lsyncd/issues/42","title":"lsyncd 2.0 crash","number":42,"id":2257113,"created_at":"2011-11-16T15:02:32Z"},"action":"created","comment":{"user":{"avatar_url":"https://secure.gravatar.com/avatar/76eb842b26e75ac10be02dbc1645dd37?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"76eb842b26e75ac10be02dbc1645dd37","url":"https://api.github.com/users/axkibe","login":"axkibe","id":495407},"updated_at":"2011-11-16T15:02:36Z","url":"https://api.github.com/repos/axkibe/lsyncd/issues/comments/2760461","body":"Updated by axk...@gmail.com on 2011-01-17T22:01:59\n\nHmm, can you run it with \"--debug Exec\" and post the logs, so it can be seen how it calls xargs? Xargs is used by rsynssh when deleteting files.\r\n\r\nEither lsyncd screws up in creating its argument list, or the xargs on one of your servers is too old to accept \"--delimiter 0\".\r\n\r\nAs workaround I'd suggest adding the temporary files to an exclude pattern or use rsync with --temp-dir.","id":2760461,"created_at":"2011-11-16T15:02:36Z"}}