Project

General

Profile

Actions

Task #4349

closed

NetworkManager 1: fetchNDNDId: ndndID discovery failed due to timeout.

Added by Sheng Luo over 6 years ago. Updated almost 5 years ago.

Status:
Rejected
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
10/19/2017
Due date:
% Done:

0%

Estimated time:

Description

I am testing a program which can convert the HTTP packets to the NDN packets. The program had been builded successfully, but there some problems at the run time. I can not understand and solve these problems. Maybe the errors is about NFD? Can someone help me ?


The environment:

Apache Maven 3.2.5 (12a6b3acb947671f09b81f49094c53f426d8cea1; 2014-12-14T09:29:23-08:00)
Maven home: /opt/apache-maven-3.2.5
Java version: 1.6.0_45, vendor: Sun Microsystems Inc.
Java home: /opt/jdk1.6.0_45/jre
Default locale: zh_CN, platform encoding: UTF-8

OS name: "linux", version: "4.10.0-37-generic", arch: "amd64", family: "unix"

NFD status:
General NFD status:
nfdId=/localhost/daemons/nfd/KEY/ksk-1507859604722/ID-CERT
version=0.5.1-72-gf4056d0
startTime=20171019T143859.477000
currentTime=20171019T144011.197000
uptime=71 seconds
nNameTreeEntries=11
nFibEntries=2
nPitEntries=3
nMeasurementsEntries=0
nCsEntries=2
nInInterests=7
nOutInterests=7
nInData=5
nOutData=4
nInNacks=0
nOutNacks=0
Channels:
tcp4://0.0.0.0:6363
tcp6://[::]:6363
udp4://0.0.0.0:6363
udp6://[::]:6363
unix:///run/nfd.sock
ws://[::]:9696
Faces:
faceid=1 remote=internal:// local=internal:// counters={in={0i 6d 0n 3383B} out={11i 0d 0n 1441B}} flags={local permanent point-to-point local-fields}
faceid=254 remote=contentstore:// local=contentstore:// counters={in={0i 0d 0n 0B} out={0i 0d 0n 0B}} flags={local permanent point-to-point}
faceid=255 remote=null:// local=null:// counters={in={0i 0d 0n 0B} out={0i 0d 0n 0B}} flags={local permanent point-to-point}
faceid=256 remote=ether://[01:00:5e:00:17:aa] local=dev://ens33 counters={in={0i 0d 0n 0B} out={0i 0d 0n 0B}} flags={non-local permanent multi-access}
faceid=257 remote=udp4://224.0.23.170:56363 local=udp4://192.168.132.128:56363 counters={in={0i 0d 0n 0B} out={0i 0d 0n 0B}} flags={non-local permanent multi-access}
faceid=258 remote=fd://25 local=unix:///run/nfd.sock counters={in={6i 0d 0n 1057B} out={1i 4d 0n 2517B}} flags={local on-demand point-to-point local-fields}
faceid=259 remote=fd://26 local=unix:///run/nfd.sock counters={in={6i 0d 0n 314B} out={0i 1d 0n 467B}} flags={local on-demand point-to-point}
FIB:
/localhost/nfd/rib nexthops={faceid=258 (cost=0)}
/localhost/nfd nexthops={faceid=1 (cost=0)}
RIB:
/localhost/nfd routes={nexthop=258 origin=app cost=0 flags=child-inherit expires=never}
Strategy choices:
prefix=/ strategy=/localhost/nfd/strategy/best-route/%FD%05
prefix=/localhost strategy=/localhost/nfd/strategy/multicast/%FD%03
prefix=/ndn/broadcast strategy=/localhost/nfd/strategy/multicast/%FD%03
prefix=/localhost/nfd strategy=/localhost/nfd/strategy/best-route/%FD%05


