cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1630
Views
5
Helpful
2
Replies

Unable to start NSO in debug mode

santanude2535
Level 1
Level 1

Hi All,

My ncs version is "nso-5.1.0.1.linux.x86_64". When I start nso in debug mode I am getting the error as below. Am I doing something wrong? Can anyone help me?

 

=========================================================================== santanu@nsodemo:~/santanu/ncs-run/$ ncs-start-java-vm -d 

Starting java-vm with options:
' -classpath :/home/xoriant/Shrinivas/nso-work/java/jar/* -Xdebug -Xrunjdwp:transport=dt_socket,address=9000,server=y,suspend=n -Djava.security.egd=file:/dev/./urandom -Dfile.encoding=UTF-8'
Listening for transport dt_socket at address: 9000
NCS JVM STARTING
NcsLogger applying Default configuration!
<INFO> 21-Nov-2019::07:41:03.844 NcsMain JVM-Launcher: - CONNECTED TO to NCS --> Socket[addr=/127.0.0.1,port=4569,localport=60658]
<INFO> 21-Nov-2019::07:41:04.177 NcsMain JVM-Launcher: - READ SOCKET =>
<INFO> 21-Nov-2019::07:41:04.733 NcsMain JVM-Launcher: - <= GOT INIT_JVM
JMXURL : service:jmx:rmi://127.0.0.1:9901/jndi/rmi://127.0.0.1:9902/ncs
<INFO> 21-Nov-2019::07:41:06.860 NcsMain JVM-Launcher: - ALARM SERVICE STARTED
<INFO> 21-Nov-2019::07:41:06.861 NcsMain JVM-Launcher: - DONE COMMAND --> INIT_JVM
<INFO> 21-Nov-2019::07:41:06.864 NcsMain JVM-Launcher: - READ SOCKET =>
<INFO> 21-Nov-2019::07:41:06.866 NcsMain JVM-Launcher: - <= GOT DONE_LOADING
<INFO> 21-Nov-2019::07:41:06.866 NcsMain JVM-Launcher: - DONE LOADING -->
<INFO> 21-Nov-2019::07:41:06.867 NcsMain JVM-Launcher: - DONE LOADING --> OK
<INFO> 21-Nov-2019::07:41:06.867 NcsMain JVM-Launcher: - DONE COMMAND --> DONE_LOADING
<INFO> 21-Nov-2019::07:41:06.868 NcsMain JVM-Launcher: - READ SOCKET =>
<WARN> 21-Nov-2019::07:41:06.874 NcsMain JVM-Launcher: - CONTROL SOCKET CLOSED - HALTING
<ERROR> 21-Nov-2019::07:41:06.889 NcsMain JVM-Launcher: - Error in NcsMain mainLoop :
com.tailf.conf.ConfException: unexpected end of file
at com.tailf.conf.ConfInternal.readFill(ConfInternal.java:414)
at com.tailf.conf.ConfInternal.termRead(ConfInternal.java:184)
at com.tailf.conf.ConfInternal.termRead(ConfInternal.java:112)
at com.tailf.ncs.NcsMain.read(NcsMain.java:1451)
at com.tailf.ncs.NcsMain.mainLoop(NcsMain.java:653)
at com.tailf.ncs.NcsMain.run(NcsMain.java:489)
at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: java.io.EOFException
... 7 more
<WARN> 21-Nov-2019::07:41:06.989 NcsMain JVM-Launcher: - Stopping by System.exit()
<WARN> 21-Nov-2019::07:41:06.989 NcsMain JVM-Launcher: - NCS JVM STOPPED

1 Accepted Solution

Accepted Solutions

ramkraja
Cisco Employee
Cisco Employee

My ncs version is "nso-5.1.0.1.linux.x86_64". When I start nso in debug mode I am getting the error as below.

santanu@nsodemo:~/santanu/ncs-run/$ ncs-start-java-vm -d 

You are not starting NSO with this command. This starts nso's java-vm, not NSO itself.

Use the command "ncs" to start NSO.

<ERROR> 21-Nov-2019::07:41:06.889 NcsMain JVM-Launcher: - Error in NcsMain mainLoop :
com.tailf.conf.ConfException: unexpected end of file
at com.tailf.conf.ConfInternal.readFill(ConfInternal.java:414)
at com.tailf.conf.ConfInternal.termRead(ConfInternal.java:184)
at com.tailf.conf.ConfInternal.termRead(ConfInternal.java:112)
at com.tailf.ncs.NcsMain.read(NcsMain.java:1451)
at com.tailf.ncs.NcsMain.mainLoop(NcsMain.java:653)
at com.tailf.ncs.NcsMain.run(NcsMain.java:489)
at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: java.io.EOFException


I get this same exception, if another instance of the java-vm is running. Check if you already have NSO and another instance of java-vm up and running.

/Ram

View solution in original post

2 Replies 2

ramkraja
Cisco Employee
Cisco Employee

My ncs version is "nso-5.1.0.1.linux.x86_64". When I start nso in debug mode I am getting the error as below.

santanu@nsodemo:~/santanu/ncs-run/$ ncs-start-java-vm -d 

You are not starting NSO with this command. This starts nso's java-vm, not NSO itself.

Use the command "ncs" to start NSO.

<ERROR> 21-Nov-2019::07:41:06.889 NcsMain JVM-Launcher: - Error in NcsMain mainLoop :
com.tailf.conf.ConfException: unexpected end of file
at com.tailf.conf.ConfInternal.readFill(ConfInternal.java:414)
at com.tailf.conf.ConfInternal.termRead(ConfInternal.java:184)
at com.tailf.conf.ConfInternal.termRead(ConfInternal.java:112)
at com.tailf.ncs.NcsMain.read(NcsMain.java:1451)
at com.tailf.ncs.NcsMain.mainLoop(NcsMain.java:653)
at com.tailf.ncs.NcsMain.run(NcsMain.java:489)
at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: java.io.EOFException


I get this same exception, if another instance of the java-vm is running. Check if you already have NSO and another instance of java-vm up and running.

/Ram

Thank you Ramkraja for your input. I had to stop java-vm from CLI prompt. Then I able to start java-vm with -d option. 

 

 

Polls
AI-powered tools for network troubleshooting are likely to be part of everyone’s workflow sooner or later. What is the single biggest challenge or concern you see with adopting these tools in your organization?