Please describe the problem.
I've added a backup USB Drive and a small archive USB drive and created a archive folder in the root of my ~/annex folder.
If I move a file into the ~/annex folder and then move the same file into the ~/annex/archive folder the file gets uploaded to the small archive USB drive, but not dropped from my ~/annex/archive folder.
[2015-08-14 19:03:47 CEST] Committer: Adding git-annex..iving.ogv
ok
(recording state in git...)
(recording state in git...)
(recording state in git...)
add /Users/markus/annex/git-annex-assistant-archiving.ogv [2015-08-14 19:03:47 CEST] Committer: Committing changes to git
[2015-08-14 19:03:47 CEST] Pusher: Syncing with annexbackup, annexarchive
git-annex-assistant-archiving.ogv
To /Volumes/annex-archive/annex-archive0
6ef9226..6c87a7d git-annex -> synced/git-annex
b8855cc..bc20ee2 annex/direct/master -> synced/master
To /Volumes/annex-backup/annex-backup
6ef9226..6c87a7d git-annex -> synced/git-annex
b8855cc..bc20ee2 annex/direct/master -> synced/master
15428954 100% 20.71MB/s 0:00:00 (xfer#1, to-check=0/1)
sent 15430948 bytes received 42 bytes 10287326.67 bytes/sec
total size is 15428954 speedup is 1.00
[2015-08-14 19:03:48 CEST] Transferrer: Uploaded git-annex..iving.ogv
[2015-08-14 19:03:49 CEST] Pusher: Syncing with annexbackup, annexarchive
To /Volumes/annex-backup/annex-backup
6c87a7d..d24edd5 git-annex -> synced/git-annex
To /Volumes/annex-archive/annex-archive
6c87a7d..d24edd5 git-annex -> synced/git-annex
[2015-08-14 19:04:23 CEST] Committer: Adding git-annex..iving.ogv
ok
(recording state in git...)
(recording state in git...)
(recording state in git...)
add /Users/markus/annex/archive/git-annex-assistant-archiving.ogv [2015-08-14 19:04:23 CEST] Committer: Committing changes to git
[2015-08-14 19:04:23 CEST] Pusher: Syncing with annexbackup, annexarchive
git-annex-assistant-archiving.ogv
To /Volumes/annex-backup/annex-backup:00
d24edd5..507be0c git-annex -> synced/git-annex
bc20ee2..8fea81a annex/direct/master -> synced/master
To /Volumes/annex-archive/annex-archive
d24edd5..507be0c git-annex -> synced/git-annex
bc20ee2..8fea81a annex/direct/master -> synced/master
15428954 100% 30.72MB/s 0:00:00 (xfer#1, to-check=0/1)
sent 15430948 bytes received 42 bytes 30861980.00 bytes/sec
total size is 15428954 speedup is 1.00
[2015-08-14 19:04:23 CEST] Transferrer: Uploaded git-annex..iving.ogv
[2015-08-14 19:04:25 CEST] Pusher: Syncing with annexbackup, annexarchive
To /Volumes/annex-archive/annex-archive
507be0c..ba58f77 git-annex -> synced/git-annex
To /Volumes/annex-backup/annex-backup
507be0c..ba58f77 git-annex -> synced/git-annex
If I directly move a file e.g. from ~/Downloads to ~/annex/archive the file gets uploaded to the small archive USB drive and then dropped from my drive (as expected).
[2015-08-14 19:04:25 CEST] Pusher: Syncing with annexbackup, annexarchive
To /Volumes/annex-archive/annex-archive
507be0c..ba58f77 git-annex -> synced/git-annex
To /Volumes/annex-backup/annex-backup
507be0c..ba58f77 git-annex -> synced/git-annex
[2015-08-14 19:09:44 CEST] Committer: Adding Oracle_VM..x-extpack
ok
(recording state in git...)
(recording state in git...)
(recording state in git...)
add /Users/markus/annex/archive/Oracle_VM_VirtualBox_Extension_Pack-5.0.0-101573.vbox-extpack [2015-08-14 19:09:44 CEST] Committer: Committing changes to git
[2015-08-14 19:09:44 CEST] Pusher: Syncing with annexbackup, annexarchive
Oracle_VM_VirtualBox_Extension_Pack-5.0.0-101573.vbox-extpack
To /Volumes/annex-backup/annex-backup:00
ba58f77..73eed9e git-annex -> synced/git-annex
8fea81a..68526f7 annex/direct/master -> synced/master
To /Volumes/annex-archive/annex-archive
ba58f77..73eed9e git-annex -> synced/git-annex
8fea81a..68526f7 annex/direct/master -> synced/master
18028050 100% 25.65MB/s 0:00:00 (xfer#1, to-check=0/1)
sent 18030392 bytes received 42 bytes 12020289.33 bytes/sec
total size is 18028050 speedup is 1.00
[2015-08-14 19:09:45 CEST] Transferrer: Uploaded Oracle_VM..x-extpack
ok
(recording state in git...)
(recording state in git...)
drop /Users/markus/annex/archive/Oracle_VM_VirtualBox_Extension_Pack-5.0.0-101573.vbox-extpack [2015-08-14 19:09:47 CEST] Pusher: Syncing with annexbackup, annexarchive
To /Volumes/annex-backup/annex-backup
73eed9e..93dc4a3 git-annex -> synced/git-annex
To /Volumes/annex-archive/annex-archive
73eed9e..93dc4a3 git-annex -> synced/git-annex
But if I move the file-link from ~/annex/archive to ~/annex the file stays a link and don't get transferred back to my drive.
[2015-08-14 19:12:39 CEST] Committer: Committing changes to git
[2015-08-14 19:12:39 CEST] Pusher: Syncing with annexbackup, annexarchive
To /Volumes/annex-backup/annex-backup
68526f7..082e0d8 annex/direct/master -> synced/master
To /Volumes/annex-archive/annex-archive
68526f7..082e0d8 annex/direct/master -> synced/master
What version of git-annex are you using? On what operating system?
Im using MacOSX 10.11 Beta (15A243d) with the most resend MacOSX App.
$ /Applications/git-annex.app/Contents/MacOS/git-annex version
git-annex version: 5.20150812-ga6f7b36
build flags: Assistant Webapp Webapp-secure Pairing Testsuite S3 WebDAV FsEvents XMPP DNS Feeds Quvi TDFA TorrentParser Database
key/value backends: SHA256E SHA256 SHA512E SHA512 SHA224E SHA224 SHA384E SHA384 SKEIN256E SKEIN256 SKEIN512E SKEIN512 SHA1E SHA1 MD5E MD5 WORM URL
remote types: git gcrypt S3 bup directory rsync web bittorrent webdav tahoe glacier ddar hook external
local repository version: 5
supported repository version: 5
upgrade supported from repository versions: 0 1 2 4
confirmed —marked as confirmed on 2018-12-30
Here's some more infos from running git-annex with debug:
Moving a 'symlinked' file from
~/annex/archive
to~/annex
. I expected that the file get's automagically pulled from the archive drive and the symlink is replaced with the real file. but what happens is this:If this is OSX specific, which it seems to be (I've tested archive folders working as expected plenty on Linux), it might have to do with the assistant not seeing an event for the file being added when it's renamed to/from the archive folder. In the --debug log, it looks like the file got deleted but never added back.
If this is the case,
git annex status
should show the file as not being checked into git.I think this is the same bug as Moved files are not picked up by the assistant on OS X. To reproduce, run the first transcript there but drop the file before moving it.
FSEvents fails to produce add events for dangling symlinks (https://github.com/facebook/watchman/issues/172), although it does produce removal events. Recompiling and using Kqueue with git-annex instead seems to detect dangling symlinks and add them correctly.
I can confirm this is still a problem.
OS:
macOS Sierra, version 10.12.5 (16F73)
git-annex versions:
OSX DMG install
Homebrew install
Question
@nanotech - can you elaborate on your recompile with Kqueue comment above?
Not wanting to repeat myself, but this is still an issue.
ISSUE Moving files to the
archive
folder on MacOS does not result in them being dropped.To reproduce
webapp
, one isclient
the other isfull archive
type.client
directory.full archive
(looking at thewebapp
andgit annex status
)archive
folder thewebapp
/assistant
helpfully created for me.git m[o]v[ed]
(looking at thewebapp
andgit annex status
)client
Version
I want to help!
What can I do to help debug this Joey?
Just tested with
7.20181106-g352f88226
on macOS 10.12.6. Archive groups work fine with v5 repo but do not work with a v7 repo. With a v7 repo content is synced, but content is never dropped from the source archive folder. If I disable assistant and rungit annex drop --auto
from the client repo this will in fact drop the files from the archive folder. With the v5 repo I get drop logs in daemon.log with the v7 repos I get no errors in the logs and also no drop logs.Also reported by a user here: [https://git-annex.branchable.com/bugs/OSX_Assistant_will_not_automatically_drop/]
I believe all repos are created at v5 by default currently both from the command-line and the assistant webapp, but there is no guarantee that will always be the case. With the latest version of git-annex a v6 repo will automatically be upgraded to a v7 repo whenever you run any git-annex command (or start the assistant or webapp).
Also just for help troubleshooting Joey: I just tested this with
6.20180914-g13dc117e9
and v6 indirect repos. Same issue, files moved to an archive folder (unlocked and locked) are never dropped by the assistant even after they have reached an archive repo. As with v7 repos, runninggit-annex drop --auto
does drop them.