Project

General

Profile

Installing redmine plugins fails always

Added by Anonymous over 10 years ago

Hi !

my redmine 1.3 (from Ubuntu-Repos) is working fine on my ubuntu-server but everytime I try to install a plugin I get an error and redmine is gone.
This is what I do:
1. copy plugin-directory-structure to /usr/share/redmine/vendor/plugins (as root)
e.g.:

root@srvkisweb1:/usr/share/redmine/vendor/plugins# cp -R ~myhome/Redmine_div/redmine_local_avatars-0.1.1/ .

2. restart Apache

root@srvkisweb1:/usr/share/redmine/vendor/plugins# service apache2 restart

This ist what I get after restart of Apache when trying to access redmine (Error message displayed in weg browser)- see below.

I think there is one simple step missing as I get always quite the same error message and a broken redmine. I then simply delete the specific plugin directory, restart apache again and redmine is working fine again.

any help appreciated! Thanks a lot

Williwow

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 Rails::Plugin::ActionDispatch
Exception class:
    NameError
Application root:
    /usr/share/redmine 
Backtrace:
    #     File     Line     Location
    0     /usr/lib/ruby/vendor_ruby/active_support/dependencies.rb     131     in `const_missing'
    1     /usr/share/redmine/vendor/plugins/redmine_local_avatars-0.1.1/init.rb     28     in `evaluate_init_rb'
    2     /usr/share/redmine/vendor/rails/railties/lib/rails/plugin.rb     158     in `evaluate_init_rb'
    3     /usr/lib/ruby/vendor_ruby/active_support/core_ext/kernel/reporting.rb     11     in `silence_warnings'
    4     /usr/share/redmine/vendor/rails/railties/lib/rails/plugin.rb     154     in `evaluate_init_rb'
    5     /usr/share/redmine/vendor/rails/railties/lib/rails/plugin.rb     48     in `load'
    6     /usr/share/redmine/config/../vendor/plugins/engines/lib/engines/plugin.rb     44     in `load'
    7     /usr/share/redmine/vendor/rails/railties/lib/rails/plugin/loader.rb     38     in `load_plugins'
    8     /usr/share/redmine/vendor/rails/railties/lib/rails/plugin/loader.rb     37     in `each'
    9     /usr/share/redmine/vendor/rails/railties/lib/rails/plugin/loader.rb     37     in `load_plugins'
    10     /usr/share/redmine/vendor/rails/railties/lib/initializer.rb     369     in `load_plugins'

Replies (6)

RE: Installing redmine plugins fails always - Added by Jan Niggemann (redmine.org team member) over 10 years ago

1.3 is ages old, try to use a recent version. Read this guide, perhaps it helps.

RE: Installing redmine plugins fails always - Added by Anonymous over 10 years ago

Jan, thank you for the comprehensive guide and the explanation. I see that I should consided upgrading redmine. As our redmine is fully productive I would like to install on the same ubuntu-server another redmine with the up-to-date version you recommended. This to test the update-process, functionality and plugin-installation. Is this possible and are there instructions somewhere? (I am fine with setting up the mysql-db but with redmine/ruby I am quite a novice).

Process would be:
- set up new DB ('NEW-DB')
- copy content from current PROD-DB to NEW-DB (export/import)
- set up new-redmine (Version 2.x.x) in parallel using NEW-DB (are there schema-upgrades necessary? Is there a script for that?)
- test functionality of new-redmine

Alternative for DBs:
- set up new DB
- set up new-redmine directing to NEW-DB
- do a non-destructive (without drop-option) import from PROD-DB (are schemas 'compatible')
- test functionality of new-redmine

thanks a lot for any advices

W.

RE: Installing redmine plugins fails always - Added by Jan Niggemann (redmine.org team member) over 10 years ago

willi wow wrote:

Process would be:
- set up new DB ('NEW-DB')
- copy content from current PROD-DB to NEW-DB (export/import)
- set up new-redmine (Version 2.x.x) in parallel using NEW-DB (are there schema-upgrades necessary? Is there a script for that?)
- test functionality of new-redmine

Like that, yes.
Upgrades to the databases schemas are upgraded with the command rake db:migrate RAILS_ENV=production, the whole process is described in RedmineUpgrade.

RE: Installing redmine plugins fails always - Added by Anonymous over 10 years ago

Hi Jan,

I did as outlined a parallel installation of redmine 2.2.4 on my ubuntu server and now plugins work great.
However the installation was bit of a nightmare: my initial installation from ubuntu-repos took 15 minutes to get redmine 1.3.2 up and running, this took me more than 3 hours.

Main problems:
- (I suppose:) started with bundler from repos which seems to be wrong version
- bundle install did not work
- manual install of all gems required
- bundler still fails, so remove bundler and reinstall up-to-date version
- installation of gems did (nearly always) fail due to missing header-files: required installation of dev-packages (no problem, but the installation guide should mention this)
- did manual passenger install ('curl'-stuff) but just now read that this would have been up-to-date in repos.

I think as ubuntu is quite common, the guide should contain clear information, what to take from repos (and which repos) and what to install from source or direct download.

What went well:
- I am not alone: for every problem I found a solution via google/redmine
- DB-Migration is great: when 'rake' finally worked, it was a work of only some minutes to export previous production-DB via phpmyadmin, import into new redmine and do rake-migration. First for testing then for production: this is really great stuff!

Thanks

Williwow

PS: is there a possibility to mark this thread as closed?

RE: Installing redmine plugins fails always - Added by Jan Niggemann (redmine.org team member) over 10 years ago

willi wow wrote:

- installation of gems did (nearly always) fail due to missing header-files: required installation of dev-packages (no problem, but the installation guide should mention this)
I think as ubuntu is quite common, the guide should contain clear information, what to take from repos (and which repos) and what to install from source or direct download.

Which guide did you use, can you post a link?

PS: is there a possibility to mark this thread as closed?

No. There's a feature request dangling somewhere, but it's not (yet) implemented.

RE: Installing redmine plugins fails always - Added by Anonymous over 10 years ago

Jan,

thanks for the fast answer:

Actually I was not precise on which "guide" I was using:

For my initial installation on ubuntu I used this guide:
http://www.redmine.org/projects/redmine/wiki/HowTo_Install_Redmine_on_Ubuntu_step_by_step (which worked excellent but got me in the soup...: old redmine, old passenger, old bundler)

As my upgrade started with a parallel installation into /usr/share/redmine2 I used on the same server this:
http://www.redmine.org/projects/redmine/wiki/RedmineInstall (and got problems with bundler, passenger, ...)

For the final upgrade steps I referred to this:
http://www.redmine.org/projects/redmine/wiki/RedmineUpgrade

I would believe it best to update the ubuntu-guide. What to take from repos, what to take from git/sources.. If you have a sane installation on ubuntu an upgrade should be easy.

Finally I should mention that I am complete novice on ruby, passenger, bundler....
But I am well accustomed to running ubuntu and love the shell.

Thanks

Williwow

    (1-6/6)