cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1164
Views
0
Helpful
18
Replies
khgrant
Cisco Employee

NSO error - Daemon dying upon NSO start

 

Hi Team,

 

Getting an error when starting NCS after adding in new yang/xml. How do I determine what the issue is as the error message is not very descriptive: 

gmp@lattice:~/ncs-vpc$ ncs --with-package-reload

Internal error: Terminated in boot (undef)

Daemon died status=19

gmp@lattice:~/ncs-vpc$ cd logs

gmp@lattice:~/ncs-vpc/logs$ more * | grep Terminated

gmp@lattice:~/ncs-vpc/logs$

 

 

Hi Team,

How do I determine where to look?  As you can see there is nothing in the logs file.

 

The yang models of my service compiled with no issues:

 

gmp@lattice:~/ncs-vpc$ cd packages/mobileCloud/src/

gmp@lattice:~/ncs-vpc/packages/mobileCloud/src$ make -B

/home/gmp/ncs-3.4.1/bin/ncsc  `ls bgp-ecmp-context-ann.yang  > /dev/null 2>&1 && echo "-a bgp-ecmp-context-ann.yang"` \

             --yangpath yang  -c -o ../load-dir/bgp-ecmp-context.fxs yang/bgp-ecmp-context.yang

/home/gmp/ncs-3.4.1/bin/ncsc --java-disable-prefix --exclude-enums --fail-on-warnings --java-package com.example.mobileCloud.namespaces --emit-java java/src/com/example/mobileCloud/namespaces/bgp-ecmp-context.java ../load-dir/bgp-ecmp-context.fxs

/home/gmp/ncs-3.4.1/bin/ncsc  `ls bgp-ipv6-ecmp-ann.yang  > /dev/null 2>&1 && echo "-a bgp-ipv6-ecmp-ann.yang"` \

             --yangpath yang  -c -o ../load-dir/bgp-ipv6-ecmp.fxs yang/bgp-ipv6-ecmp.yang

/home/gmp/ncs-3.4.1/bin/ncsc --java-disable-prefix --exclude-enums --fail-on-warnings --java-package com.example.mobileCloud.namespaces --emit-java java/src/com/example/mobileCloud/namespaces/bgp-ipv6-ecmp.java ../load-dir/bgp-ipv6-ecmp.fxs

/home/gmp/ncs-3.4.1/bin/ncsc  `ls devInv-ann.yang  > /dev/null 2>&1 && echo "-a devInv-ann.yang"` \

             --yangpath yang  -c -o ../load-dir/devInv.fxs yang/devInv.yang

/home/gmp/ncs-3.4.1/bin/ncsc --java-disable-prefix --exclude-enums --fail-on-warnings --java-package com.example.mobileCloud.namespaces --emit-java java/src/com/example/mobileCloud/namespaces/devInv.java ../load-dir/devInv.fxs

/home/gmp/ncs-3.4.1/bin/ncsc  `ls mmeconfigfinal-ann.yang  > /dev/null 2>&1 && echo "-a mmeconfigfinal-ann.yang"` \

             --yangpath yang  -c -o ../load-dir/mmeconfigfinal.fxs yang/mmeconfigfinal.yang

/home/gmp/ncs-3.4.1/bin/ncsc --java-disable-prefix --exclude-enums --fail-on-warnings --java-package com.example.mobileCloud.namespaces --emit-java java/src/com/example/mobileCloud/namespaces/mmeconfigfinal.java ../load-dir/mmeconfigfinal.fxs

/home/gmp/ncs-3.4.1/bin/ncsc  `ls oamtest-ann.yang  > /dev/null 2>&1 && echo "-a oamtest-ann.yang"` \

             --yangpath yang  -c -o ../load-dir/oamtest.fxs yang/oamtest.yang

/home/gmp/ncs-3.4.1/bin/ncsc --java-disable-prefix --exclude-enums --fail-on-warnings --java-package com.example.mobileCloud.namespaces --emit-java java/src/com/example/mobileCloud/namespaces/oamtest.java ../load-dir/oamtest.fxs

/home/gmp/ncs-3.4.1/bin/ncsc  `ls staros-mgt-fundamentals-ann.yang  > /dev/null 2>&1 && echo "-a staros-mgt-fundamentals-ann.yang"` \

             --yangpath yang  -c -o ../load-dir/staros-mgt-fundamentals.fxs yang/staros-mgt-fundamentals.yang

