Please describe the problem.
There is no git-annex-shell command in path and thus sync with ssh server fails. If I symlink /usr/bin/git-annex-shell -> /usr/bin/git-annex, it complains that key is already present in annex and errors out. There is executable git-annex-shell in server's ~/.ssh/
What steps will reproduce the problem?
Start webapp to sync local repo with ssh server.
What version of git-annex are you using? On what operating system?
git-annex 4.20130627 on Gentoo
Please provide any additional information below.
# If you can, paste a complete transcript of the problem occurring here.
# If the problem is with the git-annex assistant, paste in .git/annex/daemon.log
[2013-07-08 17:28:48 EEST] main: starting assistant version 4.20130627
[2013-07-08 17:28:49 EEST] TransferScanner: Syncing with netbook_Lit, sigma_Lit
dbus failed; falling back to mtab polling (SocketError {socketErrorMessage = "connect: does not exist (Connection refused)", socketErrorFatal = True, socketErrorAddress = Just (Address "unix:abstract=/tmp/dbus-HBxh6EyMJ3,guid=adc3101676daede2a128013351daa535")})
Already up-to-date.
(scanning...) [2013-07-08 17:28:49 EEST] Watcher: Performing startup scan
Already up-to-date.
Already up-to-date.
(started...) Everything up-to-date
Everything up-to-date
bash: git-annex-shell: command not found
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: remote command not found (code 127) at io.c(605) [sender=3.0.9]
bash: git-annex-shell: command not found
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: remote command not found (code 127) at io.c(605) [sender=3.0.9]
[2013-07-08 17:50:23 EEST] main: starting assistant version 4.20130627
[2013-07-08 17:50:23 EEST] TransferScanner: Syncing with netbook_Lit, sigma_Lit
dbus failed; falling back to mtab polling (SocketError {socketErrorMessage = "connect: does not exist (Connection refused)", socketErrorFatal = True, socketErrorAddress = Just (Address "unix:abstract=/tmp/dbus-HBxh6EyMJ3,guid=adc3101676daede2a128013351daa535")})
Already up-to-date.
(scanning...) [2013-07-08 17:50:23 EEST] Watcher: Performing startup scan
Already up-to-date.
Already up-to-date.
(started...) Everything up-to-date
Everything up-to-date
git-annex-shell: key is already present in annex
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: error in rsync protocol data stream (code 12) at io.c(605) [sender=3.0.9]
git-annex-shell: key is already present in annex
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: error in rsync protocol data stream (code 12) at io.c(605) [sender=3.0.9]
# End of transcript or log.
The Makefile contains, for the install target:
How was git-annex installed on your server?
That is Gentoo box and git-annex is installed using the following ebuild:
https://github.com/gentoo-haskell/gentoo-haskell/blob/master/dev-vcs/git-annex/git-annex-4.20130627.ebuild
which uses cabal to install it. It uses also the following eclass:
http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/eclass/haskell-cabal.eclass?revision=1.40&view=markup
The main functions of interest there are cabal-bootstrap(), cabal-copy() and cabal_src_install(). I'm not familiar enough with haskell nor with cabal to follow trough in detail how the setup program is constructed and how it works, but the end result is that this is all that is installed. I don't know if normal cabal installs work as intended, maybe something there needs to be adjusted?
cabal install
also creates the git-annex-shell symlink. I have filed a bug on the ebuild: https://github.com/gentoo-haskell/gentoo-haskell/issues/247