Python traceback when running without sudo

Bug #906331 reported by Steve Magoun
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
iotop (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

When running iotop from the command line without 'sudo', I get a traceback. I expected a more-friendly error message such as "You must have superuser privileges to run this program". At the very least, I'd expect not to see the traceback. iotop version is 0.4.3-1ubuntu1 on 11.10 amd64.

steve@steve-laptop:~$ iotop
Traceback (most recent call last):
  File "/usr/bin/iotop", line 16, in <module>
    main()
  File "/usr/lib/python2.7/dist-packages/iotop/ui.py", line 563, in main
    main_loop()
  File "/usr/lib/python2.7/dist-packages/iotop/ui.py", line 553, in <lambda>
    main_loop = lambda: run_iotop(options)
  File "/usr/lib/python2.7/dist-packages/iotop/ui.py", line 465, in run_iotop
    return curses.wrapper(run_iotop_window, options)
  File "/usr/lib/python2.7/curses/wrapper.py", line 43, in wrapper
    return func(stdscr, *args, **kwds)
  File "/usr/lib/python2.7/dist-packages/iotop/ui.py", line 457, in run_iotop_window
    process_list = ProcessList(taskstats_connection, options)
  File "/usr/lib/python2.7/dist-packages/iotop/data.py", line 373, in __init__
    self.update_process_counts()
  File "/usr/lib/python2.7/dist-packages/iotop/data.py", line 429, in update_process_counts
    stats = self.taskstats_connection.get_single_task_stats(thread)
  File "/usr/lib/python2.7/dist-packages/iotop/data.py", line 158, in get_single_task_stats
    reply = GeNlMessage.recv(self.connection)
  File "/usr/lib/python2.7/dist-packages/iotop/genetlink.py", line 50, in recv
    msg = conn.recv()
  File "/usr/lib/python2.7/dist-packages/iotop/netlink.py", line 229, in recv
    raise err
OSError: Netlink error: Operation not permitted (1)
steve@steve-laptop:~$ ubuntu-bug iotop

ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: iotop 0.4.3-1ubuntu1
ProcVersionSignature: Ubuntu 3.0.0-15.24-generic 3.0.13
Uname: Linux 3.0.0-15-generic x86_64
NonfreeKernelModules: nvidia
ApportVersion: 1.23-0ubuntu4
Architecture: amd64
Date: Mon Dec 19 09:11:48 2011
InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Beta amd64 (20100901.1)
PackageArchitecture: all
ProcEnviron:
 PATH=(custom, user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: iotop
UpgradeStatus: Upgraded to oneiric on 2011-09-02 (107 days ago)

Revision history for this message
Steve Magoun (smagoun) wrote :
Revision history for this message
Paul Wise (Debian) (pabs) wrote : duplicate

duplicate 897411

Revision history for this message
Paul Wise (Debian) (pabs) wrote :

duplicate 897411

Revision history for this message
Paul Wise (Debian) (pabs) wrote :

 duplicate 897411

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

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in iotop (Ubuntu):
status: New → Confirmed
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.