/home/gmp/ncs-3.4.1/bin/ncsc --java-disable-prefix --exclude-enums --fail-on-warnings --java-package com.example.mobileCloud.namespaces --emit-java java/src/com/example/mobileCloud/namespaces/staros-mgt-fundamentals.java ../load-dir/staros-mgt-fundamentals.fxs 

/home/gmp/ncs-3.4.1/bin/ncsc  `ls system-activation-ann.yang  > /dev/null 2>&1 && echo "-a system-activation-ann.yang"`  

             --yangpath yang  -c -o ../load-dir/system-activation.fxs yang/system-activation.yang

/home/gmp/ncs-3.4.1/bin/ncsc --java-disable-prefix --exclude-enums --fail-on-warnings --java-package com.example.mobileCloud.namespaces --emit-java java/src/com/example/mobileCloud/namespaces/system-activation.java ../load-dir/system-activation.fxs

/home/gmp/ncs-3.4.1/bin/ncsc  `ls VPC-ann.yang  > /dev/null 2>&1 && echo "-a VPC-ann.yang"` \ 

             --yangpath yang  -c -o ../load-dir/VPC.fxs yang/VPC.yang

/home/gmp/ncs-3.4.1/bin/ncsc --java-disable-prefix --exclude-enums --fail-on-warnings --java-package com.example.mobileCloud.namespaces --emit-java java/src/com/example/mobileCloud/namespaces/VPC.java ../load-dir/VPC.fxs

cd java && ant -q all

 

1 ACCEPTED SOLUTION

Accepted Solutions
khgrant
Cisco Employee

 

Hi Julie,

 

The ncserr.log shows that the ncs fails in reporting error for a bad template at loading. This is a bug that we will fix.

However, you have to look in some of your templates, probably a new one. Somewhere there is text where it should not be (outside of a leaf tag). Looking at the error situation a good guess is that there is content (raw text) directly under a list tag  before the first key.

But this is just a guess, validating the template xml is another way of pinpointing the error in the template.

 

Cheers

/Try

 

View solution in original post

18 REPLIES 18
khgrant
Cisco Employee

 

Hi Juile,

Is there any information in devel.log or ncs.log?

 

-Dan

 

khgrant
Cisco Employee

 

Julie,

Additionally, there is debugging info in the ncserr.log.1 file. This is internal erlang stuff that will be required for support (not necessarily human readable) but may sometimes gives you an idea of why NCS is crashing.

 

To read this log:

 

[cisco@gllncmadpe01 logs]$ ncs --printlog ncserr.log.1

 

Roque

 

 

khgrant
Cisco Employee

Nothing of interest that I see . They are below.

