Skip to content
This repository has been archived by the owner on Oct 31, 2023. It is now read-only.

NoSuchProcess: psutil.NoSuchProcess no process found with pid 516 #4905

Open
ederenn opened this issue Nov 18, 2019 · 0 comments
Open

NoSuchProcess: psutil.NoSuchProcess no process found with pid 516 #4905

ederenn opened this issue Nov 18, 2019 · 0 comments
Labels
0.23 release bug develop P3 Severity-Low/Effort-hard

Comments

@ederenn
Copy link

ederenn commented Nov 18, 2019

Description

Golem Version: GOLEM Version: 0.21.0+dev374.ga33739d

Golem-Messages version (leave empty if unsure): 3.14.0

Electron version (if used): 0.21.0

OS [e.g. Windows 10 Pro]: Windows 10 Pro

Branch (if launched from source): develop

Mainnet/Testnet: mainnet

Priority label is set to the lowest by default. To setup higher priority please change the label
P0 label is set for Severity-Critical/Effort-easy
P1 label is set for Severity-Critical/Effort-hard
P2 label is set for Severity-Low/ Effort-easy
P3 label is set for Severity-Low/Effort-hard

Description of the issue:

When shutting down Golem is trying to close process which is already closed.
After closing Golem running in console window, i'm getting error NoSuchProcess: psutil.NoSuchProcess no process found with pid 516

Steps To Reproduce

Short description of steps to reproduce the behavior:
e.g.

  1. Run Golem from source on develop branch
  2. Allow it to connect and run a while.
  3. Close Golem with ctrl c in console window
  4. See error

Expected behavior

(What is the expected behavior and/or result in this scenario)

Logs and any additional context

INFO     [golem.network.concent.client       ] <ConcentClientService(Thread-9, started daemon 6344)> stopped
WARNING  [twisted                            ] session closed with reason wamp.close.transport_lost [()]
WARNING  [twisted                            ] Native worker connection closed uncleanly: A process has ended with a probable error condition: process ended with exit code 1.
Unhandled error in Deferred:
CRITICAL [twisted                            ] Unhandled error in Deferred:

Traceback (most recent call last):
  File "C:\Users\ederenn\Projects\golem-env\lib\site-packages\twisted\internet\defer.py", line 460, in callback
    self._startRunCallbacks(result)
  File "C:\Users\ederenn\Projects\golem-env\lib\site-packages\twisted\internet\defer.py", line 568, in _startRunCallbacks
    self._runCallbacks()
  File "C:\Users\ederenn\Projects\golem-env\lib\site-packages\twisted\internet\defer.py", line 654, in _runCallbacks
    current.result = callback(current.result, *args, **kw)
  File "C:\Users\ederenn\Projects\golem-env\lib\site-packages\twisted\internet\defer.py", line 1475, in gotResult
    _inlineCallbacks(r, g, status)
--- <exception caught here> ---
  File "C:\Users\ederenn\Projects\golem-env\lib\site-packages\twisted\internet\defer.py", line 1418, in _inlineCallbacks
    result = g.send(result)
  File "C:\Users\ederenn\Projects\golem\golem\client.py", line 688, in quit
    self.daemon_manager.stop()
  File "C:\Users\ederenn\Projects\golem\golem\network\hyperdrive\daemon_manager.py", line 119, in stop
    self._monitor.exit()
  File "C:\Users\ederenn\Projects\golem\golem\core\processmonitor.py", line 48, in exit
    self.kill_processes()
  File "C:\Users\ederenn\Projects\golem\golem\core\processmonitor.py", line 70, in kill_processes
    self.kill_process(process)
  File "C:\Users\ederenn\Projects\golem\golem\core\processmonitor.py", line 75, in kill_process
    process_info = psutil.Process(process.pid)
  File "C:\Users\ederenn\Projects\golem-env\lib\site-packages\psutil\__init__.py", line 381, in __init__
    self._init(pid)
  File "C:\Users\ederenn\Projects\golem-env\lib\site-packages\psutil\__init__.py", line 421, in _init
    raise NoSuchProcess(pid, None, msg)
psutil.NoSuchProcess: psutil.NoSuchProcess no process found with pid 516

CRITICAL [twisted                            ]
Traceback (most recent call last):
  File "C:\Users\ederenn\Projects\golem-env\lib\site-packages\twisted\internet\defer.py", line 1418, in _inlineCallbacks
    result = g.send(result)
StopIteration

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ederenn\Projects\golem-env\lib\site-packages\twisted\internet\defer.py", line 1418, in _inlineCallbacks
    result = g.send(result)
StopIteration

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ederenn\Projects\golem-env\lib\site-packages\psutil\_pswindows.py", line 620, in wrapper
    return fun(self, *args, **kwargs)
  File "C:\Users\ederenn\Projects\golem-env\lib\site-packages\psutil\_pswindows.py", line 793, in create_time
    return cext.proc_create_time(self.pid)
ProcessLookupError: [Errno 3] No such process

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ederenn\Projects\golem-env\lib\site-packages\psutil\__init__.py", line 408, in _init
    self.create_time()
  File "C:\Users\ederenn\Projects\golem-env\lib\site-packages\psutil\__init__.py", line 734, in create_time
    self._create_time = self._proc.create_time()
  File "C:\Users\ederenn\Projects\golem-env\lib\site-packages\psutil\_pswindows.py", line 625, in wrapper
    raise NoSuchProcess(self.pid, self._name)
psutil.NoSuchProcess: psutil.NoSuchProcess process no longer exists (pid=516)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\ederenn\Projects\golem-env\lib\site-packages\twisted\internet\defer.py", line 1418, in _inlineCallbacks
    result = g.send(result)
  File "C:\Users\ederenn\Projects\golem\golem\client.py", line 688, in quit
    self.daemon_manager.stop()
  File "C:\Users\ederenn\Projects\golem\golem\network\hyperdrive\daemon_manager.py", line 119, in stop
    self._monitor.exit()
  File "C:\Users\ederenn\Projects\golem\golem\core\processmonitor.py", line 48, in exit
    self.kill_processes()
  File "C:\Users\ederenn\Projects\golem\golem\core\processmonitor.py", line 70, in kill_processes
    self.kill_process(process)
  File "C:\Users\ederenn\Projects\golem\golem\core\processmonitor.py", line 75, in kill_process
    process_info = psutil.Process(process.pid)
  File "C:\Users\ederenn\Projects\golem-env\lib\site-packages\psutil\__init__.py", line 381, in __init__
    self._init(pid)
  File "C:\Users\ederenn\Projects\golem-env\lib\site-packages\psutil\__init__.py", line 421, in _init
    raise NoSuchProcess(pid, None, msg)
psutil.NoSuchProcess: psutil.NoSuchProcess no process found with pid 516

Proposed Solution?

(Optional: What could be a solution for that issue)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
0.23 release bug develop P3 Severity-Low/Effort-hard
Projects
None yet
Development

No branches or pull requests

4 participants