Open aashish108 opened 1 year ago
Have you tested executing the whole provided command line as same user as radicale
daemon is running? According to Internet search results, 128 is a fatal git exit code.
In case of SELinux is active check also the audit log.
Have you tested executing the whole provided command line as same user as
radicale
daemon is running? According to Internet search results, 128 is a fatal git exit code.In case of SELinux is active check also the audit log.
It's running via Docker. Getting a bit complicated now lol, will have a check.
Having just run into the same error, maybe you didn't set user.name
and user.email
in git for the user who's running the radicale
daemon?
After setting the hook and modifying a calendar entry to trigger it, I got the same error message and found that while the .git/
folder got created and all the files added, no commit had been performed (indicating that the hook had failed at the last command).
After manually editing the .git/config
file to add user.name
and user.email
in the usual way, the hook is now running just fine.
As a consistency check, I've checked for a different user with shell access (but who has no .gitconfig
) what happens when doing git init; git add test.txt; git commit - 'Initial commit'
and found that this results in fatal: unable to auto-detect email address
with error code 128, thus agreeing with the error code in the logs.
There's already some pull requests on the topic as the current documentation is lacking in this regard, see e.g. #883 #913 #914
covered by https://github.com/Kozea/Radicale/pull/1631
Hey, been trying to get this git hook working but it simply errors, saying:
I have git inited the data folder (where the collections folder resides) btw. Not sure what I am doing wrong?