Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 5174

Troubleshooting • Re: Trouble setting up whipper to run automatically

$
0
0
when I try to start the systemctl process with

Code:

sudo systemctl start rip-audio.service
I get the error
...

Code:

...Dec 22 13:55:35 raspberrypi whipper.sh[3726]: Error: drive offset unconfigured. Please install pycdio and run 'whipper offset find' to detect your drive's offset or set it manually in the configuration file. ...
However I know that my .config file is working and properly setup with my drive offset.
Your personal config file is set up correctly, but using sudo to start the service means it's a system service and thus being run by root. Who doesn't know about your config file at all.

Possible cop-out fix: copy your config file to /root

Alternative approach, still using systemd: look into setting up a user service. This is a fairly decent intro: systemd user services and systemctl --user

Alternative long-shot solution: maybe pcmanfm (the file manager) has a command action that runs when a CD is inserted? I don't see this in the preferences, but maybe there's a way to have the file manager trigger your script

Statistics: Posted by scruss — Fri Dec 22, 2023 9:50 pm



Viewing all articles
Browse latest Browse all 5174

Trending Articles