When i developed a droplet ubuntu 16 rails one click through rails 5 “PG::ConnectionBad fe_sendauth: no password supplied” , new york or san francisco alternatives or everywhere.
You are watching: Fe_sendauth: no password supplied
If a tried to execute “rails db:migrate” display me this error ..i tried to produce one more super user and also change the credentials from database.yaml yet continues via the same error
in some articles the human being say that is an error once the doplet is created
How i have the right to resolved? please this si the second droplet that i created
p.d : sorry for my english , i speack spanish
Add a comment
Join the rwandachamber.org Community
Join 1M+ other developers and:Get assist and share expertise in Q&ASubscribe to topics of interestGet courses & devices that aid you flourish as a developer or little service owner Join Now
Bundle install gets killed Question
Eextremely 2-4 weeks I get (111: Connection refused) while connecting to upstream. Why? Question
Add a comment
Leave a comment
Sign In to Comment
These answers are provided by our Community. If you uncover them helpful, show some love by clicking the heart. If you run into concerns leave a comment, or add your own answer to aid others.×
Submit an Answer
Submit an answer
You can type !ref in this text area to quickly search our full collection of tutorials, documentation & marketlocation offerings and insert the link!
Sign In to Answer
AHA May 14, 2020
If you look in your config/database.yml file, you are more than likely specifying localorganize as the database organize name, and you are most likely not supplying a password.
Using localhost immediately switches the link to a TCP link, and by default in postgres, TCP link auth technique is md5 (password required).
Here are 2 methods to solve:
Switch to UNIX Socket connection - If you’re simply running the postgres db in the exact same VM as Rails, you deserve to switch from TCP to UNIX Socket link by rerelocating localhold from the organize parameter in config/database.yml:
development: adapter: postgresql ... host: localhost ...to:
development: adapter: postgresql ... host: "" ...
See more: How Many Mealworms To Feed A Leopard Gecko, : Leopardgeckos
Specify a Password: - If you need to affix over TCP, make sure the username you are making use of in config/database.yml is configured in postgres and also collection a password by connecting to the postgres db from the command also line and running:
ALTER USER postgres PASSWORD "myPassword";and then specify the exact same password in your config/database.yml file:
development: adapter: postgresql ... host: localhold password: "myPassword" ...