Git Product home page Git Product logo

Comments (10)

thcrt avatar thcrt commented on June 16, 2024 1

I was able to work around this by going to https://auth.my.domain/if/flow/initial-setup/ -- note the trailing slash.

... initial-setup/ works, ... initial-setup doesn't.

Obviously this should be fixed, but this workaround should help in the meantime.

from authentik.

taoyx avatar taoyx commented on June 16, 2024

I also came into this issue with the latest release on Kubernetes (installed with helm)

Also, even I use this command:

kubectl exec -it deployment/authentik-worker -- ak create_recovery_key 10 akadmin

and gained the accesss to authentik, I cannot add application and provider.

and either worker and server pod don't report a error:(refer attached file)

The UI of administration area also looks strange

it was reported worker is NOT connected, even though from kubernets, the worker pod is running properly.
image

image

server.log
worker.log

from authentik.

taoyx avatar taoyx commented on June 16, 2024

the issue about worker does NOT always occur:

image

but I did encount a error when resetting akadmin password:

tyx@prod-k8s-master0:~$ k exec authentik-worker-6f98f5c69-dqsd4 -- ak create_recovery_key 10 akadmin
{"event": "Loaded config", "level": "debug", "logger": "authentik.lib.config", "timestamp": 1715018737.915451, "file": "/authentik/lib/default.yml"}
{"event": "Loaded environment variables", "level": "debug", "logger": "authentik.lib.config", "timestamp": 1715018737.9164197, "count": 31}
{"event": "Starting authentik bootstrap", "level": "info", "logger": "authentik.lib.config", "timestamp": 1715018738.277128}
{"event": "PostgreSQL connection successful", "level": "info", "logger": "authentik.lib.config", "timestamp": 1715018738.3010955}
{"event": "Redis Connection successful", "level": "info", "logger": "authentik.lib.config", "timestamp": 1715018738.3064187}
{"event": "Finished authentik bootstrap", "level": "info", "logger": "authentik.lib.config", "timestamp": 1715018738.3072946}
{"event": "Booting authentik", "level": "info", "logger": "authentik.lib.config", "timestamp": 1715018740.7064164, "version": "2024.4.1"}
{"event": "Enabled authentik enterprise", "level": "info", "logger": "authentik.lib.config", "timestamp": 1715018740.7116814}
{"event": "Loaded app settings", "level": "debug", "logger": "authentik.lib.config", "timestamp": 1715018740.7140284, "path": "authentik.enterprise.settings"}
{"event": "Loaded app settings", "level": "debug", "logger": "authentik.lib.config", "timestamp": 1715018740.7154827, "path": "authentik.enterprise.settings"}
{"event": "Loaded app settings", "level": "debug", "logger": "authentik.lib.config", "timestamp": 1715018740.7177207, "path": "authentik.events.settings"}
{"event": "Loaded app settings", "level": "debug", "logger": "authentik.lib.config", "timestamp": 1715018740.72222, "path": "authentik.sources.plex.settings"}
{"event": "Loaded app settings", "level": "debug", "logger": "authentik.lib.config", "timestamp": 1715018740.7266343, "path": "authentik.outposts.settings"}
{"event": "Loaded app settings", "level": "debug", "logger": "authentik.lib.config", "timestamp": 1715018740.7288077, "path": "authentik.blueprints.settings"}
{"event": "Loaded app settings", "level": "debug", "logger": "authentik.lib.config", "timestamp": 1715018740.7318976, "path": "authentik.sources.oauth.settings"}
{"event": "Loaded app settings", "level": "debug", "logger": "authentik.lib.config", "timestamp": 1715018740.7337625, "path": "authentik.policies.reputation.settings"}
{"event": "Loaded app settings", "level": "debug", "logger": "authentik.lib.config", "timestamp": 1715018740.7361283, "path": "authentik.crypto.settings"}
{"event": "Loaded app settings", "level": "debug", "logger": "authentik.lib.config", "timestamp": 1715018740.742469, "path": "authentik.providers.scim.settings"}
{"event": "Loaded app settings", "level": "debug", "logger": "authentik.lib.config", "timestamp": 1715018740.7455878, "path": "authentik.sources.ldap.settings"}
{"event": "Loaded app settings", "level": "debug", "logger": "authentik.lib.config", "timestamp": 1715018740.7490914, "path": "authentik.stages.authenticator_totp.settings"}
{"event": "Loaded app settings", "level": "debug", "logger": "authentik.lib.config", "timestamp": 1715018740.7519333, "path": "authentik.admin.settings"}
/ak-root/venv/lib/python3.12/site-packages/opencontainers/distribution/reggie/defaults.py:17: SyntaxWarning: invalid escape sequence '\('
  "http[s]?://(?:[a-zA-Z]|[0-9]|[$-_@.&+]|[!*\(\),]|(?:%[0-9a-fA-F][0-9a-fA-F]))+"
