Over ssh it hang and do nothing on “Completing changes”.
Now i got repo copy over https and at least can run tests.
This was due to a bug in my SSH library: SSH can re-exchange keys after a number of bytes have been exchanged, in order to prevent dictionary or replay attacks. This used to work in Thrussh, but I introduced a bug in the latest update to async/await, where packets sent “during” a key exchange could end up in a queue of pending packets forever.
This is fixed in Thrussh 0.33.2.
over https
:
$ pijul clone https://nest.pijul.com/tankf33der/linux3x
Downloading changes [> ] 0/31
Applying [> ] 0/31
[2021-07-05T09:53:22Z ERROR pijul::remote::http] Error while downloading "https://nest.pijul.com/tankf33der/linux3x/.pijul", retrying
[2021-07-05T09:53:22Z ERROR pijul::remote::http] Error while downloading "https://nest.pijul.com/tankf33der/linux3x/.pijul", retrying
Downloading changes [> ] 0/31
Applying [> ] 0/31
Downloading changes [> ] 0/31
Downloading changes [> ] 0/31
Applying [> ] 0/31
Downloading changes [> ] 0/31
Downloading changes [> ] 0/31
Applying [> ] 0/31
Downloading changes [> ] 0/31
Downloading changes [> ] 0/31
Applying [> ] 0/31
Downloading changes [> ] 0/31
Downloading changes [> ] 0/31
Applying [> ] 0/31
over ssh
i seen this picture before, i will wait as long as I can.
It hanged and do nothing, laptop 100% idle.
pijul clone tankf33der@ssh.pijul.com:tankf33der/linux3x
Downloading changes [==================================================] 31/31
Downloading changes [==================================================] 31/31
Applying [==================================================] 31/31
Completing changes [============================================> ] 8/9
I see what’s going on, at least over HTTP: I used to do this by chunks, but for some reason, Tokio refused to send some of my files this way, so I started reading the entire file. And apparently, this is saturating the memory. I’ll think about it.
Any news from your SSH attempt?
It hang, i stopped it. I cant clone since May and tried hard.
Alright, it hangs on my side too, I just tried. I just realised I hadn’t updated the SSH version in the deployed Nest, I’ll redeploy now (and then sleep ;-)).
The same behavior for ssh
and https
. Nothing changed. Even tried disable firewall :).
SSH fixed, I just tested. Working on HTTPS now.
Confirmed - over SSH works and running linux3x on vps now.
Finally nailed it for HTTPS: the connections have a timeout in order to protect the servers from attackers. But since there are more servers now, and they’re behind a proxy, we can relax the timeout a little bit, which I’ve done. I can now clone your large patches.
Confirmed clone over ssh and https works now.
Recloned-rebuilt latest pijul to support tags.
Now cant clone linux3x repo over ssh and https.