forum/Getting: hGetChar: illegal operation (handle is closed)git-annexhttp://git-annex.branchable.com/forum/Getting__58___hGetChar__58___illegal_operation___40__handle_is_closed__41__/git-annexikiwiki2019-03-24T23:49:48Zcomment 1http://git-annex.branchable.com/forum/Getting__58___hGetChar__58___illegal_operation___40__handle_is_closed__41__/comment_1_9ff60145d7dfb6785bb11f2a23040948/yarikoptic2019-01-21T15:42:51Z2018-11-06T22:16:39Z
<p>FWIW -- observed similar one while testing <a href="http://git-annex.branchable.com/bugs/annex_get_-J_16_via_ssh_stalls_/#comment-2abcda07d2832b923f1e7aa12778b734">the fresh fix</a> under -J10 over ssh:</p>
<div class="highlight-sh"><pre class="hl">get sourcedata<span class="hl opt">/</span>sub-emmet<span class="hl opt">/</span>ses-20180521<span class="hl opt">/</span>fmap<span class="hl opt">/</span>sub-emmet_ses-20180521_acq-topupXb0X3mm_dir-AP_epi.dicom.tgz <span class="hl opt">(</span>from origin...<span class="hl opt">)</span>
Lost connection <span class="hl opt">(</span>fd<span class="hl opt">:</span><span class="hl num">90</span><span class="hl opt">:</span> hGetChar<span class="hl opt">:</span> illegal operation <span class="hl opt">(</span>handle is closed<span class="hl opt">))</span>
Unable to access these remotes<span class="hl opt">:</span> origin
Try making some of these repositories available<span class="hl opt">:</span>
...
failed
</pre></div>
The issue persists with recent git-annexhttp://git-annex.branchable.com/forum/Getting__58___hGetChar__58___illegal_operation___40__handle_is_closed__41__/comment_2_7c88ebd9d7cdf4a009aa2580cc55787d/yarikoptic2019-03-24T23:00:30Z2019-03-24T23:00:30Z
<p>The same with annex locally 7.20190219+git191-g2d6a364d4-1~ndall+1 and on remote 7.20190129+git78-g3fa6be1fe-1~ndall+1, while copying to the remote host a LOT (59k) of files, 3 "failed" and I get datalad print me a summary of those 3 error messages</p>
<div class="highlight-sh"><pre class="hl">git-annex<span class="hl opt">: <</span>stdin<span class="hl opt">>:</span> hGetChar<span class="hl opt">:</span> illegal operation <span class="hl opt">(</span>handle is closed<span class="hl opt">)</span>git-annex-shell<span class="hl opt">:</span> p2pstdio<span class="hl opt">:</span> <span class="hl num">1</span> failed Lost connection <span class="hl opt">(</span>fd<span class="hl opt">:</span><span class="hl num">20</span><span class="hl opt">:</span> hGetChar<span class="hl opt">:</span> end of <span class="hl kwc">file</span><span class="hl opt">)</span>
This could have failed because <span class="hl kwb">--fast</span> is enabled.
git-annex<span class="hl opt">: <</span>stdin<span class="hl opt">>:</span> hGetChar<span class="hl opt">:</span> illegal operation <span class="hl opt">(</span>handle is closed<span class="hl opt">)</span>git-annex-shell<span class="hl opt">:</span> p2pstdio<span class="hl opt">:</span> <span class="hl num">1</span> failed Lost connection <span class="hl opt">(</span>fd<span class="hl opt">:</span><span class="hl num">19</span><span class="hl opt">:</span> hGetChar<span class="hl opt">:</span> end of <span class="hl kwc">file</span><span class="hl opt">)</span>
This could have failed because <span class="hl kwb">--fast</span> is enabled.
git-annex<span class="hl opt">: <</span>stdin<span class="hl opt">>:</span> hGetChar<span class="hl opt">:</span> illegal operation <span class="hl opt">(</span>handle is closed<span class="hl opt">)</span>git-annex-shell<span class="hl opt">:</span> p2pstdio<span class="hl opt">:</span> <span class="hl num">1</span> failed Lost connection <span class="hl opt">(</span>fd<span class="hl opt">:</span><span class="hl num">19</span><span class="hl opt">:</span> hGetChar<span class="hl opt">:</span> end of <span class="hl kwc">file</span><span class="hl opt">)</span>
This could have failed because <span class="hl kwb">--fast</span> is enabled.
git-annex<span class="hl opt">:</span> copy<span class="hl opt">:</span> <span class="hl num">3</span> failed
</pre></div>
<p>I guess it is because the files are actually pointing to the same key(s), which get transferred in some other parallel batch.</p>
comment 3http://git-annex.branchable.com/forum/Getting__58___hGetChar__58___illegal_operation___40__handle_is_closed__41__/comment_3_976cb63e97774859023123536bdc9d99/yarikoptic2019-03-24T23:49:48Z2019-03-24T23:49:48Z
actually not sure if that is a matter of multiple files with the same key since with a subsequent call to <code>datalad publish</code> 3 files did get published, so I guess it was something else.