#"Role "authentik" does not exist."

1 messages · Page 1 of 1 (latest)

slow violet
#

I am trying to get authentik up and running on my linux server in docker, using the current compose file. This error keeps repeating during start up for both the server and worker containers. What is going wrong?

#

also stated - "password authentication failed for user "authentik"\n)"

tardy void
#

you should post your docker-compose so we can see what your config setup is.

#

here is how I setup my docker-compose, and it works w/o issue.

    auth-server:
        image: ghcr.io/goauthentik/server:2023.1.2
        restart: unless-stopped
        command: server
        networks: [authnet]
        env_file: ["./config/_CRITICAL/authentik/authentik-env"]
        volumes:
            - ./config/_CRITICAL/authentik/server/media:/media
            - ./config/_CRITICAL/authentik/server/custom-templates:/templates
    auth-worker:
        image: ghcr.io/goauthentik/server:2023.1.2
        restart: unless-stopped
        command: worker
        networks: [authnet]
        env_file: ["./config/_CRITICAL/authentik/authentik-env"]
        volumes:
            - ./config/_CRITICAL/authentik/server/media:/media
            - ./config/_CRITICAL/authentik/server/certs:/certs
            - ./config/_CRITICAL/authentik/server/custom-templates:/templates
slow violet
#

sorry was asleep by the time you responded... your compose is COMPLETELY different from mine which i pulled from the website documentation

#

this is what i pulled for my compose file

tardy void
#

It looks different, but it evaluates to the same stuff. They give a lot of options to use environment variables, which personally I did not need.

#

Anyway, are you using exactly what they gave, or are you using a different database?

#

That looks like a database error.

#

I would double check and make sure the user exists in your postgres.

#

You're using a volume, so it's also possible your database volume already exist, and it's ignoring the environment variables there because the database was already created.

slow violet
#

I was using exactly what they listed, I had modified some variables regarding the .env file and I think your right.

#

I probably need to remove the previous persistent data from when I failed to config the .env correctly!

#

I’ll test that out! Thanks.