gmp@lattice:~/ncs-vpc/logs$ more ncs.log
<DEBUG> 26-Aug-2015::19:00:23.341 lattice ncs[6707]: - Loading file /home/gmp/ncs-3.4.1/etc/ncs/tailf-webui.fxs
<DEBUG> 26-Aug-2015::19:00:23.344 lattice ncs[6707]: - Loading file /home/gmp/ncs-3.4.1/etc/ncs/snmp/IANA-ITU-ALARM-TC-MIB.fxs
<DEBUG> 26-Aug-2015::19:00:23.344 lattice ncs[6707]: - Loading file /home/gmp/ncs-3.4.1/etc/ncs/snmp/ITU-ALARM-TC-MIB.fxs
<DEBUG> 26-Aug-2015::19:00:23.345 lattice ncs[6707]: - Loading file /home/gmp/ncs-3.4.1/etc/ncs/snmp/TAILF-ALARM-TC-MIB.fxs
<DEBUG> 26-Aug-2015::19:00:23.345 lattice ncs[6707]: - Loading file /home/gmp/ncs-3.4.1/etc/ncs/snmp/SNMP-FRAMEWORK-MIB.fxs
<DEBUG> 26-Aug-2015::19:00:23.345 lattice ncs[6707]: - Loading file /home/gmp/ncs-3.4.1/etc/ncs/iana-crypt-hash.fxs
<DEBUG> 26-Aug-2015::19:00:23.346 lattice ncs[6707]: - Loading file /home/gmp/ncs-3.4.1/etc/ncs/tailf-ncs-ned.fxs
<DEBUG> 26-Aug-2015::19:00:23.346 lattice ncs[6707]: - Loading file /home/gmp/ncs-3.4.1/etc/ncs/ietf-yang-types.fxs
<DEBUG> 26-Aug-2015::19:00:23.347 lattice ncs[6707]: - Loading file /home/gmp/ncs-3.4.1/etc/ncs/ietf-inet-types.fxs
<DEBUG> 26-Aug-2015::19:00:23.347 lattice ncs[6707]: - Loading file /home/gmp/ncs-3.4.1/etc/ncs/ietf-netconf-monitoring.fxs
<DEBUG> 26-Aug-2015::19:00:23.348 lattice ncs[6707]: - Loading file /home/gmp/ncs-3.4.1/etc/ncs/tailf-common-monitoring.fxs
<DEBUG> 26-Aug-2015::19:00:23.349 lattice ncs[6707]: - Loading file /home/gmp/ncs-3.4.1/etc/ncs/ietf-netconf-acm.fxs
<DEBUG> 26-Aug-2015::19:00:23.350 lattice ncs[6707]: - Loading file /home/gmp/ncs-3.4.1/etc/ncs/snmp/SNMPv2-TC.fxs
<DEBUG> 26-Aug-2015::19:00:23.350 lattice ncs[6707]: - Loading file /home/gmp/ncs-3.4.1/etc/ncs/tailf-ncs.fxs
<DEBUG> 26-Aug-2015::19:00:23.365 lattice ncs[6707]: - Loading file /home/gmp/ncs-3.4.1/etc/ncs/snmp/SNMP-USER-BASED-SM-MIB.fxs
<DEBUG> 26-Aug-2015::19:00:23.366 lattice ncs[6707]: - Loading file /home/gmp/ncs-3.4.1/etc/ncs/snmp/SNMP-TARGET-MIB.fxs
<DEBUG> 26-Aug-2015::19:00:23.367 lattice ncs[6707]: - Loading file ./state/packages-in-use/1/cisco-ios/load-dir/tailf-ned-cisco-ios-stats.fxs
<DEBUG> 26-Aug-2015::19:00:23.368 lattice ncs[6707]: - Loading file ./state/packages-in-use/1/cisco-ios/load-dir/tailf-ned-cisco-ios-meta.fxs
<DEBUG> 26-Aug-2015::19:00:23.368 lattice ncs[6707]: - Loading file ./state/packages-in-use/1/cisco-ios/load-dir/tailf-ned-cisco-ios-id.fxs
<DEBUG> 26-Aug-2015::19:00:23.369 lattice ncs[6707]: - Loading file ./state/packages-in-use/1/cisco-ios/load-dir/tailf-ned-cisco-ios.fxs
<DEBUG> 26-Aug-2015::19:00:24.322 lattice ncs[6707]: - Loading file /home/gmp/ncs-3.4.1/etc/ncs/ietf-yang-smiv2.fxs
<DEBUG> 26-Aug-2015::19:00:24.323 lattice ncs[6707]: - Loading file /home/gmp/ncs-3.4.1/etc/ncs/tailf-ncs-netmod-netconf.fxs
<DEBUG> 26-Aug-2015::19:00:24.323 lattice ncs[6707]: - Loading file /home/gmp/ncs-3.4.1/etc/ncs/snmp/snmp.fxs
<DEBUG> 26-Aug-2015::19:00:24.326 lattice ncs[6707]: - Loading file /home/gmp/ncs-3.4.1/etc/ncs/snmp/encryption-usm.fxs
<DEBUG> 26-Aug-2015::19:00:24.326 lattice ncs[6707]: - Loading file /home/gmp/ncs-3.4.1/etc/ncs/tailf-netconf-monitoring.fxs
<DEBUG> 26-Aug-2015::19:00:24.328 lattice ncs[6707]: - Loading file /home/gmp/ncs-3.4.1/etc/ncs/tailf-ncs-monitoring.fxs
<DEBUG> 26-Aug-2015::19:00:24.331 lattice ncs[6707]: - Loading file /home/gmp/ncs-3.4.1/etc/ncs/tailf-configuration-policy.fxs
<DEBUG> 26-Aug-2015::19:00:24.331 lattice ncs[6707]: - Loading file /home/gmp/ncs-3.4.1/etc/ncs/tailf-acm.fxs
<DEBUG> 26-Aug-2015::19:00:24.332 lattice ncs[6707]: - Loading file /home/gmp/ncs-3.4.1/etc/ncs/tailf-ncs-webui.fxs
<DEBUG> 26-Aug-2015::19:00:24.334 lattice ncs[6707]: - Loading file /home/gmp/ncs-3.4.1/etc/ncs/snmp/tailf-ncs-snmp.fxs
<DEBUG> 26-Aug-2015::19:00:24.335 lattice ncs[6707]: - Loading file /home/gmp/ncs-3.4.1/etc/ncs/tailf-ncs-event-forwarding.fxs
<DEBUG> 26-Aug-2015::19:00:24.335 lattice ncs[6707]: - Loading file /home/gmp/ncs-3.4.1/etc/ncs/tailf-ncs-alarms.fxs
<DEBUG> 26-Aug-2015::19:00:24.338 lattice ncs[6707]: - Loading file /home/gmp/ncs-3.4.1/etc/ncs/snmp/TRANSPORT-ADDRESS-MIB.fxs
<DEBUG> 26-Aug-2015::19:00:24.339 lattice ncs[6707]: - Loading file /home/gmp/ncs-3.4.1/etc/ncs/snmp/TAILF-TOP-MIB.fxs
<DEBUG> 26-Aug-2015::19:00:24.339 lattice ncs[6707]: - Loading file /home/gmp/ncs-3.4.1/etc/ncs/snmp/TAILF-ALARM-MIB.fxs
<DEBUG> 26-Aug-2015::19:00:24.340 lattice ncs[6707]: - Loading file /home/gmp/ncs-3.4.1/etc/ncs/snmp/SNMPv2-SMI.fxs
<DEBUG> 26-Aug-2015::19:00:24.340 lattice ncs[6707]: - Loading file /home/gmp/ncs-3.4.1/etc/ncs/snmp/SNMPv2-MIB.fxs
<DEBUG> 26-Aug-2015::19:00:24.341 lattice ncs[6707]: - Loading file /home/gmp/ncs-3.4.1/etc/ncs/snmp/SNMP-VIEW-BASED-ACM-MIB.fxs
<DEBUG> 26-Aug-2015::19:00:24.342 lattice ncs[6707]: - Loading file /home/gmp/ncs-3.4.1/etc/ncs/snmp/SNMP-NOTIFICATION-MIB.fxs
<DEBUG> 26-Aug-2015::19:00:24.343 lattice ncs[6707]: - Loading file /home/gmp/ncs-3.4.1/etc/ncs/snmp/SNMP-MPD-MIB.fxs
<DEBUG> 26-Aug-2015::19:00:24.343 lattice ncs[6707]: - Loading file /home/gmp/ncs-3.4.1/etc/ncs/snmp/SNMP-COMMUNITY-MIB.fxs
<DEBUG> 26-Aug-2015::19:00:24.344 lattice ncs[6707]: - Loading file /home/gmp/ncs-3.4.1/etc/ncs/snmp/IPV6-TC.fxs
<DEBUG> 26-Aug-2015::19:00:24.344 lattice ncs[6707]: - Loading file /home/gmp/ncs-3.4.1/etc/ncs/tailf-aaa.fxs
<DEBUG> 26-Aug-2015::19:00:24.345 lattice ncs[6707]: - Loading file ./state/packages-in-use/1/cisco-staros/load-dir/tailf-ned-cisco-staros-stats.fxs
<DEBUG> 26-Aug-2015::19:00:24.347 lattice ncs[6707]: - Loading file ./state/packages-in-use/1/cisco-staros/load-dir/tailf-ned-cisco-staros-id.fxs
<DEBUG> 26-Aug-2015::19:00:24.347 lattice ncs[6707]: - Loading file ./state/packages-in-use/1/cisco-staros/load-dir/tailf-ned-cisco-staros.fxs
<DEBUG> 26-Aug-2015::19:00:24.511 lattice ncs[6707]: - Loading file ./state/packages-in-use/1/mobileCloud/load-dir/system-activation.fxs
<DEBUG> 26-Aug-2015::19:00:24.514 lattice ncs[6707]: - Loading file ./state/packages-in-use/1/mobileCloud/load-dir/staros-mgt-fundamentals.fxs
<DEBUG> 26-Aug-2015::19:00:24.516 lattice ncs[6707]: - Loading file ./state/packages-in-use/1/mobileCloud/load-dir/oamtest.fxs
<DEBUG> 26-Aug-2015::19:00:24.518 lattice ncs[6707]: - Loading file ./state/packages-in-use/1/mobileCloud/load-dir/mmeconfigfinal.fxs
<DEBUG> 26-Aug-2015::19:00:24.521 lattice ncs[6707]: - Loading file ./state/packages-in-use/1/mobileCloud/load-dir/devInv.fxs
<DEBUG> 26-Aug-2015::19:00:24.521 lattice ncs[6707]: - Loading file ./state/packages-in-use/1/mobileCloud/load-dir/bgp-ipv6-ecmp.fxs
<DEBUG> 26-Aug-2015::19:00:24.524 lattice ncs[6707]: - Loading file ./state/packages-in-use/1/mobileCloud/load-dir/bgp-ecmp-context.fxs
<DEBUG> 26-Aug-2015::19:00:24.526 lattice ncs[6707]: - Loading file ./state/packages-in-use/1/mobileCloud/load-dir/VPC.fxs
<DEBUG> 26-Aug-2015::19:00:24.528 lattice ncs[6707]: - Loading file ./state/packages-in-use/1/APNservice/load-dir/APNservice.fxs
<DEBUG> 26-Aug-2015::19:00:25.176 lattice ncs[6707]: - Loading file /home/gmp/ncs-3.4.1/etc/ncs/ncs.ccl
<DEBUG> 26-Aug-2015::19:00:25.188 lattice ncs[6707]: - Loading file /home/gmp/ncs-3.4.1/scripts/command/device_list.sh
<DEBUG> 26-Aug-2015::19:00:25.200 lattice ncs[6707]: - Loading file /home/gmp/ncs-3.4.1/scripts/command/device_brief_c.sh
<DEBUG> 26-Aug-2015::19:00:25.212 lattice ncs[6707]: - Loading file /home/gmp/ncs-3.4.1/scripts/command/device_list_c.sh
<DEBUG> 26-Aug-2015::19:00:25.225 lattice ncs[6707]: - Loading file /home/gmp/ncs-3.4.1/scripts/command/device_brief.sh
<DEBUG> 26-Aug-2015::19:00:25.238 lattice ncs[6707]: - Loading file /home/gmp/ncs-3.4.1/scripts/command/device_save.sh
<INFO> 26-Aug-2015::19:00:25.239 lattice ncs[6707]: - Starting to listen for Internal IPC on 127.0.0.1:4569
<INFO> 26-Aug-2015::19:00:26.235 lattice ncs[6707]: - Starting the NCS Java VM
<NOTICE> 26-Aug-2015::19:00:26.971 lattice ncs[6707]: - The notification replay store log ''ncs-events'' is being repaired...
<NOTICE> 26-Aug-2015::19:00:26.977 lattice ncs[6707]: - The notification replay store log ''device-notifications'' is being repaired...
<DEBUG> 26-Aug-2015::19:00:27.094 lattice ncs[6707]: - Loading file ./state/packages-in-use/1/APNservice/templates/APNservice.xml
<DEBUG> 26-Aug-2015::19:00:27.100 lattice ncs[6707]: - Loading file ./state/packages-in-use/1/mobileCloud/templates/system-activation.xml
gmp@lattice:~/ncs-vpc/logs$ more devel.log
<INFO> 26-Aug-2015::19:00:25.398 lattice ncs[6707]: devel-cdb Loaded oper data from ./ncs-cdb/O.cdb (14.53 KiB data in 0.009s)
<DEBUG> 26-Aug-2015::19:00:25.410 lattice ncs[6707]: devel-cdb Using delayed CDB journal compaction (automatic mode)
<INFO> 26-Aug-2015::19:00:25.459 lattice ncs[6707]: devel-cdb Loaded schema file: ./ncs-cdb/C.cdb (v3 from 5.4.1)
<INFO> 26-Aug-2015::19:00:25.786 lattice ncs[6707]: devel-cdb Loaded configuration from ./ncs-cdb/A.cdb (880.56 KiB data, 15 transactions in 0.324s)
<DEBUG> 26-Aug-2015::19:00:26.188 lattice ncs[6707]: devel-cdb connect from ncs_server
<DEBUG> 26-Aug-2015::19:00:26.189 lattice ncs[6707]: devel-cdb new subscriber session for ncs_server
<DEBUG> 26-Aug-2015::19:00:26.297 lattice ncs[6707]: devel-c New daemon connected (name: snmp-config-transform, daemon id: 0)
<DEBUG> 26-Aug-2015::19:00:26.308 lattice ncs[6707]: devel-c New worker connected (daemon id: 0 worker id: 4)
<DEBUG> 26-Aug-2015::19:00:26.311 lattice ncs[6707]: devel-c New daemon connected (name: ncs-internal-template-variable, daemon id: 1)
<DEBUG> 26-Aug-2015::19:00:26.311 lattice ncs[6707]: devel-cdb connect from snmp-config-transform
<DEBUG> 26-Aug-2015::19:00:26.311 lattice ncs[6707]: devel-cdb client snmp-config-transform has pid 6730/6
<DEBUG> 26-Aug-2015::19:00:26.312 lattice ncs[6707]: devel-cdb inactive client snmp-config-transform closed
<DEBUG> 26-Aug-2015::19:00:26.312 lattice ncs[6707]: devel-c New worker connected (daemon id: 1 worker id: 1)
<DEBUG> 26-Aug-2015::19:00:26.312 lattice ncs[6707]: devel-c New daemon connected (name: snmp-config-hook, daemon id: 2)
<DEBUG> 26-Aug-2015::19:00:26.318 lattice ncs[6707]: devel-c New worker connected (daemon id: 2 worker id: 7)
<DEBUG> 26-Aug-2015::19:00:26.373 lattice ncs[6707]: devel-c New daemon connected (name: ncs-internal-service-mux, daemon id: 3)
<DEBUG> 26-Aug-2015::19:00:26.385 lattice ncs[6707]: devel-c New worker connected (daemon id: 3 worker id: 1)
<DEBUG> 26-Aug-2015::19:00:27.039 lattice ncs[6707]: devel-cdb Loaded AAA data from CDB
<DEBUG> 26-Aug-2015::19:00:27.061 lattice ncs[6707]: devel-cdb connect from econfd <0.236.0>
<DEBUG> 26-Aug-2015::19:00:27.061 lattice ncs[6707]: devel-cdb new session on running for econfd <0.236.0>
<DEBUG> 26-Aug-2015::19:00:27.068 lattice ncs[6707]: devel-cdb client econfd <0.236.0> closed
<DEBUG> 26-Aug-2015::19:00:27.068 lattice ncs[6707]: devel-cdb connect from econfd <0.236.0>
<DEBUG> 26-Aug-2015::19:00:27.068 lattice ncs[6707]: devel-cdb new session on operational for econfd <0.236.0>
<DEBUG> 26-Aug-2015::19:00:27.068 lattice ncs[6707]: devel-cdb client econfd <0.236.0> closed
<DEBUG> 26-Aug-2015::19:00:27.068 lattice ncs[6707]: devel-cdb connect from econfd <0.347.0>
<DEBUG> 26-Aug-2015::19:00:27.068 lattice ncs[6707]: devel-cdb new subscriber session for econfd <0.347.0>
<DEBUG> 26-Aug-2015::19:00:31.320 lattice ncs[6707]: devel-cdb connect from NCSLOGGER
<DEBUG> 26-Aug-2015::19:00:31.395 lattice ncs[6707]: devel-cdb connect from com.tailf.ncs.logging.NcsLogger$LoggConfigurator
<DEBUG> 26-Aug-2015::19:00:31.404 lattice ncs[6707]: devel-cdb new subscriber session for NCSLOGGER
<DEBUG> 26-Aug-2015::19:00:31.464 lattice ncs[6707]: devel-cdb connect from com.tailf.ncs.logging.NcsLogger$LoggConfigurator-pool:0
<DEBUG> 26-Aug-2015::19:00:31.472 lattice ncs[6707]: devel-cdb new session on running for com.tailf.ncs.logging.NcsLogger$LoggConfigurator-pool:0
<DEBUG> 26-Aug-2015::19:00:31.496 lattice ncs[6707]: devel-cdb end session on running for com.tailf.ncs.logging.NcsLogger$LoggConfigurator-pool:0
<DEBUG> 26-Aug-2015::19:00:31.496 lattice ncs[6707]: devel-cdb inactive client com.tailf.ncs.logging.NcsLogger$LoggConfigurator-pool:0 closed
<DEBUG> 26-Aug-2015::19:00:31.496 lattice ncs[6707]: devel-cdb inactive client com.tailf.ncs.logging.NcsLogger$LoggConfigurator closed
<DEBUG> 26-Aug-2015::19:00:31.512 lattice ncs[6707]: devel-cdb connect from com.tailf.ncs.alarmman.producer.AlarmSinkCentral
<DEBUG> 26-Aug-2015::19:00:31.521 lattice ncs[6707]: devel-cdb connect from com.tailf.ncs.alarmman.consumer.AlarmSourceCentral
<DEBUG> 26-Aug-2015::19:00:31.537 lattice ncs[6707]: devel-cdb connect from com.tailf.ncs.alarmman.producer.AlarmSinkCentral-pool:1
<DEBUG> 26-Aug-2015::19:00:31.537 lattice ncs[6707]: devel-cdb new session on running for com.tailf.ncs.alarmman.producer.AlarmSinkCentral-pool:1
<DEBUG> 26-Aug-2015::19:00:31.544 lattice ncs[6707]: devel-cdb connect from JMXConfigRead
<DEBUG> 26-Aug-2015::19:00:31.550 lattice ncs[6707]: devel-cdb connect from JMXConfigRead-pool:2
<DEBUG> 26-Aug-2015::19:00:31.550 lattice ncs[6707]: devel-cdb new session on running for JMXConfigRead-pool:2
<DEBUG> 26-Aug-2015::19:00:32.105 lattice ncs[6707]: devel-c New daemon connected (name: ncs-dp-1-cisco-ios:IOSDp2, daemon id: 4)
gmp@lattice:~/ncs-vpc/logs$

