Project

General

Profile

Actions

Bug #1360

closed

producers cannot connect to running nfd if by mistake another instance of nfd is started.

Added by Syed Amin over 10 years ago. Updated over 10 years ago.

Status:
Closed
Priority:
Low
Category:
Faces
Target version:
Start date:
03/17/2014
Due date:
% Done:

90%

Estimated time:

Description

I by mistake started another instance of nfd on another terminal, which as expected quit after printing out the following messages:


$ sudo NFD=1 NRD=1 NFD_LOG=all ~/nfd/build/nfd --config /usr/local/etc/ndn/nfd.conf.sample
DEBUG: [NameTree] lookup /

DEBUG: [NameTree] insert /

DEBUG: [NameTree] Name / hash value = 2654435816 location = 488

DEBUG: [NameTree] Did not find /, need to insert it to the table

INFO: [StrategyChoice] setDefaultStrategy(/localhost/nfd/strategy/best-route) new entry

DEBUG: [FaceUri] URI [internal://] parsed into: internal, , ,

INFO: [FaceTable] addFace id=1

INFO: [InternalFace] registering callback for /localhost/nfd/fib

INFO: [InternalFace] registering callback for /localhost/nfd/faces

INFO: [InternalFace] registering callback for /localhost/nfd/control-header

INFO: [InternalFace] registering callback for /localhost/nfd/strategy-choice

DEBUG: [CommandValidator] generated certfile path: /usr/local/etc/ndn/keys/default.ndncert

INFO: [CommandValidator] Giving privilege "control-header" to identity /obaid/ksk-1395076550007

INFO: [CommandValidator] Giving privilege "faces" to identity /obaid/ksk-1395076550007

INFO: [CommandValidator] Giving privilege "fib" to identity /obaid/ksk-1395076550007

INFO: [CommandValidator] Giving privilege "strategy-choice" to identity /obaid/ksk-1395076550007

DEBUG: [TcpFactory] Channel [0.0.0.0:6363] created

DEBUG: [TcpFactory] Channel [[::]:6363] created

ERROR: [Main] Error: bind: Address already in use


However, after this I couldn't connect any producer to already running nfd. To connect any producer again I had to restart the running nfd as well.

Steps to reproduce the error:

On Terminal 1 start nfd:

$ sudo NFD=1 NRD=1 NFD_LOG=all ~/nfd/build/nfd --config /usr/local/etc/ndn/nfd.conf.sample

On Terminal 2 start another instance of nfd:

$ sudo NFD=1 NRD=1 NFD_LOG=all ~/nfd/build/nfd --config /usr/local/etc/ndn/nfd.conf.sample

(This will give the above mentioned errors and will quit)

Start producer:

$ NFD=1 ~/ndn-cpp-dev/build/examples/producer

ERROR: error while connecting to the forwarder (Connection refused)


Related issues 1 (0 open1 closed)

Is duplicate of NFD - Task #1367: Change initialization of unix socketClosedDavide Pesavento

Actions
Actions

Also available in: Atom PDF