[INFO] Attaching shaded artifact.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 6.986 s
[INFO] Finished at: 2017-10-19T07:45:11-07:00
[INFO] Final Memory: 8M/59M
[INFO] ------------------------------------------------------------------------
Running using Java on path at /opt/jdk1.6.0_45/bin/java with args -server -XX:+HeapDumpOnOutOfMemoryError -Xmx800m -jar ./target/ndnMapServer-0.0.1-SNAPSHOT-mapserver-shade.jar
Oct 19, 2017 7:45:12 AM org.ndnx.ndn.impl.security.keys.BasicKeyManager loadKeyStore
INFO: Loading NDN key store from /home/claude/.ndnx/.ndnx_keystore...last modified 1508247194000(ms).
Oct 19, 2017 7:45:12 AM org.ndnx.ndn.impl.security.keys.BasicKeyManager readKeyStore
INFO: Loading NDN key store...
Oct 19, 2017 7:45:12 AM org.ndnx.ndn.impl.security.keys.BasicKeyManager loadKeyStore
INFO: Loaded NDN key store from /home/claude/.ndnx/.ndnx_keystore...version 2017-10-17 06:33:14.0 ms: 1508247194000
Oct 19, 2017 7:45:12 AM org.ndnx.ndn.impl.security.keys.BasicKeyManager loadValuesFromKeystore
INFO: Loading key store file:/home/claude/.ndnx/.ndnx_keystore version 2017-10-17 06:33:14.0 version component %FD%05%9E%60i%A0%00 millis 1508247194000
Oct 19, 2017 7:45:12 AM org.ndnx.ndn.impl.security.keys.BasicKeyManager loadValuesFromKeystore
INFO: Default key ID for user claude: rXQVG6L6S5t8w2MIMQbfTajKPY+Rdn0npTMnCA3F4xg=
Oct 19, 2017 7:45:12 AM org.ndnx.ndn.impl.security.keys.SecureKeyCache loadKeyStore
INFO: KeyCache: loading signing key rXQVG6L6S5t8w2MIMQbfTajKPY+Rdn0npTMnCA3F4xg=, remembering public key in public key cache.
Oct 19, 2017 7:45:12 AM org.ndnx.ndn.impl.security.keys.SecureKeyCache addMySigningKey
INFO: SecureKeyCache: adding my private key ad74151ba2fa4b9b7cc363083106df4da8ca3d8f91767d27a53327080dc5e318
Oct 19, 2017 7:45:12 AM org.ndnx.ndn.impl.security.keys.BasicKeyManager loadValuesFromConfiguration
INFO: loadValuesFromConfiguration: attempting to load configuration from /home/claude/.ndnx/ndnx_config.bin
Oct 19, 2017 7:45:12 AM org.ndnx.ndn.impl.security.keys.BasicKeyManager loadValuesFromConfiguration
INFO: loadValuesFromConfiguration: configuration file /home/claude/.ndnx/ndnx_config.bin does not exist.
Oct 19, 2017 7:45:12 AM org.ndnx.ndn.impl.security.keys.BasicKeyManager loadSavedSecureKeyCache
INFO: Not loading key cache in response to user configuration variable.
Oct 19, 2017 7:45:12 AM org.ndnx.ndn.impl.NDNNetworkManager
INFO: NetworkManager 1: Contacting NDN agent at localhost:6363
Oct 19, 2017 7:45:12 AM org.ndnx.ndn.impl.NDNNetworkChannel
INFO: NetworkChannel 1: Starting up NDNNetworkChannel using TCP.
Oct 19, 2017 7:45:12 AM org.ndnx.ndn.impl.NDNNetworkChannel open
INFO: NetworkChannel 1: open()
Oct 19, 2017 7:45:12 AM org.ndnx.ndn.impl.NDNNetworkChannel open
INFO: NetworkChannel 1: Contacting NDN agent at localhost:6363 on local port 43892
Oct 19, 2017 7:45:12 AM org.ndnx.ndn.NDNHandle
INFO: NDNHandle 1: Handle is now open
Oct 19, 2017 7:45:12 AM org.ndnx.ndn.impl.NDNNetworkManager run
INFO: NetworkManager 1: NDNNetworkManager processing thread started for port: 6363
Oct 19, 2017 7:45:16 AM org.ndnx.ndn.impl.NDNNetworkManager fetchNDNDId
SEVERE: NetworkManager 1: fetchNDNDId: ndndID discovery failed due to timeout.
Oct 19, 2017 7:45:16 AM org.ndnx.ndn.impl.support.Log logStackTrace
WARNING: java.io.IOException: NetworkManager 1: fetchNDNDId: ndndID discovery failed due to timeout.
at org.ndnx.ndn.impl.NDNNetworkManager.fetchNDNDId(NDNNetworkManager.java:1410)
at org.ndnx.ndn.impl.NDNNetworkManager.getNDNDId(NDNNetworkManager.java:781)
at org.ndnx.ndn.profiles.ndnd.PrefixRegistrationManager.selfRegisterPrefix(PrefixRegistrationManager.java:412)
at org.ndnx.ndn.profiles.ndnd.PrefixRegistrationManager.selfRegisterPrefix(PrefixRegistrationManager.java:398)
at org.ndnx.ndn.impl.NDNNetworkManager.registerPrefix(NDNNetworkManager.java:1070)
at org.ndnx.ndn.impl.NDNNetworkManager.setInterestFilter(NDNNetworkManager.java:1029)
at org.ndnx.ndn.impl.NDNNetworkManager.setInterestFilter(NDNNetworkManager.java:969)
at org.ndnx.ndn.NDNHandle.registerFilter(NDNHandle.java:379)
at org.ndnx.ndn.impl.NDNFlowControl.addNameSpace(NDNFlowControl.java:209)
at org.ndnx.ndn.impl.security.keys.KeyServer.serveKey(KeyServer.java:106)
at org.ndnx.ndn.impl.security.keys.BasicKeyManager.serveKey(BasicKeyManager.java:251)
at org.ndnx.ndn.impl.security.keys.BasicKeyManager.publishKey(BasicKeyManager.java:1146)
at org.ndnx.ndn.impl.security.keys.BasicKeyManager.initializeKeyServer(BasicKeyManager.java:233)
at org.ndnx.ndn.impl.security.keys.BasicKeyManager.initialize(BasicKeyManager.java:222)
at org.ndnx.ndn.KeyManager.createDefaultKeyManager(KeyManager.java:156)
at org.ndnx.ndn.KeyManager.getDefaultKeyManager(KeyManager.java:118)
at org.ndnx.ndn.NDNHandle.(NDNHandle.java:189)
at org.ndnx.ndn.NDNHandle.open(NDNHandle.java:89)
at org.ndnMapServer.ndnMapServer.ProxyKeepAlive.(ProxyKeepAlive.java:39)
at org.ndnMapServer.ndnMapServer.MapServer.start(MapServer.java:53)
at org.ndnMapServer.ndnMapServer.MapServer.main(MapServer.java:155)

Oct 19, 2017 7:45:16 AM org.ndnx.ndn.impl.NDNNetworkManager fetchNDNDId
SEVERE: NetworkManager 1: fetchNDNDId: Unexpected IOException in ndndID discovery Interest reason: NetworkManager 1: fetchNDNDId: ndndID discovery failed due to timeout.
java.io.IOException: NetworkManager 1: fetchNDNDId: Unexpected IOException in ndndID discovery Interest reason: NetworkManager 1: fetchNDNDId: ndndID discovery failed due to timeout.
at org.ndnx.ndn.impl.NDNNetworkManager.fetchNDNDId(NDNNetworkManager.java:1435)
at org.ndnx.ndn.impl.NDNNetworkManager.getNDNDId(NDNNetworkManager.java:781)
at org.ndnx.ndn.profiles.ndnd.PrefixRegistrationManager.selfRegisterPrefix(PrefixRegistrationManager.java:412)
at org.ndnx.ndn.profiles.ndnd.PrefixRegistrationManager.selfRegisterPrefix(PrefixRegistrationManager.java:398)
at org.ndnx.ndn.impl.NDNNetworkManager.registerPrefix(NDNNetworkManager.java:1070)
at org.ndnx.ndn.impl.NDNNetworkManager.setInterestFilter(NDNNetworkManager.java:1029)
at org.ndnx.ndn.impl.NDNNetworkManager.setInterestFilter(NDNNetworkManager.java:969)
at org.ndnx.ndn.NDNHandle.registerFilter(NDNHandle.java:379)
at org.ndnx.ndn.impl.NDNFlowControl.addNameSpace(NDNFlowControl.java:209)
at org.ndnx.ndn.impl.security.keys.KeyServer.serveKey(KeyServer.java:106)
at org.ndnx.ndn.impl.security.keys.BasicKeyManager.serveKey(BasicKeyManager.java:251)
at org.ndnx.ndn.impl.security.keys.BasicKeyManager.publishKey(BasicKeyManager.java:1146)
at org.ndnx.ndn.impl.security.keys.BasicKeyManager.initializeKeyServer(BasicKeyManager.java:233)
at org.ndnx.ndn.impl.security.keys.BasicKeyManager.initialize(BasicKeyManager.java:222)
at org.ndnx.ndn.KeyManager.createDefaultKeyManager(KeyManager.java:156)
at org.ndnx.ndn.KeyManager.getDefaultKeyManager(KeyManager.java:118)
at org.ndnx.ndn.NDNHandle.(NDNHandle.java:189)
at org.ndnx.ndn.NDNHandle.open(NDNHandle.java:89)
at org.ndnMapServer.ndnMapServer.ProxyKeepAlive.(ProxyKeepAlive.java:39)
at org.ndnMapServer.ndnMapServer.MapServer.start(MapServer.java:53)
at org.ndnMapServer.ndnMapServer.MapServer.main(MapServer.java:155)
Oct 19, 2017 7:45:16 AM org.ndnx.ndn.impl.NDNNetworkManager setInterestFilter
WARNING: NetworkManager 1: setInterestFilter: unexpected NDNDaemonException: NetworkManager 1: fetchNDNDId: Unexpected IOException in ndndID discovery Interest reason: NetworkManager 1: fetchNDNDId: ndndID discovery failed due to timeout.
Oct 19, 2017 7:45:16 AM org.ndnx.ndn.KeyManager getDefaultKeyManager
WARNING: IOException attempting to get KeyManager: java.io.IOException:NetworkManager 1: fetchNDNDId: Unexpected IOException in ndndID discovery Interest reason: NetworkManager 1: fetchNDNDId: ndndID discovery failed due to timeout.
Oct 19, 2017 7:45:16 AM org.ndnx.ndn.impl.support.Log logStackTrace
WARNING: java.io.IOException: NetworkManager 1: fetchNDNDId: Unexpected IOException in ndndID discovery Interest reason: NetworkManager 1: fetchNDNDId: ndndID discovery failed due to timeout.
at org.ndnx.ndn.impl.NDNNetworkManager.setInterestFilter(NDNNetworkManager.java:1033)
at org.ndnx.ndn.impl.NDNNetworkManager.setInterestFilter(NDNNetworkManager.java:969)
at org.ndnx.ndn.NDNHandle.registerFilter(NDNHandle.java:379)
at org.ndnx.ndn.impl.NDNFlowControl.addNameSpace(NDNFlowControl.java:209)
at org.ndnx.ndn.impl.security.keys.KeyServer.serveKey(KeyServer.java:106)
at org.ndnx.ndn.impl.security.keys.BasicKeyManager.serveKey(BasicKeyManager.java:251)
at org.ndnx.ndn.impl.security.keys.BasicKeyManager.publishKey(BasicKeyManager.java:1146)
at org.ndnx.ndn.impl.security.keys.BasicKeyManager.initializeKeyServer(BasicKeyManager.java:233)
at org.ndnx.ndn.impl.security.keys.BasicKeyManager.initialize(BasicKeyManager.java:222)
at org.ndnx.ndn.KeyManager.createDefaultKeyManager(KeyManager.java:156)
at org.ndnx.ndn.KeyManager.getDefaultKeyManager(KeyManager.java:118)
at org.ndnx.ndn.NDNHandle.(NDNHandle.java:189)
at org.ndnx.ndn.NDNHandle.open(NDNHandle.java:89)
at org.ndnMapServer.ndnMapServer.ProxyKeepAlive.(ProxyKeepAlive.java:39)
at org.ndnMapServer.ndnMapServer.MapServer.start(MapServer.java:53)
at org.ndnMapServer.ndnMapServer.MapServer.main(MapServer.java:155)