khgrant
Cisco Employee

 

Attached.

 

khgrant
Cisco Employee

 

Julie,

 

Are you able to start ncs without the —with-package-reload option?

And then login to NCS CLI & run a “request packages reload”?

 

Thanks, Giri V.

khgrant
Cisco Employee

 

No I cannot L

 

/Julie

khgrant
Cisco Employee

Just to check, did you source ncsrc to begin with?  Try a ncs —stop. If that doesn’t work, try rebooting the server.

 

Thanks, Giri

khgrant
Cisco Employee

 

Yes ncsrc is sourced automatically on login.,

 

Reboot did nto fix:

 

gmp@lattice:~$ cd ncs-vpc 

gmp@lattice:~/ncs-vpc$ ncs --with-package-reload 

Internal error: Terminated in boot (undef)

Daemon died status=19

gmp@lattice:~/ncs-vpc$

 

JA

 

khgrant
Cisco Employee

 

Hi Julie,

 

The ncserr.log shows that the ncs fails in reporting error for a bad template at loading. This is a bug that we will fix.

However, you have to look in some of your templates, probably a new one. Somewhere there is text where it should not be (outside of a leaf tag). Looking at the error situation a good guess is that there is content (raw text) directly under a list tag  before the first key.

But this is just a guess, validating the template xml is another way of pinpointing the error in the template.

 

Cheers

/Try

 

View solution in original post

khgrant
Cisco Employee

 

Julie, take a better look at the answer from Try, that one was the correct one.

 

/klacke

 

khgrant
Cisco Employee

 

This is a bug which will be fixed.

 

It occurs when using mixed content, but only right below <config-template>,

 

see:

 

 

<config-template xmlns="http://tail-f.com/ns/config/1.0"

servicepoint="tst">

GARBAGE HERE LEADS TO INTERNAL ERROR

   <devices xmlns="http://tail-f.com/ns/ncs">

 

At other places a proper error message is produced.

 

Cheers

 

/Dag

 

khgrant
Cisco Employee

 

Hi,

 

Is it an error in the xml template or the yang model? You seemed to have mixed terminology.  I’ll go through both and try to find the issue.

Thank you, JA

 

khgrant
Cisco Employee

 

JA,

 

 

Is it an error in the xml template or the yang model?

 

 

This is about the template.

 



 

You seemed to have mixed terminology.

 

 

Why do you think so?

 



 

I’ll go through both and try to find the issue.

 

 

Best Regards,

 

/jan

 

khgrant
Cisco Employee

 

Because he says template and then talks about list/leaf – which is Yang.

 

Content for Community-Ad

This widget could not be displayed.