I fixed the issue by disabling spotify for logs. Turned out i was getting a lot of logs in runeui.log and was flooding the logs folder causing it to max out of space.
The fix was to disable spotify for logs, thanks to Franks help i was able to locate how to do so:
Logging can be disabled in the conf file (/etc/spop/spopd.conf)
# Path to the log file. If blank, messages will not be saved anywhere.
# Default is blank.
#log_file =
If you are in the same boat and had the same issue then this will fix!
P.s, i encountered another issue where when i had spotify set as active. If i rebooted the system, spotify would not load and crash for me cause of an address family issue (Network issue). But my network was grand? My guess which im still waiting on a confirmation from Frank was that my network device on the PI was booting after spotify tried to load? Causing it to die since spotify requires network
My fix for this is as follows:
Added sleep for 1 second before trying to start the spopd service.
File: command/rune_SY_wrk
- Code: Select all
// read activePlayer state
$activePlayer = $redis->get('activePlayer');
if ($activePlayer === 'MPD') {
// check MPD process
sysCmd('pgrep -x mpd || systemctl start mpd');
} elseif ($activePlayer === 'Spotify') {
// check Spotify process
sleep(1); //Wait another second to fix spotify at boot
sysCmd('pgrep -x spopd || systemctl start spopd');
} else {
// reset activePlayer state to MPD (default)
$redis->set('activePlayer', 'MPD');
}
And:
- Code: Select all
// start player backend
if ($activePlayer === 'MPD') {
sysCmd('systemctl start mpd');
usleep(500000);
// set mpd start volume
$mpd_volume = $redis->get('mpd_start_volume');
if ($mpd_volume !== '-1') {
sysCmd('mpc volume '.$mpd_volume);
}
// start upmpdcli
if ($redis->hGet('dlna', 'enable') === '1') {
runelog("service: UPMPDCLI start");
sysCmd('systemctl start upmpdcli');
}
// start mpdscribble
if ($redis->hGet('lastfm','enable') === '1') {
runelog("service: MPDSCRIBBLE start");
sysCmd('systemctl start mpdscribble');
}
} elseif ($activePlayer === 'Spotify') {
sleep(1); //Wait another second to fix spotify at boot
sysCmd('systemctl start spopd');
}