Hi, I'm trying to setup git annex assistant (my first time). When I add the server (in "transfert" mode, if that matters) I get the following error:
"Neither rsync nor git-annex are installed on the server. Perhaps you should go install them?"
I manually verified that both rsync and git/git-annex are installed and available from PATH in the "annex" account and all seems to be ok.
Can you suggest a way to get a more specific information on the source of the error?
My first guess was that this is due to the fact that rsync and git-annex are installed in "non-standard locations". My server run NixOS (http://nixos.org) which has a completely different convention about directory hierarchy from traditional linux/unix OS (that is, no /usr/bin /usr/lib etc.). However, I tried to "cheat" by manually adding symbolic links into a /usr/bin but this didn't work either, so I might be looking in the wrong direction.
Any suggestion appreciated, thank you in advance,
Marco
Update: I also tried to install the standalone distribution in the home of the annex user on the server as shown in the video (BTW, nice illustration!), but I get the same error. (On the client side I installed the osx app instead.)
You need to be able to
ssh yourserver which rsync
and have it succeed. That's what git-annex uses to probe if rsync etc is present.Note that, since that does not start a login shell, bash doesn't source ~/.bash* at all, or even /etc/profile. So none of the ways people add nonstandard directories to PATH will work.
So, use this to check the PATH that is available on the system:
ssh yourserver 'echo $PATH'
It needed some plumbing, this is what I did:
~/.ssh/rc:
Since which is an alias (and hence still doesn't work for 'ssh foo which rsync'), I added a shell script $HOME/bin/which:
Verified to work (syncs both ways) with a cloned repository on arch linux.