Issue with permissions on fresh Install
-
I am having issues with the permissions when trying to execute nodebb setup and nodebb build.
error: uncaughtException: spawn REDACTED/node_modules/sass-embedded-linux-x64/dart-sass/src/dart EACCES Error: spawn REDACTED/node_modules/sass-embedded-linux-x64/dart-sass/src/dart EACCES at ChildProcess._handle.onexit (node:internal/child_process:286:19) at onErrorNT (node:internal/child_process:484:16) at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {"date":"Mon Jul 29 2024 18:13:50 GMT+0000 (Coordinated Universal Time)","error":{"code":"EACCES","errno":-13,"path":"REDACTED/node_modules/sass-embedded-linux-x64/dart-sass/src/dart","spawnargs":["REDACTED/node_modules/sass-embedded-linux-x64/dart-sass/src/sass.snapshot","--embedded"],"syscall":"spawn REDACTED/node_modules/sass-embedded-linux-x64/dart-sass/src/dart"},"exception":true,"os":{"loadavg":[1.82,2.47,1.53],"uptime":83826.31},"process":{"argv":["/usr/bin/node","REDACTED/nodebb","build"],"cwd":"REDACTED","execPath":"/usr/bin/node","gid":1001,"memoryUsage":{"arrayBuffers":19261561,"external":22726461,"heapTotal":67047424,"heapUsed":53833768,"rss":138940416},"pid":128167,"uid":1001,"version":"v20.16.0"},"stack":"Error: spawn REDACTED/node_modules/sass-embedded-linux-x64/dart-sass/src/dart EACCES\n at ChildProcess._handle.onexit (node:internal/child_process:286:19)\n at onErrorNT (node:internal/child_process:484:16)\n at process.processTicksAndRejections (node:internal/process/task_queues:82:21)","trace":[{"column":19,"file":"node:internal/child_process","function":"ChildProcess._handle.onexit","line":286,"method":"onexit","native":false},{"column":16,"file":"node:internal/child_process","function":"onErrorNT","line":484,"method":null,"native":false},{"column":21,"file":"node:internal/process/task_queues","function":"process.processTicksAndRejections","line":82,"method":"processTicksAndRejections","native":false}]}
I have been trying to find out the permissions that the folder or files need to have on nodebb but the docs does not clarify this at all.
Any suggestions?Thanks
-
Fixed that (removing the folder node-modules and doing a build) and now I have this one.
Error: ENOENT: no such file or directory, uv_cwdI would love some help with the permissions.
I have an nginx group and a user, so my files are normally
"user group"
And that is normally perfect for nginx.
But it seems that something else is required for nodebb, but I am not able to find any docs or links.Any link or suggestion will be great.
Thanks! -
So I did a fresh install. Now I had no errors during install and everything was smooth.
So I am pretty sure everything is ok.
Server is loading, console is ok, no errors on firefox and everything works.
The only thing is this error on the nodebb log:NodeBB v3.8.4 Copyright (C) 2013-2024 NodeBB Inc. This program comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to redistribute it under certain conditions. For the full license, please visit: http://www.gnu.org/copyleft/gpl.html Clustering enabled: Spinning up 2 process(es). 2024-08-03T19:48:55.570Z [4567/61787] - [32minfo[39m: Initializing NodeBB v3.8.4 https://MYDOMAINREDACTED 2024-08-03T19:48:56.904Z [4568/61788] - [32minfo[39m: [socket.io] Restricting access to origin: https://MYDOMAINREDACTED:* 2024-08-03T19:48:57.071Z [4567/61787] - [32minfo[39m: [socket.io] Restricting access to origin: https://MYDOMAINREDACTED:* 2024-08-03T19:48:57.087Z [4568/61788] - [32minfo[39m: [api] Adding 0 route(s) to `api/v3/plugins` 2024-08-03T19:48:57.106Z [4568/61788] - [32minfo[39m: [router] Routes added 2024-08-03T19:48:57.110Z [4568/61788] - [32minfo[39m: 🎉 NodeBB Ready 2024-08-03T19:48:57.112Z [4568/61788] - [32minfo[39m: 🤝 Enabling 'trust proxy' 2024-08-03T19:48:57.114Z [4568/61788] - [32minfo[39m: 📡 NodeBB is now listening on: 0.0.0.0:4568 2024-08-03T19:48:57.115Z [4568/61788] - [32minfo[39m: 🔗 Canonical URL: https://MYDOMAINREDACTED 2024-08-03T19:48:57.275Z [4567/61787] - [32minfo[39m: [api] Adding 0 route(s) to `api/v3/plugins` 2024-08-03T19:48:57.305Z [4567/61787] - [32minfo[39m: [router] Routes added 2024-08-03T19:48:57.311Z [4567/61787] - [32minfo[39m: 🎉 NodeBB Ready 2024-08-03T19:48:57.312Z [4567/61787] - [32minfo[39m: 🤝 Enabling 'trust proxy' 2024-08-03T19:48:57.314Z [4567/61787] - [32minfo[39m: 📡 NodeBB is now listening on: 0.0.0.0:4567 2024-08-03T19:48:57.314Z [4567/61787] - [32minfo[39m: 🔗 Canonical URL: https://MYDOMAINREDACTED node:events:497 throw er; // Unhandled 'error' event ^ Error: spawn REDACTEDMYFOLDERINSTALL/node_modules/sass-embedded-linux-x64/dart-sass/src/dart EACCES at ChildProcess._handle.onexit (node:internal/child_process:286:19) at onErrorNT (node:internal/child_process:484:16) at process.processTicksAndRejections (node:internal/process/task_queues:82:21) Emitted 'error' event on ChildProcess instance at: at ChildProcess._handle.onexit (node:internal/child_process:292:12) at onErrorNT (node:internal/child_process:484:16) at process.processTicksAndRejections (node:internal/process/task_queues:82:21) { errno: -13, code: 'EACCES', syscall: 'spawn REDACTEDMYFOLDERINSTALL/node_modules/sass-embedded-linux-x64/dart-sass/src/dart', path: 'REDACTEDMYFOLDERINSTALL/node_modules/sass-embedded-linux-x64/dart-sass/src/dart', spawnargs: [ 'REDACTEDMYFOLDERINSTALL/node_modules/sass-embedded-linux-x64/dart-sass/src/sass.snapshot', '--embedded' ] } Node.js v20.16.0
I search the forums, read everyhthing I could find for the past 5 days and nothing.
Anyone can tell me if this is a bug or if everyone has this and people just ignore the logs errors?
Shall I worry or shall I ignore it?Thanks!