Project

General

Profile

Can't install plugins due to strange errors

Added by Paul den Hertog over 11 years ago

Hi there,

I installed Redmine trough apt-get install Redmine, then edited the httpd.conf to get Redmine run on a hostname instead of 0.0.0.0:3000. I also got Redmine running on HTTPS so that works great. I only want to install the contacts, helpdesk and CRM plugin and this won't work.

I Tried these commands:
rake redmine:plugins RAILS_ENV=production NAME=redmine_contacts
rake db:migrate:plugins RAILS_ENV=production NAME=redmine_contacts

Both were unsuccessful even after a full reboot.

My system info:

- Ruby: ruby 1.8.7 (2011-06-30 patchlevel 352) [x86_64-linux]
- Rails version: rails --version (-bash: rails: command not found)
- Operating system: Ubuntu 12.04.1 LTS
- Database: Mysql 5.5.28-0ubuntu0.12.04.3
- Ruby-aware server used: ???

Below some output of the commands I used:

root@s-wd-www01:/usr/share/redmine# RAILS_ENV=production script/about
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/config/../vendor/rails/railties/lib/rails/gem_dependency.rb:21.
NOTE: Gem::SourceIndex#initialize is deprecated with no replacement. It will be removed on or after 2011-11-01.
Gem::SourceIndex#initialize called from /usr/share/redmine/config/../vendor/rails/railties/lib/rails/vendor_gem_source_index.rb:100.
NOTE: Gem::SourceIndex#add_spec is deprecated, use Specification.add_spec. It will be removed on or after 2011-11-01.
Gem::SourceIndex#add_spec called from /usr/lib/ruby/vendor_ruby/1.8/rubygems/source_index.rb:91.
NOTE: Gem::SourceIndex#add_spec is deprecated, use Specification.add_spec. It will be removed on or after 2011-11-01.
Gem::SourceIndex#add_spec called from /usr/lib/ruby/vendor_ruby/1.8/rubygems/source_index.rb:91.
NOTE: Gem::SourceIndex#add_spec is deprecated, use Specification.add_spec. It will be removed on or after 2011-11-01.
Gem::SourceIndex#add_spec called from /usr/lib/ruby/vendor_ruby/1.8/rubygems/source_index.rb:91.
NOTE: Gem::SourceIndex#add_spec is deprecated, use Specification.add_spec. It will be removed on or after 2011-11-01.
Gem::SourceIndex#add_spec called from /usr/lib/ruby/vendor_ruby/1.8/rubygems/source_index.rb:91.
NOTE: Gem::SourceIndex#add_spec is deprecated, use Specification.add_spec. It will be removed on or after 2011-11-01.
Gem::SourceIndex#add_spec called from /usr/lib/ruby/vendor_ruby/1.8/rubygems/source_index.rb:91.
NOTE: Gem::SourceIndex#add_spec is deprecated, use Specification.add_spec. It will be removed on or after 2011-11-01.
Gem::SourceIndex#add_spec called from /usr/lib/ruby/vendor_ruby/1.8/rubygems/source_index.rb:91.
NOTE: Gem::SourceIndex#add_spec is deprecated, use Specification.add_spec. It will be removed on or after 2011-11-01.
Gem::SourceIndex#add_spec called from /usr/lib/ruby/vendor_ruby/1.8/rubygems/source_index.rb:91.
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/config/../vendor/rails/railties/lib/rails/gem_dependency.rb:78.
NOTE: Gem::SourceIndex#each is deprecated with no replacement. It will be removed on or after 2011-11-01.
Gem::SourceIndex#each called from /usr/share/redmine/config/../vendor/rails/railties/lib/rails/vendor_gem_source_index.rb:123.
NOTE: Gem::Specification#installation_path is deprecated, use base_dir. It will be removed on or after 2011-10-01.
Gem::Specification#installation_path called from /usr/share/redmine/config/../vendor/rails/railties/lib/rails/vendor_gem_source_index.rb:93.
NOTE: Gem::Specification#installation_path is deprecated, use base_dir. It will be removed on or after 2011-10-01.
Gem::Specification#installation_path called from /usr/share/redmine/config/../vendor/rails/railties/lib/rails/vendor_gem_source_index.rb:93.
NOTE: Gem::Specification#installation_path is deprecated, use base_dir. It will be removed on or after 2011-10-01.
Gem::Specification#installation_path called from /usr/share/redmine/config/../vendor/rails/railties/lib/rails/vendor_gem_source_index.rb:93.
About your application's environment
Ruby version              1.8.7 (x86_64-linux)
RubyGems version          1.8.15
Rack version              1.3
Rails version             2.3.14
Active Record version     2.3.14
Active Resource version   2.3.14
Action Mailer version     2.3.14
Active Support version    2.3.14
Edge Rails revision       unknown
Application root          /usr/share/redmine
Environment               production
Database adapter          mysql
Database schema version   20110902000000

