[DRE-maint] Bug#1120894: redmine: dpkg-reconfigure/upgrade redmine recreates /usr/share/redmine/plugins
Alban Browaeys
prahal at yahoo.com
Tue Nov 18 02:52:36 GMT 2025
Le lundi 17 novembre 2025 à 19:27 -0700, Soren Stoutner a écrit :
> On Monday, November 17, 2025 4:59:09 PM Mountain Standard Time Alban
> Browaeys
> wrote:
> > Package: redmine
> > Version: 6.0.5+ds-1
> > Severity: normal
> >
> > Dear Maintainer,
> > I have an issue wtaht if I symlink /usr/share/redmine/plugins/<x>
> > to
> > REDMINE_INSTANCE/plugins my redmine app cannot start because it
> > loads each
> > plugins file twice and rails Concern abort if loaded more than once
> > (and I
> > have a rails concerned derivative in the redmine_gitolite_plugin I
> > use.
> >
> > So I wanted to use the recommended by redmine Debian README way to
> > use
> > /usr/share/redmine/plugins directly. THat is delete
> > REDMIEN/INSTANCE/plugins
> > folder. It works. My plugins loads fine. But each time I do `dpkg-
> reconfigure
> > redmine` or I believe if redmine upgrades the
> > REDMINE_INSTANCE/plugins
> > directory is recreated.
> > The directory REDMINE_INSTANCE/plugins is recreated by
> > `/usr/share/redmine/bin/redmine-instances create default` called by
> > redmine.postinst.
> > Maybe it shouldn't if the a marker that tells the REDMINE_INSTANCE
> > folder
> tree
> > has already been created is set?
>
> Thank you for your bug report. I am not seeing this behavior in my
> personal
> redmine instance. Perhaps you can give me a little more information
> to help
> me replicate the problem.
>
> First, are you running one instance or more than one instance?
>
>
>
> In my case, I am running one instance (named default):
>
> root at mail:/usr/share/redmine# ls -la
> total 76
> drwxr-xr-x 12 root root 4096 Sep 6 11:07 .
> drwxr-xr-x 568 root root 20480 Sep 6 11:09 ..
> drwxr-xr-x 9 root root 4096 Apr 29 2025 app
> drwxr-xr-x 2 root root 4096 Sep 6 11:07 bin
> drwxrwxr-x 2 root root 4096 Apr 29 2025 .bundle
> drwxr-xr-x 5 root root 4096 Sep 6 11:07 config
> -rw-r--r-- 1 root root 129 Jul 7 14:03 config.ru
> drwxr-xr-x 3 root root 4096 Apr 29 2025 db
> drwxr-xr-x 5 root root 4096 Apr 29 2025 extra
> -rw-r--r-- 1 root root 3776 Aug 25 16:15 Gemfile
> lrwxrwxrwx 1 root root 29 Aug 25 16:15 Gemfile.lock ->
> /var/lib/redmine/
> Gemfile.lock
> lrwxrwxrwx 1 root root 16 Apr 18 2025 instances ->
> /var/lib/redmine
> drwxr-xr-x 6 root root 4096 Sep 6 11:07 lib
> drwxrwxr-x 3 root root 4096 Jun 23 16:37 plugins
> drwxr-xr-x 4 root root 4096 Sep 6 11:07 public
> -rw-r--r-- 1 root root 255 Aug 25 16:15 Rakefile
> drwxr-xr-x 2 root root 4096 Sep 6 11:07 templates
>
>
>
> I have one plugin installed:
>
> root at mail:/usr/share/redmine/plugins# ls -la
> total 12
> drwxrwxr-x 3 root root 4096 Jun 23 16:37 .
> drwxr-xr-x 12 root root 4096 Sep 6 11:07 ..
> drwxr-xr-x 5 root root 4096 Sep 6 11:09 redmine_simple_captcha\
>
>
>
> The plugin folder inside of the instance links to the plugin:
>
> root at mail:/usr/share/redmine/instances/default/plugins# ls -la
> total 8
> drwxr-xr-x 2 www-data www-data 4096 May 12 2025 .
> drwxr-xr-x 5 root root 4096 Oct 6 15:33 ..
> lrwxrwxrwx 1 www-data www-data 50 May 12 2025
> redmine_simple_captcha -> /
> usr/share/redmine/plugins/redmine_simple_captcha/
>
>
> This works for me and survives upgrades.
Sorry I forgot to mention it. I am running only one instance,
"default".
ls /usr/share/redmine/plugins/
additionals redmine_git_hosting
redmine_git_hosting has local patches from its github pending PR for
redmine 6 support.
And I have build its dependencies not shipped in debian via gem2deb.
More information about the Pkg-ruby-extras-maintainers
mailing list