mirror of
https://github.com/librespot-org/librespot.git
synced 2026-04-27 08:15:50 +03:00
[GH-ISSUE #367] onevent OPTION doesnt appear to start script #243
Labels
No labels
A-Alsa
SpotifyAPI
Tokio 1.0
audio
bug
can't reproduce
compilation
dependencies
duplicate
enhancement
good first issue
help wanted
high priority
imported
imported
invalid
new api
pull-request
question
reverse engineering
wiki
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/librespot#243
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Tyfui90 on GitHub (Sep 8, 2019).
Original GitHub issue: https://github.com/librespot-org/librespot/issues/367
SUMMARY:
I have been having issues with the --onevent triggering a script. Below is my current test steps to check if the script is even being ran, and it appears like it is not.
ISSUE:
--onevent is not running the scripts that are called in the raspotify file.
In my /etc/default/raspotify I have
with the 'bashScriptTest.sh' Script
The file has chmod 775, and creates the 'eelse.py' file when ran from command line with
But when I start spotify connect to the Pi this script doesnt start as evidenced by no dummy file being created.
Is this a defect, or am I misunderstanding how --onevent is supposed to trigger?
@Tyfui90 commented on GitHub (Sep 15, 2019):
The file permissions are ok when im running as user pi. But after checking logs using
Im finding that when the raspotify service is running the script it doesnt have the permission to access
This means that this issue isnt an issue, but is in fact user error. I'll close this ticket
@HippieWithGuns commented on GitHub (Mar 3, 2020):
Hi Tyfui90
could you help me understand what your issue was? i'm having the exact same problem as you, execpt that entering
journalctl --system _SYSTEMD_UNIT=raspotify.serviceis not returning an error, nor does the follwing command:
tail -f /var/log/daemon.logusing this command i can execute my script with the raspotify user to eliminate the user rights problem, but somehow my raspotify does not trigger the onevent command for me
sudo /usr/local/scripts/oneevent.sh -s /bin/sh raspotifyplease help kind stranger :)
@mrwsl commented on GitHub (Mar 4, 2020):
I think you might have a different problem. Maybe share your raspotify config.
This line is explaining it: the script tries to run a
sudocommand but the user isn't allowed to. This is why OP's onevent wasn't working.@HippieWithGuns commented on GitHub (Mar 4, 2020):
thank you for taking the time to reply and look into this, i'll gladly include my raspotify config:
let me know if another file would be of help
thanks again in advance
@mrwsl commented on GitHub (Mar 8, 2020):
Can you post the journalctl from when the script should be launched and the script as well?
@HippieWithGuns commented on GitHub (Mar 8, 2020):
Here is the log from
journalctl --system _SYSTEMD_UNIT=raspotify.servicemy script file looks like the following: