Skip to content

System doesn't complete shutdown #1

@frogran

Description

@frogran

Occasionally the system gets stuck in the shutdown process, whether initiated from the terminal or web UI.
In my experience (though not consistent), it's caused after an experiment session has been loaded, and doesn't change even if the session is closed.

$ ps -a
    PID TTY          TIME CMD
...
  23129 pts/0    00:00:34 python
  23163 pts/0    00:00:00 python
  24133 pts/0    00:00:01 python <defunct>
  24387 pts/0    00:00:01 python
  25313 pts/0    00:00:01 python <defunct>
  26909 pts/1    00:00:00 ps

Processes become until root process is killed manually, which leads to the following output in the ReptiLearn terminal:

2025-23-02 14:00:59 INFO     Main MQTT disconnecting...
Exception in thread Thread-1 (listener):
Traceback (most recent call last):
  File "/home/tal/anaconda3/envs/reptilearn/lib/python3.10/threading.py", line 1016, in _bootstrap_inner
    self.run()
  File "/home/tal/anaconda3/envs/reptilearn/lib/python3.10/threading.py", line 953, in run
    self._target(*self._args, **self._kwargs)
  File "/home/tal/dev/reptiLearn/system/video_stream.py", line 379, in listener
    if update_event.wait(1):
  File "/home/tal/anaconda3/envs/reptilearn/lib/python3.10/multiprocessing/managers.py", line 1093, in wait
    return self._callmethod('wait', (timeout,))
  File "/home/tal/anaconda3/envs/reptilearn/lib/python3.10/multiprocessing/managers.py", line 818, in _callmethod
    kind, result = conn.recv()
  File "/home/tal/anaconda3/envs/reptilearn/lib/python3.10/multiprocessing/connection.py", line 250, in recv
    buf = self._recv_bytes()
  File "/home/tal/anaconda3/envs/reptilearn/lib/python3.10/multiprocessing/connection.py", line 414, in _recv_bytes
    buf = self._recv(4)
  File "/home/tal/anaconda3/envs/reptilearn/lib/python3.10/multiprocessing/connection.py", line 383, in _recv
    raise EOFError
EOFError
Killed

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions