forum/Can not drop unused filegit-annexhttp://git-annex.branchable.com/forum/Can_not_drop_unused_file/git-annexikiwiki2014-01-20T16:33:28Zcomment 1http://git-annex.branchable.com/forum/Can_not_drop_unused_file/comment_1_cea83dfdf4cdb4f6efb3f2b33a39a51f/joeyh.name2014-01-18T22:39:37Z2014-01-18T22:39:37Z
<p>One reason it might fail (especially if it's not printing any useful message beyond "(failed)") is if it thought the file was present in the repositort, but something has happened to it.</p>
<p>So, I suggest you try:</p>
<p>git annex fsck --from external</p>
<p>Followed by dropping again.</p>
<p>If that doesn't help, I'd recommend stracing the dropping of one of the unused files, and see what's going wrong toward the end.</p>
comment 2http://git-annex.branchable.com/forum/Can_not_drop_unused_file/comment_2_ed1543cff5e6e81ca18c43b716ca8199/Hamza2014-01-19T23:56:18Z2014-01-19T23:56:17Z
<p>I've tried,</p>
<pre><code>git annex fsck --from external
</code></pre>
<p>and</p>
<pre><code>git annex fsck --all --from external
</code></pre>
<p>did not solve the problem. Running,</p>
<pre><code>strace git annex dropunused 1 --from external --force
</code></pre>
<p>tail of strace produces,</p>
<pre><code>clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidp
tr=0x7f3a8d6d8a10) = 5746
rt_sigaction(SIGINT, {0x4e1fb0, [INT], SA_RESTORER|SA_RESTART, 0x7f3a8c8b60b0}, {SIG_D
FL, [], 0}, 8) = 0
rt_sigaction(SIGHUP, {0x4e1fb0, [HUP], SA_RESTORER|SA_RESTART, 0x7f3a8c8b60b0}, {SIG_D
FL, [], 0}, 8) = 0
rt_sigaction(SIGTERM, {0x4e1fb0, [TERM], SA_RESTORER|SA_RESTART, 0x7f3a8c8b60b0}, {SIG
_DFL, [], 0}, 8) = 0
rt_sigaction(SIGQUIT, {0x4e1fb0, [QUIT], SA_RESTORER|SA_RESTART, 0x7f3a8c8b60b0}, {SIG
_DFL, [], 0}, 8) = 0
rt_sigaction(SIGPIPE, {0x4e1fb0, [PIPE], SA_RESTORER|SA_RESTART, 0x7f3a8c8b60b0}, {SIG
_DFL, [], 0}, 8) = 0
close(5) = 0
read(4, "", 1) = 0
close(4) = 0
wait4(5746, dropunused 1 (from external...) (gpg) failed
git-annex: dropunused: 1 failed
[{WIFEXITED(s) && WEXITSTATUS(s) == 1}], 0, NULL) = 5746
--- SIGCHLD (Child exited) @ 0 (0) ---
exit_group(1) = ?
</code></pre>
comment 3http://git-annex.branchable.com/forum/Can_not_drop_unused_file/comment_3_0c9c9c0ed557af4845a67434c21bb4bc/joeyh.name2014-01-20T16:33:28Z2014-01-20T16:33:27Z
<p>I see you're using encryption. That could have something to do with the problem. Which type of encryption was used for this special remote? encryption=shared or one of the other options?</p>
<p>Look through the whole strace output for attempts to access the directory special remote and show those. Or put up the full strace somewhere.</p>