File: Cant_see_git-annex-shell_via_SSH_in_OSX.mdwn

package info (click to toggle)
git-annex 10.20230126-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 69,344 kB
  • sloc: haskell: 74,654; javascript: 9,103; sh: 1,304; makefile: 203; perl: 136; ansic: 44
file content (119 lines) | stat: -rw-r--r-- 3,293 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
### Sync Problems using SSH remote in OSX

- Im trying to work out SSH remotes by trying to sync up repos on my home network, following the walkthrough. 
- I have two machines (mini and mbp ) running OSX Mavericks, with RLogin enabled for all users to enable ssh.
- I can SSH into the remote machine and see *git-annex-shell*, which seems to have ok permissions

```

    johns-mbp:annex johnmccallum$ ssh john@johns-mini-5.home 
    
    Last login: Sun Apr 12 07:31:07 2015 from johns-mbp.home

    johns-mini-5:~ john$ which git-annex-shell

    /usr/local/bin/git-annex-shell

    johns-mini-5:~ john$ ls -l /usr/local/bin/git-annex-shell

    -rwxr-xr-x@ 1 john  admin  668 12 Apr 07:03 /usr/local/bin/git-annex-shell

```

- Previously on mini I created and populated a repo

``` 

    494  mkdir annex

    495  cd annex

    496  git init

    497  git annex init

    498  cp ~/Pictures/*.png .

    499  git annex add .

    500  git commit -a -m 'added png'

```

- I can git clone this repo to MBP by SSH


```
	johns-mbp:~ johnmccallum$ git clone ssh://john@johns-mini-5.home/Users/john/annex ~/annex

	Cloning into '/Users/johnmccallum/annex'...

	remote: Counting objects: 24, done.

	remote: Compressing objects: 100% (19/19), done.

	remote: Total 24 (delta 3), reused 0 (delta 0)

	Receiving objects: 100% (24/24), done.

	Resolving deltas: 100% (3/3), done.

	Checking connectivity... done

	johns-mbp:~ johnmccallum$ cd annex

	johns-mbp:annex johnmccallum$ git annex init 'MBP'

	init MBP (merging origin/git-annex into git-annex...)

	(recording state in git...)

	ok

	(recording state in git...)

	johns-mbp:annex johnmccallum$ ls -l

	total 16

	lrwxr-xr-x  1 johnmccallum  staff  196 12 Apr 08:20 CoGe-Snapshot at 2013-03-22 - 11-27-20.png -> .git/annex/objects/gf/Xp/SHA256E-s367697--	fce3f47f218805cd9855ec3fd4203b52e83587148b34c8e706df512783eb7557.png/SHA256E-s367697--fce3f47f218805cd9855ec3fd4203b52e83587148b34c8e706df512783eb7557.png

	lrwxr-xr-x  1 johnmccallum  staff  196 12 Apr 08:20 delicious.png -> .git/annex/objects/ZJ/vX/SHA256E-s112714--057d0faa464f8d588c053dae460838d68ea7803d7eaf7330798679e63f92cecb.png/SHA256E-s112714--057d0faa464f8d588c053dae460838d68ea7803d7eaf7330798679e63f92cecb.png


```

 **HOWEVER**   _git annex get_  fails as follows:

```

	johns-mbp:annex johnmccallum$ git annex get delicious.png 

	get delicious.png bash: git-annex-shell: command not found

 	 Remote origin does not have git-annex installed; setting annex-ignore

 	 This could be a problem with the git-annex installation on the remote. Please make sure that git-annex-shell is available in PATH when you ssh into the remote. Once you have fixed the git-annex installation, run: git config remote.origin.annex-ignore false
	(not available) 
 	 Try making some of these repositories available:
  		129620b2-91b1-4541-b7b1-9e5a9d31d5d3 -- john@johns-mini-5.home:~/annex
	failed
	git-annex: get: 1 failed

```

This is not the case on the remote host when I SSH in as the same user

```

    johns-mini-5:~ john$ which git-annex-shell


    /usr/local/bin/git-annex-shell

```


 The only thread on this seems to be https://git-annex.branchable.com/forum/not_finding_git-annex-shell_on_remote/ and Im at a loss to understand it.  

Any suggestions would be welcome