diff options
-rw-r--r-- | doc/bugs/git_annex_testremote_fails_on_OSX_because_native___39__mktemp_-d__39___doesn__39__t_work.mdwn | 87 |
1 files changed, 87 insertions, 0 deletions
diff --git a/doc/bugs/git_annex_testremote_fails_on_OSX_because_native___39__mktemp_-d__39___doesn__39__t_work.mdwn b/doc/bugs/git_annex_testremote_fails_on_OSX_because_native___39__mktemp_-d__39___doesn__39__t_work.mdwn new file mode 100644 index 000000000..539cdc527 --- /dev/null +++ b/doc/bugs/git_annex_testremote_fails_on_OSX_because_native___39__mktemp_-d__39___doesn__39__t_work.mdwn @@ -0,0 +1,87 @@ +### Please describe the problem. + +Created a special remote using one drive. +ran git annex testremote <that remote> +got errors, apparently starting with: + + retrieveKeyFile: usage: mktemp [-d] [-q] [-t prefix] [-u] template ... + mktemp [-d] [-q] [-u] -t prefix + FAIL (0.01s + +### What steps will reproduce the problem? + +As above. + +### What version of git-annex are you using? On what operating system? +OSX 10.10.5 https://downloads.kitenet.net/git-annex/OSX/current/10.10_Yosemite/git-annex.dmg + +### Please provide any additional information below. + +Verified that using gnu coreutils mktemp fixes the problem. +Suggestion: Bundle that with the distribution. +Along those lines, consider also including rclone and the script git-annex-remote-rclone, + +[[!format sh """ +# If you can, paste a complete transcript of the problem occurring here. +# If the problem is with the git-annex assistant, paste in .git/annex/daemon.log +testremote alanr-onedrive (generating test keys...) Remote Tests + unavailable remote + removeKey: Cannot run git-annex-remote-!dne! -- Make sure it's in your PATH and is executable. +OK + storeKey: Cannot run git-annex-remote-!dne! -- Make sure it's in your PATH and is executable. +OK (0.43s) + checkPresent: OK + retrieveKeyFile: OK + retrieveKeyFileCheap: OK + key size Just 1048576; NoChunks; encryption none + removeKey when not present: 2017/03/09 21:48:42 Waiting for deletions to finish 2017/03/09 21:48:42 directory not found +OK (3.80s) + present False: 2017/03/09 21:48:44 directory not found +OK (1.89s) + storeKey: 2017/03/09 21:48:46 One drive root 'git-annex-test/70c/e24': Waiting for checks to finish +2017/03/09 21:48:46 One drive root 'git-annex-test/70c/e24': Waiting for transfers to finish +2017/03/09 21:48:49 +Transferred: 1 MBytes (206.541 kBytes/s) +Errors: 0 +Checks: 0 +Transferred: 1 +Elapsed time: 4.9s +OK (4.97s) + present True: Total objects: 1 Total size: 1 MBytes (1048576 Bytes) +OK (2.40s) + storeKey when already present: 2017/03/09 21:48:53 One drive root 'git-annex-test/70c/e24': Waiting for checks to finish +2017/03/09 21:48:53 One drive root 'git-annex-test/70c/e24': Waiting for transfers to finish +2017/03/09 21:48:53 +Transferred: 0 Bytes (0 Bytes/s) +Errors: 0 +Checks: 1 +Transferred: 0 +Elapsed time: 1.1s +OK (1.12s) + present True: Total objects: 1 Total size: 1 MBytes (1048576 Bytes) +OK (2.06s) + retrieveKeyFile: mktemp -d +usage: mktemp [-d] [-q] [-t prefix] [-u] template ... + mktemp [-d] [-q] [-u] -t prefix +FAIL (0.01s) + failed + fsck downloaded object: OK + retrieveKeyFile resume from 33%: FAIL + Exception: .git/annex/objects/Kv/9j/SHA256E-s1048576--22c73497372ed998c1e84743a67601e2c9522dc9ce78f180f90a3896313c0f61.this-is-a-test-key/SHA256E-s1048576--22c73497372ed998c1e84743a67601e2c9522dc9ce78f180f90a3896313c0f61.this-is-a-test-key: openBinaryFile: does not exist (No such file or directory) + fsck downloaded object: OK + retrieveKeyFile resume from 0: FAIL + Exception: failed to lock content: .git/annex/objects/Kv/9j/SHA256E-s1048576--22c73497372ed998c1e84743a67601e2c9522dc9ce78f180f90a3896313c0f61.this-is-a-test-key/SHA256E-s1048576--22c73497372ed998c1e84743a67601e2c9522dc9ce78f180f90a3896313c0f61.this-is-a-test-key: getFileStatus: does not exist (No such file or directory) + fsck downloaded object: OK + retrieveKeyFile resume from end: cp: .git/annex/objects/Kv/9j/SHA256E-s1048576--22c73497372ed998c1e84743a67601e2c9522dc9ce78f180f90a3896313c0f61.this-is-a-test-key/SHA256E-s1048576--22c73497372ed998c1e84743a67601e2c9522dc9ce78f180f90a3896313c0f61.this-is-a-test-key: No such file or directory +FAIL + Exception: failed to lock content: .git/annex/objects/Kv/9j/SHA256E-s1048576--22c73497372ed998c1e84743a67601e2c9522dc9ce78f180f90a3896313c0f61.this-is-a-test-key/SHA256E-s1048576--22c73497372ed998c1e84743a67601e2c9522dc9ce78f180f90a3896313c0f61.this-is-a-test-key: getFileStatus: does not exist (No such file or directory) + fsck downloaded object: OK + removeKey when present: OK (2.78s) + present False: ^C + +# End of transcript or log. +"""]] + +### Have you had any luck using git-annex before? (Sometimes we get tired of reading bug reports all day and a lil' positive end note does wonders) + +Just starting but have high hopes :-) |