Project

General

Profile

CRM Plugin Installation Problem on ubuntu ppa-redmine

Added by thomas jahn over 10 years ago

hi,

i tried to install the redmine_contacts Plugin. http://www.redminecrm.com/projects/crm

Problem: install failed and redmine is broken

root@intranet:/usr/share/redmine# rake redmine:plugins NAME=redmine_contacts_invoices RAILS_ENV=production
WARNING: 'require 'rake/rdoctask'' is deprecated.  Please use 'require 'rdoc/task' (in RDoc 2.4.2+)' instead.
    at /usr/lib/ruby/vendor_ruby/rake/rdoctask.rb
rake aborted!
uninitialized constant ActsAsTaggableOn

First of all i've had a working 2.3.2 redmine release, which was installed on ubuntu 12.04 using the ppa from ondrej (http://www.redmine.org/projects/redmine/wiki/HowTo_Install_Redmine_in_Ubuntu#Installing-the-latest-Redmine)

Next i was installing the CRM-Pluging according to: http://www.redminecrm.com/projects/crm/pages/2

root@intranet:/usr/share/redmine/lib/plugins# unzip redmine_contacts-3_2_4-light.zip 
#.. everything got unziped correctly

root@intranet:/usr/share/redmine/lib/plugins/redmine_contacts# bundle install --without development test
Fetching gem metadata from https://rubygems.org/............
Fetching gem metadata from https://rubygems.org/..
Resolving dependencies...
Installing rake (10.1.0) 
Installing i18n (0.6.1) 
Installing multi_json (1.7.7) 
Installing activesupport (3.2.13) 
Installing builder (3.0.4) 
Installing activemodel (3.2.13) 
Installing erubis (2.7.0) 
Installing journey (1.0.4) 
Installing rack (1.4.5) 
Installing rack-cache (1.2) 
Installing rack-test (0.6.2) 
Installing hike (1.2.3) 
Installing tilt (1.4.1) 
Installing sprockets (2.2.2) 
Installing actionpack (3.2.13) 
Installing mime-types (1.23) 
Installing polyglot (0.3.3) 
Installing treetop (1.4.14) 
Installing mail (2.5.4) 
Installing actionmailer (3.2.13) 
Installing arel (3.0.2) 
Installing tzinfo (0.3.37) 
Installing activerecord (3.2.13) 
Installing activeresource (3.2.13) 
Using bundler (1.3.5) 
Installing rack-ssl (1.3.3) 
Installing json (1.8.0) 
Installing rdoc (3.12.2) 
Installing thor (0.18.1) 
Installing railties (3.2.13) 
Installing rails (3.2.13) 
Installing acts-as-taggable-on (2.3.3) 
Installing vcard (0.2.8) 
Your bundle is complete!
Gems in the groups development and test were not installed.
Use `bundle show [gemname]` to see where a bundled gem is installed.
Post-install message from rdoc:
Depending on your version of ruby, you may need to install ruby rdoc/ri data:

<= 1.8.6 : unsupported
 = 1.8.7 : gem install rdoc-data; rdoc-data --install
 = 1.9.1 : gem install rdoc-data; rdoc-data --install
>= 1.9.2 : nothing to do! Yay!

