Migrate-AdminDB Fails With User Not admindbuser #137
Labels
bug
Something isn't working
triage/accepted
Indicates an issue or PR is ready to be actively worked on.
Milestone
Expected vs actual behavior
Despite allowing one to change the default user for postgres, if one does not use
admindbuser
, thenmigrate-admindb
step will fail with:error: Dirty database version 1. Fix and force version.
Attempting the same
up
command when locally connected to the database using the steps here results in the following error:The reason for this is because of this command:
Which is found here
Steps to reproduce the bug
admindbuser
in postgresAre you using the latest version of the project?
You can check your version by running
helm ls|grep '^<deployment-name>'
or using pctl,pctl version
, and provide the output.What is your environment setup? Please tell us your cloud provider, operating system, and include the output of
kubectl version --output=yaml
andhelm version
. Any other information that you have, eg. logs and custom values, is highly appreciated!Kubectl
helm version
(optional) If you have ideas on why the bug happens or how it can be solved, please provide it here
The user that is specified in DSN should be the same one that is granted those rights. An additional command should be added to the migrate-admindb container that replaces
admindbuser
with the appropriate value prior to running the up command. A simple sed command should be sufficient given $DB_USER is an accessible environment variable.The text was updated successfully, but these errors were encountered: