Bug 1625272

Summary: [abrt] glances: get_proc_inodes(): _pslinux.py:1401:wrapper:psutil._exceptions.NoSuchProcess: psutil.NoSuchProcess process no longer exists (pid=11155, name='firefox')
Product: [Fedora] Fedora Reporter: A Davis <nccomp>
Component: glancesAssignee: Edouard Bourguignon <madko>
Status: CLOSED EOL QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 28CC: madko, mail
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/2a08bb8bc28c9c4d93d3fc934db1771ce5637371
Whiteboard: abrt_hash:7434d1f81fbd7a4e2d496b33be1b1d8c49523576;VARIANT_ID=workstation;
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-05-28 22:18:50 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
File: backtrace
none
File: cgroup
none
File: cpuinfo
none
File: environ
none
File: mountinfo
none
File: namespaces
none
File: open_fds none

Description A Davis 2018-09-04 14:15:00 UTC
Version-Release number of selected component:
glances-2.11.1-2.fc28

Additional info:
reporter:       libreport-2.9.5
cmdline:        /usr/bin/python3 /usr/bin/glances --fs-free-space --enable-process-extended --percpu --diskio-show-ramfs --diskio-iops --fahrenheit
crash_function: get_proc_inodes
exception_type: FileNotFoundError
executable:     /usr/bin/glances
interpreter:    python3-3.6.6-1.fc28.x86_64
kernel:         4.17.11-200.fc28.x86_64
runlevel:       N 5
type:           Python3
uid:            1000

Truncated backtrace:
_pslinux.py:1401:wrapper:psutil._exceptions.NoSuchProcess: psutil.NoSuchProcess process no longer exists (pid=11155, name='firefox')

Traceback (most recent call last):
  File "/usr/lib64/python3.6/site-packages/psutil/_pslinux.py", line 1390, in wrapper
    return fun(self, *args, **kwargs)
  File "/usr/lib64/python3.6/site-packages/psutil/_pslinux.py", line 1950, in connections
    ret = _connections.retrieve(kind, self.pid)
  File "/usr/lib64/python3.6/site-packages/psutil/_pslinux.py", line 920, in retrieve
    inodes = self.get_proc_inodes(pid)
  File "/usr/lib64/python3.6/site-packages/psutil/_pslinux.py", line 742, in get_proc_inodes
    for fd in os.listdir("%s/%s/fd" % (self._procfs_path, pid)):
FileNotFoundError: [Errno 2] No such file or directory: '/proc/11155/fd'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/bin/glances", line 11, in <module>
    load_entry_point('Glances==2.11.1', 'console_scripts', 'glances')()
  File "/usr/lib/python3.6/site-packages/glances/__init__.py", line 134, in main
    start(config=config, args=args)
  File "/usr/lib/python3.6/site-packages/glances/__init__.py", line 103, in start
    mode.serve_forever()
  File "/usr/lib/python3.6/site-packages/glances/standalone.py", line 117, in serve_forever
    self.schedule.run()
  File "/usr/lib64/python3.6/sched.py", line 154, in run
    action(*argument, **kwargs)
  File "/usr/lib/python3.6/site-packages/glances/standalone.py", line 100, in __serve_forever
    self.stats.update()
  File "/usr/lib/python3.6/site-packages/glances/stats.py", line 192, in update
    self._plugins[p].update()
  File "/usr/lib/python3.6/site-packages/glances/plugins/glances_processcount.py", line 57, in update
    glances_processes.update()
  File "/usr/lib/python3.6/site-packages/glances/processes.py", line 521, in update
    extended_stats=first)
  File "/usr/lib/python3.6/site-packages/glances/processes.py", line 394, in __get_process_stats
    procstat = self.__get_extended_stats(proc, procstat)
  File "/usr/lib/python3.6/site-packages/glances/processes.py", line 371, in __get_extended_stats
    procstat['tcp'] = len(proc.connections(kind="tcp"))
  File "/usr/lib64/python3.6/site-packages/psutil/__init__.py", line 1158, in connections
    return self._proc.connections(kind)
  File "/usr/lib64/python3.6/site-packages/psutil/_pslinux.py", line 1401, in wrapper
    raise NoSuchProcess(self.pid, self._name)
psutil._exceptions.NoSuchProcess: psutil.NoSuchProcess process no longer exists (pid=11155, name='firefox')

Local variables in innermost frame:
kwargs: {}
args: ('tcp',)
self: <psutil._pslinux.Process object at 0x7f09f00c1c60>
fun: <function Process.connections at 0x7f09f4491ae8>

Comment 1 A Davis 2018-09-04 14:15:05 UTC
Created attachment 1480796 [details]
File: backtrace

Comment 2 A Davis 2018-09-04 14:15:06 UTC
Created attachment 1480797 [details]
File: cgroup

Comment 3 A Davis 2018-09-04 14:15:07 UTC
Created attachment 1480798 [details]
File: cpuinfo

Comment 4 A Davis 2018-09-04 14:15:08 UTC
Created attachment 1480799 [details]
File: environ

Comment 5 A Davis 2018-09-04 14:15:10 UTC
Created attachment 1480800 [details]
File: mountinfo

Comment 6 A Davis 2018-09-04 14:15:11 UTC
Created attachment 1480801 [details]
File: namespaces

Comment 7 A Davis 2018-09-04 14:15:12 UTC
Created attachment 1480802 [details]
File: open_fds

Comment 8 Ben Cotton 2019-05-02 20:59:21 UTC
This message is a reminder that Fedora 28 is nearing its end of life.
On 2019-May-28 Fedora will stop maintaining and issuing updates for
Fedora 28. It is Fedora's policy to close all bug reports from releases
that are no longer maintained. At that time this bug will be closed as
EOL if it remains open with a Fedora 'version' of '28'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 28 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 9 Ben Cotton 2019-05-28 22:18:50 UTC
Fedora 28 changed to end-of-life (EOL) status on 2019-05-28. Fedora 28 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.