All of a sudden zitadel console giving "error_description":"Errors.App.NotFound"
Not sure what changed, but when trying to access the console, I get this error:
{"error":"invalid_request","error_description":"Errors.App.NotFound"}
I did update the container image recently, but not sure if that was related or not. The console app is listed twice in my projections.app7 postgres table. I attempted removing one, but there was no change. I'm going to try to restore the deleted one and delete the other, but figured i'd as for some help here while I work on that.24 Replies
restoring and deleting the other console app in the apps7 table had no affect
I am also now noticing there are 2 copies of the various *-API apps in the table.
Can you share a little how you deployed zitadel and what version you are using?
deployed via docker compose. version is 2.65.0
i did do a restore from my previous cockroach-db based install as the migration was not working for me
i'm assuming this is something to do with having restored my old instance to this one, but i'm not sure where to go to fix it. do i need to delete all of the -API and console app references? if so from what db tables to be sure everything is properly cleaned up?
downgrading to 2.64.2 has no affect
should there be something in one of the apps__configs tables for the console?
so doing some DB Digging, it appears the console app id is the older one of the 2 that exist in my apps table, it is enabled as far as i can see, and it does exist. I'm unsure what they're used for, but the
sequence
numbers are different in the instances and apps tablesOk, so you use CRDB, right?
Can you share the stdout logs from Zitadel please.
no, using postgres now. was using CRDB prior to october, but console worked after the re-spin and switch to postgres
and yes, let me grab the logs
Hm how do you compose args look like?
I got the feeling that some migration were not run
that's my assumption too
compose file is this:
Hm that looks right, its kind of weird to not see the migrations at statup of zitadel
This is really weird
so i just noticed in an old db backup, there is a config for the console in the apps_oidc_configs table, but they are not present if i do a select now on that table
should i re-add that to the db?
you can give it a try 😄
Its broken already
an other idea would be to try the migration cleanup
how do i trigger that?
I think it was somehting like
'setup --masterkey "$ZITADEL_MASTERKEY" cleanup'
So it should be an arg from the zitadel binarythanks, i have to run, but i will try that later and report back. I appreciate the help
Happy to assist!
cleanup didn't appear to do the trick, going to try restoring the oidc table tomorrow.
restoring the missing oidc_configs entries also did not resolve. 😦 still the same errors in the zitadel container log:
Hmm can you try the following
start-from-setup --init-projections=true (add the rest of your arguments)
sure, give me a couple
no change, same behavior and log entries
just as another point of reference, this appears to have only broken the console itself, i can still use other apps just fine, which is the only thing making me hesitate blowing the whole thing up and re-configuring it. well that and i don't want to have to deal with resetting the few user passwords that are setup.
Hm this is really weird.
Do you in the startup logs from zitadel see that migrations are being checked/run?
yes, and i don't notice any failures, but let me dig through them just to be sure i didn't miss anything
yeah, i don't see any failures
is there a way to get a backup of the users and apps without being able to acquire and admin token? at this point i'm ok with having to reconfigure the rest, but would prefer to not have to nuke my users/apps config
Hm let us fix your install
@adlerhurst or @livio might have a clue what fails
ok, i'm definitely open to that, the less work the better haha.
if you need or want any database content or anything, just let me know
i do see several duplicate tables for example
user_auth_methods4
and user_auth_methods5
, which is firming up the idea of migrations not doing something properly in my opinion
i just have no clue how to fix it
Holy crap i found the issue. No idea what caused it, but i had 2 orgs in the projections.orgs table, one was set to disabled. I enabled it, and now i can get into console.
the disabled org was the one created when I did a fresh install, and then did a restore from my old crdb-based backup. apparently you can't disable the default org?
@FFO thanks again for the help sorting through this.Oh nice catch. Yeah the default project can/should not be disabled since it holds console and the apis.
I wonder though how that happend 😄
I probably did it trying to clean up after the import, i 100% blame myself 😄