root@intranet:/usr/share/redmine# bundle exec rake redmine:plugins NAME=redmine_contacts RAILS_ENV=production
/var/lib/gems/1.8/gems/bundler-1.3.5/lib/bundler/rubygems_integration.rb:214:in `gem': rake is not part of the bundle. Add it to Gemfile. (Gem::LoadError)
    from /usr/local/bin/rake:18

root@intranet:/usr/share/redmine/lib/plugins/redmine_contacts# bundle exec rake redmine:plugins NAME=redmine_contacts RAILS_ENV=production
(in /usr/share/redmine)
rake aborted!
Please install the mysql adapter: `gem install activerecord-mysql-adapter` (mysql is not part of the bundle. Add it to Gemfile.)
/var/lib/gems/1.8/gems/bundler-1.3.5/lib/bundler/rubygems_integration.rb:214:in `gem'
/var/lib/gems/1.8/gems/activerecord-3.2.13/lib/active_record/connection_adapters/mysql_adapter.rb:5
/var/lib/gems/1.8/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `require'
/var/lib/gems/1.8/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `require'
/var/lib/gems/1.8/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:236:in `load_dependency'
/var/lib/gems/1.8/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `require'
/var/lib/gems/1.8/gems/activerecord-3.2.13/lib/active_record/connection_adapters/abstract/connection_specification.rb:50:in `resolve_hash_connection'
/var/lib/gems/1.8/gems/activerecord-3.2.13/lib/active_record/connection_adapters/abstract/connection_specification.rb:41:in `resolve_string_connection'
/var/lib/gems/1.8/gems/activerecord-3.2.13/lib/active_record/connection_adapters/abstract/connection_specification.rb:25:in `spec'
/var/lib/gems/1.8/gems/activerecord-3.2.13/lib/active_record/connection_adapters/abstract/connection_specification.rb:130:in `establish_connection'
/var/lib/gems/1.8/gems/activerecord-3.2.13/lib/active_record/railtie.rb:82
/var/lib/gems/1.8/gems/activesupport-3.2.13/lib/active_support/lazy_load_hooks.rb:36:in `instance_eval'
/var/lib/gems/1.8/gems/activesupport-3.2.13/lib/active_support/lazy_load_hooks.rb:36:in `execute_hook'
/var/lib/gems/1.8/gems/activesupport-3.2.13/lib/active_support/lazy_load_hooks.rb:26:in `on_load'
/var/lib/gems/1.8/gems/activesupport-3.2.13/lib/active_support/lazy_load_hooks.rb:25:in `each'
/var/lib/gems/1.8/gems/activesupport-3.2.13/lib/active_support/lazy_load_hooks.rb:25:in `on_load'
/var/lib/gems/1.8/gems/activerecord-3.2.13/lib/active_record/railtie.rb:74
/var/lib/gems/1.8/gems/railties-3.2.13/lib/rails/initializable.rb:30:in `instance_exec'
/var/lib/gems/1.8/gems/railties-3.2.13/lib/rails/initializable.rb:30:in `run'
/var/lib/gems/1.8/gems/railties-3.2.13/lib/rails/initializable.rb:55:in `run_initializers'
/var/lib/gems/1.8/gems/railties-3.2.13/lib/rails/initializable.rb:54:in `each'
/var/lib/gems/1.8/gems/railties-3.2.13/lib/rails/initializable.rb:54:in `run_initializers'
/var/lib/gems/1.8/gems/railties-3.2.13/lib/rails/application.rb:136:in `initialize!'
/var/lib/gems/1.8/gems/railties-3.2.13/lib/rails/railtie/configurable.rb:30:in `send'
/var/lib/gems/1.8/gems/railties-3.2.13/lib/rails/railtie/configurable.rb:30:in `method_missing'
/var/lib/gems/1.8/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `require'
/var/lib/gems/1.8/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `require'
/var/lib/gems/1.8/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:236:in `load_dependency'

root@intranet:/usr/share/redmine# rake redmine:plugins NAME=redmine_contacts RAILS_ENV=production
WARNING: 'require 'rake/rdoctask'' is deprecated.  Please use 'require 'rdoc/task' (in RDoc 2.4.2+)' instead.
    at /usr/lib/ruby/vendor_ruby/rake/rdoctask.rb
rake aborted!
uninitialized constant ActsAsTaggableOn

Tasks: TOP => redmine:plugins:migrate => environment
(See full trace by running task with --trace)

here i got an error - the plugin seems to be active already, but isn't activated correctly

uninstall doesn't work:

root@intranet:/usr/share/redmine# rake redmine:plugins NAME=redmine_contacts VERSION=0 RAILS_ENV=production
WARNING: 'require 'rake/rdoctask'' is deprecated.  Please use 'require 'rdoc/task' (in RDoc 2.4.2+)' instead.
    at /usr/lib/ruby/vendor_ruby/rake/rdoctask.rb
rake aborted!
uninitialized constant ActsAsTaggableOn

