pgroll
pgroll copied to clipboard
pg: role "postgres" does not exist on pgroll init
I got just got pgroll from homebrew (pgroll version 0.14.1).
When I try to run pgroll init I get
Error: pq: role "postgres" does not exist
The --role param seems to be ignored.
➜ pgroll git:(master) pgroll init
Error: pq: role "postgres" does not exist
➜ pgroll git:(master) pgroll init --role gg
Error: pq: role "postgres" does not exist
➜ pgroll git:(master) pgroll --role gg init
Error: pq: role "postgres" does not exist
➜ pgroll git:(master) pgroll init --role gg here
Error: pq: role "postgres" does not exist
➜ pgroll git:(master) pgroll init here --role gg
Error: pq: role "postgres" does not exist
➜ pgroll git:(master) pgroll init --role gg here
What am I missing? Is this a bug?
I ran into a similar issue.
Check that you don't already have a postgres server running locally instead of the docker image
run lsof -i :5432
pgroll doesn't seem to be taking the --role param at all. Doesn't matter where I put it. Other commands give similar result.