Installation on synology: nodejs permissions
Hi,
I have installed Dojo on my Synology NAS. When I try to connect to DMT through tor-browser, I get an error.
Looking into the logs, I see that node is not working properly. Something to do with permission within the container. If i log into the container, I would expect 'node' user to be owner of the relevant folders, but it is not...
The user 'node' does not have privileges to access both: /home/node/app/pushtx/index-orchestrator.js and /home/node/app/pushtx/index-orchestrator.js
Can you help me change the appropriate config-files and then reinstall the image, so it will work persistantly? Ive been trying to look for the solution myself for quite some time now, but this is a bit over my head.
Thanks
Here are the logs from node:
Attaching to nodejs
nodejs | code: 'EACCES',
nodejs | path: '/home/node/app/pushtx/index.js'
nodejs | }
nodejs | error: Forever detected script exited with code: 1
nodejs | (node:82) Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency
nodejs | (Use `node --trace-warnings ...` to show where the warning was created)
nodejs | internal/fs/utils.js:332
nodejs | throw err;
nodejs | ^
nodejs |
nodejs | Error: EACCES: permission denied, open '/home/node/app/pushtx/index-orchestrator.js'
nodejs | at Object.openSync (fs.js:497:3)
nodejs | at Object.readFileSync (fs.js:393:35)
nodejs | at Object.Module._extensions..js (internal/modules/cjs/loader.js:1112:18)
nodejs | at Module.load (internal/modules/cjs/loader.js:950:32)
nodejs | at Function.Module._load (internal/modules/cjs/loader.js:790:12)
nodejs | at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:76:12)
nodejs | at internal/main/run_main_module.js:17:47 {
nodejs | errno: -13,
nodejs | syscall: 'open',
nodejs | code: 'EACCES',
nodejs | path: '/home/node/app/pushtx/index-orchestrator.js'
nodejs | }
nodejs | error: Forever detected script exited with code: 1
nodejs | warn: --minUptime not set. Defaulting to: 1000ms
nodejs | warn: --spinSleepTime not set. Your script will exit if it does not stay up for at least 1000ms
nodejs | info: Forever processing file: index.js
nodejs | (node:89) Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency
nodejs | (Use `node --trace-warnings ...` to show where the warning was created)
nodejs | (node:89) Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency
nodejs | (node:122) Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency
nodejs | (Use `node --trace-warnings ...` to show where the warning was created)
nodejs | internal/fs/utils.js:332
nodejs | throw err;
nodejs | ^
nodejs |
nodejs | Error: EACCES: permission denied, open '/home/node/app/tracker/index.js'
nodejs | at Object.openSync (fs.js:497:3)
nodejs | at Object.readFileSync (fs.js:393:35)
nodejs | at Object.Module._extensions..js (internal/modules/cjs/loader.js:1112:18)
nodejs | at Module.load (internal/modules/cjs/loader.js:950:32)
nodejs | at Function.Module._load (internal/modules/cjs/loader.js:790:12)
nodejs | at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:76:12)
nodejs | at internal/main/run_main_module.js:17:47 {
nodejs | errno: -13,
nodejs | syscall: 'open',
nodejs | code: 'EACCES',
nodejs | path: '/home/node/app/tracker/index.js'
nodejs | }
nodejs | error: Forever detected script exited with code: 1
And these are the logs of nginx:
Attaching to nginx
nginx | Operation timed out
nginx | Operation timed out
nginx | Operation timed out
nginx | Operation timed out
nginx | Operation timed out
nginx | Operation timed out
nginx | Operation timed out
nginx | Operation timed out
nginx | Operation timed out