diff options
author | Joey Hess <joeyh@joeyh.name> | 2015-11-18 12:20:11 -0400 |
---|---|---|
committer | Joey Hess <joeyh@joeyh.name> | 2015-11-18 12:20:11 -0400 |
commit | 657a2aae9b5e09d99913e8e6080c84e855042253 (patch) | |
tree | 690835a3ecb3ca7b026f79cf76d20444930b713e /doc/bugs | |
parent | 6bf2d636864753eff8a5a31b6782f381f195806b (diff) |
seems ok; hints at debugging what's wrong
Diffstat (limited to 'doc/bugs')
-rw-r--r-- | doc/bugs/ipfs_initremote_failing_with___34__unable_to_parse_command__34__/comment_1_f1da699581e72aad0c3433d8fc02ce9c._comment | 31 |
1 files changed, 31 insertions, 0 deletions
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 000000000..c8b248fdc --- /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) +"""]] |