Project

General

Profile

Actions

Defect #19409

closed

Cannot install Redmine 3.0.1 on Ubuntu 14.04.2

Defect #19409: Cannot install Redmine 3.0.1 on Ubuntu 14.04.2

Added by Anonymous over 11 years ago. Updated over 11 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Resolution:
Invalid
Affected version:

Description

Following commands should be self-explanatory:

suvjunmd@ubuntu:/usr/share/redmine-3.0.1$ sudo RAILS_ENV=production rake db:migrate
Redmine requires Bundler 1.5.0 or higher (you're using 1.3.5).
Please update with 'gem update bundler'.
suvjunmd@ubuntu:/usr/share/redmine-3.0.1$ sudo gem update bundler
Updating installed gems
Nothing to update
suvjunmd@ubuntu:/usr/share/redmine-3.0.1$ bundle --version
Bundler version 1.8.5
suvjunmd@ubuntu:/usr/share/redmine-3.0.1$ sudo RAILS_ENV=production rake db:migrate
Redmine requires Bundler 1.5.0 or higher (you're using 1.3.5).
Please update with 'gem update bundler'.


Related issues 2 (0 open — 2 closed)

Has duplicate Redmine - Defect #19469: Redmine 3.0.1 is not starting on Ubuntu 14.04.2ClosedActions
Has duplicate Redmine - Defect #20682: what wrong with my redmine (error Redmine requires Bundler 1.5.0 or higher (you're using 1.3.5).)ClosedActions

Updated by Sergio RG over 11 years ago Actions #1

Maybe related... on Ubuntu 12.04

Bundle complete! 28 Gemfile dependencies, 48 gems now installed.
Gems in the groups development, test and rmagick were not installed.
Use `bundle show [gemname]` to see where a bundled gem is installed.
gusi@node:~/redmine-3.0.1$ rake generate_secret_token
gusi@node:~/redmine-3.0.1$ /ruby bin/rails server -p 3006 -e production
Could not find thread_safe-0.3.5 in any of the sources
Run `bundle install` to install missing gems.
gusi@node:~/redmine-3.0.1$ gem install thread_safe
Successfully installed thread_safe-0.3.5
Parsing documentation for thread_safe-0.3.5
Installing ri documentation for thread_safe-0.3.5
Done installing documentation for thread_safe after 0 seconds
1 gem installed
gusi@node:~/redmine-3.0.1$ /ruby bin/rails server -p 3006 -e production
Could not find thread_safe-0.3.5 in any of the sources
Run `bundle install` to install missing gems.

Updated by Go MAEDA over 11 years ago Actions #2

suvjunmd, please try: sudo RAILS_ENV=production bundle exec rake db:migrate

Sergio RG, please try: bundle exec rails server -p 3006 -e production

Updated by Sergio RG over 11 years ago Actions #3

Sergio RG, please try: bundle exec rails server -p 3006 -e production

It works. Thanks!!!

Updated by Go MAEDA over 11 years ago Actions #4

Updated by Go MAEDA over 11 years ago Actions #5

  • Status changed from New to Needs feedback

Updated by Anonymous over 11 years ago Actions #6

The command sudo RAILS_ENV=production bundle exec rake db:migrate worked like a charm. Next I did sudo RAILS_ENV=production bundle exec rake redmine:load_default_data and considered the installation phase complete. But when trying to access Redmine an error message appeared:

Web application could not be started
Redmine requires Bundler 1.5.0 or higher (you're using 1.3.5).
Please update with 'gem update bundler'. (SystemExit)
  /usr/share/redmine-3.0.1/Gemfile:4:in `abort'
  /usr/share/redmine-3.0.1/Gemfile:4:in `eval_gemfile'
  /usr/lib/ruby/vendor_ruby/bundler/dsl.rb:30:in `instance_eval'
  /usr/lib/ruby/vendor_ruby/bundler/dsl.rb:30:in `eval_gemfile'
  /usr/lib/ruby/vendor_ruby/bundler/dsl.rb:9:in `evaluate'
  /usr/lib/ruby/vendor_ruby/bundler/definition.rb:19:in `build'
  /usr/lib/ruby/vendor_ruby/bundler.rb:148:in `definition'
  /usr/lib/ruby/vendor_ruby/bundler.rb:116:in `setup'
  /usr/lib/ruby/vendor_ruby/bundler/setup.rb:17:in `<top (required)>'
  /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
  /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
  /usr/lib/ruby/vendor_ruby/phusion_passenger/loader_shared_helpers.rb:245:in `block in run_load_path_setup_code'
  /usr/lib/ruby/vendor_ruby/phusion_passenger/loader_shared_helpers.rb:348:in `running_bundler'
  /usr/lib/ruby/vendor_ruby/phusion_passenger/loader_shared_helpers.rb:243:in `run_load_path_setup_code'
  /usr/share/passenger/helper-scripts/rack-preloader.rb:100:in `preload_app'
  /usr/share/passenger/helper-scripts/rack-preloader.rb:158:in `<module:App>'
  /usr/share/passenger/helper-scripts/rack-preloader.rb:29:in `<module:PhusionPassenger>'
  /usr/share/passenger/helper-scripts/rack-preloader.rb:28:in `<main>'

Updated by Go MAEDA over 11 years ago Actions #7

Please upgrade bundler command by running the following command as the error message says.

gem update bundler

Updated by Go MAEDA over 11 years ago Actions #8

  • Status changed from Needs feedback to Closed
  • Resolution set to Invalid

Updated by Toshi MARUYAMA over 11 years ago Actions #9

  • Has duplicate Defect #19469: Redmine 3.0.1 is not starting on Ubuntu 14.04.2 added

Updated by H W over 11 years ago Actions #10

Hi, I have the same problem.

Redmine requires Bundler 1.5.0 or higher (you're using 1.3.5).

But

$ bundle -v

gives

Bundler version 1.9.2

And gem list also lists bundler as version 1.9.2

Updated by Youichi Okada over 11 years ago Actions #11

I got similar problem.
The system has 2 bundle version.

shell > where bundle
/usr/bin/bundle
/usr/local/bin/bundle

shell> /usr/bin/bundle -v
Bundler version 1.3.5
shell> /usr/local/bin/bundle
Bundler version 1.10.2

Redmine is running on apahce, and apache's PATH environment /usr/local/bin is prior to /usr/bin.

--- from error message ---
Environment variables
APACHE_RUN_DIR = /var/run/apache2
APACHE_PID_FILE = /var/run/apache2/apache2.pid
PATH = /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
---

It looks ruby's path cognizancing problem or I fail the path.

I already have newer bunder from gem so I deinstall bundler at ubuntu's apt package.

shell> sudo aptitude purge bundler

Then it works well.

Updated by Toshi MARUYAMA about 11 years ago Actions #12

  • Has duplicate Defect #20682: what wrong with my redmine (error Redmine requires Bundler 1.5.0 or higher (you're using 1.3.5).) added
Actions

Also available in: PDF Atom