FileBot Node on QNAP TS-251A - Service unavailable

Support for Synology NAS, QNAP NAS and other Embedded Linux systems
Post Reply
cm2003
Posts: 19
Joined: 30 Oct 2018, 14:57

FileBot Node on QNAP TS-251A - Service unavailable

Post by cm2003 »

Hi,

I can't get this to run on my QNAP NAS.
I've installed everything from the repo and additionally Node from qnapcloud.eu.

When trying to open the app it's giving me this error message

Code: Select all

service unavailable
The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.
This is the log file:

Code: Select all

[~] # cat /share/CACHEDEV1_DATA/.qpkg/filebot-node/filebot-node.log
+ export FILEBOT_NODE_HOST=127.0.0.1
+ FILEBOT_NODE_HOST=127.0.0.1
+ export FILEBOT_NODE_AUTH=QNAP
+ FILEBOT_NODE_AUTH=QNAP
+ export FILEBOT_NODE_HTTP=YES
+ FILEBOT_NODE_HTTP=YES
+ export FILEBOT_NODE_HTTP_PORT=5452
+ FILEBOT_NODE_HTTP_PORT=5452
+ export USER=admin
+ USER=admin
++ free
++ awk -vm=1024 -vp=0.7 '/Mem:/ {printf "-Xmx%dm", ($2*p)/m; exit}'
+ export JAVA_OPTS=-Xmx5516m
+ JAVA_OPTS=-Xmx5516m
+ export FILEBOT_TASK_CMD=/opt/filebot-node/task
+ FILEBOT_TASK_CMD=/opt/filebot-node/task
+ export FILEBOT_CMD=filebot
+ FILEBOT_CMD=filebot
+ export FILEBOT_CMD_CWD=/share/CACHEDEV1_DATA
+ FILEBOT_CMD_CWD=/share/CACHEDEV1_DATA
++ id -u admin
+ export FILEBOT_CMD_UID=0
+ FILEBOT_CMD_UID=0
++ grep administrators
++ cat /etc/group
++ cut -d: -f3
+ export FILEBOT_CMD_GID=0
+ FILEBOT_CMD_GID=0
+ export FILEBOT_NODE_CLIENT=client
+ FILEBOT_NODE_CLIENT=client
+ cd /share/CACHEDEV1_DATA/.qpkg/filebot-node
+ node --optimize_for_size --use_idle_notification server/app.js
/share/CACHEDEV1_DATA/.qpkg/filebot-node/start: line 26: node: command not found
I've checked line 26 of the start script which is:
node --optimize_for_size --use_idle_notification "server/app.js"

I've tried to manually run this and adjusted the command to:
node --optimize_for_size --use_idle_notification "/share/CACHEDEV1_DATA/.qpkg/filebot-node/server/app.js"

Result:

Code: Select all

<n "/share/CACHEDEV1_DATA/.qpkg/filebot-node/server/app.js"
ENVIRONMENT { HOSTNAME: 'QNAP-NAS',
  SHELL: '/bin/sh',
  TERM: 'xterm',
  HISTSIZE: '1000',
  TMPDIR: '/opt/NodeJS/tmp',
  SSH_CLIENT: '192.168.178.26 54024 22',
  SSH_TTY: '/dev/pts/2',
  LC_ALL: 'en_US.UTF-8',
  USER: 'admin',
  HISTFILESIZE: '1000',
  LD_LIBRARY_PATH: '/opt/NodeJS/lib:',
  LS_COLORS: 'no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.bz2=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.jpg=01;35:*.jpeg=01;35:*.png=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.mpg=01;35:*.mpeg=01;35:*.avi=01;35:*.fli=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:',
  PAGER: '/bin/more ',
  PATH: '/share/CACHEDEV1_DATA/.qpkg/container-station/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/bin/X11:/usr/local/sbin:/usr/local/bin',
  MAIL: '/var/mail/admin',
  TEMPDIR: '/opt/NodeJS/tmp',
  PWD: '/root',
  INPUTRC: '/etc/inputrc',
  JAVA_HOME: '/opt/java',
  EDITOR: '/bin/vi',
  LANG: 'en_US.utf8',
  DMALLOC_OPTIONS: 'debug=0x34f47d83,inter=100,log=logfile',
  HOME: '/opt/NodeJS',
  SHLVL: '1',
  LOGNAME: 'admin',
  SSH_CONNECTION: '192.168.178.26 54024 192.168.178.3 22',
  LC_CTYPE: 'en_US.UTF-8' }
USER { UID: NaN, GID: NaN }
I don't know why, but this is actually another message than I've received before (15min ago), which was:

Code: Select all

<n "/share/CACHEDEV1_DATA/.qpkg/filebot-node/server/app.js"
fs.js:1195
  return binding.chown(pathModule._makeLong(path), uid, gid);
                 ^

TypeError: uid must be an unsigned int
    at TypeError (native)
    at Object.fs.chownSync (fs.js:1195:18)
    at Object.<anonymous> (/share/CACHEDEV1_DATA/.qpkg/filebot-node/server/app.js:57:8)
    at Module._compile (module.js:570:32)
    at Object.Module._extensions..js (module.js:579:10)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)
    at Function.Module._load (module.js:438:3)
    at Module.runMain (module.js:604:10)
    at run (bootstrap_node.js:394:7)
<re/CACHEDEV1_DATA/.qpkg/filebot-node/server/app.js"
fs.js:1195
  return binding.chown(pathModule._makeLong(path), uid, gid);
                 ^

TypeError: uid must be an unsigned int
    at TypeError (native)
    at Object.fs.chownSync (fs.js:1195:18)
    at Object.<anonymous> (/share/CACHEDEV1_DATA/.qpkg/filebot-node/server/app.js:61:8)
    at Module._compile (module.js:570:32)
    at Object.Module._extensions..js (module.js:579:10)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)
    at Function.Module._load (module.js:438:3)
    at Module.runMain (module.js:604:10)
    at run (bootstrap_node.js:394:7)
I hope you can help me! I would really appreciate your help!

Thanks
André
User avatar
rednoah
The Source
Posts: 22986
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: FileBot Node on QNAP TS-251A - Service unavailable

Post by rednoah »

node: command not found at the end of the log tells us that node is not installed, and thus no service is ever started.

Oddly enough, your subsequent logs show some sort of node executable throwing errors while running the server app. Strange indeed. What version of node are you running?

This tells us that the startup script somehow doesn't work on your machine:

Code: Select all

USER { UID: NaN, GID: NaN }

Code: Select all

TypeError: uid must be an unsigned int
To further debug this issue, you can check the /share/CACHEDEV1_DATA/.qpkg/filebot-node/start shell script and check how the UID / GID variables are set and why it's not working.

UID / GID should be the user id and group id numbers that filebot should be executed as. Depending on your system, it should be the UID / GUID of your root / admin user, such as 0 or 1000 for UID.
:idea: Please read the FAQ and How to Request Help.
cm2003
Posts: 19
Joined: 30 Oct 2018, 14:57

Re: FileBot Node on QNAP TS-251A - Service unavailable

Post by cm2003 »

Hi rednoah.

Thank you for your reply!
I think I actually found the issue. For some reason the start shell script isn't executed automatically. (neither at NAS start, nor by starting the app from the QTS Interface)

I was running the script now manually using

Code: Select all

cd /share/CACHEDEV1_DATA/.qpkg/filebot-node
sh start
(from my root account)

and now it acutally comes up just fine:

Code: Select all

[/share/CACHEDEV1_DATA/.qpkg/filebot-node] # sh start
ENVIRONMENT { FILEBOT_TASK_CMD: '/opt/filebot-node/task',
  HOSTNAME: 'QNAP-NAS',
  SHELL: '/bin/sh',
  TERM: 'xterm',
  FILEBOT_CMD_UID: '0',
  HISTSIZE: '1000',
  SSH_CLIENT: '192.168.178.26 59140 22',
  OLDPWD: '/share/CACHEDEV1_DATA/.qpkg/filebot-node',
  SSH_TTY: '/dev/pts/2',
  LC_ALL: 'en_US.UTF-8',
  JAVA_OPTS: '-Xmx5516m',
  USER: 'admin',
  HISTFILESIZE: '1000',
  LS_COLORS: 'no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.bz2=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.jpg=01;35:*.jpeg=01;35:*.png=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.mpg=01;35:*.mpeg=01;35:*.avi=01;35:*.fli=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:',
  FILEBOT_CMD_CWD: '',
  PAGER: '/bin/more ',
  PATH: '/share/CACHEDEV1_DATA/.qpkg/container-station/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/bin/X11:/usr/local/sbin:/usr/local/bin',
  MAIL: '/var/mail/admin',
  FILEBOT_CMD_GID: '0',
  PWD: '/share/CACHEDEV1_DATA/.qpkg/filebot-node',
  INPUTRC: '/etc/inputrc',
  JAVA_HOME: '/opt/java',
  EDITOR: '/bin/vi',
  LANG: 'en_US.utf8',
  DMALLOC_OPTIONS: 'debug=0x34f47d83,inter=100,log=logfile',
  FILEBOT_NODE_HOST: '127.0.0.1',
  HOME: '/root',
  SHLVL: '2',
  FILEBOT_CMD: 'filebot',
  LOGNAME: 'admin',
  SSH_CONNECTION: '192.168.178.26 59140 192.168.178.3 22',
  LC_CTYPE: 'en_US.UTF-8',
  FILEBOT_NODE_HTTP_PORT: '5452',
  FILEBOT_NODE_AUTH: 'QNAP',
  FILEBOT_NODE_HTTP: 'YES',
  FILEBOT_NODE_CLIENT: 'client',
  _: '/usr/local/bin/node' }
USER { UID: 0, GID: 0 }
filebot-node listening at http://127.0.0.1:5452/
AUTH_CACHE: {"sid=0ym1url3":["admin"]}
The log still gives the same command not found error:

Code: Select all

+ export FILEBOT_NODE_HOST=127.0.0.1
+ FILEBOT_NODE_HOST=127.0.0.1
+ export FILEBOT_NODE_AUTH=QNAP
+ FILEBOT_NODE_AUTH=QNAP
+ export FILEBOT_NODE_HTTP=YES
+ FILEBOT_NODE_HTTP=YES
+ export FILEBOT_NODE_HTTP_PORT=5452
+ FILEBOT_NODE_HTTP_PORT=5452
+ export USER=admin
+ USER=admin
++ awk -vm=1024 -vp=0.7 '/Mem:/ {printf "-Xmx%dm", ($2*p)/m; exit}'
++ free
+ export JAVA_OPTS=-Xmx5516m
+ JAVA_OPTS=-Xmx5516m
+ export FILEBOT_TASK_CMD=/opt/filebot-node/task
+ FILEBOT_TASK_CMD=/opt/filebot-node/task
+ export FILEBOT_CMD=filebot
+ FILEBOT_CMD=filebot
+ export FILEBOT_CMD_CWD=/share/CACHEDEV1_DATA
+ FILEBOT_CMD_CWD=/share/CACHEDEV1_DATA
++ id -u admin
+ export FILEBOT_CMD_UID=0
+ FILEBOT_CMD_UID=0
++ grep administrators
++ cut -d: -f3
++ cat /etc/group
+ export FILEBOT_CMD_GID=0
+ FILEBOT_CMD_GID=0
+ export FILEBOT_NODE_CLIENT=client
+ FILEBOT_NODE_CLIENT=client
+ cd /share/CACHEDEV1_DATA/.qpkg/filebot-node
+ node --optimize_for_size --use_idle_notification server/app.js
/share/CACHEDEV1_DATA/.qpkg/filebot-node/start: line 26: node: command not found
I haven't tried the full functionality, but I actually got the FileBot node screen within my QTS interface.

Thanks and regards
Andre
User avatar
rednoah
The Source
Posts: 22986
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: FileBot Node on QNAP TS-251A - Service unavailable

Post by rednoah »

Since it works when running as your user, we know that node is installed an in the $PATH, so running which node will tell us where it is. You can then symlink this path to /usr/bin/node to make sure it works when called by QTS with a more minimal $PATH.

:idea: viewtopic.php?f=4&t=6084
:idea: Please read the FAQ and How to Request Help.
cm2003
Posts: 19
Joined: 30 Oct 2018, 14:57

Re: FileBot Node on QNAP TS-251A - Service unavailable

Post by cm2003 »

Thank you again. Just checked that, but I think this looks alright, doesn't it?

Code: Select all

[~] # echo $PATH
/share/CACHEDEV1_DATA/.qpkg/container-station/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/bin/X11:/usr/local/sbin:/usr/local/bin
[~] # which node
/usr/local/bin/node
[~] # ls -l /usr/local/bin/node
lrwxrwxrwx 1 admin administrators 50 2018-10-31 18:28 /usr/local/bin/node -> /share/CACHEDEV1_DATA/.qpkg/nodejsv8/node/bin/node*
-edit-
Created a symlink to /usr/bin/node anyway.

Code: Select all

[~] # ln -sf /share/CACHEDEV1_DATA/.qpkg/nodejsv8/node/bin/node /usr/bin/node
[~] # which node
/usr/bin/node
Just restarting my NAS :)
cm2003
Posts: 19
Joined: 30 Oct 2018, 14:57

Re: FileBot Node on QNAP TS-251A - Service unavailable

Post by cm2003 »

Unfortunately it's still not working on NAS start.
For some reason the symlink didn't survive the restart as well :/

Code: Select all

