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

fix access denied fault error writing js/positions.js #3652

Merged
merged 4 commits into from
Dec 18, 2024

Conversation

sdetweil
Copy link
Collaborator

@sdetweil sdetweil commented Dec 10, 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

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

@sdetweil sdetweil changed the title fix access denied crash writing js/positions.js #3651 fix access denied fault error writing js/positions.js #3651 Dec 10, 2024
@sdetweil sdetweil changed the title fix access denied fault error writing js/positions.js #3651 fix access denied fault error writing js/positions.js Dec 10, 2024
@rejas rejas merged commit 24d9b70 into MagicMirrorOrg:develop Dec 18, 2024
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants