Quantcast
Channel: Squeezebox : Community : Forums
Viewing all articles
Browse latest Browse all 6235

Server Power Control unable to make it work

$
0
0
My apologies if this subject has already been addressed elsewhere in this forum. I searched the entire forum for a solution to no avail.
But let me start by saying that my knowledge of Linux is extremely limited.

I run the squeezebox server in a vortexbox 2.4 environment and SrvrPowerCtrl was working faultlessly for many months now.
However, last week I tried installing Home Assistant but in the end I was left with a non working server. I had to install Vortexbox from scratch. I also tried to reinstall SrvrPowerCtrl which I did but I have not been able to make it work properly again ever since.

What happens now is that after the Allowed system idle time set by me squeezeboxserver stops but the computer running the server continues on as before.
Can someone point me in the right direction? Many thanks.
Cheers from Portugal
-----------------------
I installed SrvrPowerCtrl following the plugin instructions. In the end every time I try to run
Code:

sudo -u squeezeboxserver sudo spc-test.sh
I get the message below
Code:

Sorry, user root is not allowed to execute '/bin/sudo /usr/local/sbin/spc-clearblock.sh
I noted that even if I try to enter a non existing script the reply is always the same.

squeezeboxserver group permissions in the sudoer file are as follows

Code:

%squeezeboxserver ALL = NOPASSWD: /usr/bin/systemctl poweroff
%squeezeboxserver ALL = NOPASSWD: /usr/bin/systemctl suspend
%squeezeboxserver ALL = NOPASSWD: /usr/bin/systemctl hibernate
%squeezeboxserver ALL = NOPASSWD: /usr/bin/systemctl hybrid-sleep
%squeezeboxserver ALL = NOPASSWD: /usr/bin/systemctl reboot
%squeezeboxserver ALL = NOPASSWD: /usr/bin/crontab -l
%squeezeboxserver ALL = NOPASSWD: /usr/local/sbin/spc-clearblock.sh*
%squeezeboxserver ALL = NOPASSWD: /usr/local/sbin/spc-functions.sh*
%squeezeboxserver ALL = NOPASSWD: /usr/local/sbin/spc-health.sh*
%squeezeboxserver ALL = NOPASSWD: /usr/local/sbin/spc-minidlna.sh*
%squeezeboxserver ALL = NOPASSWD: /usr/local/sbin/spc-restart.sh*
%squeezeboxserver ALL = NOPASSWD: /usr/local/sbin/spc-setblock.sh*
%squeezeboxserver ALL = NOPASSWD: /usr/local/sbin/spc-test.sh*
%squeezeboxserver ALL = NOPASSWD: /usr/local/sbin/spc-update.sh*
%squeezeboxserver ALL = NOPASSWD: /usr/local/sbin/spc-wakeup_alt.sh*
%squeezeboxserver ALL = NOPASSWD: /usr/local/sbin/spc-wakeup.s

Due to forum limitations I am attaching a txt file with the SrvrPowerControl log.
I thank you once again for any help you may provide.
Attached Files

Viewing all articles
Browse latest Browse all 6235

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>