Unable to start new Windmill instance with default docker due to "role 'root' does not exist'" error

I'm utilizing the default docker compose with the multiplayer and caddy services removed. When I start up the services I see this error on the db container:
2023-08-08T17:22:25.573703934Z 2023-08-08 17:22:25.573 UTC [431] FATAL: password authentication failed for user "root"
2023-08-08T17:22:25.573732259Z 2023-08-08 17:22:25.573 UTC [431] DETAIL: Role "root" does not exist.
2023-08-08T17:22:25.573703934Z 2023-08-08 17:22:25.573 UTC [431] FATAL: password authentication failed for user "root"
2023-08-08T17:22:25.573732259Z 2023-08-08 17:22:25.573 UTC [431] DETAIL: Role "root" does not exist.
Reviewing the server container I see this:
2023-08-08T17:17:40.260238531Z 2023-08-08T17:17:40.260191Z INFO windmill: Connecting to database...
2023-08-08T17:17:40.265424110Z Error: Connecting to database: error returned from database: password authentication failed for user "root"
2023-08-08T17:17:40.260238531Z 2023-08-08T17:17:40.260191Z INFO windmill: Connecting to database...
2023-08-08T17:17:40.265424110Z Error: Connecting to database: error returned from database: password authentication failed for user "root"
I logged into the db container, installed curl, and ran the "init-db-as-superuser.sql" script but the error continued to occur.
14 Replies
rubenf
rubenf10mo ago
The default docker compose does not use a root user to connect to the db so you probably did more modifications than that
mindofbeholder
mindofbeholder10mo ago
I can provide my file if you'd like to see it.
rubenf
rubenf10mo ago
Sure Are you using the .env file as well ?
mindofbeholder
mindofbeholder10mo ago
Yerp
rubenf
rubenf10mo ago
Can you send it as well
mindofbeholder
mindofbeholder10mo ago
Sorry have to remove and re-add. Left something in there.
rubenf
rubenf10mo ago
well yeah your DATABASE_URL is: DATABASE_URL=postgres://db that's what doesn't work
mindofbeholder
mindofbeholder10mo ago
I appreciate you taking the time to identify the issue. Can you provide guidance on what that should be? windmill_user@db? I'm not really an ops guy so this is a little out of my wheelhouse
rubenf
rubenf10mo ago
why not use the default .env provided ?
mindofbeholder
mindofbeholder10mo ago
Because I didn't see it until you just mentioned it. Thanks. That's on me. Thanks again for taking the time.
rubenf
rubenf10mo ago
no worries, maybe it's a sign it wasn't clear enough
mindofbeholder
mindofbeholder10mo ago
I was reading through the self host article and clicked through to the compose. Didn't even think to back up a level on the repo and look for the .env You do have curl commands specifically calling out to copy down the .env but I guess I just glossed right over it.
Want results from more Discord servers?
Add your server
More Posts
Why opening a flow & closing it without changing anything, shows unsaved changes in next open.I created a flow. saved it .closed it open it again (by edit button). changed nothing closed. when oschedule in different workspaces with same name override each otherIf i create schedule with name ABC in workspace 1 and schedule with name ABC in workspace 2, workspaUtilities imported from scripts are not targeted by workspace deploy featureHi there, I was using the deploy EE feature that allows one to deploy a flow or scripts from a worksI have a question along similar is thisI have a question along similar "is this a good idea" lines: is it sane to use windmill as a comprehWe improved the Audit Logs page designWe improved the Audit Logs page design and we added more filters!🌟 An offer for the role of founding engineer 🌟hey @rubenf I discovered Windmill a few months ago while looking for alternatives to Pipedream. IConfused about "writer" permission - not working as intendedSo I have the following setup: a folder `ops` and a group named `engineers`. The `engineers` group h[CLI] --silent still printing unwanted logs using wmill flow runI added the `--silent` flag to my `wmill flow run` command but it still prints `WaitingForPriorSteps[CLI] --debug conflicts with --data in short option form for wmill flow run``` wmill flow run some_flow -d '{ "someId": "f14661818ab7a5cf917ff1c17a663de" }' Debug logging enabIs there a way to self-host on as Raspberry Pi?I have a Raspberry-Pi 4 with 4GB RAM and tried to self-host via docker compose, but i just get the e