From dcb1884851e532648ad8107e1841c011ee297643 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Wed, 18 Nov 2015 12:20:11 -0400 Subject: [PATCH] seems ok; hints at debugging what's wrong --- ..._f1da699581e72aad0c3433d8fc02ce9c._comment | 31 +++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 doc/bugs/ipfs_initremote_failing_with___34__unable_to_parse_command__34__/comment_1_f1da699581e72aad0c3433d8fc02ce9c._comment diff --git a/doc/bugs/ipfs_initremote_failing_with___34__unable_to_parse_command__34__/comment_1_f1da699581e72aad0c3433d8fc02ce9c._comment b/doc/bugs/ipfs_initremote_failing_with___34__unable_to_parse_command__34__/comment_1_f1da699581e72aad0c3433d8fc02ce9c._comment new file mode 100644 index 0000000000..c8b248fdcb --- /dev/null +++ b/doc/bugs/ipfs_initremote_failing_with___34__unable_to_parse_command__34__/comment_1_f1da699581e72aad0c3433d8fc02ce9c._comment @@ -0,0 +1,31 @@ +[[!comment format=mdwn + username="joey" + subject="""comment 1""" + date="2015-11-18T16:09:03Z" + content=""" +It works here, no problem. And, the ipfs special remote does not actually +use ipfs at all when initremote is run, so there's no possibility of some +change in ipfs versions having broken it. + +My best guess is something in your shell or environment is making the +git-annex-remote-ipfs script not work right, and apparently output an extra +newline. I can reproduce that error message from git-annex if I modify +git-annex-remote-ipfs to echo a blank link on startup. I can't see any +way that shell script could output an extra newline normally however. + +Passing --debug will cause the protocol output to be dumped, which could +help debug this. All I'd expect to see in the protocol dump is +git-annex sending "INITREMOTE" and git-annex-remote-ipfs responding +with "INITREMOTE-SUCCESS". So another way to see what's going wrong with +the script's output is this: + + # echo INITREMOTE | git-annex-remote-ipfs + VERSION 1 + INITREMOTE-SUCCESS + # + +And if that outputs an extra newline as I hypothesize, this should help +pinpoint what line of the script is doing that: + + # echo INITREMOTE | sh -x $(which git-annex-remote-ipfs) +"""]] -- 2.39.5