View Issue Details

IDProjectCategoryView StatusLast Update
0000460Internet RadioBugpublic2026-05-16 02:51
Reportermikee Assigned Tomikee  
PrioritynormalSeveritycrashReproducibilityhave not tried
Status assignedResolutionopen 
PlatformPCOSLinuxOS VersionOS
Summary0000460: log reports: socket.timeout: timed out and then restarts
Description

Traceback (most recent call last):

Oct 05 02:28:24 radio python3[491]:   File "/home/pi/radio/radio.py", line 1103, in main
Oct 05 02:28:24 radio python3[491]:     self.mpdclient.ping() # MPDClient will disconnect after period of inactivity, so keep it busy.
Oct 05 02:28:24 radio python3[491]:   File "/usr/local/lib/python3.7/dist-packages/mpd/base.py", line 469, in mpd_command
Oct 05 02:28:24 radio python3[491]:     return wrapper(self, name, args, callback)
Oct 05 02:28:24 radio python3[491]:   File "/usr/local/lib/python3.7/dist-packages/mpd/base.py", line 532, in _execute
Oct 05 02:28:24 radio python3[491]:     return retval()
Oct 05 02:28:24 radio python3[491]:   File "/usr/local/lib/python3.7/dist-packages/mpd/base.py", line 454, in command_callback
Oct 05 02:28:24 radio python3[491]:     res = function(self, self._read_lines())
Oct 05 02:28:24 radio python3[491]:   File "/usr/local/lib/python3.7/dist-packages/mpd/base.py", line 387, in _parse_nothing 
Oct 05 02:28:24 radio python3[491]:     for line in lines:
Oct 05 02:28:24 radio python3[491]:   File "/usr/local/lib/python3.7/dist-packages/mpd/base.py", line 586, in _read_lines
Oct 05 02:28:24 radio python3[491]:     line = self._read_line()
Oct 05 02:28:24 radio python3[491]:   File "/usr/local/lib/python3.7/dist-packages/mpd/base.py", line 568, in _read_line
Oct 05 02:28:24 radio python3[491]:     line = self._rbfile.readline().decode("utf-8")
Oct 05 02:28:24 radio python3[491]:   File "/usr/lib/python3.7/socket.py", line 589, in readinto
Oct 05 02:28:24 radio python3[491]:     return self._sock.recv_into(b)
Oct 05 02:28:24 radio python3[491]: socket.timeout: timed out
Oct 05 02:28:24 radio python3[491]: During handling of the above exception, another exception occurred:
Oct 05 02:28:24 radio python3[491]: Traceback (most recent call last):
Oct 05 02:28:24 radio python3[491]:   File "/home/pi/radio/radio.py", line 445, in mpd_connect
Oct 05 02:28:24 radio python3[491]:     self.mpdclient.ping()
Oct 05 02:28:24 radio python3[491]:   File "/usr/local/lib/python3.7/dist-packages/mpd/base.py", line 469, in mpd_command
Oct 05 02:28:24 radio python3[491]:     return wrapper(self, name, args, callback)
Oct 05 02:28:24 radio python3[491]:   File "/usr/local/lib/python3.7/dist-packages/mpd/base.py", line 532, in _execute
Oct 05 02:28:24 radio python3[491]:     return retval()
Oct 05 02:28:24 radio python3[491]:   File "/usr/local/lib/python3.7/dist-packages/mpd/base.py", line 454, in command_callback
Oct 05 02:28:24 radio python3[491]:     res = function(self, self._read_lines())
Oct 05 02:28:24 radio python3[491]:   File "/usr/local/lib/python3.7/dist-packages/mpd/base.py", line 387, in _parse_nothing
Oct 05 02:28:24 radio python3[491]:     for line in lines:
Oct 05 02:28:24 radio python3[491]:   File "/usr/local/lib/python3.7/dist-packages/mpd/base.py", line 586, in _read_lines
Oct 05 02:28:24 radio python3[491]:     line = self._read_line()
Oct 05 02:28:24 radio python3[491]:   File "/usr/local/lib/python3.7/dist-packages/mpd/base.py", line 568, in _read_line
Oct 05 02:28:24 radio python3[491]:     line = self._rbfile.readline().decode("utf-8")
Oct 05 02:28:24 radio python3[491]:   File "/usr/lib/python3.7/socket.py", line 586, in readinto
Oct 05 02:28:24 radio python3[491]:     raise OSError("cannot read from timed out object")
Oct 05 02:28:24 radio python3[491]: OSError: cannot read from timed out object
Oct 05 02:28:24 radio python3[491]: During handling of the above exception, another exception occurred:
Oct 05 02:28:24 radio python3[491]: Traceback (most recent call last):
Oct 05 02:28:24 radio python3[491]:   File "/home/pi/radio/radio.py", line 1157, in <module>
Oct 05 02:28:24 radio python3[491]:     radio.main()
Oct 05 02:28:24 radio python3[491]:   File "/home/pi/radio/radio.py", line 1106, in main
Oct 05 02:28:24 radio python3[491]:     self.mpd_connect()
Oct 05 02:28:24 radio python3[491]:   File "/home/pi/radio/radio.py", line 456, in mpd_connect
Oct 05 02:28:24 radio python3[491]:     self.mpdclient.replay_gain_mode('auto')
Oct 05 02:28:24 radio python3[491]:   File "/usr/local/lib/python3.7/dist-packages/mpd/base.py", line 469, in mpd_command
Oct 05 02:28:24 radio python3[491]:     return wrapper(self, name, args, callback)
Oct 05 02:28:24 radio python3[491]:   File "/usr/local/lib/python3.7/dist-packages/mpd/base.py", line 532, in _execute
Oct 05 02:28:24 radio python3[491]:     return retval()
Oct 05 02:28:24 radio python3[491]:   File "/usr/local/lib/python3.7/dist-packages/mpd/base.py", line 454, in command_callback
Oct 05 02:28:24 radio python3[491]:     res = function(self, self._read_lines())
Oct 05 02:28:24 radio python3[491]:   File "/usr/local/lib/python3.7/dist-packages/mpd/base.py", line 387, in _parse_nothing
Oct 05 02:28:24 radio python3[491]:     for line in lines:
Oct 05 02:28:24 radio python3[491]:   File "/usr/local/lib/python3.7/dist-packages/mpd/base.py", line 586, in _read_lines
Oct 05 02:28:24 radio python3[491]:     line = self._read_line()
Oct 05 02:28:24 radio python3[491]:   File "/usr/local/lib/python3.7/dist-packages/mpd/base.py", line 568, in _read_line
Oct 05 02:28:24 radio python3[491]:     line = self._rbfile.readline().decode("utf-8")
Oct 05 02:28:24 radio python3[491]:   File "/usr/lib/python3.7/socket.py", line 586, in readinto
Oct 05 02:28:24 radio python3[491]:     raise OSError("cannot read from timed out object")
Oct 05 02:28:24 radio python3[491]: OSError: cannot read from timed out object
Oct 05 02:28:24 radio systemd[1]: radio.service: Succeeded.
Oct 05 02:28:30 radio systemd[1]: radio.service: Service RestartSec=5s expired, scheduling restart.
Oct 05 02:28:30 radio systemd[1]: radio.service: Scheduled restart job, restart counter is at 2.
Oct 05 02:28:30 radio systemd[1]: Stopped Internet Radio Service..  
TagsNo tags attached.
Attach Tags
GitLab/Hub Issue

