landscape-sysinfo crashed with ValueError in <module>()

Bug #335799 reported by FriedChicken
86
This bug affects 20 people
Affects Status Importance Assigned to Milestone
landscape-client (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: landscape-client

Problem appeared some time after logging in.

ProblemType: Crash
Architecture: i386
DistroRelease: /usr/bin/lsb_release:81: DeprecationWarning: the sets module is deprecated import sets Ubuntu 9.04
ExecutablePath: /usr/bin/landscape-sysinfo
InterpreterPath: /usr/bin/python2.6
Package: landscape-common 1.0.26.1-0ubuntu0.9.04
PackageArchitecture: all
ProcAttrCurrent: unconfined
ProcCmdline: /usr/bin/python /usr/bin/landscape-sysinfo
ProcEnviron:
 LANGUAGE=de_DE:de:en_GB:en
 PATH=(custom, no user)
 LANG=de_DE.UTF-8
 SHELL=/bin/sh
PythonArgs: ['/usr/bin/landscape-sysinfo']
SourcePackage: landscape-client
Title: landscape-sysinfo crashed with ValueError in <module>()
Uname: Linux 2.6.28-8-generic i686
UserGroups:

Revision history for this message
FriedChicken (domlyons) wrote :
Revision history for this message
Andreas Hasenack (ahasenack) wrote :

Can you please run "landscape-sysinfo" in the command line, as yourself? I believe this issue was caused by the recent upgrade to python-2.6.1, which temporarily broke a number of packages.

Changed in landscape-client:
status: New → Incomplete
Revision history for this message
FriedChicken (domlyons) wrote :
Download full text (4.6 KiB)

$ landscape-sysinfo
/usr/lib/python2.6/dist-packages/twisted/internet/_sslverify.py:5: DeprecationWarning: the md5 module is deprecated; use hashlib instead
  import itertools, md5
/usr/lib/python2.6/dist-packages/twisted/python/filepath.py:12: DeprecationWarning: the sha module is deprecated; use the hashlib module instead
  import sha
Traceback (most recent call last):
  File "/usr/bin/landscape-sysinfo", line 12, in <module>
    run(sys.argv[1:], reactor)
  File "/usr/lib/python2.6/dist-packages/landscape/sysinfo/deployment.py", line 86, in run
    setup_logging()
  File "/usr/lib/python2.6/dist-packages/landscape/sysinfo/deployment.py", line 77, in setup_logging
    maxBytes=500 * 1024, backupCount=1)
  File "/usr/lib/python2.6/logging/handlers.py", line 107, in __init__
    BaseRotatingHandler.__init__(self, filename, mode, encoding, delay)
  File "/usr/lib/python2.6/logging/handlers.py", line 59, in __init__
    logging.FileHandler.__init__(self, filename, mode, encoding, delay)
  File "/usr/lib/python2.6/logging/__init__.py", line 791, in __init__
    StreamHandler.__init__(self, self._open())
  File "/usr/lib/python2.6/logging/__init__.py", line 810, in _open
    stream = open(self.baseFilename, self.mode)
IOError: [Errno 13] Permission denied: '/home/dominic/.landscape/sysinfo.log'

$ sudo chown dominic:dominic /home/dominic/.landscape/sysinfo.log
[sudo] password for dominic:
                     ...

Read more...

Changed in landscape-client:
status: Incomplete → Confirmed
Revision history for this message
Andreas Hasenack (ahasenack) wrote :

Interesting. Do you have any idea what the ownership was before you fixed it? I'm curious if it would be root or something like uid 1000 or thereabouts.

Revision history for this message
FriedChicken (domlyons) wrote :

No, sorry. I didn't look after this before changing the ownership. I thought it would be root...
I don't even know which program started landscape-sysinfo when it crashed the first time.

Revision history for this message
Andreas Hasenack (ahasenack) wrote :

It's run via cron every 10min by default.
Hmm, ok, I'm out of ideas, I'm going to blame this on the python 2.6.x upgrade that messed up with a lot of packages and was bound to introduce spurious errors while the upgrade was going on and packages were being rebuilt.

Changed in landscape-client:
status: Confirmed → Invalid
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.