Installer fails because of postgres password

When using the installer from ash-hq:
mix archive.install hex igniter_new --force
mix archive.install hex phx_new 1.8.0-rc.3 --force

mix igniter.new my_app --with phx.new --install ash,ash_phoenix \
--install ash_postgres,ash_authentication \
--install ash_authentication_phoenix,ash_admin \
--install live_debugger,tidewave --install ash_ai \
--auth-strategy magic_link --yes

cd my_app && mix ash.setup
mix archive.install hex igniter_new --force
mix archive.install hex phx_new 1.8.0-rc.3 --force

mix igniter.new my_app --with phx.new --install ash,ash_phoenix \
--install ash_postgres,ash_authentication \
--install ash_authentication_phoenix,ash_admin \
--install live_debugger,tidewave --install ash_ai \
--auth-strategy magic_link --yes

cd my_app && mix ash.setup
I get
18:49:17.441 [error] Postgrex.Protocol (#PID<0.217.0>) failed to connect: ** (Postgrex.Error) FATAL 28P01 (invalid_password) password authentication failed for user "postgres"
18:49:17.441 [error] Postgrex.Protocol (#PID<0.217.0>) failed to connect: ** (Postgrex.Error) FATAL 28P01 (invalid_password) password authentication failed for user "postgres"
I guess it expects "postgres" as password and my postgres isn't set up with the default password. Can this be changed to either ask for the password or gives me the chance to edit the dev.exs?
5 Replies
ZachDaniel
ZachDaniel•4mo ago
🤔 not necessarily possible TBH but its just that last mix ash.setup command perhaps we can wrap it somehow to explain the failure if it happens but you can go edit the config file and rerun
Nefcairon
NefcaironOP•4mo ago
would be great for for newbies
Nefcairon
NefcaironOP•4mo ago
@ZachDaniel It asks me if I want to use "register_with_password", and when I say yes, it asks me to enter the name of the action? Isn't that "register_with_password"?
No description
ZachDaniel
ZachDaniel•4mo ago
Yeah, probably if there is just one we could just say "would you like to use this action"
Nefcairon
NefcaironOP•4mo ago
ah sorry, this comes from
mix ash_phoenix.gen.live --domain MyApp.Accounts --resource MyApp.Accounts.User --resource-plural users
mix ash_phoenix.gen.live --domain MyApp.Accounts --resource MyApp.Accounts.User --resource-plural users

Did you find this page helpful?