I am currently trying to setup a private repo on my server. It almost works, I can select the patches I want to push for instance. The issue is, once I do it, pijul exits gracefully but nothing had happened server-side and if I push again, I am asked to push the exact same patches.
Any idea on how to solve this issue? Have pijul been tested with openssh?
The only thing I see that differs from a push to the nest, with RUST_LOG=info, is:
INFO:thrussh::client::encrypted: Unhandled global request: Ok("hostkeys-00@openssh.com")
This is a standard message sent by openssh, nothing to worry about. Unfortunately, we don’t have tests for that, but we should, even if they fail if you don’t have an SSH server running locally.
Pushing fails on my machine with a “file not found” error, I wonder what causes this.
I can’t reproduce, but I had to tweak my configuration a little before getting it to work. The main thing was a problem with my path when calling commands over SSH, which was pointing to an old version of Pijul installed by Nix, instead of the one installed by Cargo.
Thanks a lot. I finally managed to make the thing works. The issue was almost the same you described. When I was logged in my server, which pijul was returning the correct path (/usr/local/bin/pijul). However, with the command you gave me, it was actually returning /usr/bin/pijul… This version was certainly very old (probably 0.5, actually).
When I deleted this old version, it still didn’t worked. Indeed, when doing the ssh "which pijul", it was reporting that pijul was not found… expect pijul itself was complaining on the client side.
Now it works, because I put an up-to-date version of pijul in the correct location.
There is probably a room for improvement here on error reporting.
Okay, so it looks like it does not work anymore. I suspect it can be related to the recent changes in pijul/src/commands/remote.rs, even though I cannot be sure.
Basically, the pull command works, but the push doesn’t.