[~] # which node
/usr/local/bin/node
[~] # ln -sf /share/CACHEDEV1_DATA/.qpkg/nodejsv8/node/bin/node /usr/bin/node
[~] # which node
/usr/bin/node

-- I WAS TRYING TO START FILEBOT FROM THE DASHBOARD OF QTS - service not found


[~] # sh /share/CACHEDEV1_DATA/.qpkg/filebot-node/start
module.js:540
    throw err;
    ^

Error: Cannot find module '/root/server/app.js'
    at Function.Module._resolveFilename (module.js:538:15)
    at Function.Module._load (module.js:468:25)
    at Function.Module.runMain (module.js:684:10)
    at startup (bootstrap_node.js:187:16)
    at bootstrap_node.js:608:3
[~] # cd /share/CACHEDEV1_DATA/.qpkg/filebot-node
[/share/CACHEDEV1_DATA/.qpkg/filebot-node] # sh start
ENVIRONMENT { FILEBOT_TASK_CMD: '/opt/filebot-node/task',
  HOSTNAME: 'QNAP-NAS',
  SHELL: '/bin/sh',
  TERM: 'xterm',
  FILEBOT_CMD_UID: '0',
  HISTSIZE: '1000',
  SSH_CLIENT: '192.168.178.26 53752 22',
  OLDPWD: '/share/CACHEDEV1_DATA/.qpkg/filebot-node',
  SSH_TTY: '/dev/pts/2',
  LC_ALL: 'en_US.UTF-8',
  JAVA_OPTS: '-Xmx5516m',
  USER: 'admin',
  HISTFILESIZE: '1000',
  LS_COLORS: 'no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.bz2=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.jpg=01;35:*.jpeg=01;35:*.png=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.mpg=01;35:*.mpeg=01;35:*.avi=01;35:*.fli=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:',
  FILEBOT_CMD_CWD: '',
  PAGER: '/bin/more ',
  PATH: '/share/CACHEDEV1_DATA/.qpkg/container-station/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/bin/X11:/usr/local/sbin:/usr/local/bin',
  MAIL: '/var/mail/admin',
  FILEBOT_CMD_GID: '0',
  PWD: '/share/CACHEDEV1_DATA/.qpkg/filebot-node',
  INPUTRC: '/etc/inputrc',
  JAVA_HOME: '/opt/java',
  EDITOR: '/bin/vi',
  LANG: 'en_US.utf8',
  DMALLOC_OPTIONS: 'debug=0x34f47d83,inter=100,log=logfile',
  FILEBOT_NODE_HOST: '127.0.0.1',
  HOME: '/root',
  SHLVL: '2',
  FILEBOT_CMD: 'filebot',
  LOGNAME: 'admin',
  SSH_CONNECTION: '192.168.178.26 53752 192.168.178.3 22',
  LC_CTYPE: 'en_US.UTF-8',
  FILEBOT_NODE_HTTP_PORT: '5452',
  FILEBOT_NODE_AUTH: 'QNAP',
  FILEBOT_NODE_HTTP: 'YES',
  FILEBOT_NODE_CLIENT: 'client',
  _: '/usr/bin/node' }
USER { UID: 0, GID: 0 }
filebot-node listening at http://127.0.0.1:5452/
^C
[/share/CACHEDEV1_DATA/.qpkg/filebot-node] #
Even though it's looking good (in my opinion) the service still is unavailable Oo
That's so weird...

--edit--
I've removed the symlink (rm /usr/bin/node) and did sh start again, now it's working again. :roll:
I kind of hate all this linux stuff :D

PS:
which node
/usr/local/bin/node

--edit2--
Just figured out, that I might have to link the node*.

Code: Select all

