-
-
Notifications
You must be signed in to change notification settings - Fork 988
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't get Authentik to start properly #2453
Comments
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org> #2453
the compose looks alright, the GeoIP error might be a bug (see commit above) the issues are probably caused by this from your logs p.s. please dont upload ZIP files with logs, please add them inline, potentially using https://gist.github.com/pierrejoubert73/902cc94d79424356a8d20be2b382e1ab |
Thanks for answering, are you able to specify to what the error relates? I have not set up any account yet, googling it, it seems to be related to Redis, that I use password, but password is valid as Authelia that I am running connects to it, I am not sure at what to look. I would guess. |
One more thing you can do is https://goauthentik.io/docs/installation/configuration#debugging, which should let you check that authentik is using the correct config |
Thanks; from the output it all seem to be correct. Output
|
@BeryJu I have found some time and digged a bit more. I have managed to get to a point where Django was giving me permission errors, there was probably some combination of characters within the passwords or something with postgres/secret key that were not working well, once I regenerated them, downloaded newest authentik I was able to start the instance up and create the account. Back to the Django permissions error, I had to stop mounting templates folder and the instance could not access it when mapped. It will probably throw the same errors at media and certs once it would try to access them - my question it, could be it possible to make the image either set correct permissions so it can copy files to mounted file locations or allow to map UID/GID of a user that has access on the host where the directory is mounted? I am thinking something like every linuxserver containers does where I could map something like this: If the volume is mapped to the host I get standard internal server error on the website and in the logs: |
Upon futher checking, I appear to have an issue keeping outpost healthy if some of the passwords are loaded from docker secret files. I have basically replicated my initial compose excluding AUTHENTIK_COOKIE_DOMAIN as I am testing it without set up domain and when I use no secrets from occasional 403 on outpost once or twice when setting up new instance, it seems to be working well. Once I replace password in the enviromental with file:///run/secrets/... for redis/secret key (checked at the moment), the Authentik starts but I keep getting repeated 403 outpost errors and the outpost shows as unhealthy. Once I replace it with plain password and reboot, seems just fine. As checked in earlier debug, passwords seem to be applied correctly so I am unsure what could be the problem. Edit: Checked redis and postgres passwords as secrets, it worked fine, once I loaded Authentik's secret key as secret from file then outpost goes unhealthy. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Describe the bug
Once server and worker are deployed, logs seem clear, something is processing but when I enter /if/flow/initial-setup/ I get Internal server error and logs are getting error spammed.
System: DSM 7, Synology
To Reproduce
Steps to reproduce the behavior:
With my custom compose, Server gets for few minutes:
{"event": "Forbidden: /api/v3/outposts/instances/", "level": "warning", "logger": "django.request", "timestamp": 1646763426.8009021}
{"error":"403 Forbidden","event":"Failed to fetch outpost configuration","level":"error","logger":"authentik.outpost.ak-api-controller","timestamp":"2022-03-08T18:17:06Z"}
and then calms down, from what I read it sets up permissions and should be fine.
Worker gets error logins about Docker.
Now I enter /if/flow/initial-setup/ on port 900, I get Internal Server Error.
Ok, maybe I configured something wrong with compose (If I did please point it out, as a baseline I tried to use most environments with default value to change them on later once I start up the server and see it working).
So I just started up basic setup from Authentik's compose with altering some values so they connect to my postgres and redis and using passowrds without secrets. Then Authentik throws errors before I even log in, but on the page also shows Internal Server Error.
Expected behavior
Webpage loads, no errors in logs, allows me to continue setup.
As a side note I notice that there is also 'Failed to load GeoIP database"' though the database is downloaded by GeoIP and mounted.
Logs
All logs attached in zip and dumped down after few minutes of Authentik running and then also after me trying to enter the website, separated with my and default (mostly) config.
logs.zip - compose examples included
Version and Deployment (please complete the following information):
Clearly I am doing something wrong, any help is appreciated.
The text was updated successfully, but these errors were encountered: