package redmine 4.0.6-2 failed to install/upgrade: installed redmine package post-installation script subprocess returned error exit status 1

Bug #1878163 reported by Michael Denk
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
redmine (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Seems to be some missing gem factory_girl

ProblemType: Package
DistroRelease: Ubuntu 20.04
Package: redmine 4.0.6-2
ProcVersionSignature: Ubuntu 5.3.0-51.44-generic 5.3.18
Uname: Linux 5.3.0-51-generic x86_64
ApportVersion: 2.20.11-0ubuntu27
Architecture: amd64
CasperMD5CheckResult: skip
Date: Tue May 12 10:28:22 2020
DuplicateSignature:
 package:redmine:4.0.6-2
 Setting up redmine (4.0.6-2) ...
 Could not find gem 'factory_girl' in any of the gem sources listed in your Gemfile.
 dpkg: error processing package redmine (--configure):
  installed redmine package post-installation script subprocess returned error exit status 1
ErrorMessage: installed redmine package post-installation script subprocess returned error exit status 1
PackageArchitecture: all
Python3Details: /usr/bin/python3.8, Python 3.8.2, python3-minimal, 3.8.2-0ubuntu2
PythonDetails: /usr/bin/python2.7, Python 2.7.18rc1, python-is-python2, 2.7.17-4
RelatedPackageVersions:
 dpkg 1.19.7ubuntu3
 apt 2.0.2
SourcePackage: redmine
Title: package redmine 4.0.6-2 failed to install/upgrade: installed redmine package post-installation script subprocess returned error exit status 1
UpgradeStatus: Upgraded to focal on 2020-05-12 (0 days ago)

Revision history for this message
Michael Denk (michael-denk) wrote :
tags: removed: need-duplicate-check
Revision history for this message
Michael Denk (michael-denk) wrote :

sudo apt install ruby-factory-girl resolved this issue

Another missing dependency issue was resolved via:
sudo apt install rails-controller-testing

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in redmine (Ubuntu):
status: New → Confirmed
Revision history for this message
Markus Neubauer (mn-ubuntu) wrote (last edit ):
Download full text (7.3 KiB)

Not exactly the same but I'm not shure to report it here and avoid duplicates:

1) After a apt upgrade today redmine fails to install complaining
-----
Setting up passenger-doc (1:6.0.16-1~focal1) ...
Setting up passenger (1:6.0.16-1~focal1) ...
Setting up libnginx-mod-http-passenger (1:6.0.16-1~focal1) ...
Installing new version of config file /etc/nginx/conf.d/mod-http-passenger.conf ...
Setting up passenger-dev (1:6.0.16-1~focal1) ...
Processing triggers for redmine (4.0.6-2) ...
Could not find gem 'webmock' in any of the gem sources listed in your Gemfile.
#########################################################################
# Failed to detect redmine dependencies; if you are in the middle of an #
# upgrade, this is probably fine, there will be another attempt later. #
# #
# If you are NOT in the middle of an upgrade, there is probably a real #
# issue. Please report a bug. #
#########################################################################
-----
State is now:
/usr/bin/ruby2.7
ruby 1:2.7+1
redmine 4.0.6-2
redmine-mysql 4.0.6-2
passenger-dev:amd64 1:6.0.16-1~focal1
libnginx-mod-http-passenger:amd64 1:6.0.16-1~focal1
passenger:amd64 1:6.0.16-1~focal1

2) going to /usr/share/redmine and trying "bundle install" fails too:
Bundler::GemNotFound: Could not find thread_safe-0.3.6.gem for installation
  /var/lib/gems/2.7.0/gems/bundler-2.4.1/lib/bundler/source/rubygems.rb:159:in `install'
  /var/lib/gems/2.7.0/gems/bundler-2.4.1/lib/bundler/installer/gem_installer.rb:54:in `install'
  /var/lib/gems/2.7.0/gems/bundler-2.4.1/lib/bundler/installer/gem_installer.rb:16:in `install_from_spec'
  /var/lib/gems/2.7.0/gems/bundler-2.4.1/lib/bundler/installer/parallel_installer.rb:155:in `do_install'
  /var/lib/gems/2.7.0/gems/bundler-2.4.1/lib/bundler/installer/parallel_installer.rb:146:in `block in worker_pool'
  /var/lib/gems/2.7.0/gems/bundler-2.4.1/lib/bundler/worker.rb:62:in `apply_func'
  /var/lib/gems/2.7.0/gems/bundler-2.4.1/lib/bundler/worker.rb:57:in `block in process_queue'
  /var/lib/gems/2.7.0/gems/bundler-2.4.1/lib/bundler/worker.rb:54:in `loop'
  /var/lib/gems/2.7.0/gems/bundler-2.4.1/lib/bundler/worker.rb:54:in `process_queue'
  /var/lib/gems/2.7.0/gems/bundler-2.4.1/lib/bundler/worker.rb:90:in `block (2 levels) in create_threads'

An error occurred while installing thread_safe (0.3.6), and Bundler cannot continue.

In Gemfile:
  rails was resolved to 5.2.8.1, which depends on
    actioncable was resolved to 5.2.8.1, which depends on
      actionpack was resolved to 5.2.8.1, which depends on
        actionview was resolved to 5.2.8.1, which depends on
          rails-dom-testing was resolved to 2.0.3, which depends on
            activesupport was resolved to 5.2.8.1, which depends on
              tzinfo was resolved to 1.2.10, which depends on
                thread_safe

Bundler::GemNotFound: Could not find arel-9.0.0.gem for installation
  /var/lib/gems/2.7.0/gems/bundler-2.4.1/lib/bundler/source/rubygems.rb:159:in `install'
  /var/lib/gems/2.7.0/gems/bundler-2.4.1/lib/bundler/installer/gem_installer.rb:54:in `...

Read more...

Revision history for this message
Markus Neubauer (mn-ubuntu) wrote :

I've found the fix that helped at https://stackoverflow.com/a/40672309/3791488
After that the system went back to normal function.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.