[Ndn-interest] ndn-iot-controller

Shuai Dong sdong7 at crimson.ua.edu
Tue Dec 10 19:56:00 PST 2019


Hi,

When I deploy the ndn-iot-controller,  I used following commands:

1. npm start

 > ndn-iot-controller at 0.1.0 start /home/minindn/ndn-iot-controller
 > electron .

2. nfd-start

Built with GNU C++ version 7.4.0, with GNU libstdc++ version 20181206, with
Boost version 1.65.1, with libpcap version 1.8.1, with WebSocket++ version
0.8.1, with ndn-cxx version 0.6.6-55-g009062db
1576022219.192457  INFO: [nfd.FaceTable] Added face id=255 remote=null://
local=null://
1576022219.192639  INFO: [nfd.FaceTable] Added face id=254
remote=contentstore:// local=contentstore://
1576022219.192832  INFO: [nfd.CsPolicy] setLimit 10
1576022219.215278  INFO: [nfd.StrategyChoice] setDefaultStrategy
/localhost/nfd/strategy/best-route/%FD%05
1576022219.215504  INFO: [nfd.FaceTable] Added face id=1 remote=internal://
local=internal://
1576022219.216861  WARN: [nfd.CommandAuthenticator] 'certfile any' is
intended for demo purposes only and SHOULD NOT be used in production
environments
1576022219.217323  INFO: [nfd.StrategyChoice]
changeStrategy(/ndn/broadcast) /localhost/nfd/strategy/best-route/%FD%05 ->
/localhost/nfd/strategy/multicast/%FD%03
1576022219.217447  INFO: [nfd.StrategyChoice] changeStrategy(/localhost)
/localhost/nfd/strategy/best-route/%FD%05 ->
/localhost/nfd/strategy/multicast/%FD%03
1576022219.217525  INFO: [nfd.StrategyChoice]
changeStrategy(/localhost/nfd) /localhost/nfd/strategy/multicast/%FD%03 ->
/localhost/nfd/strategy/best-route/%FD%05
1576022219.217587  INFO: [nfd.CsPolicy] setLimit 65536
1576022219.217638  INFO: [nfd.CsPolicy] setLimit 65536
1576022219.217701  INFO: [nfd.EthernetFactory] enabling multicast on
01:00:5e:00:17:aa
1576022219.217789  INFO: [nfd.TcpChannel] [tcp4://0.0.0.0:6363] Creating
channel
1576022219.217876  INFO: [nfd.TcpChannel] [tcp6://[::]:6363] Creating
channel
1576022219.217975  INFO: [nfd.UdpChannel] [udp4://0.0.0.0:6363] Creating
channel
1576022219.218048  INFO: [nfd.UdpChannel] [udp6://[::]:6363] Creating
channel
1576022219.218218  INFO: [nfd.UdpFactory] enabling multicast on
224.0.23.170:56363
1576022219.218287  INFO: [nfd.UdpFactory] enabling multicast on
[ff02::1234]:56363
1576022219.218394  INFO: [nfd.UnixStreamChannel] [unix:///run/nfd.sock]
Creating channel
1576022219.218632  INFO: [nfd.WebSocketChannel] [ws://0.0.0.0:9696]
Creating channel
1576022219.218907  INFO: [nfd.WebSocketChannel] [ws://[::]:9696] Creating
channel
1576022219.219194  INFO: [nfd.CommandAuthenticator] clear-authorizations
1576022347.953550  WARN: [nfd.GenericLinkService]
[id=260,local=unix:///run/nfd.sock,remote=fd://33] packet parse error
(Unrecognized element of critical type 9): DROP

3. sudo ./venv/bin/python app.py
[2019-12-10 18:01:51]INFO:/home/minindn/ndn-iot-controller/templates
[2019-12-10 18:01:51]INFO:Server initialized for threading.
[2019-12-10 18:01:51]INFO:Server starts its initialization
[2019-12-10 18:01:51]INFO:Requesting self-signing for newly created key
/ndn-iot/KEY/%93+%A2p%3F%C8%85%94
[2019-12-10 18:01:51]INFO:Server finishes the step 1 initialization
[2019-12-10 18:01:51]INFO:Server finishes the step 2 initialization
[2019-12-10 18:01:51]DEBUG:Using selector: EpollSelector
[2019-12-10 18:01:51]INFO:Face creation succeeded
[2019-12-10 18:01:51]WARNING:WebSocket transport not available. Install
eventlet or gevent and gevent-websocket for improved performance.
 * Serving Flask app "app" (lazy loading)
 * Environment: production
   WARNING: This is a development server. Do not use it in a production
deployment.
   Use a production WSGI server instead.
 * Debug mode: off
[2019-12-10 18:01:51]INFO: * Running on http://127.0.0.1:5001/ (Press
CTRL+C to quit)
[2019-12-10 18:01:51]DEBUG:Using selector: EpollSelector
[2019-12-10 18:01:51]INFO:Send Interest packet
/localhost/nfd/faces/query/%96%1Br%19udp4%3A%2F%2F224.0.23.170%3A56363
[2019-12-10 18:01:51]INFO:EXPRESSING INTEREST
[2019-12-10
18:01:51]INFO:/localhost/nfd/faces/query/%96%1Br%19udp4%3A%2F%2F224.0.23.170%3A56363
[2019-12-10 18:01:53]INFO:Timeout for NFD register prefix command.
[2019-12-10 18:01:53]CRITICAL:Prefix registration failed: /ndn-iot/%01
[2019-12-10 18:01:53]INFO:Timeout for NFD register prefix command.
[2019-12-10 18:01:53]CRITICAL:Prefix registration failed: /ndn-iot/%02
[2019-12-10 18:01:55]INFO:TIME OUT
[2019-12-10 18:01:55]ERROR:Exception on / [GET]
Traceback (most recent call last):
  File
"/home/minindn/ndn-iot-controller/venv/lib/python3.6/site-packages/flask/app.py",
line 2446, in wsgi_app
    response = self.full_dispatch_request()
  File
"/home/minindn/ndn-iot-controller/venv/lib/python3.6/site-packages/flask/app.py",
line 1944, in full_dispatch_request
    self.try_trigger_before_first_request_functions()
  File
"/home/minindn/ndn-iot-controller/venv/lib/python3.6/site-packages/flask/app.py",
line 1992, in try_trigger_before_first_request_functions
    func()
  File "app.py", line 43, in before_run
    run_until_complete(controller.iot_connectivity_init())
  File "app.py", line 38, in run_until_complete
    return asyncio.get_event_loop().run_until_complete(event)
  File "/usr/lib/python3.6/asyncio/base_events.py", line 484, in
run_until_complete
    return future.result()
  File "/home/minindn/ndn-iot-controller/ndniot/controller.py", line 127,
in iot_connectivity_init
    logging.info("Found UDP multicast face {:d}".format(face_id))
TypeError: unsupported format string passed to NoneType.__format__
[2019-12-10 18:01:55]INFO:127.0.0.1 - - [10/Dec/2019 18:01:55] "GET /
HTTP/1.1" 500 -

Is there something when I do setup the environment?

thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndn-interest/attachments/20191210/a4037c03/attachment.html>


More information about the Ndn-interest mailing list