Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 668116 - dev-vcs/git-2.19.1: fatal: unable to start cache daemon: No such file or directory
Summary: dev-vcs/git-2.19.1: fatal: unable to start cache daemon: No such file or dire...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Robin Johnson
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-10-09 08:18 UTC by Dennis Schridde
Modified: 2018-10-09 08:23 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dennis Schridde 2018-10-09 08:18:37 UTC
I was wondering why Git would still ask me for a password, even though I have:
```
# cat .gitconfig 
[credential]
        helper = cache --timeout 86400
```

Reading the source [1] I tried:
```
# /usr/libexec/git-core/git-credential-cache --timeout=86400 store
^D
fatal: cannot run git-credential-cache--daemon: No such file or directory
fatal: unable to start cache daemon: No such file or directory
```

[1]: https://github.com/git/git/blob/master/credential-cache.c

Next I straced the process:
```
# strace /usr/libexec/git-core/git-credential-cache --timeout=86400 store
^D
[...]
stat("/usr/lib/llvm/7/bin/git-credential-cache--daemon", 0x7ffc44e87380) = -1 ENOENT (No such file or directory)
stat("/usr/lib/llvm/6/bin/git-credential-cache--daemon", 0x7ffc44e87380) = -1 ENOENT (No such file or directory)
stat("/usr/local/sbin/git-credential-cache--daemon", 0x7ffc44e87380) = -1 ENOENT (No such file or directory)
stat("/usr/local/bin/git-credential-cache--daemon", 0x7ffc44e87380) = -1 ENOENT (No such file or directory)
stat("/usr/sbin/git-credential-cache--daemon", 0x7ffc44e87380) = -1 ENOENT (No such file or directory)
stat("/usr/bin/git-credential-cache--daemon", 0x7ffc44e87380) = -1 ENOENT (No such file or directory)
stat("/sbin/git-credential-cache--daemon", 0x7ffc44e87380) = -1 ENOENT (No such file or directory)
stat("/bin/git-credential-cache--daemon", 0x7ffc44e87380) = -1 ENOENT (No such file or directory)
stat("/opt/bin/git-credential-cache--daemon", 0x7ffc44e87380) = -1 ENOENT (No such file or directory)
[...]
write(2, "fatal: cannot run git-credential"..., 74fatal: cannot run git-credential-cache--daemon: No such file or directory
) = 74
[...]
write(2, "fatal: unable to start cache dae"..., 63fatal: unable to start cache daemon: No such file or directory
) = 63
exit_group(128)                         = ?
+++ exited with 128 +++
```

On Gentoo the binary is located here:
```
# q list -e git | grep git-credential-cache--daemon
/usr/libexec/git-core/git-credential-cache--daemon
```

It seems that either the binary should be in the default `PATH` or Git should be fixed to also search in `/usr/libexec/git-core`.