Read the statement by Michael Teeuw here.
EACCES: permission denied, open js/positions.js
-
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?
-
@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 xyzX is execute
Y is write
Z is read 7 is all on, 0 is all offls -laF
Will show the files and their owner, group and permission sets -
@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.
-
@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) -
@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 -
@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’) -
@A_Nameless_Ghoul just btw i added a trap the actual error and I added a new message if this occurs