apport isn't started on new installs

Bug #1722801 reported by Iain Lane
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
apport (Ubuntu)
Fix Released
High
Brian Murray
Artful
Fix Released
High
Brian Murray

Bug Description

with this version:

root@cosmic-terrapin:~# apt policy apport
apport:
  Installed: 2.20.7-0ubuntu2
  Candidate: 2.20.7-0ubuntu2
  Version table:
 *** 2.20.7-0ubuntu2 500
        500 http://archive.ubuntu.com/ubuntu artful/main amd64 Packages
        100 /var/lib/dpkg/status

the rc*.d links aren't installed

root@cosmic-terrapin:~# ls -l /etc/rc*.d/*apport*
ls: cannot access '/etc/rc*.d/*apport*': No such file or directory

which means that apport isn't started, so it doesn't set up the core_pattern.

on zesty, it seems good

root@sharing-macaw:~# apt policy apport
apport:
  Installed: 2.20.4-0ubuntu4.5
  Candidate: 2.20.4-0ubuntu4.5
  Version table:
 *** 2.20.4-0ubuntu4.5 500
        500 http://archive.ubuntu.com/ubuntu zesty-updates/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu zesty-security/main amd64 Packages
        100 /var/lib/dpkg/status
     2.20.4-0ubuntu4 500
        500 http://archive.ubuntu.com/ubuntu zesty/main amd64 Packages

root@sharing-macaw:~# ls -l /etc/rc*.d/*apport*
lrwxrwxrwx 1 root root 16 Oct 11 13:17 /etc/rc2.d/S01apport -> ../init.d/apport
lrwxrwxrwx 1 root root 16 Oct 11 13:17 /etc/rc3.d/S01apport -> ../init.d/apport
lrwxrwxrwx 1 root root 16 Oct 11 13:17 /etc/rc4.d/S01apport -> ../init.d/apport
lrwxrwxrwx 1 root root 16 Oct 11 13:17 /etc/rc5.d/S01apport -> ../init.d/apport

Revision history for this message
Sebastien Bacher (seb128) wrote :

That's likely a side effect of that upload
https://launchpad.net/ubuntu/+source/apport/2.20.6-0ubuntu5

the removal of the upstart script changed the generated output from dh_installinit

Changed in apport (Ubuntu):
importance: Undecided → High
tags: added: rls-aa-incoming
Revision history for this message
Iain Lane (laney) wrote :

maybe we need to call dh_installinit -papport -o?

Revision history for this message
Brian Murray (brian-murray) wrote :

There is no apport.init in the debian directory by adding a symlink for that to etc/init.d/apport I was able to get a postinst with:

# Automatically added by dh_installinit/10.7.2ubuntu2
if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ]; then
        if [ -x "/etc/init.d/apport" ]; then
                update-rc.d apport defaults >/dev/null
                invoke-rc.d apport start || true
        fi
fi
# End automatically added section

Changed in apport (Ubuntu):
status: New → In Progress
assignee: nobody → Brian Murray (brian-murray)
Revision history for this message
Iain Lane (laney) wrote : Re: [Bug 1722801] Re: apport isn't started on new installs

On Wed, Oct 11, 2017 at 09:17:53PM -0000, Brian Murray wrote:
> There is no apport.init in the debian directory by adding a symlink for
> that to etc/init.d/apport I was able to get a postinst with:
>
> # Automatically added by dh_installinit/10.7.2ubuntu2
> if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ]; then
> if [ -x "/etc/init.d/apport" ]; then
> update-rc.d apport defaults >/dev/null
> invoke-rc.d apport start || true
> fi
> fi
> # End automatically added section

Yeah, I think telling dh_installinit to do that with -o is similar to
this - from the manpage:

       -o, --only-scripts
           Only modify postinst/postrm/prerm scripts, do not actually install any init script, default files,
           upstart job or systemd service file. May be useful if the file is shipped and/or installed by
           upstream in a way that doesn't make it easy to let dh_installinit find it.

That sounds like what we're doing here, and seems to generate the same
code in postinst/postrm.

--
Iain Lane [ <email address hidden> ]
Debian Developer [ <email address hidden> ]
Ubuntu Developer [ <email address hidden> ]

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

This bug was fixed in the package apport - 2.20.7-0ubuntu3

---------------
apport (2.20.7-0ubuntu3) artful; urgency=medium

  * Make debian/apport.init a symlink to etc/init.d/apport so that
    dh_installinit creates a good postinst. (LP: #1722801)

 -- Brian Murray <email address hidden> Wed, 11 Oct 2017 14:26:50 -0700

Changed in apport (Ubuntu Artful):
status: In Progress → Fix Released
tags: added: id-59de239c0529887e03f395de
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.