Recent comments posted to this site:

Urk. Seems I was making some recent changes lately to clean up zombies and I accidentually let them accumulate here. Fixed that.
Comment by http://joeyh.name/ Wed Oct 17 01:07:00 2012
The resource in question appears to be processes. Do you get a lot of zombies or something?
Comment by http://joeyh.name/ Wed Oct 17 00:41:03 2012
Cute, it was making the wrong symlink and then noticed it was broken and reverted the add. At least my error unwind works! Anyway, fixed this too.
Comment by http://joeyh.name/ Tue Oct 16 20:28:03 2012
ssh remotehost "cd /path/to/annex && git annex sync"

Not quite there yet.

git-annex init works now, but there is still a problem with paths:

Using the same setup as previously, git-annex init now works:

cd lib/submod
git annex init

But adding a file failes:

git annex add big-file

Output:

add big-file (checksum...) 
git-annex: big-file: getFileStatus: does not exist (No such file or directory)
failed
(Recording state in git...)
git-annex: add: 1 failed

Debug:

[2012-10-16 13:59:26 CEST] read: git ["--git-dir=../../.git/modules/lib/submod","--work-tree=/Users/ptx/tmp/test-annex/test/lib/submod","ls-files","--others","--exclude-standard","-z","--","big-file"] [2012-10-16 13:59:26 CEST] read: git ["--git-dir=../../.git/modules/lib/submod","--work-tree=/Users/ptx/tmp/test-annex/test/lib/submod","diff","--name-only","--diff-filter=T","-z","--","big-file"] add big-file [2012-10-16 13:59:26 CEST] chat: git ["--git-dir=../../.git/modules/lib/submod","--work-tree=/Users/ptx/tmp/test-annex/test/lib/submod","check-attr","-z","--stdin","annex.backend","annex.numcopies","--"] (checksum...) [2012-10-16 13:59:26 CEST] chat: git ["--git-dir=../../.git/modules/lib/submod","--work-tree=/Users/ptx/tmp/test-annex/test/lib/submod","cat-file","--batch"]

git-annex: big-file: getFileStatus: does not exist (No such file or directory) failed

[2012-10-16 13:59:26 CEST] chat: git ["--git-dir=../../.git/modules/lib/submod","--work-tree=/Users/ptx/tmp/test-annex/test/lib/submod","hash-object","-w","--stdin-paths"]
[2012-10-16 13:59:26 CEST] feed: git ["--git-dir=../../.git/modules/lib/submod","--work-tree=/Users/ptx/tmp/test-annex/test/lib/submod","update-index","-z","--index-info"]
[2012-10-16 13:59:26 CEST] read: git ["--git-dir=../../.git/modules/lib/submod","--work-tree=/Users/ptx/tmp/test-annex/test/lib/submod","show-ref","--hash","refs/heads/git-annex"]
(Recording state in git...)
[2012-10-16 13:59:26 CEST] read: git ["--git-dir=../../.git/modules/lib/submod","--work-tree=/Users/ptx/tmp/test-annex/test/lib/submod","write-tree"]
[2012-10-16 13:59:26 CEST] chat: git ["--git-dir=../../.git/modules/lib/submod","--work-tree=/Users/ptx/tmp/test-annex/test/lib/submod","commit-tree","ed2f98d7105deed7482b3dde43426c177b360131","-p","refs/heads/git-annex"]
[2012-10-16 13:59:26 CEST] call: git ["--git-dir=../../.git/modules/lib/submod","--work-tree=/Users/ptx/tmp/test-annex/test/lib/submod","update-ref","refs/heads/git-annex","df49e7bef8409dff450ce549c40f4ab429ea3144"]
[2012-10-16 13:59:26 CEST] chat: git ["--git-dir=../../.git/modules/lib/submod","--work-tree=/Users/ptx/tmp/test-annex/test/lib/submod","cat-file","--batch"]
git-annex: add: 1 failed
OK; The purpose of putting files on the remote smb:// partition is to publish these big data files, so other (potentially non-technical) people can download and use them. They'll not be willing to learn how to use git, let alone git-annex. And i have multiple development machines that can generate revisions/updates to these big files. I previously just rsync from/to various development machines to/from this smb partition, but i find sometimes I don't always srync in correct direction. The hope is i can have annex on these development machines, and set the smb:// partition as the remote for these git annex. But it sounds like none of the special remote will have the original form, and a normal remote is not possible on smb:// partition.
And I found a clean way to avoid that partial !! too. :) Down to 22 of the little monsters to clean up now.
Comment by http://joeyh.name/ Tue Oct 16 05:56:10 2012
It's working great now, thanks Joey!
Comment by https://me.yahoo.com/a/2grhJvAC049fJnvALDXek.6MRZMTlg--#eec89 Tue Oct 16 05:53:15 2012

If you need a git repository with your regular file names on the smb share, none of the special remotes will meet your needs. You'd need to find a way to make it support POSIX locking to use git-annex on it in a full git repository.

But I think that in most cases a directory special remote on such a share, with the git repository kept locally and git-annex used to pull files down to it as needed, would work ok.

Comment by http://joeyh.name/ Tue Oct 16 05:52:08 2012
Maybe i didn't explain clearly at the beginning: /Volumes/subproject is a remote partition connected via smb://. It doesn't have a .git. The content I mentioned previously "copied" there was copied via cp -R. And my local annex is ~/project/subproject and it does have .git and .git/annex in it.
Comments on this page are closed.