summaryrefslogtreecommitdiff
path: root/doc/bugs/Can__39__t_initialize_Tahoe_special_remote.mdwn
blob: 874ba5ba2755744aef52524b2db13960dfdc10ad (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
### Please describe the problem.

I tried to add a Tahoe special remote as follows-
git annex initremote tahoe type=tahoe embedcreds=yes

However, this fails and gives me an error saying that tahoe create-client failed because .tahoe is not empty (even when .tahoe did not previously exist). It seems like git-annex is creating a .tahoe/git-annex directory (which is empty) and then trying to run tahoe create-client, which fails because the .tahoe directory was already created by git-annex.

### What steps will reproduce the problem?
1. Install tahoe and setup a plain git annex repo
2. export TAHOE_FURL=tahoe introducer url here
3. git annex initremote tahoe type=tahoe embedcreds=yes


### What version of git-annex are you using? On what operating system?
5.20141024~bpo70+1 on Tails 1.2.1 (Debian Wheezy 32-bit)


### Please provide any additional information below.

[[!format sh """
# 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
$ git annex initremote tahoe type=tahoe embedcreds=yes
 
initremote tahoe The base directory '/home/amnesia/.tahoe' is not empty.
To avoid clobbering anything, I am going to quit now.
Please use a different directory, or empty this one.
git-annex: tahoe create-client failed 

# End of transcript or log.
"""]]

> So this was caused by an old version of tahoe-lafs. Might as
> well support older versions if we can easily, I suppose.
> 
> I have gone ahead and changed git-annex to use ~/.tahoe-git-annex/
> instead of ~/.tahoe/git-annex/ when setting up new remotes.
> Existing remote's configs will be unchanged. 
> 
> So, [[fixed|done]] --[[Joey]]