stuck with otbr (docker)

300 views
Skip to first unread message

Androbi

unread,
May 8, 2021, 9:10:38 AM5/8/21
to openthread-users
Hi all,

I am trying to get otbr running. I have built and flashed the RCP for the NRF52840 dongle as described here https://github.com/openthread/openthread/tree/main/examples/platforms/nrf528xx/nrf52840 using

    make -f examples/Makefile-nrf52840 USB=1 BOOTLOADER=USB

The device is visible on ttyACM1 (on a raspi 4). Now I am trying to start otbr with docker as described here https://openthread.io/guides/border-router/docker with 

        docker run --sysctl "net.ipv6.conf.all.disable_ipv6=0 
        net.ipv4.conf.all.forwarding=1 net.ipv6.conf.all.forwarding=1"  
        -p 8080:80 --dns=127.0.0.1 -it --volume  /dev/ttyACM1:/dev/ttyACM1 
        --privileged openthread/otbr  --radio-url spinel+hdlc+uart:///dev/ttyACM1

I get the following log when the container starts but no webpage is served on local port 8080:

May  8 12:40:08 8eb55bd7f37b avahi-daemon[186]: New relevant interface eth0.IPv4 for mDNS.
May  8 12:40:08 8eb55bd7f37b avahi-daemon[186]: Joining mDNS multicast group on interface lo.IPv6 with address ::1.
May  8 12:40:08 8eb55bd7f37b avahi-daemon[186]: New relevant interface lo.IPv6 for mDNS.
May  8 12:40:08 8eb55bd7f37b avahi-daemon[186]: Joining mDNS multicast group on interface lo.IPv4 with address 127.0.0.1.
May  8 12:40:08 8eb55bd7f37b avahi-daemon[186]: New relevant interface lo.IPv4 for mDNS.
May  8 12:40:08 8eb55bd7f37b avahi-daemon[186]: Network interface enumeration completed.
May  8 12:40:08 8eb55bd7f37b avahi-daemon[186]: Registering new address record for fe80::42:acff:fe11:2 on eth0.*.
May  8 12:40:08 8eb55bd7f37b avahi-daemon[186]: Registering new address record for 172.17.0.2 on eth0.IPv4.
May  8 12:40:08 8eb55bd7f37b avahi-daemon[186]: Registering new address record for ::1 on lo.*.
May  8 12:40:08 8eb55bd7f37b avahi-daemon[186]: Registering new address record for 127.0.0.1 on lo.IPv4.
May  8 12:40:08 8eb55bd7f37b otbr-agent[214]: [INFO]-UTILS---: Running 0.3.0
May  8 12:40:08 8eb55bd7f37b otbr-agent[214]: [INFO]-UTILS---: Thread version: 1.2.0
May  8 12:40:08 8eb55bd7f37b otbr-agent[214]: [INFO]-UTILS---: Thread interface: wpan0
May  8 12:40:08 8eb55bd7f37b otbr-agent[214]: [INFO]-UTILS---: Backbone interface: eth0
May  8 12:40:08 8eb55bd7f37b otbr-agent[214]: [INFO]-UTILS---: Radio URL: spinel+hdlc+uart:///dev/ttyACM1
May  8 12:40:09 8eb55bd7f37b rsyslogd: rsyslogd's groupid changed to 101
May  8 12:40:09 8eb55bd7f37b rsyslogd: rsyslogd's userid changed to 101
May  8 12:40:09 8eb55bd7f37b rsyslogd:  [origin software="rsyslogd" swVersion="8.32.0" x-pid="119" x-info="http://www.rsyslog.com"] start
May  8 12:40:09 8eb55bd7f37b otbr-web[242]: [INFO]-WEB-----: Running 0.3.0
May  8 12:40:09 8eb55bd7f37b otbr-web[242]: [INFO]-WEB-----: Border router web started on wpan0
May  8 12:40:09 8eb55bd7f37b otbr-web[242]: [ERR ]-WEB-----: OpenThread daemon is not running.
May  8 12:40:09 8eb55bd7f37b avahi-daemon[186]: Server startup complete. Host name is 8eb55bd7f37b.local. Local service cookie is 2561004311.
May  8 12:40:09 8eb55bd7f37b otbr-agent[214]: [INFO]-PLAT----: RCP reset: RESET_POWER_ON
May  8 12:40:09 8eb55bd7f37b otbr-agent[214]: [NOTE]-PLAT----: RCP API Version: 3
May  8 12:40:09 8eb55bd7f37b otbr-agent[214]: [INFO]-PLAT----: Backbone interface is configured to eth0 (18)
May  8 12:40:09 8eb55bd7f37b otbr-agent[214]: [NOTE]-BR------: no valid OMR prefix found in settings, generating new one
May  8 12:40:09 8eb55bd7f37b otbr-agent[214]: [INFO]-CORE----: Non-volatile: Saved OMR prefix fd36:b66a:ea97:64ca::/64
May  8 12:40:09 8eb55bd7f37b otbr-agent[214]: [NOTE]-BR------: no valid on-link prefix found in settings, generating new one
May  8 12:40:09 8eb55bd7f37b otbr-agent[214]: [INFO]-CORE----: Non-volatile: Saved on-link prefix fde3:7789:21fe:0::/64
May  8 12:40:09 8eb55bd7f37b otbr-agent[214]: [INFO]-BR------: infra interface (18) state changed: NOT RUNNING -> RUNNING
May  8 12:40:09 8eb55bd7f37b otbr-agent[214]: [INFO]-AGENT---: Set state callback: OK
May  8 12:40:09 8eb55bd7f37b otbr-agent[214]: [INFO]-BBR-----: Add Domain Prefix: ::/0, NotFound
May  8 12:40:09 8eb55bd7f37b otbr-agent[214]: [INFO]-BBR-----: Add BBR Service: seqno (200), delay (1200s), timeout (3600s), InvalidState
May  8 12:40:09 8eb55bd7f37b otbr-agent[214]: [INFO]-AGENT---: Stop Thread Border Agent
May  8 12:40:09 8eb55bd7f37b otbr-agent[214]: [INFO]-ADPROXY-: Stopped
May  8 12:40:09 8eb55bd7f37b otbr-agent[214]: [INFO]-DPROXY--: stopped
May  8 12:40:09 8eb55bd7f37b otbr-agent[214]: [INFO]-AGENT---: Initialize OpenThread Border Router Agent: OK
May  8 12:40:09 8eb55bd7f37b otbr-agent[214]: [INFO]-UTILS---: Border router agent started.
May  8 12:40:09 8eb55bd7f37b otbr-agent[214]: [INFO]-CORE----: Notifier: StateChanged (0x02038200) [NetData PanId NetName ExtPanId BbrState]
May  8 12:40:09 8eb55bd7f37b otbr-agent[214]: [INFO]-BBR-----: Backbone TMF subscribes ff32:40:fdde:ad00:beef:0:0:3: OK
May  8 12:40:09 8eb55bd7f37b otbr-agent[214]: [INFO]-BBR-----: Start Backbone TMF agent: OK
May  8 12:40:09 8eb55bd7f37b otbr-agent[214]: [INFO]-PLAT----: MulticastRoutingManager: Disable: OK
May  8 12:40:09 8eb55bd7f37b otbr-agent[214]: [DEBG]-BBA-----: BackboneAgent: HandleBackboneRouterState: state=1, mBackboneRouterState=0
May  8 12:40:09 8eb55bd7f37b otbr-agent[214]: [INFO]-PLAT----: Host netif is down

The Pi is connected over wifi with my lan. Any hints?

Jonathan Hui

unread,
Jun 8, 2021, 8:34:25 PM6/8/21
to Androbi, openthread-users
I just tested this on the latest main branches of openthread/ot-br-posix and openthread/ot-nrf528xx and the web page shows for me.

Can you check if the otbr-web service is running in the Docker container?

--
Jonathan Hui



--
You received this message because you are subscribed to the Google Groups "openthread-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openthread-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openthread-users/be8a9008-4326-4748-a622-d438d1014cbfn%40googlegroups.com.

Simon Lin

unread,
Jun 8, 2021, 9:45:08 PM6/8/21
to openthread-users
Hi, 

I actually issued your command on my Raspberry Pi 4 and it worked:
```
pi@raspberrypi:~ $ sudo docker run --sysctl "net.ipv6.conf.all.disable_ipv6=0 
        net.ipv4.conf.all.forwarding=1 net.ipv6.conf.all.forwarding=1"  -p 8080:80 --dns=127.0.0.1 -it --volume  /dev/ttyACM0:/dev/ttyACM0 --privileged openthread/otbr  --radio-url spinel+hdlc+uart:///dev/ttyACM0

pi@raspberrypi:~ $ sudo docker exec -it sharp_knuth bash
root@d4581635a94f:/app# ot-ctl
> ifconfig 
down
Done
> ifconfig up
Done
> thread start
Done
> state
leader
Done
> scan
| J | Network Name     | Extended PAN     | PAN  | MAC Address      | Ch | dBm | LQI |
+---+------------------+------------------+------+------------------+----+-----+-----+
> | 0 | OpenThread       | dead00beef00cafe | 33aa | 56c0d3a4f5e8c7d2 | 11 | -73 |  84 |
| 0 | OpenThread-a201  | ac52c29e42a7d81c | a201 | a259219008c2bd35 | 11 | -49 | 180 |
| 0 | OpenThread-c301  | 8d7c02a887284df3 | c301 | cfe0d8dd4efc2973 | 14 | -47 | 188 |
| 0 | ot-test-aidl     | 1122334455667788 | 1234 | d30e02599ae438cd | 18 | -45 | 192 |
| 0 | OpenThread-1497  | 577c1f5384d9e909 | 1497 | 6af7218dd8ddf8f2 | 20 | -68 | 100 |
| 0 | OpenThread-d56a  | 750ec45c7a297e71 | d56a | beb6df3772f975fc | 23 | -64 | 116 |
| 0 | MyHome5          | c4ca10ccd4974540 | 29bb | d2010e3e9b5d47b0 | 25 | -49 | 176 |
Done
```

Seems OTBR Docker is working on Raspberry Pi 4. 

Reply all
Reply to author
Forward
0 new messages