Project

General

Profile

ERROR: bundle install

Added by Daniel Medeiros over 9 years ago

Don't run Bundler as root. Bundler can ask for sudo if it is needed, and
installing your bundle as root will break this application for all non-root
users on this machine.

[!] There was an error parsing `Gemfile`: undefined method `[]' for nil:NilClass. Bundler cannot continue.

  1. from /var/www/html/redmine/Gemfile:52
  2. -------------------------------------------
  3. database_config = YAML::load(ERB.new(IO.read(database_file)).result)
    > adapters = database_config.values.map {|c| c['adapter']}.compact.uniq
  4. if adapters.any?
  5. -------------------------------------------

Replies (3)

RE: ERROR: bundle install - Added by Toshi MARUYAMA over 9 years ago

Check config/database.yml permission.

RE: ERROR: bundle install - Added by Miroslav Zaťko about 9 years ago

Same problem here, branch 3.1-stable
What permissions should config/database.yml have?
Is 644 OK?

RE: ERROR: bundle install - Added by Cesium Cesium about 8 years ago

Permissions is 664... But I found that the issue was related to the fact that postgres db wasn't accessible... I edit pg_hba.conf and set postgres to trust :
"local all postgres trust"
Previouly on peer...

Then sudo service postgres reload

sudo rake generate_secret_token

And it worked...

    (1-3/3)