/ak-root/venv/lib/python3.12/site-packages/facebook/__init__.py:99: SyntaxWarning: invalid escape sequence '\d'
  version_regex = re.compile("^\d\.\d{1,2}$")
Switching to schema 'public'
Store this link safely, as it will allow anyone to access authentik as akadmin.

from authentik.

cicku avatar cicku commented on June 16, 2024

The issue went away after a server reboot, I wonder if certain service was not ready.

from authentik.

taoyx avatar taoyx commented on June 16, 2024

I also came into this issue with the latest release on Kubernetes (installed with helm)

Also, even I use this command:

kubectl exec -it deployment/authentik-worker -- ak create_recovery_key 10 akadmin

and gained the accesss to authentik, I cannot add application and provider.

and either worker and server pod don't report a error:(refer attached file)

The UI of administration area also looks strange

it was reported worker is NOT connected, even though from kubernets, the worker pod is running properly. image

image

server.log worker.log

On my side, this issue went away after I added the subPath (in Helm Values.yaml file) part for the custom.css. Without 'subPath' clause, the whole dist folder will be overwrite with the only custom file.

hint: you could use browser to check whether error is there.

It was my fault...

but the left part is still with dark color... I don't know why...

`
global:
volumeMounts:
- name: volume-media
mountPath: /media
- name: custom-css
mountPath: /web/dist/custom.css
subPath: custom.css

volumes: []

volumes:
- name: volume-media # tyx
persistentVolumeClaim:
claimName: pvc-authentik-media
- name: custom-css
configMap:
name: configmap-css`

from authentik.

depuits avatar depuits commented on June 16, 2024

I'm having a similar issue when upgrading from 2024.4.1 to 2024.4.2.

Following is a snippit from the worker log:

DBG event=Loaded app settings logger=authentik.lib.config timestamp=1715538755.9956036 path=authentik.sources.plex.settings
DBG event=Loaded app settings logger=authentik.lib.config timestamp=1715538755.9970844 path=authentik.providers.scim.settings
DBG event=Loaded app settings logger=authentik.lib.config timestamp=1715538755.999732 path=authentik.crypto.settings
/ak-root/venv/lib/python3.12/site-packages/opencontainers/distribution/reggie/defaults.py:17: SyntaxWarning: invalid escape sequence '\('"http[s]?://(?:[a-zA-Z]|[0-9]|[$-_@.&+]|[!*\(\),]|(?:%[0-9a-fA-F][0-9a-fA-F]))+"
_runit-log:x:998:authentik

from authentik.

excaliburzarau avatar excaliburzarau commented on June 16, 2024

Hello guys.

I am having the same issue. I have been trying to deploy authentik with Docker Swarm behind Caddy but i am having the same issue as reported on this thread. I don't belive i am doing something wrong but i do have to ask if you know that when passing through a folder to the container, should the container or folder be run with a specific user because currently it is the only thing i suspect.

Best Regards

from authentik.

taoyx avatar taoyx commented on June 16, 2024

Did you tried the solution I provided above?

In my case, it was because I mount a volume, which overwrite the original files, after using "-subPath' in K8s, it is working file (Docker has similiar solution.)

from authentik.

excaliburzarau avatar excaliburzarau commented on June 16, 2024

Did you tried the solution I provided above?

In my case, it was because I mount a volume, which overwrite the original files, after using "-subPath' in K8s, it is working file (Docker has similiar solution.)

Hi,

I did try something similar. described my workaround on the post below.

https://github.com/goauthentik/authentik/issues/9766

Unfortunately i has to go back to the version 2023.1.1 to got it to work without any change on the docker compose file. I performed some upgrades through versions and i was able to get it work and update it to the latest version.

Best Regards

from authentik.

excaliburzarau avatar excaliburzarau commented on June 16, 2024

I was able to work around this by going to https://auth.my.domain/if/flow/initial-setup/ -- note the trailing slash.

... initial-setup/ works, ... initial-setup doesn't.

Obviously this should be fixed, but this workaround should help in the meantime.

In my case this solution did not work for me. I had to recreate everything and saddly it did not work. It did work for me but thank you anyways. We now have some ways of bypassing this issue for the time being :)

Best Regards

from authentik.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.