Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EACCES: permission denied, open js/positions.js #3651

Open
sdetweil opened this issue Dec 10, 2024 · 0 comments
Open

EACCES: permission denied, open js/positions.js #3651

sdetweil opened this issue Dec 10, 2024 · 0 comments

Comments

@sdetweil
Copy link
Collaborator

https://forum.magicmirror.builders/topic/19210/eacces-permission-denied-open-js-positions-js

error trying to write js/positions.js with discovered positions..
will certsainly fail on synology NAS where folder was created by synology user, by docker user doesn't have write access

sdetweil added a commit to sdetweil/MagicMirror that referenced this issue Dec 10, 2024
@sdetweil sdetweil self-assigned this Dec 10, 2024
@sdetweil sdetweil added the bug label Dec 10, 2024
rejas pushed a commit that referenced this issue Dec 18, 2024
if the MagicMirror js folder is not writable (synology nas created by
different user than docker container) there is an uncaught throw

```
[ERROR] EACCES: permission denied, open 'js/positions.js' 
```

add try/catch, output new message, console.error
```text
unable to write js/positions.js with the discovered module positions
make the MagicMirror/js folder writeable by the user starting MagicMirror 
```

MM will start, but no modules will show, as no positions were discovered
this file is used to pass the list from the server side to the browser
side

fixes #3651
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant