[QNAP] /usr/local/bin/node: Permission denied

Support for Synology NAS, QNAP NAS and other Embedded Linux systems
Post Reply
dsgoday
Posts: 2
Joined: 19 Sep 2019, 16:26

[QNAP] /usr/local/bin/node: Permission denied

Post by dsgoday » 19 Sep 2019, 16:39

First of all, hello everybody, and thanks in advance!

I know this has been asked a few times, but I'm stuck so I need your help.

At some point, my Filebotnode stopped working. Tried reinstalling everything several times, updating to filebot beta, installing SortMyQKPGs to avoid starting order problems...

Actually I have installed Node.js v8, Apache, Java8, Filebot 4.8.6 and Filebot Node 0.2.8.7, with no luck.

Log says:

Code: Select all

/share/CACHEDEV1_DATA/.qpkg/filebot-node/start: line 34: /usr/local/bin/node: Permission denied
If I try to run node, I get this:

Code: Select all

/share/CACHEDEV1_DATA/.qpkg/nodejsv8/node/bin/node: Permission denied
If I run node -v, I get this:

Code: Select all

 /usr/local/bin/node: Permission denied
I'm using QNAP TS-253be, tried several browsers, included latest chrome.

The funny fact is that it was working flawless before, don't know what happened. Nothing but updating.

Hope anything of this helps.

User avatar
rednoah
The Source
Posts: 16615
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Filebot Node - Service Unavailable

Post by rednoah » 20 Sep 2019, 07:45

You can try uninstalling / installing the node package, otherwise, generic Linux troubleshooting applies, and your NAS vendor might be able to help you out if you have problems with their node package.



Generic Linux troubleshooting:

Check permissions:

Code: Select all

ls -l /share/CACHEDEV1_DATA/.qpkg/nodejsv8/node/bin/node
-rw-rw-rw- 1 admin administrators 35538848 2018-01-03 18:01 /share/CACHEDEV1_DATA/.qpkg/nodejsv8/node/bin/node
:!: Executable permission is missing :!:

Add executable permissions for all users:

Code: Select all

chmod a+x /share/CACHEDEV1_DATA/.qpkg/nodejsv8/node/bin/node
[~/scripts] # ls -l /share/CACHEDEV1_DATA/.qpkg/nodejsv8/node/bin/node
Check permissions:

Code: Select all

ls -l /share/CACHEDEV1_DATA/.qpkg/nodejsv8/node/bin/node
-rwxrwxrwx 1 admin administrators 35538848 2018-01-03 18:01 /share/CACHEDEV1_DATA/.qpkg/nodejsv8/node/bin/node
Try again:

Code: Select all

node -v
v8.9.4

:!: Oddly enough, I could reproduce this problem on my QNAP NAS test device as well, which means QNAP broke things in their recent update.
:idea: Please read the FAQ and How to Request Help.

dsgoday
Posts: 2
Joined: 19 Sep 2019, 16:26

Re: [QNAP] /usr/local/bin/node: Permission denied

Post by dsgoday » 21 Sep 2019, 08:33

Thanks a lot, that made it work. Just stablished permissions again, and then stopped and started node, filebot and then filebot-node. So you suffered the same problem on your system?

Thanks again, now I can buy and install my new license :)

lukjod
Posts: 33
Joined: 13 Jul 2014, 18:53

Re: [QNAP] /usr/local/bin/node: Permission denied

Post by lukjod » 10 Oct 2019, 08:51

thx, this sorted out my problem on qnap 128a as well

Post Reply