Hi,
day two in my atuin experience. So far I really like it, but I have problems registering against my server.
I have a docker container with postgresql 16 running fine. Atuin server could create all the tables and as I didn’t toy around with user GRANTS I assume this indicates no problems from this side.
The docker container with the atuin server starts fine, the config is mounted as volume and the certs are also mounted as a volume.
My server.toml:
host = "0.0.0.0"
port = 8888
open_registration = true
db_uri="postgres://atuin:THE_ATUIN_PASSWORD@docker-host-01:5432/atuin"
[tls]
enabled = true
cert_path = "/config/certs/live/atuin.sub.example.cc/fullchain.pem"
pkey_path = "/config/certs/live/atuin.sub.example.cc/privkey.pem"
The server run command:
docker run -d \
--name atuin-sync-server \
--restart unless-stopped \
-v nginx-certs:/config/certs \
-v "/home/andi/docker-server-env/atuin-sync-server/config.toml:/config/server.toml" \
-p 8888:8888 \
--network internal-docker-net \
ghcr.io/atuinsh/atuin:18.0.1 \
server start
DNS is set up fine and I docker exec -it -u 1000 atuin-sync-server /bin/sh
ed into the container and checked:
- paths to /config/server.toml is fine
- the path to the cert files are fine and the same as in the server.toml
- the file permissions are fine and I can read everything when using UID 1000 like the server in the container
- I can connect to my PgSQL container with an DB gui client and everything is set up fine, but no data in the user & session table
- the cert files are created by Let’s Encrypt the same way I create them for my nginx reverse proxy, which worked fine for years.
But when I try to register, I get following error message:
atuin register
Registering for an Atuin Sync account
Please enter username: test
Please enter email: test
Please enter password:
Error: error sending request for url (https://atuin.sub.example.cc/user/test): error trying to connect: invalid peer certificate: NotValidForName
Caused by:
0: error trying to connect: invalid peer certificate: NotValidForName
1: invalid peer certificate: NotValidForName
Location:
/private/tmp/atuin-20240212-5226-bu6me4/atuin-18.0.1/atuin-client/src/api_client.rs:49:16
What else might be strange, docker logs atuin-sync-server
doesn’t return any logs. If I get error logs, when something goes wrong with the db. Just broke the db connection string to test it.
I really ran out of ideas what to check next.
Thanks for any input.