summaryrefslogtreecommitdiff
path: root/doc/bugs/Windows_daemon_silently_dies.mdwn
blob: f336a4a4c5da4cba27e90c2a2e58b51148d1a053 (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
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
120
121
122
123
124
125
126
127
128
129
130
### Please describe the problem.

Using the latest build, when the agent is started, it works ... and works ... and works ... until it silently dies at some point.

### What steps will reproduce the problem?

I hope this will reproduce:

* Create a remote with an invalid host which is not reachable
* Start git-annex-autostart.vbs
* Wait 5-30 minutes until no git.exe/git-annex.exe are visible any more in task manager (for my current test it took 10 minutes)
* Inspect the logs

### What version of git-annex are you using? On what operating system?

    $ git annex version
    git-annex version: 5.20140715-g622a376
    build flags: Assistant Webapp Webapp-secure Pairing Testsuite S3 WebDAV DNS Feeds Quvi TDFA CryptoHash
    key/value backends: SHA256E SHA1E SHA512E SHA224E SHA384E SKEIN256E SKEIN512E SHA256 SHA1 SHA512 SHA224 SHA384 SKEIN256 SKEIN512 WORM URL
    remote types: git gcrypt S3 bup directory rsync web webdav tahoe glacier ddar hook external
    local repository version: 5
    supported repository version: 5
    upgrade supported from repository versions: 2 3 4

### Please provide any additional information below.

I hope/think that this is also related to what I wrote in:
https://git-annex.branchable.com/forum/Restricting_SSH_+_supply_key

Here the assistant apparently takes the wrong ssh.exe (from bin/ instead than cmd/ directory). This results in the fact that for some reason .ssh/config is not used.
In any case, the host alias can not be resolved.
At some point git annex assistant seems to die because of that, but I am not sure.
In any case, a non-reachable server should not be the cause that the assistant dies.
The last entries of daemon.log are always:

    git-annex: <stdin>: hGetLine: invalid argument (Bad file descriptor)
    failed
    git-annex: assistant: 1 failed 

So I think this is the cause.

[[!format sh """
[2014-07-14 21:21:19 Pacific Daylight Time] main: starting assistant version 5.20140715-g622a376
[2014-07-14 21:21:19 Pacific Daylight Time] Cronner: You should enable consistency checking to protect your data. 
[2014-07-14 21:21:24 Pacific Daylight Time] TransferScanner: Syncing with 192.168.200.121 
(scanning...) [2014-07-14 21:21:25 Pacific Daylight Time] Watcher: Performing startup scan
ssh: Could not resolve hostname annex: hostname nor servname provided, or not known
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
ssh: Could not resolve hostname annex: hostname nor servname provided, or not known
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
sssh: Could not resolve hostname annex: hostname nor servname provided, or not known
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
ssh: Could not resolve hostname annex: hostname nor servname provided, or not known

ssh: Could not resolve hostname annex: hostname nor servname provided, or not known
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
sssh: Could not resolve hostname annex: hostname nor servname provided, or not known
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
(started...) [2014-07-14 21:21:43 Pacific Daylight Time] Committer: Committing changes to git
[2014-07-14 21:21:43 Pacific Daylight Time] Pusher: Syncing with 192.168.200.121 
ssh: Could not resolve hostname annex: hostname nor servname provided, or not known
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
ssh: Could not resolve hostname annex: hostname nor servname provided, or not known
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
ssh: Could notssh: Could not resolve hostname annex: hostname nor servname provided, or not known
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
[2014-07-14 21:22:03 Pacific Daylight Time] Committer: Committing changes to git
fatal: Unable to create 'c:\data\annex\.git/index.lock': File exists.

If no other git process is currently running, this probably means a
git process crashed in this repository earlier. Make sure no other git
process is running and remove the file manually to continue.
fatal: Unable to create 'c:\data\annex\.git/index.lock': File exists.

If no other git process is currently running, this probably means a
git process crashed in this repository earlier. Make sure no other git
process is running and remove the file manually to continue.
Committer crashed: failed to read sha from git write-tree
[2014-07-14 21:22:03 Pacific Daylight Time] Committer: warning Committer crashed: failed to read sha from git write-tree
ssh: Could not resolve hostname annex: hostname nor servname provided, or not known
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
ssh: Could not resolve hostname annex: hostname nor servname provided, or not known

ssh: Could not resolve hostname annex: hostname nor servname provided, or not known

ssh: Could not resolve hostname annex: hostname nor servname provided, or not known

ssh: Could not resolve hostname annex: hostname nor servname provided, or not known

ssh: Could not resolve hostname annex: hostname nor servname provided, or not known

Network.Socket.ByteString.send: does not exist (No such file or directory)
Network.Socket.ByteString.send: does not exist (No such file or directory)

(Recording state in git...)
(Recording state in git...)

git-annex: <stdin>: hGetLine: invalid argument (Bad file descriptor)
failed
git-annex: assistant: 1 failed 
"""]]

[[!tag confirmed]]