How to update to 2.0.1? No user found in database #270
-
|
I am trying out 2.0.1 for the first time. Upgrading from 1.9.6. The environment is kubernetes, but the sqlite is backed up to S3 with litestream, the S3 is also the storage for the files, and the auth is Entra ID. But I am getting this error in the test environment if I try to upgrade. Going to /setup gives me nothing. Just the nginx throwing 503. What is this "super admin" and why is it necessary? And how do I fix this problem in a k8s world?
The ENV var GOKAPI_ADMIN_USER is just set to my email at the moment. The one I use for the Entra ID login as well. Assumed I wouldn't need a password then. ...
- image: harbor.../mirror/docker.io/f0rc3/gokapi:v2.0.1
imagePullPolicy: "IfNotPresent"
name: gokapi
env:
- name: GOKAPI_ADMIN_USER
value: "malte.hviid-magnussen@group.one"
...
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
|
It looks like there was a problem during the upgrade, but I can't say what exactly went wrong. Do you still have the logs from the upgrade? |
Beta Was this translation helpful? Give feedback.
It looks like there was a problem during the upgrade, but I can't say what exactly went wrong. Do you still have the logs from the upgrade?
You should be able to fix it by running
gokapi --deployment-passwordand entering a random password, as long as there are no other users. Otherwise you need to call the setup again withgokapi --reconfigure, afterwards it should work. The environment variableGOKAPI_ADMIN_USERneeds only to be set during the upgrade, you can now remove it, as your configuration file is already on the correct version 22.