[SRU] package quickml 0.7-5.1 failed to install/upgrade: installed quickml package post-installation script subprocess returned error exit status 1

Bug #1921914 reported by Steven Jones
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
quickml (Debian)
New
Unknown
quickml (Ubuntu)
Status tracked in Oracular
Focal
Confirmed
Undecided
Unassigned
Jammy
Confirmed
Undecided
Unassigned
Mantic
Confirmed
Undecided
Unassigned
Noble
Confirmed
Undecided
Unassigned
Oracular
Fix Released
Undecided
Unassigned

Bug Description

[ Impact ]

quickml is completely unusable as it will even fail to install when attempted.

The errors seen are:

Setting up quickml (0.8-1) ...
Job for quickml.service failed because the control process exited with error code.
See "systemctl status quickml.service" and "journalctl -xeu quickml.service" for details.
invoke-rc.d: initscript quickml, action "start" failed.
× quickml.service
     Loaded: loaded (/etc/init.d/quickml; generated)
     Active: failed (Result: exit-code) since Mon 2024-04-29 20:37:00 BST; 7ms ago
       Docs: man:systemd-sysv-generator(8)
    Process: 2929 ExecStart=/etc/init.d/quickml start (code=exited, status=1/FAILURE)
        CPU: 87ms

Apr 29 20:37:00 noble quickml[2935]: from /usr/lib/ruby/vendor_ruby/quickml/server.rb:16:in `<top (required)>'
Apr 29 20:37:00 noble quickml[2935]: from <internal:/usr/lib/ruby/vendor_ruby/rubygems/core_ext/kernel_require.rb>:86:in `require'
Apr 29 20:37:00 noble quickml[2935]: from <internal:/usr/lib/ruby/vendor_ruby/rubygems/core_ext/kernel_require.rb>:86:in `require'
Apr 29 20:37:00 noble quickml[2935]: from /usr/lib/ruby/vendor_ruby/quickml.rb:7:in `<top (required)>'
Apr 29 20:37:00 noble quickml[2935]: from <internal:/usr/lib/ruby/vendor_ruby/rubygems/core_ext/kernel_require.rb>:86:in `require'
Apr 29 20:37:00 noble quickml[2935]: from <internal:/usr/lib/ruby/vendor_ruby/rubygems/core_ext/kernel_require.rb>:86:in `require'
Apr 29 20:37:00 noble quickml[2935]: from /usr/sbin/quickml:15:in `<main>'
Apr 29 20:37:00 noble systemd[1]: quickml.service: Control process exited, code=exited, status=1/FAILURE
Apr 29 20:37:00 noble systemd[1]: quickml.service: Failed with result 'exit-code'.
Apr 29 20:37:00 noble systemd[1]: Failed to start quickml.service.
dpkg: error processing package quickml (--configure):
 installed quickml package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
 quickml
E: Sub-process /usr/bin/dpkg returned an error code (1)

[ Test Plan ]

1. install quickml.
2. check if installed successfully
3. As a quick verification check:
systemctl status quickml.service

[ Where problems could occur ]

There is no change in code and it only fixes a runtime dependency and places an empty config file which quickml tries to read at startup. So, there is very minimum chance of any regression.

[ Other Info ]

This will fix the quickml installation and the service will start. But for a proper functioning of quickml, the user will need to add the smtp_host (which should be same as domain) in the /etc/mailname.

[ Original Bug Description ]

While installing.

ProblemType: Package
DistroRelease: Ubuntu 20.04
Package: quickml 0.7-5.1
ProcVersionSignature: Ubuntu 5.8.0-48.54~20.04.1-generic 5.8.18
Uname: Linux 5.8.0-48-generic x86_64
ApportVersion: 2.20.11-0ubuntu27.16
Architecture: amd64
CasperMD5CheckResult: skip
Date: Tue Mar 30 08:57:21 2021
ErrorMessage: installed quickml package post-installation script subprocess returned error exit status 1
InstallationDate: Installed on 2021-03-29 (0 days ago)
InstallationMedia: Ubuntu 20.04 LTS "Focal Fossa" - Release amd64 (20200423)
PackageArchitecture: all
Python3Details: /usr/bin/python3.8, Python 3.8.5, python3-minimal, 3.8.2-0ubuntu2
PythonDetails: N/A
RelatedPackageVersions:
 dpkg 1.19.7ubuntu3
 apt 2.0.4
SourcePackage: quickml
Title: package quickml 0.7-5.1 failed to install/upgrade: installed quickml package post-installation script subprocess returned error exit status 1
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Steven Jones (shj082556) wrote :
tags: removed: need-duplicate-check
Revision history for this message
Sudip Mukherjee (sudipmuk) wrote :

I can reproduce the problem in Noble also.

Revision history for this message
Sudip Mukherjee (sudipmuk) wrote :

This is reproducible on Focal, Jammy, Mantic and Noble.

Changed in quickml (Ubuntu):
status: New → Confirmed
tags: added: jammy mantic noble
Changed in quickml (Ubuntu):
status: Confirmed → In Progress
assignee: nobody → Sudip Mukherjee (sudipmuk)
Revision history for this message
Sudip Mukherjee (sudipmuk) wrote :

debdiff attached for Noble.

Changed in quickml (Ubuntu):
status: In Progress → Confirmed
assignee: Sudip Mukherjee (sudipmuk) → nobody
Changed in quickml (Debian):
status: Unknown → New
Revision history for this message
Sudip Mukherjee (sudipmuk) wrote :

Debdiff attached for oracular.

summary: - package quickml 0.7-5.1 failed to install/upgrade: installed quickml
- package post-installation script subprocess returned error exit status 1
+ [SRU] package quickml 0.7-5.1 failed to install/upgrade: installed
+ quickml package post-installation script subprocess returned error exit
+ status 1
description: updated
Revision history for this message
Sudip Mukherjee (sudipmuk) wrote :

Modified debdiff for Noble.

Revision history for this message
Sudip Mukherjee (sudipmuk) wrote :

debdiff for Mantic

Revision history for this message
Sudip Mukherjee (sudipmuk) wrote :

debdiff for Jammy

Revision history for this message
Sudip Mukherjee (sudipmuk) wrote :

debdiff for Focal

description: updated
Revision history for this message
Dave Jones (waveform) wrote :

Confirmed on all noted series; targetting accordingly. I was a little nervous about rm'ing /etc/mailname in the postrm, but an apt-file search confirms nothing else seems to own it (if something else owned it, it might be better to create things like this in postinst, and just leave them there in {pre,post}rm, but in this case it looks okay).

Changed in quickml (Ubuntu Noble):
status: New → Confirmed
Changed in quickml (Ubuntu Mantic):
status: New → Confirmed
Changed in quickml (Ubuntu Jammy):
status: New → Confirmed
Changed in quickml (Ubuntu Focal):
status: New → Confirmed
Revision history for this message
Dave Jones (waveform) wrote :

Hmm, one thing that a test build in oracular shows is that lintian complains about the package depending on lsb-base, which is now an empty transitional package. It appears the only reason it depends on it is for the init-script in debian/quickml.init and there's no equivalent systemd package. I'll sponsor this anyway because the "fix" should be in oracular before the SRUs are considered, but I have a suspicion this is broken in noble onwards anyway (which is where lsb-base was made transitional IIRC), and will need some minor surgery to add a systemd service definition there.

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

This bug was fixed in the package quickml - 0.8-1ubuntu1

---------------
quickml (0.8-1ubuntu1) oracular; urgency=medium

  * Fix quickml failure to install. (LP: #1921914)
    - d/control: Add runtime dependency on ruby-thwait.
    - d/postinst: Create /etc/mailname if it does not exist.
    - d/postrm: Remove /etc/mailname.

 -- Sudip Mukherjee <email address hidden> Mon, 29 Apr 2024 20:33:04 +0100

Changed in quickml (Ubuntu Oracular):
status: Confirmed → Fix Released
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.