Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: 'Process' object has no attribute 'set_nice' #2

Open
gumond opened this issue Aug 17, 2020 · 0 comments
Open

AttributeError: 'Process' object has no attribute 'set_nice' #2

gumond opened this issue Aug 17, 2020 · 0 comments

Comments

@gumond
Copy link

gumond commented Aug 17, 2020

We are observing regular crash with the following report [1]:
Could this be a bug ?

[1]
reason: cern-rpmverify:50:renice:AttributeError: 'Process' object has no attribute 'set_nice'
cmdline: python /usr/bin/cern-rpmverify
executable: /usr/bin/cern-rpmverify
package: cern-rpmverify-4.1-4.el7.cern
component: cern-rpmverify
pid: 25583
hostname: p05614920e58551.cern.ch
count: 165
abrt_version: 2.1.11
analyzer: Python
architecture: x86_64
duphash: d1aecd3175412cc2edd620ab5c815d74332aa79e
kernel: 3.10.0-862.3.2.el7.x86_64
last_occurrence: 1597608782
os_release: CentOS Linux release 7.7.1908 (Core)
pkg_arch: noarch
pkg_epoch: 0
pkg_fingerprint: 5E03 FDE5 1D1E 034B
pkg_name: cern-rpmverify
pkg_release: 4.el7.cern
pkg_vendor: CERN
pkg_version: 4.1
time: Thu 05 Mar 2020 10:13:02 PM CET
type: Python
uid: 0
username: root
uuid: d1aecd3175412cc2edd620ab5c815d74332aa79e

backtrace:
:cern-rpmverify:50:renice:AttributeError: 'Process' object has no attribute 'set_nice'
:
:Traceback (most recent call last):
: File "/usr/bin/cern-rpmverify", line 317, in
: main()
: File "/usr/bin/cern-rpmverify", line 307, in main
: do_it(conf)
: File "/usr/bin/cern-rpmverify", line 280, in do_it
: ioclass=conf.ioclass, iovalue=(conf.ionice - conf.priority_diff))
: File "/usr/bin/cern-rpmverify", line 50, in renice
: process.set_nice(nice)
:AttributeError: 'Process' object has no attribute 'set_nice'
:
:Local variables in innermost frame:
:process: psutil.Process(pid=25583, name='python', started='22:13:00')
:iovalue: 6
:process_id: 25583
:ioclass: 2
:nice: 18
environ:
:LANG=en_US.UTF-8
:SHELL=/bin/sh
:XDG_RUNTIME_DIR=/run/user/0
:SHLVL=1
:PWD=/root
:LOGNAME=root
:USER=root
:HOME=/root
:PATH=/usr/bin:/bin
:XDG_SESSION_ID=48142
:_=/usr/bin/ionice
os_info:
:NAME="CentOS Linux"
:VERSION="7 (Core)"
:ID="centos"
:ID_LIKE="rhel fedora"
:VERSION_ID="7"
:PRETTY_NAME="CentOS Linux 7 (Core)"
:ANSI_COLOR="0;31"
:CPE_NAME="cpe:/o:centos:centos:7"
:HOME_URL="http://cern.ch/linux/"
:BUG_REPORT_URL="http://cern.ch/linux/"
:
:CENTOS_MANTISBT_PROJECT="CentOS-7"
:CENTOS_MANTISBT_PROJECT_VERSION="7"
:REDHAT_SUPPORT_PRODUCT="centos"
:REDHAT_SUPPORT_PRODUCT_VERSION="7"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant