MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.

    ERRNO 126, ELIFECYCLE, permission denied on RPI3

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    13 Posts 3 Posters 3.8k Views 3 Watching
    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.
    • lavolp3L Offline
      lavolp3 Module Developer @someone123416
      last edited by lavolp3

      @someone123416
      can you make sure you are in the MagicMirror directory when you start the Mirror via npm start?
      You need to be in the correct directory for that to work.

      Also, please mkae sure you use code pattern for the output posted. I’ve edited it for you.

      How to troubleshoot modules
      MMM-soccer v2, MMM-AVStock

      1 Reply Last reply Reply Quote 0
      • S Offline
        someone123416
        last edited by

        Thank you very much for your reply!

        Yes, I am in the MM directory (cd MagicMirror) before attempting to start.

        Sorry for the mistake w the output stuff. First time in this forum 😁

        lavolp3L 1 Reply Last reply Reply Quote 0
        • lavolp3L Offline
          lavolp3 Module Developer @someone123416
          last edited by

          @someone123416 Have you maybe installed MM with sudo priviledge, having a permission error?

          If you have just installed I would delete the magicmirror folder an reinstall everything and be careful not to sudo anything.
          Use the new installation and upgrade script for that. (i think it is described in the official readme.)

          How to troubleshoot modules
          MMM-soccer v2, MMM-AVStock

          S 1 Reply Last reply Reply Quote 0
          • S Offline
            someone123416
            last edited by

            Ok, I will give that a shot today!

            Thx

            1 Reply Last reply Reply Quote 0
            • S Offline
              someone123416 @lavolp3
              last edited by

              @lavolp3 Hi, sorry for the very late follow-up, I was very occupied last week.

              I’ve cleared the micro sd card and started from scratch, reinstalling raspbian and MM without Sudo privilege or any type of permission restriction.

              The bad news is that it still gave the same error message. The good news is that I might’ve found the reason behind the failure. It seems to not be able to download nor install chromedriver.js. This might be caused by me being in mainland China right now, and the “great firewall of China” has blocked the download.

              Is there any other way to get the chromedriver.js files and manually put it into the MM folder?

              Thank you very much for your time!

              S 1 Reply Last reply Reply Quote 0
              • S Offline
                sdetweil @someone123416
                last edited by

                @someone123416 try this…

                npm install --only=prod
                

                as the chromedriver is only needed for testing… which u won’t be doing…

                if you used the automated install script then you wouldn’t have these problems…
                see https://github.com/sdetweil/MagicMirror_scripts

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                1 Reply Last reply Reply Quote 0
                • S Offline
                  someone123416
                  last edited by

                  Thank you, Sam, for your reply!

                  MagicMirror installed successfully with the --only=prod command, the error code about chromedriver has disappeared.

                  However, I am still getting the same error message (errno 126) when trying to npm start the program, in fact, the exact same error message.

                  I am really curious about why I am getting a permission error, as I’ve installed it without any privileges.

                  S 1 Reply Last reply Reply Quote 0
                  • S Offline
                    sdetweil @someone123416
                    last edited by sdetweil

                    @someone123416 did u erase the node_modules folder

                    cd ~/MagicMirror
                    rm -rf node_modules
                    npm install --only=prod
                    

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    S 1 Reply Last reply Reply Quote 0
                    • S Offline
                      someone123416 @sdetweil
                      last edited by

                      @sdetweil Hi Sam,

                      Thank you very much for your reply.

                      I’ve tried earasing the node_modules folder, but still no luck. Exact same error message.

                      S 1 Reply Last reply Reply Quote 0
                      • S Offline
                        sdetweil @someone123416
                        last edited by

                        @someone123416 back in your original post, you said
                        “I’ve hooked up my rpi directly to a display via hdmi n everything works fine”

                        It works on a real display, but doesn’t some other way?

                        So, r u doing this over vnc? Or?

                        Sam

                        How to add modules

                        learning how to use browser developers window for css changes

                        S 1 Reply Last reply Reply Quote 0
                        • 1
                        • 2
                        • 1 / 2
                        • First post
                          Last post
                        Enjoying MagicMirror? Please consider a donation!
                        MagicMirror created by Michael Teeuw.
                        Forum managed by Sam, technical setup by Karsten.
                        This forum is using NodeBB as its core | Contributors
                        Contact | Privacy Policy