Problem: When we run the "vsh status" command on the VOS shell, we notice nodejs is not running.
[admin@Branch-111: ~] $ vsh status
versa-service is Running, [-] process 4188
versa-infmgr is Running, [-] process 2140
versa-rfd is Running, [-] process 2095
versa-vmod is Running, [-] process 3400
versa-ip2user is Running, [-] process 2086
versa-imgr is Running, [-] process 2009
versa-acctmgrd is Running, [-] process 2069
versa-fltrmgr is Running, [-] process 2013
versa-vstated is Running, [-] process 2182
versa-addrmgrd is Running, [-] process 1912
versa-rt-cli-xfm is Running, [-] process 2135
versa-rtd is Running, [-] process 3258
versa-dhcpd is Running, [-] process 2846
versa-eventd is Running, [-] process 3144
versa-vrrpd is Running, [-] process 2006
versa-dnsd is Running, [-] process 2799
versa-ppmd is Running, [-] process 1934
versa-snmp-xform is Running, [-] process 3150
versa-certd is Running, [-] process 3301
versa-ntpd is Running, [*] process 2622
versa-dhclient6 is Running, [-] process 1969
versa-redis is Running, [-] process 5135
versa-av-redis is Running, [-] process 2192
versa-spackmgr is Running, [-] process 2082
versa-l2ld is Running, [-] process 1937
versa-l2cd is Running, [-] process 2690
versa-monit is Running, [*] process 2645
versa-confd is Running, [*] process 1700
versa-auditd is Running, [*] process 14930
versa-nodejs is Stopped
versa-fail2ban is Running, [*] process 4321
[admin@Branch-111: ~] $
Troubleshooting:
1) Check if the nodejs file is present in the /usr/bin folder
[admin@Branch-111: ~] $ cd /usr/bin/
[admin@Branch-111: bin] $ ls -ltr | grep nodejs
lrwxrwxrwx 1 root root 13 Aug 4 2024 nodejs -> /usr/bin/node <<< If this file is missing, then do following
2) Download the file from the upload link here
https://upload.versa-networks.com/index.php/s/toI03DKl3axx9Js
Password: nodejs@2123
Once you download the file from the upload folder, use USB or SSH management connection to move the file.
a If you are using USB, then how to mount the file and move the file from the USB to VOS is provided here https://support.versa-networks.com/a/solutions/articles/23000028399?portalId=23000007779
If you are using management port SSH access, then you can use winscp application to move the file from Host to VOS.
3) Move this first in /tmp folder
[admin@Branch-111: tmp] $ ls -ltr | grep nodejs
-rwxr-x--- 1 admin versa 41226208 Jul 25 12:59 nodejs
4) Copy this file from /tmp to /usr/bin and then change the ownership and permissions.
[admin@Branch-111: tmp] $ sudo cp nodejs /usr/bin/
[admin@Branch-111: tmp] $ cd /usr/bin/
[admin@Branch-111: bin] $ sudo chown root:root nodejs
[admin@Branch-111: bin] $ sudo chmod 777 nodejs
5) Copy the same file to /etc/alternatives and /var/lib/dpkg/alternatives
[admin@Branch-111: bin] $ sudo cp nodejs /etc/alternatives
[admin@Branch-111: bin] $ sudo cp nodejs /var/lib/dpkg/alternatives
6) Restart the nodejs services from the shell
[admin@Branch-111: bin] $ sudo service versa-nodejs start
7) Run vsh status command from the shell
[admin@Chicago-GW: ~] $ vsh status
versa-service is Running, [-] process 4188
versa-infmgr is Running, [-] process 2140
versa-rfd is Running, [-] process 2095
versa-vmod is Running, [-] process 3400
versa-ip2user is Running, [-] process 2086
versa-imgr is Running, [-] process 2009
versa-acctmgrd is Running, [-] process 2069
versa-fltrmgr is Running, [-] process 2013
versa-vstated is Running, [-] process 2182
versa-addrmgrd is Running, [-] process 1912
versa-rt-cli-xfm is Running, [-] process 2135
versa-rtd is Running, [-] process 3258
versa-dhcpd is Running, [-] process 2846
versa-eventd is Running, [-] process 3144
versa-vrrpd is Running, [-] process 2006
versa-dnsd is Running, [-] process 2799
versa-ppmd is Running, [-] process 1934
versa-snmp-xform is Running, [-] process 3150
versa-certd is Running, [-] process 3301
versa-ntpd is Running, [*] process 2622
versa-dhclient6 is Running, [-] process 1969
versa-redis is Running, [-] process 5135
versa-av-redis is Running, [-] process 2192
versa-spackmgr is Running, [-] process 2082
versa-l2ld is Running, [-] process 1937
versa-l2cd is Running, [-] process 2690
versa-monit is Running, [*] process 2645
versa-confd is Running, [*] process 1700
versa-auditd is Running, [*] process 14930
versa-nodejs is Running, [-] process 5427
versa-fail2ban is Running, [*] process 4321
[admin@Chicago-GW: ~] $
If you notice any issue following the document, please contact Versa Support at support@versa-networks.com