Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#26685 - [iotop] crash with "OSError: Netlink error: Operation not permitted (1)"

Attached to Project: Community Packages
Opened by Peter Lewis (petelewis) - Sunday, 30 October 2011, 10:12 GMT
Last edited by Jaroslav Lichtblau (Dragonlord) - Monday, 31 October 2011, 17:45 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Jaroslav Lichtblau (Dragonlord)
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

iotop doesn't start, just crashes with a permissions error.

Additional info:
* package version(s)

0.4.3-2

* config and/or log files etc.

% iotop
Traceback (most recent call last):
File "/usr/bin/iotop", line 16, in <module>
main()
File "/usr/lib/python2.7/site-packages/iotop/ui.py", line 563, in main
main_loop()
File "/usr/lib/python2.7/site-packages/iotop/ui.py", line 553, in <lambda>
main_loop = lambda: run_iotop(options)
File "/usr/lib/python2.7/site-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/site-packages/iotop/ui.py", line 457, in run_iotop_window
process_list = ProcessList(taskstats_connection, options)
File "/usr/lib/python2.7/site-packages/iotop/data.py", line 373, in __init__
self.update_process_counts()
File "/usr/lib/python2.7/site-packages/iotop/data.py", line 429, in update_process_counts
stats = self.taskstats_connection.get_single_task_stats(thread)
File "/usr/lib/python2.7/site-packages/iotop/data.py", line 158, in get_single_task_stats
reply = GeNlMessage.recv(self.connection)
File "/usr/lib/python2.7/site-packages/iotop/genetlink.py", line 50, in recv
msg = conn.recv()
File "/usr/lib/python2.7/site-packages/iotop/netlink.py", line 229, in recv
raise err
OSError: Netlink error: Operation not permitted (1)


Steps to reproduce:

run iotop with no arguments.
This task depends upon

Closed by  Jaroslav Lichtblau (Dragonlord)
Monday, 31 October 2011, 17:45 GMT
Reason for closing:  Upstream
Additional comments about closing:  Error message improved in iotop-0.4.4-1
Comment by Peter Lewis (petelewis) - Sunday, 30 October 2011, 10:15 GMT
Ah, here's more. It's due to a change in linux 3.1:

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=644616
Comment by Alexander F. Rødseth (xyproto) - Sunday, 30 October 2011, 13:09 GMT
Confirmed. Linux 3.1.
Comment by Karol Błażewicz (karol) - Sunday, 30 October 2011, 16:31 GMT
'sudo iotop' works.
Comment by Alexander F. Rødseth (xyproto) - Sunday, 30 October 2011, 21:38 GMT
imo, the python code should catch the OSError and ask the user to run as root

Loading...