Shouldn't crash when run as user instead of root

Bug #268879 reported by Fernando Miguel
78
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Landscape Client
Fix Released
High
Christopher Armstrong
Landscape Server
Fix Released
High
Christopher Armstrong
landscape-client (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: landscape-client

i just typed
#landscape-client
on a console it crashed

ProblemType: Crash
Architecture: amd64
DistroRelease: Ubuntu 8.10
ExecutablePath: /usr/bin/landscape-client
InterpreterPath: /usr/bin/python2.5
NonfreeKernelModules: nvidia
Package: landscape-client 1.0.18-0ubuntu1
PackageArchitecture: all
ProcAttrCurrent: unconfined
ProcCmdline: /usr/bin/python /usr/bin/landscape-client
ProcEnviron:
 SHELL=/bin/bash
 PATH=/root/scripts:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
 LANG=en_US.UTF-8
PythonArgs: ['/usr/bin/landscape-client']
SourcePackage: landscape-client
Title: landscape-client crashed with IOError in __init__()
Uname: Linux 2.6.27-1-generic x86_64
UserGroups: adm admin audio cdrom dip fax floppy fuse lpadmin plugdev sambashare scanner sudo tape users video

Tags: apport-crash
Revision history for this message
Fernando Miguel (fernandomiguel) wrote :
Revision history for this message
Andreas Hasenack (ahasenack) wrote :

Hi,
did you try that command as a regular user (i.e., yourself?) or root?

Revision history for this message
Fernando Miguel (fernandomiguel) wrote :

regular user.

switching to the TTYs I can see it at work.

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

Ok, so landscape-client doesn't work like that. It should be started by root via its initscript at /etc/init.d/landscape-client.

We can, of course, make the error more friendlier, i.e., not crash and give a meaningful error message instead. So, I'm marking this as confirmed, but it's a low priority.

Changed in landscape-client:
status: New → Confirmed
importance: Undecided → Low
status: New → Confirmed
Changed in landscape:
importance: Undecided → Low
milestone: none → thames
status: New → Confirmed
Revision history for this message
Fernando Miguel (fernandomiguel) wrote :

Thanks Andreas

Revision history for this message
Fernando Miguel (fernandomiguel) wrote :

It could easilly recommend the user to just run landscape-sysinfo

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

So this is our plan:
- change the message about running landscape-config to include "sudo", so it runs as root
- don't blow up if it is run as a regular user

By "it", I mean any landscape-config and landscape-client, and perhaps every other landscape-* binary.

Revision history for this message
Stephen Cradock (s-cradock) wrote :

Sounds like a good plan.

Could we users have some information about what the program actually does, and why we would want it?

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

There is landscape-client, which is the client part of Landscape (see http://www.canonical.com/projects/landscape), and landscape-sysinfo, which is packaged in landscape-common. The sysinfo part doesn't require a Landscape account and is meant just to give a brief summary of the status of the system whenever users login on a terminal or via ssh.

Revision history for this message
Terry (terry-kryogenic) wrote :

I wonder if this should be installed by default anyway? (assuming it will be installed by default) Seems mostly meaningless to anyone unless they have a landscape account and if they do, it's just a simple matter of installing it etc. I know this may not be related to this bug but I do wonder, especially as it's yet another not-needed daemon/service that's starting up during the boot process.

On the other hand, it has highlighted this issue. :)

Revision history for this message
Stephen Cradock (s-cradock) wrote :

Thanks Andreas. I second Terry's concern about this being installed by default, and have removed it from my stand-alone system.

Revision history for this message
Terry (terry-kryogenic) wrote :

Got this today, latest updates as of about 20 minutes ago which included landscape packages. I did nothing to directly invoke anything to do with landscape myself.

landscape-monitor crashed with IOError in __init__()

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

Terry, so this just popped up in the middle of the upgrade?

Revision history for this message
Terry (terry-kryogenic) wrote :

This happened right after rebooting. I've not seen any messages since relating to landscape. Infact I did not get any more messages even after the most recent upgrade of the landscape package.

Changed in landscape:
milestone: thames → thames-pre-9
Revision history for this message
Andreas Hasenack (ahasenack) wrote :

I think we have to give this a higher priority. Because of apport, it's a very visible crash on the desktop, and it would give Landscape a bad name to have suddenly many users reporting it, even though it's not supposed to run with user privileges.

Changed in landscape-client:
importance: Low → High
Changed in landscape:
importance: Low → High
Changed in landscape:
assignee: nobody → radix
Revision history for this message
Christopher Armstrong (radix) wrote :

Merged to trunk

Changed in landscape-client:
assignee: nobody → radix
status: Confirmed → Fix Committed
Thomas Herve (therve)
Changed in landscape:
status: Confirmed → Fix Committed
Revision history for this message
Andreas Hasenack (ahasenack) wrote :

The intrepid package change is being worked on on bug #277658

Changed in landscape-client:
status: Confirmed → In Progress
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package landscape-client - 1.0.23-0ubuntu0.8.10

---------------
landscape-client (1.0.23-0ubuntu0.8.10) intrepid; urgency=low

  * New upstream release. (LP: #277658):
    Changes since 1.0.21.1:
    - Don't print duplicate warnings when / is nearing capacity in sysinfo
      (LP: #260230).
    - Slight change to link text in landscape-sysinfo.
    - Don't crash badly when programs are run as the incorrect user
      (LP: #268879).
  * debian/changelog: New debian-version scheme including Ubuntu version. The
    same upstream version is available for all supported releases.
    (LP: #277682).
  * debian/landscape-client.postrm: Delete log and data files upon purge
    (LP: #121182).
  * debian/landscape-common.postrm: Delete the sysinfo logs upon purge.

 -- Christopher Armstrong <email address hidden> Thu, 09 Oct 2008 11:40:51 -0400

Changed in landscape-client:
status: In Progress → Fix Released
Changed in landscape-client:
status: Fix Committed → Fix Released
Changed in landscape:
status: Fix Committed → 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.