On Tue, May 05, 2015 at 06:47:29PM +0200, Adrien Dorsaz wrote: > Hello, > > Well the upgrade from 3.0~20140825-6 to 3.0~20140825-7 was made without any > issue. > > To try upgrade from 3.0~20140825-5 to 3.0~20140825-7, I've uninstalled > redmine, restored psql database and /usr/share/redmine directory and > installed again the 3.0~20140825-5 version from stable. > > At this step, I have a regular redmine 3.0-20140825-5 instance with 2 > plugins installed (see my first post). > As I've installed these plugins using bundle (as www-data user, but I think > it doesn't matter), I have a bundle configuration under > /usr/share/redmine/.bundle/config with the following configuration: > > > --- > > BUNDLE_WITHOUT: development:test > > BUNDLE_PATH: vendor/bundle > > BUNDLE_DISABLE_SHARED_GEMS: '1' > > Right now, I've the following issue if I run directly `apt upgrade` : > > > [root:/usr/share/redmine] # apt upgrade > > Lecture des listes de paquets... Fait > > Construction de l'arbre des dépendances > > Lecture des informations d'état... Fait > > Calcul de la mise à jour... Fait > > 0 mis à jour, 0 nouvellement installés, 0 à enlever et 0 non mis à jour. > > 1 partiellement installés ou enlevés. > > Après cette opération, 0 o d'espace disque supplémentaires seront > utilisés. > > Souhaitez-vous continuer ? [O/n] > > Paramétrage de redmine (3.0~20140825-7) ... > > Could not find gem 'rails (~> 4.1.4) ruby' in the gems available on this > > machine. > > dpkg: erreur de traitement du paquet redmine (--configure) : > > le sous-processus script post-installation installé a retourné une erreur > de sortie d'état 7 > > Des erreurs ont été rencontrées pendant l'exécution : > > redmine > > E: Sub-process /usr/bin/dpkg returned an error code (1) > > So I've read your postinst file and I've found the origin of this error: > when I run `bundle --local` directly from /usr/share/redmine I get this > error message. > > To fix it, I've removed the /usr/share/redmine/.bundle and > /usr/share/redmine/vendor directories previously created by `bundle install` > when I've installed the plugins (manually choosen by me during plugins' > installation, IIRC). Then, when I run `bundle --local`, I get errors about > missing gem files as expected because of the removals above.
Yes, the problem is the plugins have dependencies that will make bundle install stuff that is incompatible with what Debian has. I would never use plugins that point to git repositories for dependencies without sanitizing them first. > After having installed all gems needed by my plugins, it worked well. > > Thanks ! Thanks for the feedback. -- Antonio Terceiro <terce...@debian.org>
signature.asc
Description: Digital signature