#upgrade failed 23.8.3 to 23.10.0

1 messages ยท Page 1 of 1 (latest)

tawdry halo
#

Hello

I tried to update my authentik server, but unfortunately without success

The error is as follows:
Unapplying authentik_stages_authenticator_totp.0010_alter_totpdevice_key... FAKED
Unapplying authentik_stages_authenticator_totp.0009_auto_20190420_0723... FAKED
2023-10-26 17:17:41 [debug ] Running system_crit command command=./manage.py migrate authentik_stages_authenticator_totp 0009_auto_20190420_0723 --fake
DBG event=Loaded config logger=authentik.lib.config timestamp=1698340662.9654481 file=/authentik/lib/default.yml
DBG event=Loaded environment variables logger=authentik.lib.config timestamp=1698340662.96620

green ember
#

can you post the full logs from the server container

tacit leaf
tawdry halo
#

@tacit leaf Thanks, I have the same error, so I don't put the log file here

sick salmon
#

another here, my logs look really close to the ones above. Rollback to 2023.8.3 worked
also FWIW logging in with 2023.8.3 then upgrading to 2023.10.0 allows the login session to stay. So error only affects new logins

tacit leaf
#

no worries :D

tawdry halo
#

๐Ÿ™‚

real barn
#

Yes, I also have the same error...

green ember
tawdry halo
#

ohhh that was fast, I see it has been fixed ๐Ÿ™‚ will it be included in a new release?

#

ok i seeee 10.1 thx

wheat sierra
#

I still seem to be hitting this problem upgrading from 2023.6.0 to 2023.10.1

#

django.db.utils.ProgrammingError: column "throttling_failure_count" of relation "authentik_stages_authenticator_static_staticdevice" already exists

#

I've tried rolling back to prior versions without success, perhaps I'm doing it wrong. I diff'ed the docker-compose.yml files and can see it's only a couple of lines changing between versions, so I'm not sure what I'm missing or why I can't roll back easily.

green ember
#

run this in one of the containers and then restart them ak migrate authentik_stages_authenticator_static 0009_throttling --fake ak migrate authentik_stages_authenticator_totp 0009_auto_20190420_0723 --fake

wheat sierra
#

Thanks. Which container?

#

worker, server, or doesn't matter?

green ember
#

doesn't matter

wheat sierra
#

They're both perpetually in the state of "Restarting"

#

hard target to hit

#

I keep getting Error response from daemon: Container 00ec75906d55b05e6a65cdbaf97188233683bef1b4b16daa88484e8d3416a791 is restarting, wait until the container is running

green ember
#

add command: debug to one of the containers in the compose

wheat sierra
#

ok

#

Where's ak located? I found one in /lifecycle/ak

green ember
#

it's in the path, you can just run ak

wheat sierra
#

it wasn't in the path

#

k$ docker compose exec server "ak migrate authentik_stages_authenticator_static 0009_throttling --fake" OCI runtime exec failed: exec failed: unable to start container process: exec: "ak migrate authentik_stages_authenticator_static 0009_throttling --fake": executable file not found in $PATH: unknown

green ember
#

remove the quotation marks

wheat sierra
#

making progress

#

BOOM!

#

Thank you @green ember !!!

green ember
wheat sierra
#

Eh, well, new problems. I've got Authentik as my identity provider for my Proxmox server. When I attempt to log in, I get this odd web page:

#

And on my Synology NAS, it just never loads.

#

(these are the only two things I've used Authentik for thus far)

green ember
#

check the logs

wheat sierra
#

maybe a cookie clearing will help

#

nope

#

error in log:

#

{"event": "Internal Server Error: /api/v3/flows/executor/default-authentication-flow/", "exception" : [{"exc_type": "ProgrammingError", "exc_value": "column authentik_stages_authenticator_static_authenticatorstaticstage.token _length does not exist\nLINE 1: ...r_static_authenticatorstaticstage\".\"token_count\", \"authentik...\n

green ember
#

did you restart the containers after running the command above

wheat sierra
#

yes. I'll do it again just to be sure.

#

yeah, same deal.

#

having trouble uploading a log...

dreamy canyon
#

I am also experiencing the same problem as OMG Pickles. I've followed the same steps laid out for them and am now also seeing the page with HTML.

#

Asked Docker to give me the log from the server container and this is what it sent over

green ember
#

I've added a disclaimer to only upgrade from 2023.8 to 2023.10 for the time being https://goauthentik.io/docs/releases/2023.10, the linked issue https://github.com/goauthentik/authentik/issues/7326 has a workaround for now

GitHub

Describe your question/ Just updated to 2023.10.1 and since I'm already logged into authentik on a browser, everything is working, but since I tried another browser, I seem to be not getting th...

wheat sierra
#

@green ember Can you link to the comment that has the correct workaround please? There are at least two comments suggesting making manual database changes.

#

Nevermind, it appears the "fix" is this psql command: alter table authentik_stages_authenticator_static_authenticatorstaticstage add column token_length INTEGER default 12;

wheat sierra
#

After the two ak commands shared here #1167151382776791250 message plus the psql command referenced in my previous message, my environment is working again.

steel drift
#

Originally I had the same issue but then ran the migrations and now I have a new error, "django.db.utils.ProgrammingError: column "throttling_failure_count" of relation "authentik_stages_authenticator_totp_totpdevice" already exists" any ideas?

coarse lake
green ember