Exception in thread "main" java.lang.RuntimeException: Error in system configuration. Cannot get KeyManager.
at org.ndnx.ndn.KeyManager.getDefaultKeyManager(KeyManager.java:122)
at org.ndnx.ndn.NDNHandle.(NDNHandle.java:189)
at org.ndnx.ndn.NDNHandle.open(NDNHandle.java:89)
at org.ndnMapServer.ndnMapServer.ProxyKeepAlive.(ProxyKeepAlive.java:39)
at org.ndnMapServer.ndnMapServer.MapServer.start(MapServer.java:53)
at org.ndnMapServer.ndnMapServer.MapServer.main(MapServer.java:155)
Caused by: java.io.IOException: NetworkManager 1: fetchNDNDId: Unexpected IOException in ndndID discovery Interest reason: NetworkManager 1: fetchNDNDId: ndndID discovery failed due to timeout.
at org.ndnx.ndn.impl.NDNNetworkManager.setInterestFilter(NDNNetworkManager.java:1033)
at org.ndnx.ndn.impl.NDNNetworkManager.setInterestFilter(NDNNetworkManager.java:969)
at org.ndnx.ndn.NDNHandle.registerFilter(NDNHandle.java:379)
at org.ndnx.ndn.impl.NDNFlowControl.addNameSpace(NDNFlowControl.java:209)
at org.ndnx.ndn.impl.security.keys.KeyServer.serveKey(KeyServer.java:106)
at org.ndnx.ndn.impl.security.keys.BasicKeyManager.serveKey(BasicKeyManager.java:251)
at org.ndnx.ndn.impl.security.keys.BasicKeyManager.publishKey(BasicKeyManager.java:1146)
at org.ndnx.ndn.impl.security.keys.BasicKeyManager.initializeKeyServer(BasicKeyManager.java:233)
at org.ndnx.ndn.impl.security.keys.BasicKeyManager.initialize(BasicKeyManager.java:222)
at org.ndnx.ndn.KeyManager.createDefaultKeyManager(KeyManager.java:156)
at org.ndnx.ndn.KeyManager.getDefaultKeyManager(KeyManager.java:118)
... 5 more

Actions #1

Updated by Alex Afanasyev over 6 years ago

  • Status changed from New to Rejected

Based on Java error message I see that you're trying to use the legacy codebase that is no longer in use or can be used with NFD. If you write java apps, use jNDN (https://named-data.net/codebase/platform/ndn-ccl/).

Actions #2

Updated by Davide Pesavento almost 5 years ago

  • Category deleted (Integration Tests)
  • Target version deleted (Unsupported)
Actions

Also available in: Atom PDF