03-02-2018 12:10 PM - edited 03-01-2019 04:06 AM
i have installed NSO on a Ubuntu 16.04 vm and it installs ok. When I try to start up the ncs binary immediately exits with the following error:
/home/plauda/ncs-4.2.6.1/lib/ncs/erts/bin/ncsexec: 1: /home/plauda/ncs-4.2.6.1/lib/ncs/erts/bin/ncsexec: Syntax error: word unexpected (expecting ")")
This is happening both with the new release 4.5.3 and with the above 4.2.6.1. Has anyone seen this or have any thoughts about what might be at fault here?
Thanks in advance for any input.
03-05-2018 09:30 AM
Hi,
Can you provide details regarding the installed version of java & python on your installation system? Is this a local install?
-Dan
03-05-2018 09:42 AM
Hello,
Yes it is a local installation.
Python: 2.7.12
Java: openjdk version "1.8.0_151"
OpenJDK Runtime Environment (build 1.8.0_151-8u151-b12-0ubuntu0.16.04.2-b12)
OpenJDK 64-Bit Server VM (build 25.151-b12, mixed mo
Thank you for looking at this. It’s got me baffled. Here is the exact error I get when trying to start ‘ncs’
/home/plauda/ncs-4.2.6.1/lib/ncs/erts/bin/ncsexec: 1: /home/plauda/ncs-4.2.6.1/lib/ncs/erts/bin/ncsexec: Syntax error: word unexpected (expecting ")")
--peter
03-05-2018 01:19 PM
Hi Peter,
I just gave this a try on a new Ubuntu-16.4 VM, all looks good...
Corrupted NSO install binary???
Shell type? (SHELL=/bin/bash)
Perhaps you can check the nso logs and /var/log/syslog for clues.
-Larry
lmanor@ubuntu16-4:~/NCS/nso-test-4.5.3$ cat /etc/os-release
NAME="Ubuntu"
VERSION="16.04.4 LTS (Xenial Xerus)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 16.04.4 LTS"
VERSION_ID="16.04"
HOME_URL="http://www.ubuntu.com/"
SUPPORT_URL="http://help.ubuntu.com/"
BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/"
VERSION_CODENAME=xenial
UBUNTU_CODENAME=xenial
lmanor@ubuntu16-4:~/NCS/nso-test-4.5.3$ java -version
openjdk version "1.8.0_151"
OpenJDK Runtime Environment (build 1.8.0_151-8u151-b12-0ubuntu0.16.04.2-b12)
OpenJDK 64-Bit Server VM (build 25.151-b12, mixed mode)
lmanor@ubuntu16-4:~/NCS/nso-test-4.5.3$ python
Python 2.7.12 (default, Dec 4 2017, 14:50:18)
[GCC 5.4.0 20160609] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> exit()
lmanor@ubuntu16-4:~/NCS/nso-test-4.5.3$ ncs
lmanor@ubuntu16-4:~/NCS/nso-test-4.5.3$ ncs_cli -u admin
admin connected from 127.0.0.1 using console on ubuntu16-4
admin@ncs>
Syslog for NCS start should look something like this:
Mar 5 15:53:53 ubuntu16-4 ncs[4077]: - Starting NCS vsn: 4.5.3
Mar 5 15:53:53 ubuntu16-4 ncs[4077]: - Loading file confd.fxs
Mar 5 15:53:53 ubuntu16-4 ncs[4077]: - Loading file ietf-yang-types.fxs
Mar 5 15:53:53 ubuntu16-4 ncs[4077]: - Loading file ietf-inet-types.fxs
Mar 5 15:53:53 ubuntu16-4 ncs[4077]: - Loading file confd_cfg.fxs
Mar 5 15:53:53 ubuntu16-4 ncs[4077]: - Loading file config.fxs
Mar 5 15:53:53 ubuntu16-4 ncs[4077]: - Loading file netconf.fxs
Mar 5 15:53:53 ubuntu16-4 ncs[4077]: - Loading file netconf_notification.fxs
Mar 5 15:53:53 ubuntu16-4 ncs[4077]: - Loading file netconf_actions.fxs
Mar 5 15:53:53 ubuntu16-4 ncs[4077]: - Loading file yang.fxs
Mar 5 15:53:53 ubuntu16-4 ncs[4077]: - Loading file netconf_transactions.fxs
Mar 5 15:53:53 ubuntu16-4 ncs[4077]: - Loading file netconf_partial_lock.fxs
Mar 5 15:53:53 ubuntu16-4 ncs[4077]: - Loading file netconf_tailf_commit.fxs
Mar 5 15:53:53 ubuntu16-4 ncs[4077]: - Loading file netconf_forward.fxs
Mar 5 15:53:53 ubuntu16-4 ncs[4077]: - Loading file netconf_inactive.fxs
Mar 5 15:53:53 ubuntu16-4 ncs[4077]: - Loading file tailf_netconf.fxs
Mar 5 15:53:53 ubuntu16-4 ncs[4077]: - Loading file tailf-ncs-config.fxs
Mar 5 15:53:53 ubuntu16-4 ncs[4077]: - Loading file netconf_ncs.fxs
Mar 5 15:53:53 ubuntu16-4 ncs[4077]: - Loading file tailf-netconf-extensions.fxs
Mar 5 15:53:53 ubuntu16-4 ncs[4077]: - Loading file tailf-netconf-query.fxs
Mar 5 15:53:53 ubuntu16-4 ncs[4077]: - Loading file tailf-rest-query.fxs
Mar 5 15:53:53 ubuntu16-4 ncs[4077]: - Loading file tailf-rest-error.fxs
Mar 5 15:53:53 ubuntu16-4 ncs[4077]: - Loading file /home/lmanor/NCS/nso-test-4.5.3/ncs.conf
Mar 5 15:53:53 ubuntu16-4 ncs[4077]: - Consulting daemon configuration file /home/lmanor/NCS/nso-test-4.5.3/ncs.conf
Mar 5 15:53:54 ubuntu16-4 ncs[4077]: - Enabling error log
Mar 5 15:53:54 ubuntu16-4 ncs[4077]: - Writing error log to ./logs/ncserr.log
Mar 5 15:53:54 ubuntu16-4 ncs[4077]: - Writing daemon log to /home/lmanor/NCS/nso-test-4.5.3/logs/ncs.log
Mar 5 15:53:54 ubuntu16-4 ncs[4077]: - Writing NETCONF log to /home/lmanor/NCS/nso-test-4.5.3/logs/netconf.log
Mar 5 15:53:54 ubuntu16-4 ncs[4077]: - Writing SNMP log to /home/lmanor/NCS/nso-test-4.5.3/logs/snmp.log
Mar 5 15:53:54 ubuntu16-4 ncs[4077]: - Writing audit log to /home/lmanor/NCS/nso-test-4.5.3/logs/audit.log
Mar 5 15:53:54 ubuntu16-4 ncs[4077]: - Writing developer log to /home/lmanor/NCS/nso-test-4.5.3/logs/devel.log
Mar 5 15:53:54 ubuntu16-4 ncs[4077]: - Writing XPath trace log to /home/lmanor/NCS/nso-test-4.5.3/logs/xpath.trace
Mar 5 15:53:54 ubuntu16-4 ncs[4077]: - Daemon logging started
Mar 5 15:53:54 ubuntu16-4 ncs[4077]: - Loading file /home/lmanor/NCS/nso-4.5.3/etc/ncs/ietf-netconf-monitoring.fxs
Mar 5 15:53:54 ubuntu16-4 ncs[4077]: - Loading file /home/lmanor/NCS/nso-4.5.3/etc/ncs/tailf-common-monitoring.fxs
Mar 5 15:53:54 ubuntu16-4 ncs[4077]: - Loading file /home/lmanor/NCS/nso-4.5.3/etc/ncs/tailf-webui.fxs
<.... snip ...>
Mar 5 15:53:54 ubuntu16-4 ncs[4077]: - Loading file /home/lmanor/NCS/nso-4.5.3/etc/ncs/snmp/SNMP-COMMUNITY-MIB.fxs
Mar 5 15:53:54 ubuntu16-4 ncs[4077]: - Loading file /home/lmanor/NCS/nso-4.5.3/etc/ncs/snmp/IPV6-TC.fxs
Mar 5 15:53:54 ubuntu16-4 ncs[4077]: - Loading file /home/lmanor/NCS/nso-4.5.3/etc/ncs/tailf-common-query.fxs
Mar 5 15:53:54 ubuntu16-4 ncs[4077]: - Loading file /home/lmanor/NCS/nso-4.5.3/etc/ncs/tailf-aaa.fxs
Mar 5 15:53:54 ubuntu16-4 ncs[4077]: - Loading file /home/lmanor/NCS/nso-4.5.3/etc/ncs/ncs.ccl
Mar 5 15:53:54 ubuntu16-4 ncs[4077]: - Loading file /home/lmanor/NCS/nso-4.5.3/etc/ncs/smart-license.ccl
Mar 5 15:53:54 ubuntu16-4 ncs[4077]: - Loading file /home/lmanor/NCS/nso-4.5.3/scripts/command/device_save.sh
Mar 5 15:53:54 ubuntu16-4 ncs[4077]: - Starting to listen for Internal IPC on 127.0.0.1:4569
Mar 5 15:53:55 ubuntu16-4 ncs[4077]: - Starting the NCS Java VM
Mar 5 15:53:55 ubuntu16-4 ncs[4077]: - Starting to listen for NETCONF SSH on 0.0.0.0:2022
Mar 5 15:53:55 ubuntu16-4 ncs[4077]: - Starting to listen for WebUI TCP on 0.0.0.0:8080
Mar 5 15:53:55 ubuntu16-4 ncs[4077]: - Loading MIB: /home/lmanor/NCS/nso-4.5.3/lib/ncs/lib/snmp/snmp/priv/mibs/SNMPv2-MIB
Mar 5 15:53:55 ubuntu16-4 ncs[4077]: - Loading MIB: /home/lmanor/NCS/nso-4.5.3/lib/ncs/lib/snmp/snmp/priv/mibs/SNMP-FRAMEWORK-MIB
Mar 5 15:53:55 ubuntu16-4 ncs[4077]: - Loading MIB: /home/lmanor/NCS/nso-4.5.3/lib/ncs/lib/snmp/snmp/priv/mibs/SNMP-MPD-MIB
Mar 5 15:53:56 ubuntu16-4 ncs[4077]: - Starting to listen for SNMP UDP on 0.0.0.0:4000
Mar 5 15:53:56 ubuntu16-4 ncs[4077]: - Loading MIB: /home/lmanor/NCS/nso-4.5.3/etc/ncs/snmp/IANA-ITU-ALARM-TC-MIB.bin
Mar 5 15:53:56 ubuntu16-4 ncs[4077]: - Loading MIB: /home/lmanor/NCS/nso-4.5.3/etc/ncs/snmp/ITU-ALARM-TC-MIB.bin
Mar 5 15:53:56 ubuntu16-4 ncs[4077]: - Loading MIB: /home/lmanor/NCS/nso-4.5.3/etc/ncs/snmp/TAILF-ALARM-MIB.bin
Mar 5 15:53:56 ubuntu16-4 ncs[4077]: - Loading MIB: /home/lmanor/NCS/nso-4.5.3/etc/ncs/snmp/TAILF-ALARM-TC-MIB.bin
Mar 5 15:53:56 ubuntu16-4 ncs[4077]: - Loading MIB: /home/lmanor/NCS/nso-4.5.3/etc/ncs/snmp/TAILF-TOP-MIB.bin
Mar 5 15:53:56 ubuntu16-4 ncs[4077]: - Loading MIB: /home/lmanor/NCS/nso-4.5.3/lib/ncs/lib/snmp/snmp/priv/mibs/SNMP-COMMUNITY-MIB.bin
Mar 5 15:53:56 ubuntu16-4 ncs[4077]: - Loading MIB: /home/lmanor/NCS/nso-4.5.3/lib/ncs/lib/snmp/snmp/priv/mibs/SNMP-TARGET-MIB.bin
Mar 5 15:53:56 ubuntu16-4 ncs[4077]: - Loading MIB: /home/lmanor/NCS/nso-4.5.3/lib/ncs/lib/snmp/snmp/priv/mibs/SNMP-NOTIFICATION-MIB.bin
Mar 5 15:53:56 ubuntu16-4 ncs[4077]: - Loading MIB: /home/lmanor/NCS/nso-4.5.3/lib/ncs/lib/snmp/snmp/priv/mibs/SNMP-USER-BASED-SM-MIB.bin
Mar 5 15:53:56 ubuntu16-4 ncs[4077]: - Loading MIB: /home/lmanor/NCS/nso-4.5.3/lib/ncs/lib/snmp/snmp/priv/mibs/SNMP-VIEW-BASED-ACM-MIB.bin
Mar 5 15:53:56 ubuntu16-4 ncs[4077]: - Starting to listen for CLI SSH on 0.0.0.0:2024
Mar 5 15:53:56 ubuntu16-4 ncs[4077]: - Starting the NCS Smart Licensing Java VM
Mar 5 15:53:56 ubuntu16-4 ncs[4077]: - NCS started vsn: 4.5.3
Mar 5 15:54:03 ubuntu16-4 lmanor: %CISCO-SMART-LIC% Smart Agent is enabled
Mar 5 15:54:03 ubuntu16-4 lmanor: %CISCO-SMART-LIC% Smart Agent is initialized
03-06-2018 10:41 AM
Hi.
That syntax error makes it sound like it thinks ncsexec is a shellscript. What does
file /home/plauda/ncs-4.2.6.1/lib/ncs/erts/bin/ncsexec
give you?
--Viktor
03-06-2018 10:50 AM
It’s actually a binary. However, we did hunt down the source of the error. It is was the wrong platform version installer.
--p
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide