Skip to content

Authentik: "failed to connect to authentik backend: dial unix /tmp/authentik-core.sock: connect: no such file or directory" #1097

Closed Answered by TheRealVira
TheRealVira asked this question in Q&A
Discussion options

You must be logged in to vote

Hi, just now I was able to resolve the error. It was an issue with how I restored the DB after migration. If anybody is migrating to LXC as well, these are the commands I used to backup and restore the DB:

On my old Portainer instance I ran the following:

sudo docker exec authentik_postgresql.qnec31z2zj4bk6edpbxn41nyq.468u5n2y94d369413n7mpvcni pg_dump -d authentik -U authentik -Fc > backup.dump
rsync backup.dmp root@{IP_OF_NEW_LXC}:~/backup.dump

On the new LXC Authentik instance:

cat /etc/authentik/config.yml
pg_restore --verbose --clean --host=localhost --dbname=authentik --username=authentik backup.dump

DB password is stored in /etc/authentik/config.yml under postgresql.password!

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by TheRealVira
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant