iotop fails to launch anymore as normal user (requires sudo)

Bug #879767 reported by Vadim Peretokin on 2011-10-22
This bug affects 34 people
Affects Status Importance Assigned to Milestone
iotop (Debian)
Fix Released
iotop (Ubuntu)

Bug Description

Worked one day, doesn't today.

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

ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: iotop 0.4.3-1ubuntu1
ProcVersionSignature: Ubuntu 3.0.0-13.21-generic 3.0.6
Uname: Linux 3.0.0-13-generic x86_64
NonfreeKernelModules: nvidia
ApportVersion: 1.23-0ubuntu3
Architecture: amd64
Date: Sat Oct 22 15:15:51 2011
EcryptfsInUse: Yes
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Beta amd64 (20110413)
PackageArchitecture: all
 PATH=(custom, no user)
SourcePackage: iotop
UpgradeStatus: Upgraded to oneiric on 2011-10-19 (2 days ago)

CVE References

Vadim Peretokin (vperetokin) wrote :
Joshua (joshua-e-jacobs) wrote :

It requires sudo now for some reason.

I think that's in line with the apparmour messup that Evince also
experiences issues with:

summary: - iotop fails to launch anymore
+ iotop fails to launch anymore as normal user (requires sudo)
Launchpad Janitor (janitor) wrote :

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

Changed in iotop (Ubuntu):
status: New → Confirmed
Paul Wise (Debian) (pabs) wrote :

As I wrote in the Debian bugreport about this, Linux no longer allows non-root users to get at the per-process I/O throughput information needed by iotop, as a result if it causing security issues (CVE-2011-2494):

The crash itself will be replaced by an error when iotop is next syncronised from Debian.

Changed in iotop (Ubuntu):
status: Confirmed → In Progress
Changed in iotop (Debian):
status: Unknown → Fix Released
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package iotop - 0.4.4-1

iotop (0.4.4-1) unstable; urgency=low

  [ Paul Wise ]
  * New upstream release
    - Produces a helpful error instead of crashing when Linux
      denies permission (Closes: #644616, LP: #879767)
  * Bump Standards-Version, no changes needed

  [ Scott Kitterman ]
  * Switch to dh_python2 (LP: #856478)

 -- Paul Wise <email address hidden> Tue, 01 Nov 2011 16:10:09 +0800

Changed in iotop (Ubuntu):
status: In Progress → Fix Released
Dave Walker (davewalker) on 2011-11-15
Changed in iotop (Ubuntu Oneiric):
status: New → Triaged
Daniel (dbbolton) wrote :

This bug still exists in version 0.4.3-1ubuntu1 and 0.4.4 is not yet available in 11.10.

pioruns (pioruns) wrote :

apt-cache policy iotop
  Installed: 0.4.3-1ubuntu1
  Candidate: 0.4.3-1ubuntu1
  Version table:
 *** 0.4.3-1ubuntu1 0
        500 oneiric/universe i386 Packages
        100 /var/lib/dpkg/status

Confirmed in Lubuntu 11.10.
Fact, that developers have fixed this bug in newer version, does not change anything - because that version has not been uploaded to Ubuntu servers.

I have this issue also with Precise's iotop 0.4.4-4

sokai (sokai) on 2012-09-05
tags: added: precise
tags: removed: oneiric precise
Rolf Leggewie (r0lf) wrote :

oneiric has seen the end of its life and is no longer receiving any updates. Marking the oneiric task for this ticket as "Won't Fix".

Changed in iotop (Ubuntu Oneiric):
status: Triaged → Won't Fix
Dalip Negi (dalip.negi) wrote :

We have deployed a docker container with docker version 18.06.0-ce.

docker -v
Docker version 18.06.0-ce, build 0ffa825

While running iotop from the container , we are getting the same issue.

root@cecbf4518ca7:/# iotop
Traceback (most recent call last):
  File "/usr/sbin/iotop", line 17, in <module>
  File "/usr/lib/python2.7/dist-packages/iotop/", line 620, in main
  File "/usr/lib/python2.7/dist-packages/iotop/", line 610, in <lambda>
    main_loop = lambda: run_iotop(options)
  File "/usr/lib/python2.7/dist-packages/iotop/", line 508, in run_iotop
    return curses.wrapper(run_iotop_window, options)
  File "/usr/lib/python2.7/curses/", line 43, in wrapper
    return func(stdscr, *args, **kwds)
  File "/usr/lib/python2.7/dist-packages/iotop/", line 498, in run_iotop_window
    taskstats_connection = TaskStatsNetlink(options)
  File "/usr/lib/python2.7/dist-packages/iotop/", line 137, in __init__
    self.family_id = controller.get_family_id('TASKSTATS')
  File "/usr/lib/python2.7/dist-packages/iotop/", line 69, in get_family_id
    m = GeNlMessage.recv(self.conn)
  File "/usr/lib/python2.7/dist-packages/iotop/", line 51, in recv
    msg = conn.recv()
  File "/usr/lib/python2.7/dist-packages/iotop/", line 229, in recv
    raise err
OSError: Netlink error: No such file or directory (2)

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Remote bug watches

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