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

Support for Synology NAS, QNAP NAS and other Embedded Linux systems
Post Reply
parkerc
Posts: 6
Joined: 08 Apr 2020, 20:37

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

Post by parkerc »

Hi,

As I’m a little late to the game with QNAP and FileBot..

Please can I check that the above is still up to date and is working on the latest firmware version 4.4.2 ?

Is there an order I should install the packages provided in the App Repository ?
User avatar
rednoah
The Source
Posts: 22991
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Installing FileBot on QNAP NAS

Post by rednoah »

parkerc wrote: 08 Apr 2020, 20:41 Please can I check that the above is still up to date and is working on the latest firmware version 4.4.2 ?
Yes. The firmware version doesn't matter.
parkerc wrote: 08 Apr 2020, 20:41 Is there an order I should install the packages provided in the App Repository ?
You can install the packages in any order.
:idea: Please read the FAQ and How to Request Help.
parkerc
Posts: 6
Joined: 08 Apr 2020, 20:37

Re: Installing FileBot on QNAP NAS

Post by parkerc »

Great thanks @rednoah

I’ve installed all the packages and just ‘opened’ FileBot Node, which gives me the following message...
Service Unavailable

The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.
Any ideas ?
User avatar
rednoah
The Source
Posts: 22991
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Installing FileBot on QNAP NAS

Post by rednoah »

What does the log say?

Did you install Node.js yet?
rednoah wrote: 05 Jul 2018, 02:53 FileBot Node requires node. You will need to install the latest Node.js package.
:idea: Please read the FAQ and How to Request Help.
parkerc
Posts: 6
Joined: 08 Apr 2020, 20:37

Re: Installing FileBot on QNAP NAS

Post by parkerc »

rednoah wrote: 08 Apr 2020, 21:18 Did you install Node.js yet?
Argh, sorry, that’s going to be it, looking in the main QNAP repository - there seems to be 3 Node.js versions available v4, v6 and v8 - so I’ll install the latest v8..
parkerc
Posts: 6
Joined: 08 Apr 2020, 20:37

Re: Installing FileBot on QNAP NAS

Post by parkerc »

Ok, perhaps not, v8 installed, FileBot and FileBot stopped and restarted, but still the same ‘Service Unavailable’ message

Where do I find the logs for this, is there a command to run ?
User avatar
rednoah
The Source
Posts: 22991
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Installing FileBot on QNAP NAS

Post by rednoah »

parkerc wrote: 08 Apr 2020, 21:31 Where do I find the logs for this, is there a command to run ?
viewtopic.php?t=11030
:idea: Please read the FAQ and How to Request Help.
perchu
Posts: 4
Joined: 09 Apr 2020, 13:29

Re: Installing FileBot on QNAP NAS

Post by perchu »

I had the same issue, the only solution I got is to launch through ssh the "filebot-node-service.sh start"
User avatar
rednoah
The Source
Posts: 22991
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Installing FileBot on QNAP NAS

Post by rednoah »

perchu wrote: 09 Apr 2020, 13:32 I had the same issue, the only solution I got is to launch through ssh the "filebot-node-service.sh start"
What does the log say when QNAP fails to run that command on startup?
:idea: Please read the FAQ and How to Request Help.
perchu
Posts: 4
Joined: 09 Apr 2020, 13:29

Re: Installing FileBot on QNAP NAS

Post by perchu »

QNAP doesn't seem to try to run that command.

I'm still learning QNAP. I have checked in /var/log but found nothing.
User avatar
rednoah
The Source
Posts: 22991
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Installing FileBot on QNAP NAS

Post by rednoah »

perchu wrote: 09 Apr 2020, 15:19 QNAP doesn't seem to try to run that command.
If QNAP really doesn't run service.sh start when starting a package, then you could try contacting QNAP support to see if they can help you figure why their software doesn't behave. ;)
:idea: Please read the FAQ and How to Request Help.
parkerc
Posts: 6
Joined: 08 Apr 2020, 20:37

Re: Installing FileBot on QNAP NAS

Post by parkerc »

In the filebot-node.log file, found in /share/CACHEDEV1_DATA/.qpkg/filebot-node/ it has the following content

Code: Select all

 ls: cannot access : No such file or directory
Node.js is not installed. Please install Node.js in the App Center.
/share/CACHEDEV1_DATA/.qpkg/filebot-node/start: line 38: /usr/local/bin/node: Permission denied
Node.js, was the original concern, and I addressed that by installing the v8 .qpkg from QNAP App Center
User avatar
rednoah
The Source
Posts: 22991
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Installing FileBot on QNAP NAS

Post by rednoah »

Well, that explains why node is not working:

Code: Select all

/share/CACHEDEV1_DATA/.qpkg/filebot-node/start: line 38: /usr/local/bin/node: Permission denied
:arrow: If you can get node -version to work, then FileBot Node will work. Please ask QNAP for help on how to fix their Node.JS packages.

:idea: Perhaps it's just missing the executable permission for some odd reason. Try chmod +x /usr/local/bin/node and see if it works.
:idea: Please read the FAQ and How to Request Help.
parkerc
Posts: 6
Joined: 08 Apr 2020, 20:37

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

Post by parkerc »

Interestingly - I also couldn’t open the FileBot-node.log file via the command line (ssh) as that also gave me the permission denied message too . (And you can only ssh in as the admin) - So I think it’s a wider permission issue than just node.
Post Reply