-
Notifications
You must be signed in to change notification settings - Fork 116
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support custom installed username #100
Comments
Does the username actually matter? The filesystem doesn't store the username -- I'm guessing it's actually complaining about the UID (not the username), and that passing |
It does seem to matter. Permissions are set correctly. Passing the correct --user fails identically. |
Do you have a full reproducer? (Just the conversion doesn't exactly help me reproduce.) |
I can comment broadly on the scenario I ran in to. The containers were databases for an OLD
NEW
The volume folders were created during the initial run of the container. This resulted in the error above. The next step I took, was to find the UID:GID of the data using the command you outlined. I then added In the It's very possible I also didn't do something correctly, but then again I am not sure why the fix would have worked for me either. |
Reproduce
Able to migrate from old postgresql db which has a custom installed username .
Current
It fails with
database user "postgres" is not the install user
:With
--username=somecustomusername
it fails withFATAL: role "somecustomusername" does not exist
:Reason
Hardcoded username
postgres
.E.g.
docker-postgres-upgrade/13-to-16/Dockerfile
Line 26 in 5ac0d88
Workaround
Edit the
Dockerfile
:The text was updated successfully, but these errors were encountered: