Installed Redmine through debian apt, now can't install session store
Added by Alastair McFarlane about 12 years ago
I'm new to Redmine, having spent a long time bashing my head against a wall (gforge/fusionforge), and am having some problems getting it set up. Can anyone help?
I installed Redmine on my Debian system using apt-get, installed and got bundler working (after some problems initially through running it with sudo), and have a passenger-running apache site set up and running pointing at redmine/public. However, it seems the session store hasn't been created (error: No such file or directory - /etc/redmine/default/session.yml), and running the commands in the install guide result in the following:
$ rake generate_secret_token ... (somestack-tracey stuff - all warnings and no errors as fas as I can see) rake aborted! cannot load such file -- active_support
I've tried
gem install active_support, which was successful, and
gem listshows that it is installed.
Let me know if I'm missing any information that you need!
Replies (10)
RE: Installed Redmine through debian apt, now can't install session store
-
Added by William Roush about 12 years ago
Can you include the stack trace?
RE: Installed Redmine through debian apt, now can't install session store
-
Added by Alastair McFarlane about 12 years ago
$ rake generate_secret_token NOTE: Gem.source_index is deprecated, use Specification. It will be removed on or after 2011-11-01. Gem.source_index called from /usr/share/redmine/vendor/rails/railties/lib/rails/gem_dependency.rb:21. /home/ieyasu/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/rake/version.rb:2: warning: already initialized constant VERSION /home/ieyasu/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/rake/version.rb:5: warning: already initialized constant MAJOR /home/ieyasu/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/rake/version.rb:5: warning: already initialized constant MINOR /home/ieyasu/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/rake/version.rb:5: warning: already initialized constant BUILD /home/ieyasu/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/rake/version.rb:6: warning: already initialized constant NUMBERS /home/ieyasu/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/rake.rb:27: warning: already initialized constant RAKEVERSION /home/ieyasu/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/rake/early_time.rb:17: warning: already initialized constant EARLY /home/ieyasu/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/rake/alt_system.rb:32: warning: already initialized constant WINDOWS /home/ieyasu/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/rake/application.rb:31: warning: already initialized constant DEFAULT_RAKEFILES WARNING: Possible conflict with Rake extension: String#ext already exists WARNING: Possible conflict with Rake extension: String#pathmap already exists /home/ieyasu/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/rake/task_arguments.rb:77: warning: already initialized constant EMPTY_TASK_ARGS /home/ieyasu/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/rake/invocation_chain.rb:49: warning: already initialized constant EMPTY /home/ieyasu/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/rake/file_utils.rb:9: warning: already initialized constant RUBY /home/ieyasu/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/rake/file_utils.rb:86: warning: already initialized constant LN_SUPPORTED /home/ieyasu/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/rake/file_utils_ext.rb:16: warning: already initialized constant DEFAULT /home/ieyasu/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/rake/dsl_definition.rb:150: warning: already initialized constant DeprecatedCommands /home/ieyasu/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/rake/file_list.rb:44: warning: already initialized constant ARRAY_METHODS /home/ieyasu/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/rake/file_list.rb:47: warning: already initialized constant MUST_DEFINE /home/ieyasu/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/rake/file_list.rb:51: warning: already initialized constant MUST_NOT_DEFINE /home/ieyasu/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/rake/file_list.rb:55: warning: already initialized constant SPECIAL_RETURN /home/ieyasu/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/rake/file_list.rb:61: warning: already initialized constant DELEGATING_METHODS /home/ieyasu/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/rake/file_list.rb:364: warning: already initialized constant DEFAULT_IGNORE_PATTERNS /home/ieyasu/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/rake/file_list.rb:370: warning: already initialized constant DEFAULT_IGNORE_PROCS /home/ieyasu/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/rake.rb:68: warning: already initialized constant FileList /home/ieyasu/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/rake.rb:69: warning: already initialized constant RakeFileUtils rake aborted! cannot load such file -- active_support (See full trace by running task with --trace)
Running the command with
--trace
gives
$rake --trace generate_secret_token NOTE: Gem.source_index is deprecated, use Specification. It will be removed on or after 2011-11-01. Gem.source_index called from /usr/share/redmine/vendor/rails/railties/lib/rails/gem_dependency.rb:21. /home/ieyasu/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/rake/version.rb:2: warning: already initialized constant VERSION /home/ieyasu/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/rake/version.rb:5: warning: already initialized constant MAJOR /home/ieyasu/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/rake/version.rb:5: warning: already initialized constant MINOR /home/ieyasu/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/rake/version.rb:5: warning: already initialized constant BUILD /home/ieyasu/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/rake/version.rb:6: warning: already initialized constant NUMBERS /home/ieyasu/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/rake.rb:27: warning: already initialized constant RAKEVERSION /home/ieyasu/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/rake/early_time.rb:17: warning: already initialized constant EARLY /home/ieyasu/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/rake/alt_system.rb:32: warning: already initialized constant WINDOWS /home/ieyasu/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/rake/application.rb:31: warning: already initialized constant DEFAULT_RAKEFILES WARNING: Possible conflict with Rake extension: String#ext already exists WARNING: Possible conflict with Rake extension: String#pathmap already exists /home/ieyasu/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/rake/task_arguments.rb:77: warning: already initialized constant EMPTY_TASK_ARGS /home/ieyasu/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/rake/invocation_chain.rb:49: warning: already initialized constant EMPTY /home/ieyasu/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/rake/file_utils.rb:9: warning: already initialized constant RUBY /home/ieyasu/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/rake/file_utils.rb:86: warning: already initialized constant LN_SUPPORTED /home/ieyasu/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/rake/file_utils_ext.rb:16: warning: already initialized constant DEFAULT /home/ieyasu/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/rake/dsl_definition.rb:150: warning: already initialized constant DeprecatedCommands /home/ieyasu/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/rake/file_list.rb:44: warning: already initialized constant ARRAY_METHODS /home/ieyasu/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/rake/file_list.rb:47: warning: already initialized constant MUST_DEFINE /home/ieyasu/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/rake/file_list.rb:51: warning: already initialized constant MUST_NOT_DEFINE /home/ieyasu/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/rake/file_list.rb:55: warning: already initialized constant SPECIAL_RETURN /home/ieyasu/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/rake/file_list.rb:61: warning: already initialized constant DELEGATING_METHODS /home/ieyasu/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/rake/file_list.rb:364: warning: already initialized constant DEFAULT_IGNORE_PATTERNS /home/ieyasu/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/rake/file_list.rb:370: warning: already initialized constant DEFAULT_IGNORE_PROCS /home/ieyasu/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/rake.rb:68: warning: already initialized constant FileList /home/ieyasu/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/rake.rb:69: warning: already initialized constant RakeFileUtils rake aborted! cannot load such file -- active_support /usr/share/redmine/vendor/rails/railties/lib/tasks/misc.rake:18:in `require' /usr/share/redmine/vendor/rails/railties/lib/tasks/misc.rake:18:in `<top (required)>' /usr/share/redmine/vendor/rails/railties/lib/tasks/rails.rb:4:in `load' /usr/share/redmine/vendor/rails/railties/lib/tasks/rails.rb:4:in `block in <top (required)>' /usr/share/redmine/vendor/rails/railties/lib/tasks/rails.rb:4:in `each' /usr/share/redmine/vendor/rails/railties/lib/tasks/rails.rb:4:in `<top (required)>' /usr/share/redmine/Rakefile:15:in `require' /usr/share/redmine/Rakefile:15:in `<top (required)>' /home/ieyasu/.rvm/gems/ruby-1.9.3-p194/gems/rake-0.9.2.2/lib/rake/rake_module.rb:25:in `load' /home/ieyasu/.rvm/gems/ruby-1.9.3-p194/gems/rake-0.9.2.2/lib/rake/rake_module.rb:25:in `load_rakefile' /home/ieyasu/.rvm/gems/ruby-1.9.3-p194/gems/rake-0.9.2.2/lib/rake/application.rb:501:in `raw_load_rakefile' /home/ieyasu/.rvm/gems/ruby-1.9.3-p194/gems/rake-0.9.2.2/lib/rake/application.rb:82:in `block in load_rakefile' /home/ieyasu/.rvm/gems/ruby-1.9.3-p194/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling' /home/ieyasu/.rvm/gems/ruby-1.9.3-p194/gems/rake-0.9.2.2/lib/rake/application.rb:81:in `load_rakefile' /home/ieyasu/.rvm/gems/ruby-1.9.3-p194/gems/rake-0.9.2.2/lib/rake/application.rb:65:in `block in run' /home/ieyasu/.rvm/gems/ruby-1.9.3-p194/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling' /home/ieyasu/.rvm/gems/ruby-1.9.3-p194/gems/rake-0.9.2.2/lib/rake/application.rb:63:in `run' /home/ieyasu/.rvm/gems/ruby-1.9.3-p194/gems/rake-0.9.2.2/bin/rake:33:in `<top (required)>' /home/ieyasu/.rvm/gems/ruby-1.9.3-p194/bin/rake:19:in `load' /home/ieyasu/.rvm/gems/ruby-1.9.3-p194/bin/rake:19:in `<main>' /home/ieyasu/.rvm/gems/ruby-1.9.3-p194/bin/ruby_noexec_wrapper:14:in `eval' /home/ieyasu/.rvm/gems/ruby-1.9.3-p194/bin/ruby_noexec_wrapper:14:in `<main>'
RE: Installed Redmine through debian apt, now can't install session store
-
Added by William Roush about 12 years ago
I'm not familiar with RVM (and when a friend described using RVM for Redmine I thought he was crazy to over-complicate an install), but I'm sure the problem lies that gem install active_support is installing it in /var/lib/gems/1.9.1/gems (or a similar directory)
instead of /home/ieyasu/.rvm/gems/.
What does this return:
find / -name "active_support"
RE: Installed Redmine through debian apt, now can't install session store
-
Added by Alastair McFarlane about 12 years ago
I'm pretty much as new to Ruby as I am to Redmine - though I'm trying to develop my knowledge of it! I just use RVM because I read somewhere that it was good idea - if it turns out to be overcomplicating things I'll remove it and learn the "real" way!
Anyway, running find / -name "active_support" returns the following:
/usr/local/rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.3/lib/active_support /usr/local/rvm/gems/ruby-1.9.3-p194/gems/passenger-3.0.13/test/stub/vendor_rails/minimal/activesupport/lib/active_support /usr/lib/ruby/vendor_ruby/active_support /usr/lib/ruby/gems/1.8/gems/activesupport-3.2.3/lib/active_support /home/tracks/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.3/lib/active_support /home/ieyasu/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.2.3/lib/active_support /home/ieyasu/.rvm/gems/ruby-1.9.3-p194/gems/passenger-3.0.13/test/stub/vendor_rails/minimal/activesupport/lib/active_support /home/ieyasu/.rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.0.0/lib/active_support
RE: Installed Redmine through debian apt, now can't install session store
-
Added by William Roush about 12 years ago
What happens when you run "bundle install" in the Redmine directory, then "rake generate_secret_token"?
Bundle should be handling Gems now (and we should probably throw away all old tutorials because they're mostly wrong now).
RE: Installed Redmine through debian apt, now can't install session store
-
Added by Alastair McFarlane about 12 years ago
$ bundle install The Gemfile specifies no dependencies Your bundle is complete! Use `bundle show [gemname]` to see where a bundled gem is installed. $ bundle show active_support Could not find gem 'active_support' in the current bundle.
Reading the Gemfile, there's no mention of active_support, though as I know little about Ruby I don't really know what it should say.
RE: Installed Redmine through debian apt, now can't install session store
-
Added by William Roush about 12 years ago
The Gemfile specifies no dependencies
What version of Redmine did you install?
root@roush-server:/tank/system/redmine_dev# bundle show activesupport /var/lib/gems/1.9.1/gems/activesupport-3.2.6
RE: Installed Redmine through debian apt, now can't install session store
-
Added by William Roush about 12 years ago
Also what "bundle install" should do:
root@roush-server:/tank/system/redmine_dev# bundle install Using rake (0.9.2.2) Using i18n (0.6.0) Using multi_json (1.3.6) Using activesupport (3.2.6) Using builder (3.0.0) Using activemodel (3.2.6) Using erubis (2.7.0) Using journey (1.0.4) Using rack (1.4.1) Using rack-cache (1.2) Using rack-test (0.6.1) Using hike (1.2.1) Using tilt (1.3.3) Using sprockets (2.1.3) Using actionpack (3.2.6) Using mime-types (1.19) Using polyglot (0.3.3) Using treetop (1.4.10) Using mail (2.4.4) Using actionmailer (3.2.6) Using arel (3.0.2) Using tzinfo (0.3.33) Using activerecord (3.2.6) Using activeresource (3.2.6) Using coderay (1.0.6) Using rack-ssl (1.3.2) Using json (1.7.3) Using rdoc (3.12) Using thor (0.15.4) Using railties (3.2.6) Using jquery-rails (2.0.2) Using metaclass (0.0.1) Using mocha (0.12.1) Using mysql2 (0.3.11) Using net-ldap (0.3.1) Using pg (0.13.2) Using ruby-openid (2.1.8) Using rack-openid (1.3.1) Using bundler (1.1.3) Using rails (3.2.6) Using rmagick (2.13.1) Using shoulda (2.11.3) Using sqlite3 (1.3.6) Using test-unit (2.5.1) Using yard (0.8.1) Your bundle is complete! Use `bundle show [gemname]` to see where a bundled gem is installed.
RE: Installed Redmine through debian apt, now can't install session store
-
Added by Alastair McFarlane about 12 years ago
How would I check which version is installed? I installed it through aptitude and can't find a version number anywhere. Of course it wouldn't be the first time that a debian package wasn't quite the best way to install!
RE: Installed Redmine through debian apt, now can't install session store
-
Added by William Roush about 12 years ago
Are you on squeeze?
http://packages.debian.org/search?keywords=redmine
1.0.1 is stupid-old.
If so, "apt-get remove redmine", download and install 2.0 from Redmine's site.