Tasks: TOP => redmine:plugins:migrate => environment
(See full trace by running task with --trace)

any ideas how to fix this right now?
or how to get redmine working again without the plugin?

one differece i noticed: the plugin directory is redmine/lib/plugins in the ppa Version
should be redmine/plugins instead?

here's the passengers output:


Ruby (Rack) application could not be started
These are the possible causes:

    There may be a syntax error in the application's code. Please check for such errors and fix them.
    A required library may not installed. Please install all libraries that this application requires.
    The application may not be properly configured. Please check whether all configuration files are written correctly, fix any incorrect configurations, and restart this application.
    A service that the application relies on (such as the database server or the Ferret search engine server) may not have been started. Please start that service.

Further information about the error may have been written to the application's log file. Please check it in order to analyse the problem.

Error message:
    uninitialized constant ActsAsTaggableOn
Exception class:
    NameError
Application root:
    /usr/share/redmine 
Backtrace:
    #     File     Line     Location
    0     /usr/share/redmine/lib/plugins/redmine_contacts/lib/acts_as_taggable_on_patch.rb     1     
    1     /usr/share/redmine/lib/plugins/redmine_contacts/lib/redmine_contacts.rb     32     
    2     /usr/share/redmine/lib/plugins/redmine_contacts/init.rb     88     
    3     /usr/share/redmine/config/initializers/00-core_plugins.rb     12     
    4     /usr/share/redmine/config/initializers/00-core_plugins.rb     2     in `each'
    5     /usr/share/redmine/config/initializers/00-core_plugins.rb     2     
    6     /usr/lib/ruby/vendor_ruby/rails/engine.rb     588     
    7     /usr/lib/ruby/vendor_ruby/rails/engine.rb     587     in `each'
    8     /usr/lib/ruby/vendor_ruby/rails/engine.rb     587     
    9     /usr/lib/ruby/vendor_ruby/rails/initializable.rb     30     in `instance_exec'
    10     /usr/lib/ruby/vendor_ruby/rails/initializable.rb     30     in `run'
    11     /usr/lib/ruby/vendor_ruby/rails/initializable.rb     55     in `run_initializers'
    12     /usr/lib/ruby/vendor_ruby/rails/initializable.rb     54     in `each'
    13     /usr/lib/ruby/vendor_ruby/rails/initializable.rb     54     in `run_initializers'
    14     /usr/lib/ruby/vendor_ruby/rails/application.rb     136     in `initialize!'
    15     /usr/lib/ruby/vendor_ruby/rails/railtie/configurable.rb     30     in `send'
    16     /usr/lib/ruby/vendor_ruby/rails/railtie/configurable.rb     30     in `method_missing'
    17     /usr/share/redmine/config/environment.rb     14     
    18     config.ru     3     in `require'
    19     config.ru     3     
    20     /usr/lib/ruby/vendor_ruby/rack/builder.rb     51     in `instance_eval'
    21     /usr/lib/ruby/vendor_ruby/rack/builder.rb     51     in `initialize'
    22     config.ru     1     in `new'
    23     config.ru     1     

Powered by Phusion Passenger, mod_rails / mod_rack for Apache.


Replies (2)

RE: CRM Plugin Installation Problem on ubuntu ppa-redmine - Added by T Pl over 10 years ago

Hi,

Had the same issue this morning.

Add to your gemfile;

gem "acts-as-taggable-on"

Save.
Then re-run;

bundle install --without development test
bundle exec rake redmine:plugins NAME=redmine_contacts RAILS_ENV=production

This worked for me.

RE: CRM Plugin Installation Problem on ubuntu ppa-redmine - Added by thomas jahn over 10 years ago

meanwhile i've fixed the issue

thomas jahn wrote:

one differece i noticed: the plugin directory is redmine/lib/plugins in the ppa Version
should be redmine/plugins instead?

the problem with the ppa-version is, there's just no redmine/plugins directory created

so looking for it i mistakenly thought the place for plugins was under the existing directory redmine/lib/plugins. But it seems there are only internal plugins located.

-> so simply create redmine/plugins and place redmine_contacts Plugin here.

    (1-2/2)