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

GPIO Permssions Denied #515

Closed
S1L3NTANG3L opened this issue Oct 2, 2022 · 1 comment
Closed

GPIO Permssions Denied #515

S1L3NTANG3L opened this issue Oct 2, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@S1L3NTANG3L
Copy link

What happened

Moonraker is unable to access the gpio pins on my Radxa zero or the BTT CB1.
Log Output:
2022-10-02 13:02:25,273 [gpio.py:_request_gpio()] - Unable to init gpiochip0:gpio6. Make sure the gpio is not in use by another program or exported by sysfs.
Traceback (most recent call last):
File "/home/biqu/moonraker/moonraker/components/gpio.py", line 84, in _request_gpio
chip = self._get_gpio_chip(pin_params['chip_id'])
File "/home/biqu/moonraker/moonraker/components/gpio.py", line 40, in _get_gpio_chip
chip = self.gpiod.Chip(chip_name, self.gpiod.Chip.OPEN_BY_NAME)
PermissionError: [Errno 13] Permission denied
2022-10-02 13:02:25,273 [moonraker.py:add_warning()] - Failed to load power device [power light_strip_2 ]
Error parsing option (pin) from section [power light_strip_2 ]

Client

Mainsail

Browser

Firefox

How to reproduce

  1. Use the default CB1 or Radxa Zero images :
    1.1. radxa-zero-ubuntu-focal-server-arm64-20220801-0346-mbr.img.xz
    1.2. CB1_Debian11_bullseye_Klipper_kernel5.16_20220929.img
  2. Install everything using KIUH
  3. Add a power device to the moonraker config that uses any of the gpio pins.
  4. should get an error.

Additional information

moonraker.log

@S1L3NTANG3L S1L3NTANG3L added the bug Something isn't working label Oct 2, 2022
@S1L3NTANG3L
Copy link
Author

Here's the solution for the CB1 -> 💯

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant