Bug#1031505: redmine: Install (upgrade) 5.x on Bullseye fails on NameError Redmine::Plugin

2023-02-19 Thread Alban Browaeys
Forwarding to submitter per he was not included in the recipients
(forwarding to the bug report does not forward to submitter):

On Fri, 17 Feb 2023 23:48:18 +0100 Jakob Haufe  

> We discussed this in IRC (#debian-ruby in OFTC, feel free to pass by)
> and couldn't reproduce the problem.
> 
> We installed redmine 4.0 from buster backports and updated the VM to
> bullseye, once by installing only the minimum set of packages from
> backports and once by installing as much as possible from backports.
> 
> Both installs and updates worked fine.
> 
> To help investigate this further, could you please provide us with
the
> following:
> 
> 1. Any plugins you have installed in redmine, either via the Debian
>    repository or manually.
> 2. The output of apt-forktracer (from the package with the same
name).
> 
> Cheers,
> sur5r
> 
> -- 
> ceterum censeo microsoftem esse delendam.

Indeed you probably have a redmine plugin that requires an upgrade to a
version of this plugin that supports redmine5.

Cheers,
Alban



Bug#1031505: redmine: Install (upgrade) 5.x on Bullseye fails on NameError Redmine::Plugin

2023-02-19 Thread Jakob Haufe
Control: notfound -1 5.0.4-2~bpo11+1
Control: tag -1 - moreinfo

After further investigation, we found the following:

The plugin redmine_mermaid_macro[1] was installed to
/usr/share/redmine/lib/plugins instead of /usr/share/redmine/plugins.

While this seems to have worked with 4.x, this no longer works with 5.x
and generates the reported error.

The location was wrong in the first place as plugins are supposed to be
installed in #{RAILS_ROOT}/plugins (see [2]) which resolves to
/usr/share/redmine/plugins on Debian installs.

The plugin was also outdated, but this was only a secondary issue.

[1] https://github.com/taikii/redmine_mermaid_macro
[2] https://www.redmine.org/projects/redmine/wiki/Plugins

-- 
ceterum censeo microsoftem esse delendam.


pgpdouTEbZ3ks.pgp
Description: OpenPGP digital signature


Bug#1031505: redmine: Install (upgrade) 5.x on Bullseye fails on NameError Redmine::Plugin

2023-02-17 Thread Jakob Haufe
Control: tag -1 + moreinfo unreproducible

We discussed this in IRC (#debian-ruby in OFTC, feel free to pass by)
and couldn't reproduce the problem.

We installed redmine 4.0 from buster backports and updated the VM to
bullseye, once by installing only the minimum set of packages from
backports and once by installing as much as possible from backports.

Both installs and updates worked fine.

To help investigate this further, could you please provide us with the
following:

1. Any plugins you have installed in redmine, either via the Debian
   repository or manually.
2. The output of apt-forktracer (from the package with the same name).

Cheers,
sur5r

-- 
ceterum censeo microsoftem esse delendam.


pgpUH6MHwA3Ch.pgp
Description: OpenPGP digital signature


Bug#1031505: redmine: Install (upgrade) 5.x on Bullseye fails on NameError Redmine::Plugin

2023-02-17 Thread Olaf
Package: redmine
Version: 5.0.4-2~bpo11+1
Severity: important

Dear Maintainer,

The system is a Bullseye server which was upgraded in the past. As Redmine for 
Bullseye did not exist untill recently some left overs of the 4.x installation 
remained.
I am very happy a backport arrived. Installing it failed:
Bundler will use `/tmp/bundler-20230217-1717663-fjvt9g' as your home directory 
temporarily.
rake aborted!
NameError: uninitialized constant Redmine::Plugin

I am also a bit surprised that while being root, the installer reports /var/www 
is my root directory instead of /root and also the fact it is not writable.
Although I am quite happy a tmp directory is used instead.

Full install log below.

-- System Information:
Debian Release: 11.6
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 5.10.0-21-amd64 (SMP w/2 CPU threads)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages redmine depends on:
ii  dbconfig-common 2.0.19
ii  debconf [debconf-2.0]   1.5.77
ii  libjs-chart.js  2.9.4+dfsg+~cs2.10.1-3
ii  libjs-jquery3.5.1+dfsg+~3.5.5-7
ii  libjs-jquery-ui 1.12.1+dfsg-8+deb11u1
ii  libjs-raphael   2.3.0-3
ii  libruby2.7 [ruby-csv]   2.7.4-1+deb11u1
ii  redmine-mysql   4.0.7-1~bpo10+1
ii  ruby1:2.7+2
ii  ruby-actionpack-action-caching  1.2.2-1~bpo11+1
ii  ruby-actionpack-xml-parser  2.0.1-4
ii  ruby-addressable2.7.0-2
ii  ruby-bundler2.2.5-2
ii  ruby-coderay1.1.3-4
ii  ruby-commonmarker   0.23.6-1~bpo11+1
ii  ruby-csv3.2.2-1~bpo11+1
ii  ruby-html-pipeline  2.14.3-1~bpo11+1
ii  ruby-i18n   1.10.0-2~bpo11+1
ii  ruby-jquery-rails   4.3.5-2
ii  ruby-mail   2.7.1+dfsg1-1.1
ii  ruby-marcel 1.0.1+dfsg-2~bpo11+1
ii  ruby-mini-magick4.11.0-1~bpo11+1
ii  ruby-mini-mime  1.1.1-1~bpo11+2
ii  ruby-mocha  1.7.0-1
ii  ruby-net-ldap   0.17.0-1~bpo11+1
ii  ruby-nokogiri   1.13.5+dfsg-2~bpo11+1
ii  ruby-rack   2.1.4-3
ii  ruby-rack-test  0.7.0-1.1
ii  ruby-rails  2:6.1.7+dfsg-3~bpo11+2
ii  ruby-rails-dom-testing  2.0.3-3
ii  ruby-rails-observers0.1.5-1.1
ii  ruby-rbpdf  1.20.1-1
ii  ruby-redcarpet  3.5.1-1
ii  ruby-request-store  1.5.0-2
ii  ruby-rmagick2.16.0-7
ii  ruby-roadie 5.1.0-1~bpo11+1
ii  ruby-roadie-rails   3.0.0-1~bpo11+2
ii  ruby-rotp   6.2.0-2~bpo11+1
ii  ruby-rouge  3.28.0-1~bpo11+1
ii  ruby-rqrcode1.1.2-3
ii  ruby-sanitize   6.0.0-1~bpo11+1
ii  ruby-task-list  2.3.2-2~bpo11+1
ii  ruby-zip2.3.0-2~bpo11+1

Versions of packages redmine recommends:
ii  passenger  5.0.30-1.2

Versions of packages redmine suggests:
pn  bzr 
pn  cvs 
pn  darcs   
ii  git 1:2.30.2-1+deb11u1
ii  mercurial   5.6.1-4
pn  ruby-fcgi   
ii  subversion  1.14.1-3+deb11u1

-- debconf information excluded


# aptitude install -t bullseye-backports redmine
The following NEW packages will be installed:
  racc{a} ruby-chunky-png{a} ruby-commonmarker{a} ruby-enum{a} 
  ruby-html-pipeline{a} ruby-metaclass{a} ruby-mini-magick{a} 
  ruby-mini-portile2{a} ruby-mocha{a} ruby-posix-spawn{a} ruby-rotp{a} 
  ruby-rqrcode{a} ruby-rqrcode-core{a} ruby-sanitize{a} ruby-task-list{a} 
  ruby-zip{a} 
The following packages will be REMOVED:
  ruby-mime-types{u} ruby-mime-types-data{u} ruby-mimemagic{u} 
The following packages will be upgraded:
  redmine ruby-actioncable ruby-actionmailbox ruby-actionmailer 
  ruby-actionpack ruby-actionpack-action-caching ruby-actiontext 
  ruby-actionview ruby-activejob ruby-activemodel ruby-activerecord 
  ruby-activestorage ruby-activesupport ruby-csv ruby-globalid ruby-i18n 
  ruby-marcel ruby-mini-mime ruby-net-ldap ruby-nokogiri ruby-rails 
  ruby-railties ruby-roadie ruby-roadie-rails ruby-rouge ruby-tzinfo 
26 packages upgraded, 16 newly installed, 3 to remove and 137 not upgraded.
Need to get 4,663 kB of archives. After unpacking 4,185 kB will be used.
Do you want to continue? [Y/n/?] 
Get: 1 https://deb.debian.org/debian bullseye-backports/main amd64 ruby-i18n 
all 1.10.0-2~bpo11+1 [42.1 kB]
Get: 2 https://deb.debian.org/debian bullseye-backports/main amd64 
ruby-globalid all 0.6.0-1~bpo11+1 [12.9 kB]
Get: 3 https://deb.debian.org/debian