I am having a strange logging error in Authelia (Docker, Docker-Compose)

hello I am trying to get Authelia to work in docker with the Docker-Compose yml file using Portainer.
I am getting one log error which I do not understand (because the file is there, in the yml config that I want):



22-04-14T19:28:37+02:00" level=error msg="Generating database file: /docker/authelia/config/users_database.yml" stack="github.com/authelia/authelia/v4/internal/regulation/regulator.go:18 NewRegulator\ngithub.com/authelia/authelia/v4/internal/commands/root.go:63        cmdRootRun\ngithub.com/spf13/cobra@v1.4.0/command.go:860                        (*Command).execute\ngithub.com/spf13/cobra@v1.4.0/command.go:974                        (*Command).ExecuteC\ngithub.com/spf13/cobra@v1.4.0/command.go:902                        (*Command).Execute\ngithub.com/authelia/authelia/v4/cmd/authelia/main.go:10             main\nruntime/proc.go:250                                                 main\nruntime/asm_amd64.s:1571                                            goexit"
time="2022-04-14T19:28:37+02:00" level=error msg="Unable to generate /docker/authelia/config/users_database.yml: open /docker/authelia/config/users_database.yml: no such file or directory" stack="github.com/authelia/authelia/v4/internal/regulation/regulator.go:18 NewRegulator\ngithub.com/authelia/authelia/v4/internal/commands/root.go:63        cmdRootRun\ngithub.com/spf13/cobra@v1.4.0/command.go:860                        (*Command).execute\ngithub.com/spf13/cobra@v1.4.0/command.go:974                        (*Command).ExecuteC\ngithub.com/spf13/cobra@v1.4.0/command.go:902                        (*Command).Execute\ngithub.com/authelia/authelia/v4/cmd/authelia/main.go:10             main\nruntime/proc.go:250                                                 main\nruntime/asm_amd64.s:1571                                            goexit"
time="2022-04-14T19:28:38+02:00" level=info msg="Authelia v4.34.6 is starting"
time="2022-04-14T19:28:38+02:00" level=info msg="Log severity set to debug"
time="2022-04-14T19:28:38+02:00" level=error msg="Unable to find database file: /docker/authelia/config/users_database.yml" stack="github.com/authelia/authelia/v4/internal/regulation/regulator.go:18 NewRegulator\ngithub.com/authelia/authelia/v4/internal/commands/root.go:63        cmdRootRun\ngithub.com/spf13/cobra@v1.4.0/command.go:860                        (*Command).execute\ngithub.com/spf13/cobra@v1.4.0/command.go:974                        (*Command).ExecuteC\ngithub.com/spf13/cobra@v1.4.0/command.go:902                        (*Command).Execute\ngithub.com/authelia/authelia/v4/cmd/authelia/main.go:10             main\nruntime/proc.go:250                                                 main\nruntime/asm_amd64.s:1571                                            goexit"

“Unable to find database file” is the first thing that I see in the log that grabbing my eye. Can you post what you can of your docker-compose.yml file or what you have setup in Portainer, so we can look for any errors. I know sometimes I have had issues getting certain things running in Portainer.

If I had to throw out a wild guess at whats wrong, I’d go with something with the DB Authelia is using. Hope this helps.

You can find the anonymized yml files and the log here.

Couple things to note here.

  1. we do not support deploying containers with portainer under any circumstances
  2. you have a database issue as rob mentioned. your database is in /config but your logs shows the wrong path, if you fix this the db will work.
  3. authelia is not our container and they have their own support