• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
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.

EACCES: permission denied, open js/positions.js

Scheduled Pinned Locked Moved Unsolved Troubleshooting
7 Posts 2 Posters 256 Views 2 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.
  • A Offline
    A_Nameless_Ghoul
    last edited by Dec 10, 2024, 5:54 PM

    Hey there,

    i try to start up MM for the first time and i am getting this message:

    > magicmirror@2.29.0 start
    > DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js
    
    [2024-12-10 18:24:50.095] [LOG]   Starting MagicMirror: v2.29.0 
    [2024-12-10 18:24:50.176] [LOG]   Loading config ... 
    [2024-12-10 18:24:50.187] [LOG]   config template file not exists, no envsubst 
    [2024-12-10 18:24:52.233] [INFO]  Checking config file /home/paul/MagicMirror/config/config.js ... 
    [2024-12-10 18:24:52.478] [INFO]  Your configuration file doesn't contain syntax errors :) 
    [2024-12-10 18:24:52.482] [INFO]  Checking modules structure configuration ... 
    [2024-12-10 18:24:52.488] [ERROR] EACCES: permission denied, open 'js/positions.js' 
    

    the weird thing is, that the positions.js file doesnt exist.

    anyone can help?

    S 1 Reply Last reply Dec 10, 2024, 6:09 PM Reply Quote 0
    • S Offline
      sdetweil @A_Nameless_Ghoul
      last edited by sdetweil Dec 10, 2024, 9:08 PM Dec 10, 2024, 6:09 PM

      @A_Nameless_Ghoul you are running MagicMirror on Synology NAS?

      We will create that file if it doesn’t exist

      You probably created folder w Synology user, but the docker container is running as user 1000

      So, either change the owner (chown command)
      Or add the user to the group (chgrp command)
      Or add the permissions for the other group to write(chmod command)

      In Linux a file has three permission entries
      User xyz
      Group xyz
      Other xyz

      X is execute
      Y is write
      Z is read 7 is all on, 0 is all off

      ls -laF
      Will show the files and their owner, group and permission sets

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      A 1 Reply Last reply Dec 11, 2024, 2:43 PM Reply Quote 0
      • A Offline
        A_Nameless_Ghoul @sdetweil
        last edited by Dec 11, 2024, 2:43 PM

        @sdetweil No, i am trying to run it as its recommended on a Raspberry Pi (4B)

        Untill now i just followed exactly the steps provided on the Installation & Usage page.
        I didnt installed any extra Modules… wanted first to try out if it works…

        I am a newbie in Linux and programming, so it may take a while for me to read about how to use and execute the commands.

        S 1 Reply Last reply Dec 11, 2024, 2:49 PM Reply Quote 0
        • S Offline
          sdetweil @A_Nameless_Ghoul
          last edited by Dec 11, 2024, 2:49 PM

          @A_Nameless_Ghoul did you use sudo? sudo git clone? NEVER use sudo for MM related commands

          use my install script… it does all the work (listed as first alternative in doc, or see
          https://github.com/sdetweil/MagicMirror_scripts)

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          A 1 Reply Last reply Dec 11, 2024, 5:09 PM Reply Quote 0
          • A Offline
            A_Nameless_Ghoul @sdetweil
            last edited by Dec 11, 2024, 5:09 PM

            @sdetweil ok, Thank you for the install script! I didn´t scrolled so far down on the Installation & Usage page to see, that there is an automatic installation script because in the introduction it says “Therefore the only officially supported way of installation is by using a manual installation.” So i just tried to install it manually… F**k me… right?

            I will format my SD card and make a fresh start tomorrow!

            Thank you for now! Will keep you updated!
            Cheers

            S 1 Reply Last reply Dec 11, 2024, 5:52 PM Reply Quote 0
            • S Offline
              sdetweil @A_Nameless_Ghoul
              last edited by sdetweil Dec 22, 2024, 3:41 PM Dec 11, 2024, 5:52 PM

              @A_Nameless_Ghoul said in EACCES: permission denied, open js/positions.js:

              the only officially supported way of installation

              yes, hate that sentence

              it means by the MM org team, whoever they are (but it includes me!)
              but, if my script breaks I will fix it so that it works… (so its ‘supported’)

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              S 1 Reply Last reply Dec 22, 2024, 3:42 PM Reply Quote 0
              • S Offline
                sdetweil @sdetweil
                last edited by Dec 22, 2024, 3:42 PM

                @A_Nameless_Ghoul just btw i added a trap the actual error and I added a new message if this occurs

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                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 Sam, technical setup by Karsten.
                This forum is using NodeBB as its core | Contributors
                Contact | Privacy Policy