If I try to install a plugin with the how to from:
http://www.redminecrm.com/projects/contacts-plugin/wiki/Installation

I get:

root@s-wd-www01:/usr/share/redmine# bundle install
-bash: bundle: command not found
root@s-wd-www01:/usr/share/redmine# rake redmine:plugins RAILS_ENV=production  NAME=redmine_contacts
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/config/../vendor/rails/railties/lib/rails/gem_dependency.rb:21.
NOTE: Gem::SourceIndex#initialize is deprecated with no replacement. It will be removed on or after 2011-11-01.
Gem::SourceIndex#initialize called from /usr/share/redmine/config/../vendor/rails/railties/lib/rails/vendor_gem_source_index.rb:100.
NOTE: Gem::SourceIndex#add_spec is deprecated, use Specification.add_spec. It will be removed on or after 2011-11-01.
Gem::SourceIndex#add_spec called from /usr/lib/ruby/vendor_ruby/1.8/rubygems/source_index.rb:91.
NOTE: Gem::SourceIndex#add_spec is deprecated, use Specification.add_spec. It will be removed on or after 2011-11-01.
Gem::SourceIndex#add_spec called from /usr/lib/ruby/vendor_ruby/1.8/rubygems/source_index.rb:91.
NOTE: Gem::SourceIndex#add_spec is deprecated, use Specification.add_spec. It will be removed on or after 2011-11-01.
Gem::SourceIndex#add_spec called from /usr/lib/ruby/vendor_ruby/1.8/rubygems/source_index.rb:91.
NOTE: Gem::SourceIndex#add_spec is deprecated, use Specification.add_spec. It will be removed on or after 2011-11-01.
Gem::SourceIndex#add_spec called from /usr/lib/ruby/vendor_ruby/1.8/rubygems/source_index.rb:91.
NOTE: Gem::SourceIndex#add_spec is deprecated, use Specification.add_spec. It will be removed on or after 2011-11-01.
Gem::SourceIndex#add_spec called from /usr/lib/ruby/vendor_ruby/1.8/rubygems/source_index.rb:91.
NOTE: Gem::SourceIndex#add_spec is deprecated, use Specification.add_spec. It will be removed on or after 2011-11-01.
Gem::SourceIndex#add_spec called from /usr/lib/ruby/vendor_ruby/1.8/rubygems/source_index.rb:91.
NOTE: Gem::SourceIndex#add_spec is deprecated, use Specification.add_spec. It will be removed on or after 2011-11-01.
Gem::SourceIndex#add_spec called from /usr/lib/ruby/vendor_ruby/1.8/rubygems/source_index.rb:91.
Please install RDoc 2.4.2+ to generate documentation.
rake aborted!
Don't know how to build task 'redmine:plugins'

(See full trace by running task with --trace)

This is probably because I user Redmine 1.x.x and the command to enable the plugins should be:

How can I get the plugins installed, please give me a hint? I did some research on the internet but I couldn’t find any working info.

Thanks in advance!

Regards, Paul


Replies (4)

RE: Can't install plugins due to strange errors - Added by Jan Niggemann (redmine.org team member) over 11 years ago

If you're on a debian system and installed the package via apt-get, chances are that your version redmine is ancient...

Would you like to install a recent version? If so, I can guide you through the process but we'd better use IRC for that...

RE: Can't install plugins due to strange errors - Added by Paul den Hertog over 11 years ago

That would be great, I've added the PPA: sudo add-apt-repository ppa:ondrej/redmine

With this PPA I sould be able to update everything but I'm unsure if this works.. Help would be great! :) Are you by any chance dutch?

RE: Can't install plugins due to strange errors - Added by Paul den Hertog over 11 years ago

If I do a apt-get upgrade now this is the result, is this safe to do??

root@s-wd-www01:~# apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages have been kept back:
  libapache2-mod-passenger libtzinfo-ruby libtzinfo-ruby1.8 redmine redmine-mysql
The following packages will be upgraded:
  rake ruby-coderay ruby-net-ldap ruby-rack
4 upgraded, 0 newly installed, 0 to remove and 5 not upgraded.
Need to get 259 kB of archives.
After this operation, 131 kB of additional disk space will be used.
Do you want to continue [Y/n]?

RE: Can't install plugins due to strange errors - Added by Jan Niggemann (redmine.org team member) over 11 years ago

Ahh, you're on some flavour of ubuntu :-)
I never used Ubuntu, what's a PPA? If you mean this repo then go ahead and try, you should end up with redmine 2.2.1 and rails 3.2.11

I admit I don't install the stack (ruby, rails, passenger, redmine) using packages, but then again, I use Debian stable which has ancient redmine packages.

I'm sorry I wasn't able to interactively help you on IRC this evening, I'll contact you by email.

Are you by any chance dutch?

No, I'm German :-)

    (1-4/4)