nefelim4ag / Ananicy

Ananicy - is Another auto nice daemon, with community rules support (Use pull request please)
GNU General Public License v3.0
569 stars 78 forks source link

dump proc IndexError: list index out of range #191

Open wilrnh opened 4 years ago

wilrnh commented 4 years ago
$ uname -a
Linux mbair 5.3.0-18-generic #19-Ubuntu SMP Tue Oct 8 20:14:06 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

$ ananicy dump proc
File: /etc/ananicy.d/00-cgroups.cgroups, Line: 6, Error: [Errno 13] Permission denied: '/sys/fs/cgroup/cpu/cpu90/cpu.cfs_period_us'
File: /etc/ananicy.d/00-cgroups.cgroups, Line: 7, Error: [Errno 13] Permission denied: '/sys/fs/cgroup/cpu/cpu80/cpu.cfs_period_us'
You are root?: [Errno 13] Permission denied: '/proc/1/exe'

$ sudo ananicy dump proc
Traceback (most recent call last):
  File "/usr/bin/ananicy", line 854, in <module>
    main(sys.argv)
  File "/usr/bin/ananicy", line 846, in main
    daemon.dump_proc()
  File "/usr/bin/ananicy", line 763, in dump_proc
    "autogroup": TPID_l.autogroup,
  File "/usr/bin/ananicy", line 95, in autogroup
    group_num = int(autogroup[0].split('-')[1])
IndexError: list index out of range