dispatch icon indicating copy to clipboard operation
dispatch copied to clipboard

postgres role doesnt exist

Open manireddyk opened this issue 3 years ago • 4 comments

I have noticed in the new release, after the dispatch-build , when its asking to load sample data, I have give yes, there I could see this role error, does it effect anything image

& in the older release while initializing db, I saw this error dispatch-20220801- alembic.util.exc.CommandError: Can't locate revision identified by 'eb348d46afd0'

manireddyk avatar Dec 13 '22 12:12 manireddyk

If the role postgres in the database doesn't exist, you'll need to manually create it to unblock yourself. We can add that step to the install.sh script in the future.

mvilanova avatar Dec 13 '22 17:12 mvilanova

For me it happend because in the .env.example the default user if "dispatch", while dump is made on behalf of "postgres". I just replaced all mentions of "OWNER TO postgres" with "OWNER TO dispatch" in the downloaded dump: dispatch-sample-data.dump

the error was gone, do you think it could be a solution for the install.sh as well? to replace owner with the user mentioned in the config on the fly?

vindex10 avatar Dec 29 '22 17:12 vindex10

This issue is stale, because it has been open for 30 days with no activity. Remove the stale label or comment, or this will be closed in 5 days.

github-actions[bot] avatar Jan 29 '23 00:01 github-actions[bot]

This issue was closed, because it has been stalled for 5 days with no activity.

github-actions[bot] avatar Feb 03 '23 00:02 github-actions[bot]