[Ndn-interest] NFD Issues.

Anil Jangam anilj.mailing at gmail.com
Sun Mar 15 14:47:34 PDT 2015


Today, I noticed an issue with starting the NFD service. Apparently, it is
crashing since the process Id it shows after nfd-start does not exist any
more in process status. However, when I try to restart it again, it says,
"start: Job is already running: nfd".

There are multiple issues here. When I do nfd-status, it is not able to
connect to the NFD. Some of the logs are attached below.

ndnusr1 at ndnhost1:~/sandbox/NFD$ nfd-start
nfd start/running, process 5942

ndnusr1 at ndnhost1:~/sandbox/NFD$ ps -ef | grep 5942
ndnusr1   5974  3772  0 14:39 pts/11   00:00:00 grep 5942

ndnusr1 at ndnhost1:~/sandbox/NFD$ nfd-start
start: Job is already running: nfd

ndnusr1 at ndnhost1:~/sandbox/NFD$
ndnusr1 at ndnhost1:~/sandbox/NFD$ nfd-status
ERROR: error while receiving data from socket (Connection reset by peer)
ndnusr1 at ndnhost1:~/sandbox/NFD$


I also tried compiling a new version of the NFD from source, and was
stopped by the following compilation error. Is this new or am I missing
something in my environment?

ndnusr1 at ndnhost1:~/sandbox/NFD$
ndnusr1 at ndnhost1:~/sandbox/NFD$ ./waf
Waf: Entering directory `/home/ndnusr1/sandbox/NFD/build'
[  3/121] Compiling core/city-hash.cpp
[  5/121] Compiling core/global-io.cpp
[  6/121] Compiling core/network-interface.cpp
[  8/121] Compiling core/privilege-helper.cpp
[  9/121] Compiling core/random.cpp
[ 12/121] Compiling core/logger.cpp
[ 15/121] Compiling daemon/face/multicast-udp-face.cpp
[ 17/121] Compiling daemon/face/ndnlp-partial-message-store.cpp
../core/logger.cpp: In static member function ‘static const char*
nfd::Logger::now()’:
../core/logger.cpp:61:3: error: static assertion failed: PRIdLEAST64 is
incompatible with microseconds::rep
   static_assert(std::is_same<microseconds::rep, int_least64_t>::value,
   ^
../core/logger.cpp:67:47: warning: format ‘%ld’ expects argument of type
‘long int’, but argument 4 has type ‘boost::chrono::duration<long long int,
boost::ratio<1ll, 1000000ll> >::rep {aka long long int}’ [-Wformat=]
            microsecondsSinceEpoch % ONE_SECOND);
                                               ^
../core/logger.cpp:67:47: warning: format ‘%ld’ expects argument of type
‘long int’, but argument 5 has type ‘boost::chrono::duration<long long int,
boost::ratio<1ll, 1000000ll> >::rep {aka long long int}’ [-Wformat=]
../core/logger.cpp:67:47: warning: format ‘%ld’ expects argument of type
‘long int’, but argument 4 has type ‘boost::chrono::duration<long long int,
boost::ratio<1ll, 1000000ll> >::rep {aka long long int}’ [-Wformat=]
../core/logger.cpp:67:47: warning: format ‘%ld’ expects argument of type
‘long int’, but argument 5 has type ‘boost::chrono::duration<long long int,
boost::ratio<1ll, 1000000ll> >::rep {aka long long int}’ [-Wformat=]

Waf: Leaving directory `/home/ndnusr1/sandbox/NFD/build'
Build failed
 -> task in 'core-objects' failed (exit status 1):
{task 139803716150992: cxx logger.cpp -> logger.cpp.2.o}
['/usr/bin/g++', '-pedantic', '-Wall', '-O2', '-g', '-std=c++11', '-fPIC',
'-include', '/home/ndnusr1/sandbox/NFD/build/core-objects.2',
'-I/home/ndnusr1/sandbox/NFD/build', '-I/home/ndnusr1/sandbox/NFD',
'-I/home/ndnusr1/sandbox/NFD/build/core',
'-I/home/ndnusr1/sandbox/NFD/core', '-I/usr/include',
'-I/usr/local/include', '-DNDEBUG', '-DHAVE_NDN_CXX=1',
'../core/logger.cpp', '-c', '-o',
'/home/ndnusr1/sandbox/NFD/build/core/logger.cpp.2.o']

Regards,
/anil.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndn-interest/attachments/20150315/e7186acf/attachment.html>


More information about the Ndn-interest mailing list