MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord

    SOLVED Permission denied after updating node.js and electron

    Troubleshooting
    2
    5
    143
    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.
    • S
      SwissChemist last edited by

      Hi guys,
      after 1.5 years I thought that it would be time to update my Magic Mirror to version 2.18.0, including node.js and electron.
      But now when I want to start it, I face the following issue:

      pi@raspberrypi:~/MagicMirror $ npm start
      magicmirror@2.18.0 start
      DISPLAY=“${DISPLAY:=:0}” ./node_modules/.bin/electron js/electron.js
      sh: 1: ./node_modules/.bin/electron: Permission denied

      I also used Sam’s scripts to update: [https://github.com/sdetweil/MagicMirror_scripts]…but it did not work either.

      Even changing the owner and reinstalling electron did not work:
      pi@raspberrypi:~ $ sudo chown -R pi MagicMirror
      pi@raspberrypi:~ $ npm install electron --unsafe-perm=true

      Has anybody further ideas how to make it work again? Thanks so much!

      @ I have a Raspberry Pi 3 Model B

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

        @SwissChemist this sounds like the used up sd card.

        the technology is write once. when the bits are all consumed, the file system does not know, and the result is crazy results.

        sd card is great for low write devices. camera and music player. bad for operating system that uses paging all the time, writing to logs

        Sam

        Create a working config
        How to add modules

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

          @sdetweil Thanks for the hint!
          I tried to use the same backup on a different SD card, showed the same issue.
          Maybe I need to set it up from scratch on a different card…

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

            @SwissChemist use my backup tool.
            https://github.com/sdetweil/MagicMirror-backup-restore

            is saves config.js, custom.css and the GitHub urls of the add on modules

            then restore adds it all back after mm install

            download and run the backup script.

            save the three files

            then copy back after mm install
            then run restore

            Sam

            Create a working config
            How to add modules

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

              @sdetweil Hi Sam,
              thanks very much for your great scripts. They really work like charm!

              Basic installation of the MagicMirror really worked without any issue using your scripts.
              I am just fighting with some modules, which are obviously not up to date, but that’s a different story.
              At least I found the root cause of an issue with MMM_systemtemperature and I hope that I could help some other beginners who struggled with that module and did not get support in corresponding forum up to now…or just misunderstood the instructions in the forum.

              I want to thank you so much for the great work you are doing for the MM community!

              1 Reply Last reply Reply Quote 0
              • 1 / 1
              • First post
                Last post
              Enjoying MagicMirror? Please consider a donation!
              MagicMirror created by Michael Teeuw.
              Forum managed by Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
              This forum is using NodeBB as its core | Contributors
              Contact | Privacy Policy