<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<div class="moz-cite-prefix">Hi</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">I haven't seen that problem and can't
reproduce it.</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">The wait for 10 seconds in some pretty
obscure code came from a comment in
<a class="moz-txt-link-freetext" href="https://kallithea-scm.org/repos/kallithea/changeset/034e4fe1ebb2#rhodecodelibsubprocessiopy_n127">https://kallithea-scm.org/repos/kallithea/changeset/034e4fe1ebb2#rhodecodelibsubprocessiopy_n127</a>
before The Big Fork. The comment became reality in
<a class="moz-txt-link-freetext" href="https://kallithea-scm.org/repos/kallithea/changeset/01aca0a4f876#kallithealibvcssubprocessiopy_n125">https://kallithea-scm.org/repos/kallithea/changeset/01aca0a4f876#kallithealibvcssubprocessiopy_n125</a>
when moving to Python 3. It doesn't seem to have caused problems
so far, but I might have been too naive and trusted the comment
too much.</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">Does it work better for you if changing
it back:</div>
<div class="moz-cite-prefix">
<pre>
</pre>
</div>
<div class="moz-cite-prefix">
<pre> kr.wait(2)</pre>
<pre>- if not kr.wait(10):</pre>
<pre>+ if len(t) > ccm + 3:</pre>
<pre> raise IOError(</pre>
<pre> "Timed out while waiting for input from subprocess.")</pre>
</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">I don't see why that should be a good
change, but perhaps it fixes your issue.</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">Please let me know if you think I
should push
<a class="moz-txt-link-freetext" href="https://kallithea-scm.org/repos/kallithea-incoming/changeset/35e5c3dcec22">https://kallithea-scm.org/repos/kallithea-incoming/changeset/35e5c3dcec22</a>
.</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">/Mads</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">On 15/04/2023 01:21, Quentin Wenger
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:_fXnf7Yh-_ANW1AKJ0gr2WWG_vPeUecK_5ECjwGK9gOWGjerpWth4CyswsPO-BtKk8lpm4jfXFdmtq7qNE0QX92drgKCb8YtlB7yqKB4dRA=@proton.me">
<pre class="moz-quote-pre" wrap="">Hi,
When cloning a medium-sized repo (not extremely large but with a couple heavy media files), I consistently get a timeout preventing the cloning from completing.
Client:
</pre>
<blockquote type="cite">
<pre class="moz-quote-pre" wrap="">$ git clone <a class="moz-txt-link-freetext" href="https://user@domain/main_website">https://user@domain/main_website</a>
Cloning into 'main_website'...
Password for '<a class="moz-txt-link-freetext" href="https://user@domain">https://user@domain</a>':
remote: Enumerating objects: 10798, done.
remote: Counting objects: 100% (10798/10798), done.
remote: Compressing objects: 100% (5199/5199), done.
fetch-pack: unexpected disconnect while reading sideband packet
fatal: early EOF
fatal: fetch-pack: invalid index-pack output
</pre>
</blockquote>
<pre class="moz-quote-pre" wrap="">
The error occurs during the "Receiving objects:" phase, around 60%.
Server log with DEBUG:
</pre>
<blockquote type="cite">
<pre class="moz-quote-pre" wrap="">2023-04-14 19:05:26.748 INFO [kallithea.controllers.base] pull action on git repo "main_website" by "user" from IP
2023-04-14 19:05:26.748 DEBUG [kallithea.config.middleware.pygrack] handling cmd ['git', 'upload-pack', '--stateless-rpc', '/home/domain/hosting_kallithea/repos/main_website']
Exception in thread Thread-6:
Traceback (most recent call last):
File "/opt/alt/python310/lib64/python3.10/threading.py", line 1016, in _bootstrap_inner
self.run()
File "/home/domain/hosting_kallithea/source/kallithea/lib/vcs/subprocessio.py", line 129, in run
raise IOError(
OSError: Timed out while waiting for input from subprocess.
[UID:1552][1444643] Child process with pid: 1444662 was killed by signal: 15, core dumped: no
</pre>
</blockquote>
<pre class="moz-quote-pre" wrap="">
Cloning via git+ssh directly instead of the https protocol works fine.
Has this been experienced before?
Is this just a matter of using a longer timeout value on line 128 of kallithea/lib/vcs/subprocessio.py? How was the value 10 seconds chosen in the first place? What about making it configurable if it is arbitrary?
Thanks,
Quentin
_______________________________________________
kallithea-general mailing list
<a class="moz-txt-link-abbreviated" href="mailto:kallithea-general@sfconservancy.org">kallithea-general@sfconservancy.org</a>
<a class="moz-txt-link-freetext" href="https://lists.sfconservancy.org/mailman/listinfo/kallithea-general">https://lists.sfconservancy.org/mailman/listinfo/kallithea-general</a>
</pre>
</blockquote>
<p><br>
</p>
</body>
</html>