DEV Community

Discussion on: Installing Forem in Linux

Collapse
 
sidcraftscode profile image
sid

I got this error

rails aborted!
PG::ConnectionBad: fe_sendauth: no password supplied
/home/sid/forem/app/lib/database.rb:9:in `table_exists?'
/home/sid/forem/app/models/profile.rb:53:in `refresh_attributes!'
/home/sid/forem/app/models/profile.rb:62:in `<class:Profile>'
/home/sid/forem/app/models/profile.rb:1:in `<main>'
/home/sid/forem/app/models/user.rb:60:in `block (2 levels) in <class:User>'
/home/sid/forem/app/models/user.rb:48:in `<class:User>'
/home/sid/forem/app/models/user.rb:1:in `<main>'
/home/sid/forem/vendor/cache/devise-0cd72a56f984/lib/devise.rb:316:in `get'
/home/sid/forem/vendor/cache/devise-0cd72a56f984/lib/devise/mapping.rb:83:in `to'
/home/sid/forem/vendor/cache/devise-0cd72a56f984/lib/devise/mapping.rb:78:in `modules'
/home/sid/forem/vendor/cache/devise-0cd72a56f984/lib/devise/mapping.rb:95:in `routes'
/home/sid/forem/vendor/cache/devise-0cd72a56f984/lib/devise/mapping.rb:162:in `default_used_route'
/home/sid/forem/vendor/cache/devise-0cd72a56f984/lib/devise/mapping.rb:72:in `initialize'
/home/sid/forem/vendor/cache/devise-0cd72a56f984/lib/devise.rb:346:in `new'
/home/sid/forem/vendor/cache/devise-0cd72a56f984/lib/devise.rb:346:in `add_mapping'
/home/sid/forem/vendor/cache/devise-0cd72a56f984/lib/devise/rails/routes.rb:243:in `block in devise_for'
/home/sid/forem/vendor/cache/devise-0cd72a56f984/lib/devise/rails/routes.rb:242:in `each'
/home/sid/forem/vendor/cache/devise-0cd72a56f984/lib/devise/rails/routes.rb:242:in `devise_for'
/home/sid/forem/config/routes.rb:10:in `block in <main>'
/home/sid/forem/config/routes.rb:3:in `<main>'
/home/sid/forem/config/application.rb:73:in `block in <class:Application>'
/home/sid/forem/config/environment.rb:5:in `<main>'
bin/rails:4:in `<main>'
Tasks: TOP => search:setup => environment
(See full trace by running task with --trace)

== Command ["RAILS_ENV=\"test\" bin/rails search:setup"] failed ==
Enter fullscreen mode Exit fullscreen mode
Collapse
 
akhilnaidu profile image
Akhil Naidu

Hey, the problem you are facing here is because of the non-configuration of DATABASE_URL properly.

I'm updating this article again. Until you see a clear indication at the top of the post saying Updated with 2021, consider it work under progress.

Meanwhile, you can have a quick peek at where this is going. I'm actively updating this article rather than in passive mode.