volumio@rpi4-argon:~/smartqueue$ /usr/bin/python3 /data/plugins/user_interface/smartqueue/unit/corechooser.py
Loading configuration from /data/configuration/user_interface/smartqueue/config.json
Configuration loaded: {'Autoqueue': {'type': 'boolean', 'value': False}, 'Blissmixer': {'type': 'boolean', 'value': True}, 'Tracksn': {'type': 'number', 'value': 10}, 'Drift': {'type': 'number', 'value': 1}, 'Cosine': {'type': 'boolean', 'value': True}, 'Seed': {'type': 'boolean', 'value': True}, 'address': {'type': 'string', 'value': '192.168.1.111'}}
Running core chooser under conditions...
Raw values: Autoqueue: False, Blissmixer: True
Autoqueue: False, Blissmixer: True
Running command for Blissmixer true: /usr/bin/pgrep python3 | xargs -r /bin/kill -15 && /usr/bin/python3 /data/plugins/user_interface/smartqueue/unit/coreb.py
kill: (1130): Operation not permitted
Terminated
It only runs when i do it as sudo:
sudo /usr/bin/python3 /data/plugins/user_interface/smartqueue/unit/corechooser.py
seems the issue is with:
/usr/bin/pgrep python3 | xargs -r /bin/kill -15
Which seems already a no-go as your killing all running python pids. You are only entitled to kill the ones owned by smartqueue.
For example:
volumio@rpi4-argon:~$ ps -axo pid,cmd | egrep '/smartqueue/.*py'
4139 /usr/bin/python3 /data/plugins/user_interface/smartqueue/unit/corechooser.py
4140 /bin/sh -c /usr/bin/python3 /data/plugins/user_interface/smartqueue/unit/coreb.py
4141 /usr/bin/python3 /data/plugins/user_interface/smartqueue/unit/coreb.py
volumio@rpi4-argon:~$ pgrep -f /smartqueue.*py
4139
4140
4141
as last I see multiple identical processes running of ‘installbliss.sh’ and ‘updatebliss’:
volumio@rpi4-argon:~$ ps -axo pid,cmd | egrep '/smartqueue/unit/'
2186 shellinaboxd -t -b -p 10002 --no-beep -s /install/:volumio:volumio:/:/bin/bash /data/plugins/user_interface/smartqueue/unit/installbliss.sh
2187 shellinaboxd -t -b -p 10002 --no-beep -s /install/:volumio:volumio:/:/bin/bash /data/plugins/user_interface/smartqueue/unit/installbliss.sh
2189 shellinaboxd -t -b -p 10003 --no-beep -s /update/:volumio:volumio:/:/bin/bash /data/plugins/user_interface/smartqueue/unit/updatebliss.sh
2190 shellinaboxd -t -b -p 10003 --no-beep -s /update/:volumio:volumio:/:/bin/bash /data/plugins/user_interface/smartqueue/unit/updatebliss.sh
4139 /usr/bin/python3 /data/plugins/user_interface/smartqueue/unit/corechooser.py
4140 /bin/sh -c /usr/bin/python3 /data/plugins/user_interface/smartqueue/unit/coreb.py
4141 /usr/bin/python3 /data/plugins/user_interface/smartqueue/unit/coreb.py
volumio@rpi4-argon:~$ pgrep -f /.*bliss.*sh
2186
2187
2189
2190