• Register
    • Login
    • Search

    Solved [Ubuntu] EACCESS Permission Issue

    EXT-Pir
    2
    6
    33
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • I
      Issa_G8 last edited by bugsounet

      Hello,

      Good day/night. I have installed EXT-Screen and EXT-Pir via gateway and receiving an error upon starting magic mirror "Error Detected. Try to solve it with ‘npm run rebuild’. I see the timer still and it does turn off the display, however never wakes with PIR sensor.
      I have EXT-Alert with debug enabled, this is the only info visible via magicmirror. I have many modules including googleassistant, detector, weather,background, all without issue only issue with EXT-Pir.
      Via terminal screen in gateway, I see [ERROR] [PIR] [CORE] Error: EACCES: permission denied, open ‘/sys/class/gpio/export’ listed. I tried both automated install via gateway and manual through procedure on wiki.

      Any pointers are greatly appreciated.

      21691634-e7a5-4fd4-aa5b-01aad95b8ac1-image.png
      175eeba0-2c2b-4af3-978d-58cc3c0693a9-image.png

      77fc5e7a-bb16-47d2-96d5-2f8b88c4548b-image.png

      1 Reply Last reply Reply Quote 0
      • bugsounet
        bugsounet Main Coder last edited by bugsounet

        can you try this:

        sudo usermod -a -G gpio pi
        

        Note: pi is the username of your account, change it if needed

        and restart MM²

        Tell me if better ?

        Note2: I have remove it from installer, If needed i will add it again

        My place in France Top committers of Github:
        committers.top badge

        I 1 Reply Last reply Reply Quote 0
        • I
          Issa_G8 @bugsounet last edited by

          Hello @bugsounet

          My output is: usermod: group ‘gpio’ does not exist

          I forgot to mention, I am running Ubuntu 22.04.2 LTS on a pi 4. I did have to add the functionality of gpio using the official Ubuntu writeups (completed without issue). My apologies for not mentioning OS version, as most users are probaby using Raspberry Pi OS.

          1 Reply Last reply Reply Quote 0
          • bugsounet
            bugsounet Main Coder last edited by

            I don’t know, I never test with it (on a pi)
            but I develop with Ubuntu 23.04 on my desktop

            My place in France Top committers of Github:
            committers.top badge

            I 1 Reply Last reply Reply Quote 0
            • I
              Issa_G8 @bugsounet last edited by

              Hello @bugsounet,

              Your question gave me a clue on what to investigate. Turns out, adding the user to “dialout” group in ubuntu is essentially same as “gpio” in raspberry pi os. I ran these commands:

              sudo apt install rpi.gpio-common
              sudo adduser "${USER}" dialout
              sudo reboot
              

              and all worked well. Timer works, screen shuts off as expected, turns on as expected. Maybe this is what I get for being the 1% of people doing this via ubuntu on a pi!

              1 Reply Last reply Reply Quote 1
              • bugsounet
                bugsounet Main Coder last edited by

                Perfect So!
                I don’t know this ubuntu package

                I will pin it for other users

                My place in France Top committers of Github:
                committers.top badge

                1 Reply Last reply Reply Quote 0
                • Pinned by  bugsounet bugsounet 
                • undefined  bugsounet bugsounet 
                • First post
                  Last post
                Powered by NodeBB | @bugsounet ©2023