ubuntu-bug tomcat7 is crashing with "permission denied"

Bug #1262202 reported by Michael Basse
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
apport (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

On Ubuntu 12.04 i wanted to report a bug against tomcat7, so i used "ubuntu-bug tomcat7" and i got this traceback:
The first two german lines are just "collecting information can be send to the developers to improve the application"

Die gesammelten Informationen können an die Entwickler gesendet werden
um die Anwendung zu verbessern. Dies kann einige Minuten dauern.
......................ERROR: hook /usr/share/apport/general-hooks/ubuntu.py crashed:
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/apport/report.py", line 719, in add_hooks_info
    symb['add_info'](self, ui)
  File "/usr/share/apport/general-hooks/ubuntu.py", line 92, in add_info
    attach_conffiles(report, package, ui=ui)
  File "/usr/lib/python2.7/dist-packages/apport/hookutils.py", line 107, in attach_conffiles
    modified = packaging.get_modified_conffiles(package)
  File "/usr/lib/python2.7/dist-packages/apport/packaging_impl.py", line 263, in get_modified_conffiles
    with open(path, 'rb') as fd:
IOError: [Errno 13] Permission denied: u'/etc/tomcat7/tomcat-users.xml'
....

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: tomcat7 7.0.26-1ubuntu1.2
ProcVersionSignature: Ubuntu 3.5.0-43.66~precise1-generic 3.5.7.23
Uname: Linux 3.5.0-43-generic x86_64
ApportVersion: 2.0.1-0ubuntu17.6
Architecture: amd64
Date: Wed Dec 18 14:04:59 2013
InstallationMedia: Ubuntu-Server 12.04.2 LTS "Precise Pangolin" - Release amd64 (20130214)
MarkForUpload: True
PackageArchitecture: all
ProcEnviron:
 TERM=xterm
 PATH=(custom, no user)
 LANG=de_DE.UTF-8
 SHELL=/bin/bash
SourcePackage: tomcat7
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Michael Basse (michael-alpha-unix) wrote :
Revision history for this message
Michael Basse (michael-alpha-unix) wrote :

As an additinal info:
i used "ubuntu-bug tomcat7" directly after the installation, so i did not change aynthing.

michael@raidbuntu:~$ ls -all /etc/tomcat7/tomcat-users.xml
-rw-r----- 1 root tomcat7 1530 Feb 25 2012 /etc/tomcat7/tomcat-users.xml

So seems like, ubuntu-bug is executing it as my normal user "michael" which is not part of tomcat7 or root.

michael@raidbuntu:~$ id michael
uid=1000(michael) gid=1000(michael) Gruppen=1000(michael),4(adm),24(cdrom),27(sudo),30(dip),46(plugdev),111(lpadmin),112(sambashare)

Revision history for this message
Quinn Balazs (qbalazs) wrote :

I think this is likely an issue in apport rather than in tomcat7. Changed package to reflect that. Will test later to determine the reproducibility of this issue.

affects: tomcat7 (Ubuntu) → apport (Ubuntu)
Revision history for this message
Quinn Balazs (qbalazs) wrote :

Confirmed. "sudo ubuntu-bug tomcat7" works as expected as it supersedes any other permissions.

Changed in apport (Ubuntu):
status: New → Confirmed
Revision history for this message
V字龍(Vdragon) (vdragon) wrote :

Confirmed this issue on gdebi-kde package

Revision history for this message
V字龍(Vdragon) (vdragon) wrote :

UPDATE: Taking closer look to the bug I find out that it's isn't really my issue.

Revision history for this message
Quinn Balazs (qbalazs) wrote :

This issue, as I am assuming you've realized, is specific to a problem in the apport hook for tomcat 7. If you're experiencing a similar problem with another package it should be filed as a new bug against apport.

Thanks.

Revision history for this message
Marcus Tomlinson (marcustomlinson) wrote :

This release of Ubuntu is no longer receiving maintenance updates. If this is still an issue on a maintained version of Ubuntu please let us know.

Changed in apport (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for apport (Ubuntu) because there has been no activity for 60 days.]

Changed in apport (Ubuntu):
status: Incomplete → Expired
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.