Crash at /usr/share/PackageKit/helpers/apt/aptBackend.py", line 53

Bug #458759 reported by Scott Kitterman
20
This bug affects 4 people
Affects Status Importance Assigned to Milestone
packagekit (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

Binary package hint: packagekit

Transcribing a bug reported via IRC:

- STDERR: Traceback (most recent call last):
  File "/usr/share/PackageKit/helpers/apt/aptBackend.py", line 53, in <module>
    logging.handlers.SysLogHandler.LOG_DAEMON)
  File "/usr/lib/python2.6/logging/handlers.py", line 710, in __init__
    self._connect_unixsocket(address)
  File "/usr/lib/python2.6/logging/handlers.py", line 725, in _connect_unixsocket
    self.socket.connect(address)
  File "<string>", line 1, in connect
socket.error: [Errno 2] No such file or directory

TI:23:25:50 FI:pk-backend.c FN:pk_backend_message,1084
 - emit message 4, Traceback (most recent call last):
  File "/usr/share/PackageKit/helpers/apt/aptBackend.py", line 53, in <module>
    logging.handlers.SysLogHandler.LOG_DAEMON)
  File "/usr/lib/python2.6/logging/handlers.py", line 710, in __init__
    self._connect_unixsocket(address)
  File "/usr/lib/python2.6/logging/handlers.py", line 725, in _connect_unixsocket
    self.socket.connect(address)
  File "<string>", line 1, in connect
socket.error: [Errno 2] No such file or directory

TI:23:25:50 FI:pk-transaction.c FN:pk_transaction_message_cb,760
 - ignoring message: Traceback (most recent call last):
  File "/usr/share/PackageKit/helpers/apt/aptBackend.py", line 53, in <module>
    logging.handlers.SysLogHandler.LOG_DAEMON)
  File "/usr/lib/python2.6/logging/handlers.py", line 710, in __init__
    self._connect_unixsocket(address)
  File "/usr/lib/python2.6/logging/handlers.py", line 725, in _connect_unixsocket
    self.socket.connect(address)
  File "<string>", line 1, in connect
socket.error: [Errno 2] No such file or directory

<stikonas> btw, why kubuntu 9.10RC shipped with broken KPackageKit? I can fix it for myself, but many less advanced testers won't be able to easily update
<ScottK> stikonas: What's broken that's fixable?
<ScottK> debfx: I'm test building now.
<stikonas> it doesn't work for me at all because of some syntax errors in /usr/share/PackageKit/helpers/aptBackend.py
<stikonas> I had to comment out lines 52-56
<stikonas> am I the only one experiencing this?
<ScottK> stikonas: Would you please pastebin what you have there
<stikonas> ScottK: http://pastebin.ca/1638652
<stikonas> these are errors from packagekitd --verbose
<ScottK> stikonas: What happens if you add import socket near the top of the file?
<stikonas> it is already there
<ScottK> Oh.
-*- ScottK looks some more
<maco> stikonas: are you saying you know how to patch it?
<ScottK> Damn. Packagekit is 8 megabytes of fail. It'll be a little while where I am now.
<stikonas> I've just commented out those lines that generate errors
<stikonas> it seems that they do some logging

Related branches

Revision history for this message
Scott Kitterman (kitterman) wrote :

Looks the same as the problem that aptdaemon had that was solved in:

http://bazaar.launchpad.net/~aptdaemon-developers/aptdaemon/main/revision/242

Revision history for this message
Scott Kitterman (kitterman) wrote :

Confirmed. Running kpackagekit from a Konsole session works fine. As soon as I stop rsyslog, and run it again, I get a crash.

Changed in packagekit (Ubuntu):
status: New → In Progress
importance: Undecided → Medium
milestone: none → ubuntu-9.10
Revision history for this message
Scott Kitterman (kitterman) wrote :

Built the patched package and installed it. Confirmed that kpackagekit no longer crashed if syslog was not running, renabled syslog, and verified that actions were still logged when it was running. Uploaded, pending release team review.

Changed in packagekit (Ubuntu):
status: In Progress → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package packagekit - 0.4.9+20090825-0ubuntu6

---------------
packagekit (0.4.9+20090825-0ubuntu6) karmic; urgency=low

  * debian/patches/fix_no_syslog_crash.patch
    - fix crash when syslog is not running (LP: #458759)
    - Inspired by ~aptdaemon-developers/aptdaemon/main/revision/242

 -- Scott Kitterman <email address hidden> Fri, 23 Oct 2009 00:47:50 -0400

Changed in packagekit (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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