Closed d5ve closed 1 year ago
Xandikos should provide a better error message in this case - the issue is that it and Dulwich can't determine a default committer identity.
You can probably address this issue by setting a git identity (full name/email) in ~/.gitconfig
Cheers @jelmer
I'd just come to a similar conclusion, and got things working by setting some ENV vars inside the container. I stepped through the code in Dulwich to find out where the default username and email were coming from.
See the USERNAME
and EMAIL
lines below. After this change, I was able to sucessfully write new calendar events.
$ cat docker-compose.yml
version: '3.7'
services:
xandikos:
image: ghcr.io/jelmer/xandikos
container_name: xandikos
user: "1090:1090"
environment:
- USERNAME=d5ve
- EMAIL="d5ve@example.com"
restart: unless-stopped
volumes:
- /data/xandikos:/data
Thanks for your prompt support for this neat project.
reopening this to track the improved error message
Fixed in dulwich
I'm getting a 500 error when trying to create a new event from the MacOS calendar app.
xandikos (ghcr.io/jelmer/xandikos:latest) is running in a docker container behind a caddy2 proxy.
The MacOC calendar app can sucessfully login and read calendar events, but is failing to save new ones.
The python error is below, but I don't really know what to look for here.
My
docker-compose.yml
file is:Caddy is proxypassing all traffic on my chosen subdomain to the xandikos container with config like:
I see the same xandikos error with and without the basicauth setup in Caddy.