Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 | phoniebox-gpio-control.service: Failed with result 'exit-code' #2488

Open
nicolasb183 opened this issue Feb 1, 2025 · 3 comments
Open
Labels
bug legacy_v2 Issues, discussions and PRs related to Version 2.x needs triage

Comments

@nicolasb183
Copy link

Version

2.8.0 - 5044358 - master

Branch

master

OS

Raspbian GNU/Linux 12 (bookworm)

Pi model

3 B+

Hardware

On off shim
Hifi Berry MiniAmp
GPIO extension

What happened?

Hi

I tried to configure the Buttons using the gpio_settings.ini. When I restart the service i get an error in the journalctl and the script crashes.

Feb 01 08:12:56 phonie systemd[1]: phoniebox-gpio-control.service: Scheduled restart job, restart counter is at 426. Feb 01 08:12:56 phonie systemd[1]: Stopped phoniebox-gpio-control.service - Phoniebox GPIO Control Service. Feb 01 08:12:56 phonie systemd[1]: Started phoniebox-gpio-control.service - Phoniebox GPIO Control Service. Feb 01 08:12:57 phonie PhonieboxGPIOControl[22622]: INFO:__main__:GPIO Started Feb 01 08:12:57 phonie PhonieboxGPIOControl[22622]: INFO:__main__:['VolumeControl', 'RotaryVolumeControl', 'PrevNextControl', 'PlayPause', 'Shutdown', 'PauseShutdown', 'Volume0', 'VolumeUp', 'VolumeDown'> Feb 01 08:12:57 phonie PhonieboxGPIOControl[22622]: INFO:__main__:Device VolumeControl not enabled Feb 01 08:12:57 phonie PhonieboxGPIOControl[22622]: INFO:__main__:Device RotaryVolumeControl not enabled Feb 01 08:12:57 phonie PhonieboxGPIOControl[22622]: INFO:__main__:Device PrevNextControl not enabled Feb 01 08:12:57 phonie PhonieboxGPIOControl[22622]: INFO:__main__:adding GPIO-Device, PlayPause Feb 01 08:12:57 phonie PhonieboxGPIOControl[22622]: PlayPause Feb 01 08:12:57 phonie PhonieboxGPIOControl[22622]: Traceback (most recent call last): Feb 01 08:12:57 phonie PhonieboxGPIOControl[22622]: File "/home/pi/RPi-Jukebox-RFID/components/gpio_control/gpio_control.py", line 140, in <module> Feb 01 08:12:57 phonie PhonieboxGPIOControl[22622]: devices = gpio_control_class.get_all_devices(config) Feb 01 08:12:57 phonie PhonieboxGPIOControl[22622]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Feb 01 08:12:57 phonie PhonieboxGPIOControl[22622]: File "/home/pi/RPi-Jukebox-RFID/components/gpio_control/gpio_control.py", line 108, in get_all_devices Feb 01 08:12:57 phonie PhonieboxGPIOControl[22622]: device = self.generate_device(config[section], section) Feb 01 08:12:57 phonie PhonieboxGPIOControl[22622]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Feb 01 08:12:57 phonie PhonieboxGPIOControl[22622]: File "/home/pi/RPi-Jukebox-RFID/components/gpio_control/gpio_control.py", line 62, in generate_device Feb 01 08:12:57 phonie PhonieboxGPIOControl[22622]: return SimpleButton(config.getint('Pin'), Feb 01 08:12:57 phonie PhonieboxGPIOControl[22622]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Feb 01 08:12:57 phonie PhonieboxGPIOControl[22622]: File "/home/pi/RPi-Jukebox-RFID/components/gpio_control/GPIODevices/simple_button.py", line 93, in __init__ Feb 01 08:12:57 phonie PhonieboxGPIOControl[22622]: GPIO.add_event_detect(self.pin, edge=self.edge, callback=self.callbackFunctionHandler, Feb 01 08:12:57 phonie PhonieboxGPIOControl[22622]: RuntimeError: Failed to add edge detection Feb 01 08:12:57 phonie kernel: export_store: invalid GPIO 11 Feb 01 08:12:57 phonie systemd[1]: phoniebox-gpio-control.service: Main process exited, code=exited, status=1/FAILURE Feb 01 08:12:57 phonie systemd[1]: phoniebox-gpio-control.service: Failed with result 'exit-code'.

I#m wondering if this has to do something with the new GPIO libraries and this bug: https://github.com/MiczFlor/RPi-Jukebox-RFID/pull/2469

Logs

No response

Configuration

No response

More info

No response

@nicolasb183 nicolasb183 added bug legacy_v2 Issues, discussions and PRs related to Version 2.x needs triage labels Feb 1, 2025
@AlvinSchiller
Copy link
Collaborator

Hi, the gpio fix for Bookworm (#2469) has not been released on master yet.
You need to install the develop branch to use the fix.

@nicolasb183
Copy link
Author

OK - that makes sense then.

Is there any version 3 of the phoniebox having the fix and spotify installed already?

If I have to use a development branch I would propably rather like to use the new version.

@AlvinSchiller
Copy link
Collaborator

Version 2 and 3 have there own release and develop branch.
Version 3 has currently no Spotify support and some other features might also not implemented.
As for the gpio problem, I am currently finishing the fix for V3 #2470, which then needs review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug legacy_v2 Issues, discussions and PRs related to Version 2.x needs triage
Projects
None yet
Development

No branches or pull requests

2 participants