[~] # ln -sf /share/CACHEDEV1_DATA/.qpkg/nodejsv8/node/bin/node* /usr/bin/node
[~] # which node
/usr/bin/node
[~] # cd /share/CACHEDEV1_DATA/.qpkg/filebot-node
[/share/CACHEDEV1_DATA/.qpkg/filebot-node] # sh start
ENVIRONMENT { FILEBOT_TASK_CMD: '/opt/filebot-node/task',
  HOSTNAME: 'QNAP-NAS',
  SHELL: '/bin/sh',
  TERM: 'xterm',
  FILEBOT_CMD_UID: '0',
  HISTSIZE: '1000',
  SSH_CLIENT: '192.168.178.26 54289 22',
  OLDPWD: '/share/CACHEDEV1_DATA/.qpkg/filebot-node',
  SSH_TTY: '/dev/pts/2',
  LC_ALL: 'en_US.UTF-8',
  JAVA_OPTS: '-Xmx5516m',
  USER: 'admin',
  HISTFILESIZE: '1000',
  LS_COLORS: 'no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.bz2=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.jpg=01;35:*.jpeg=01;35:*.png=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.mpg=01;35:*.mpeg=01;35:*.avi=01;35:*.fli=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:',
  FILEBOT_CMD_CWD: '',
  PAGER: '/bin/more ',
  PATH: '/share/CACHEDEV1_DATA/.qpkg/container-station/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/bin/X11:/usr/local/sbin:/usr/local/bin',
  MAIL: '/var/mail/admin',
  FILEBOT_CMD_GID: '0',
  PWD: '/share/CACHEDEV1_DATA/.qpkg/filebot-node',
  INPUTRC: '/etc/inputrc',
  JAVA_HOME: '/opt/java',
  EDITOR: '/bin/vi',
  LANG: 'en_US.utf8',
  DMALLOC_OPTIONS: 'debug=0x34f47d83,inter=100,log=logfile',
  FILEBOT_NODE_HOST: '127.0.0.1',
  HOME: '/root',
  SHLVL: '2',
  FILEBOT_CMD: 'filebot',
  LOGNAME: 'admin',
  SSH_CONNECTION: '192.168.178.26 54289 192.168.178.3 22',
  LC_CTYPE: 'en_US.UTF-8',
  FILEBOT_NODE_HTTP_PORT: '5452',
  FILEBOT_NODE_AUTH: 'QNAP',
  FILEBOT_NODE_HTTP: 'YES',
  FILEBOT_NODE_CLIENT: 'client',
  _: '/usr/bin/node' }
USER { UID: 0, GID: 0 }
filebot-node listening at http://127.0.0.1:5452/
AUTH_CACHE: {"sid=c9ug8pgq":["admin"]}
AUTH_CACHE: {"sid=c9ug8pgq":["admin"]}
AUTH_CACHE: {"sid=c9ug8pgq":["admin"]}
AUTH_CACHE: {"sid=c9ug8pgq":["admin"]}
start: line 26:  2906 Terminated              node --optimize_for_size --use_idle_notification "server/app.js"
[/share/CACHEDEV1_DATA/.qpkg/filebot-node] #
Restarting again.
cm2003
Posts: 19
Joined: 30 Oct 2018, 14:57

Re: FileBot Node on QNAP TS-251A - Service unavailable

Post by cm2003 »

Ok, so here is what I've found out:
The symlink is not being remembered by my QNAP. No idea what I can do about it. It's not working at system startup.
When creating a symlink (ln -sf /share/CACHEDEV1_DATA/.qpkg/nodejsv8/node/bin/node* /usr/bin/node) it does work to start it manually.
But to start it manually I don't really need the extra symlink, since it's also working from /usr/local/bin/node
cm2003
Posts: 19
Joined: 30 Oct 2018, 14:57

Re: FileBot Node on QNAP TS-251A - Service unavailable

Post by cm2003 »

IT'S FINALLY WORKING!

Thanks for all your help! Really appreciated!

Here's what I've done:
I've uninstalled my NodeJS Installation from the AppCenter. When I rethink everything, the version might be just fine, but some parts seem to not be loaded during startup.
Next I've used these two guides to install Node:
https://ancasicolica.ch/install-the-mos ... your-qnap/
https://techblog.dorogin.com/running-no ... db838524e4

Before you install Node this way, make sure to check for your OS version (64/32 Bit) first... I've learned the hard way...

Unfortunately it was still not working, even though node itself was working.
Since I've had the working autostart.sh now, I thought I could just go the "lazy" way and added to the end

Code: Select all

cd /share/CACHEDEV1_DATA/.qpkg/filebot-node
sh start
This was resulting in my NAS wouldn't start properly anymore :) Also Reboot didn't work anymore, so I was forced to shut it down manually.
Now I've changed removed above from my autostart.sh again and added

Code: Select all

ln -sf /share/CACHEDEV1_DATA/node/node/bin/node* /usr/bin/node
Restarted -> working!
When doing which node it's still giving me /share/CACHEDEV1_DATA/node/node/bin/node as result, but I don't care anymore... Rebootet twice and both times it's actually working.

-------

Long story short:
Install Node using these guides:
https://ancasicolica.ch/install-the-mos ... your-qnap/
https://techblog.dorogin.com/running-no ... db838524e4

Add

Code: Select all

ln -sf /share/CACHEDEV1_DATA/node/node/bin/node* /usr/bin/node (or whatever path you are using) 
to your autostart.sh

Profit.
Post Reply