Skip to content

In relation to #224 #226

@danmrossi

Description

@danmrossi

Hello @hjelev hope you are well.

I noticed this error on a couple of machines, only copied the one here as on both machines it is the exact same line by line and only just started today:

sshing in and restarting the services "fixes" it but not overly ideal when out and about lol - If there is anything else i can provide please let me know.

● rpi-mqtt-monitor.service - RPI MQTT Monitor
Loaded: loaded (/etc/systemd/system/rpi-mqtt-monitor.service; enabled; vendor preset: enabled)
Active: active (running) since Sat 2025-06-07 19:28:34 AWST; 2 days ago
Main PID: 574 (python3)
Tasks: 4 (limit: 3933)
CPU: 38min 54.693s
CGroup: /system.slice/rpi-mqtt-monitor.service
└─574 /home/roboctrl/rpi-mqtt-monitor/rpi_mon_env/bin/python3 /home/roboctrl/rpi-mqtt-monitor/src/rpi-cpu2mqtt.py --service

Jun 10 15:43:02 roboctrl python3[574]: File "/home/roboctrl/rpi-mqtt-monitor/rpi_mon_env/lib/python3.9/site-packages/paho/mqtt/client.py", line 1556, in loop_read
Jun 10 15:43:02 roboctrl python3[574]: rc = self._packet_read()
Jun 10 15:43:02 roboctrl python3[574]: File "/home/roboctrl/rpi-mqtt-monitor/rpi_mon_env/lib/python3.9/site-packages/paho/mqtt/client.py", line 2419, in _packet_read
Jun 10 15:43:02 roboctrl python3[574]: data = self._sock_recv(self._in_packet['to_process'])
Jun 10 15:43:02 roboctrl python3[574]: File "/home/roboctrl/rpi-mqtt-monitor/rpi_mon_env/lib/python3.9/site-packages/paho/mqtt/client.py", line 640, in _sock_recv
Jun 10 15:43:02 roboctrl python3[574]: return self._sock.recv(bufsize)
Jun 10 15:43:02 roboctrl python3[574]: AttributeError: 'NoneType' object has no attribute 'recv'
Jun 10 16:43:05 roboctrl sudo[10419]: root : PWD=/home/roboctrl/rpi-mqtt-monitor ; USER=root ; COMMAND=/usr/bin/apt update
Jun 10 16:43:05 roboctrl sudo[10419]: pam_unix(sudo:session): session opened for user root(uid=0) by (uid=0)
Jun 10 16:43:11 roboctrl sudo[10419]: pam_unix(sudo:session): session closed for user root
~

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