Skip to content

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

@nicolasb183

Description

@nicolasb183

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugduplicatelegacy_v2Issues, discussions and PRs related to Version 2.x

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions