<div dir="ltr">Hi Shuai,<div><br></div><div>The current NDN IoT controller was based on pyndn which may not be maintained any longer and I have been working on NDN IoT controller to base on python-ndn library.</div><div>There will also be some related changes at the same time, including removing dependencies like ProtocolBuf library and using aiohttp instead of Flask.</div><div>I am supposed to finish the new NDN IoT controller by this weekend. Once finished, the Github project repo will be updated.</div><div><br></div><div>Best,</div><div>Zhiyi</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Dec 11, 2019 at 9:19 AM Shuai Dong <<a href="mailto:sdong7@crimson.ua.edu">sdong7@crimson.ua.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hi,</div><div><br></div><div>When I deploy the ndn-iot-controller,  I used following commands:</div><div><br></div><div>1. npm start</div><div><br></div><div> > ndn-iot-controller@0.1.0 start /home/minindn/ndn-iot-controller<br> > electron .</div><div><br></div><div>2. nfd-start</div><div><br></div><div>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<br>1576022219.192457  INFO: [nfd.FaceTable] Added face id=255 remote=null:// local=null://<br>1576022219.192639  INFO: [nfd.FaceTable] Added face id=254 remote=contentstore:// local=contentstore://<br>1576022219.192832  INFO: [nfd.CsPolicy] setLimit 10<br>1576022219.215278  INFO: [nfd.StrategyChoice] setDefaultStrategy /localhost/nfd/strategy/best-route/%FD%05<br>1576022219.215504  INFO: [nfd.FaceTable] Added face id=1 remote=internal:// local=internal://<br>1576022219.216861  WARN: [nfd.CommandAuthenticator] 'certfile any' is intended for demo purposes only and SHOULD NOT be used in production environments<br>1576022219.217323  INFO: [nfd.StrategyChoice] changeStrategy(/ndn/broadcast) /localhost/nfd/strategy/best-route/%FD%05 -> /localhost/nfd/strategy/multicast/%FD%03<br>1576022219.217447  INFO: [nfd.StrategyChoice] changeStrategy(/localhost) /localhost/nfd/strategy/best-route/%FD%05 -> /localhost/nfd/strategy/multicast/%FD%03<br>1576022219.217525  INFO: [nfd.StrategyChoice] changeStrategy(/localhost/nfd) /localhost/nfd/strategy/multicast/%FD%03 -> /localhost/nfd/strategy/best-route/%FD%05<br>1576022219.217587  INFO: [nfd.CsPolicy] setLimit 65536<br>1576022219.217638  INFO: [nfd.CsPolicy] setLimit 65536<br>1576022219.217701  INFO: [nfd.EthernetFactory] enabling multicast on 01:00:5e:00:17:aa<br>1576022219.217789  INFO: [nfd.TcpChannel] [tcp4://<a href="http://0.0.0.0:6363" target="_blank">0.0.0.0:6363</a>] Creating channel<br>1576022219.217876  INFO: [nfd.TcpChannel] [tcp6://[::]:6363] Creating channel<br>1576022219.217975  INFO: [nfd.UdpChannel] [udp4://<a href="http://0.0.0.0:6363" target="_blank">0.0.0.0:6363</a>] Creating channel<br>1576022219.218048  INFO: [nfd.UdpChannel] [udp6://[::]:6363] Creating channel<br>1576022219.218218  INFO: [nfd.UdpFactory] enabling multicast on <a href="http://224.0.23.170:56363" target="_blank">224.0.23.170:56363</a><br>1576022219.218287  INFO: [nfd.UdpFactory] enabling multicast on [ff02::1234]:56363<br>1576022219.218394  INFO: [nfd.UnixStreamChannel] [unix:///run/nfd.sock] Creating channel<br>1576022219.218632  INFO: [nfd.WebSocketChannel] [ws://<a href="http://0.0.0.0:9696" target="_blank">0.0.0.0:9696</a>] Creating channel<br>1576022219.218907  INFO: [nfd.WebSocketChannel] [ws://[::]:9696] Creating channel<br>1576022219.219194  INFO: [nfd.CommandAuthenticator] clear-authorizations<br>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</div><div><br></div><div>3. sudo ./venv/bin/python app.py</div><div>[2019-12-10 18:01:51]INFO:/home/minindn/ndn-iot-controller/templates<br>[2019-12-10 18:01:51]INFO:Server initialized for threading.<br>[2019-12-10 18:01:51]INFO:Server starts its initialization<br>[2019-12-10 18:01:51]INFO:Requesting self-signing for newly created key /ndn-iot/KEY/%93+%A2p%3F%C8%85%94<br>[2019-12-10 18:01:51]INFO:Server finishes the step 1 initialization<br>[2019-12-10 18:01:51]INFO:Server finishes the step 2 initialization<br>[2019-12-10 18:01:51]DEBUG:Using selector: EpollSelector<br>[2019-12-10 18:01:51]INFO:Face creation succeeded<br>[2019-12-10 18:01:51]WARNING:WebSocket transport not available. Install eventlet or gevent and gevent-websocket for improved performance.<br> * Serving Flask app "app" (lazy loading)<br> * Environment: production<br>   WARNING: This is a development server. Do not use it in a production deployment.<br>   Use a production WSGI server instead.<br> * Debug mode: off<br>[2019-12-10 18:01:51]INFO: * Running on <a href="http://127.0.0.1:5001/" target="_blank">http://127.0.0.1:5001/</a> (Press CTRL+C to quit)<br>[2019-12-10 18:01:51]DEBUG:Using selector: EpollSelector<br>[2019-12-10 18:01:51]INFO:Send Interest packet /localhost/nfd/faces/query/%96%1Br%19udp4%3A%2F%2F224.0.23.170%3A56363<br>[2019-12-10 18:01:51]INFO:EXPRESSING INTEREST<br>[2019-12-10 18:01:51]INFO:/localhost/nfd/faces/query/%96%1Br%19udp4%3A%2F%2F224.0.23.170%3A56363<br>[2019-12-10 18:01:53]INFO:Timeout for NFD register prefix command.<br>[2019-12-10 18:01:53]CRITICAL:Prefix registration failed: /ndn-iot/%01<br>[2019-12-10 18:01:53]INFO:Timeout for NFD register prefix command.<br>[2019-12-10 18:01:53]CRITICAL:Prefix registration failed: /ndn-iot/%02<br>[2019-12-10 18:01:55]INFO:TIME OUT<br>[2019-12-10 18:01:55]ERROR:Exception on / [GET]<br>Traceback (most recent call last):<br>  File "/home/minindn/ndn-iot-controller/venv/lib/python3.6/site-packages/flask/app.py", line 2446, in wsgi_app<br>    response = self.full_dispatch_request()<br>  File "/home/minindn/ndn-iot-controller/venv/lib/python3.6/site-packages/flask/app.py", line 1944, in full_dispatch_request<br>    self.try_trigger_before_first_request_functions()<br>  File "/home/minindn/ndn-iot-controller/venv/lib/python3.6/site-packages/flask/app.py", line 1992, in try_trigger_before_first_request_functions<br>    func()<br>  File "app.py", line 43, in before_run<br>    run_until_complete(controller.iot_connectivity_init())<br>  File "app.py", line 38, in run_until_complete<br>    return asyncio.get_event_loop().run_until_complete(event)<br>  File "/usr/lib/python3.6/asyncio/base_events.py", line 484, in run_until_complete<br>    return future.result()<br>  File "/home/minindn/ndn-iot-controller/ndniot/controller.py", line 127, in iot_connectivity_init<br>    <a href="http://logging.info" target="_blank">logging.info</a>("Found UDP multicast face {:d}".format(face_id))<br>TypeError: unsupported format string passed to NoneType.__format__<br>[2019-12-10 18:01:55]INFO:127.0.0.1 - - [10/Dec/2019 18:01:55] "GET / HTTP/1.1" 500 -</div><div><br></div><div>Is there something when I do setup the environment?</div><div><br></div><div>thanks!<br></div></div>
_______________________________________________<br>
Ndn-interest mailing list<br>
<a href="mailto:Ndn-interest@lists.cs.ucla.edu" target="_blank">Ndn-interest@lists.cs.ucla.edu</a><br>
<a href="http://www.lists.cs.ucla.edu/mailman/listinfo/ndn-interest" rel="noreferrer" target="_blank">http://www.lists.cs.ucla.edu/mailman/listinfo/ndn-interest</a><br>
</blockquote></div>