aboutsummaryrefslogtreecommitdiff
path: root/doc/bugs/git-annex_losing_rsync_remotes_with_encryption_enabled.mdwn
blob: 914b45d1849629bf4a66167eec5e8cbd6991826b (plain)
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
Somehow git-annex has again lost a complete rsync remote with encryption enabled...

> "once again" ? When did it do it before?

> "lost" ? How is the remote lost?

Both *remoteserver* and *localserver* are rsync remotes with enabled encryption.
All commands are executed on the git repository on my laptop.
Target of origin is a gitolite repository without annex support (thus the two rsync remotes).

Is there a way in git-annex to verify that all files fullfill the numcopies, in my case
numcopies=2, and can be read from the remotes their are on?
I thought that *copy* would verify that, but seems not.
    
    % g a copy --to remoteserver tools
    copy tools/md5_sha1_utility.exe (gpg) (checking remoteserver...) ok
    copy tools/win32diskimager-RELEASE-0.2-r23-win32.zip (checking remoteserver...) ok
    
    % g a copy --to localserver tools
    copy tools/md5_sha1_utility.exe (gpg) (checking localserver...) ok
    copy tools/win32diskimager-RELEASE-0.2-r23-win32.zip (checking localserver...) ok
    
    % g a drop tools
    drop tools/md5_sha1_utility.exe (gpg) (checking localserver...) (checking remoteserver...) (unsafe)
      Could only verify the existence of 1 out of 2 necessary copies
      
      Try making some of these repositories available:
            718a9b5c-1b4a-11e1-8211-6f094f20e050 -- remoteserver (remote backupserver)
      
      (Use --force to override this check, or adjust annex.numcopies.)
    failed
    drop tools/win32diskimager-RELEASE-0.2-r23-win32.zip (checking localserver...) (checking remoteserver...) (unsafe)
      Could only verify the existence of 1 out of 2 necessary copies
      
      Try making some of these repositories available:
            718a9b5c-1b4a-11e1-8211-6f094f20e050 -- remoteserver (remote backupserver)
      
      (Use --force to override this check, or adjust annex.numcopies.)
    failed
    git-annex: drop: 2 failed
    
    % g a fsck tools
    fsck tools/md5_sha1_utility.exe (checksum...) ok
    fsck tools/win32diskimager-RELEASE-0.2-r23-win32.zip (checksum...) ok

> Copy does do an explicit check that the content is present on remoteserver,
> and based on the above, the content was found to be already there,
> which is why it did not copy it again.
> 
> Drop does an indentical check that the content is present, and 
> since it failed to find it, I am left thinking something must have
> happened to the remove in between the copy and the drop to cause the
> content to go away.
> 
> What happens if you copy the data to remoteserver again? --[[Joey]]