Activities

git

2024-10-05 11:46

updater   ~0001755

Branch main - commit 8c4f4357a7cc0c96be084b5c94ff5071d7968a8b
Author: Mike Evans <mikee@saxicola.co.uk>
Date: Sat Oct 5 11:45:49 2024 +0100

Bug-460

This error sucks and the internet is of no help.

src/radio.py

git

2026-05-16 02:51

updater   ~0002123

Branch Bug-406 - commit 8c4f4357a7cc0c96be084b5c94ff5071d7968a8b
Author: Mike Evans <mikee@saxicola.co.uk>
Date: Sat Oct 5 11:45:49 2024 +0100

Bug-460

This error sucks and the internet is of no help.

src/radio.py

Add Note

View Status
Note
Upload Files
Maximum size: 2,048 KiB

Attach files by dragging & dropping, selecting or pasting them.

Issue History

Date Modified Username Field Change
2024-10-05 11:00 mikee New Issue
2024-10-05 11:00 mikee Status new => assigned
2024-10-05 11:00 mikee Assigned To => mikee
2024-10-05 11:46 git Note Added: 0001755
2024-10-05 11:47 mikee Description Updated
2024-10-05 11:48 mikee Description Updated
2024-10-05 11:48 mikee Description Updated
2024-10-05 11:49 mikee Description Updated
2024-10-05 11:50 mikee Description Updated
2026-05-16 02:51 git Note Added: 0002123