Closed farshidtz closed 11 months ago
Install the snap with devmode and monitor using snappy-debug. The commissioning failed at Step 19, 'ThreadNetworkEnable.'
Also snappy-debug indicates that matter-pi-gpio-commander snap needs dbus access for Thread commissioning.
Here are the logs during Thread commissioning process:
GPIO Commander Snap:
CHIP:DL: openthread: _SetThreadEnabled calling Reset failed: GDBus.Error:org.freedesktop.DBus.Error.AccessDenied: An AppArmor policy prevents this sender from sending this message to this recipient;
(full logs: https://pastebin.ubuntu.com/p/psbhGhpjn8/)
Chip Tool:
CHIP:CTL: Error on commissioning step 'ThreadNetworkEnable': 'src/controller/CHIPDeviceController.cpp:2164: CHIP Error 0x000000AC: Internal error'
CHIP:CTL: Failed to perform commissioning step 19
(full logs: https://pastebin.ubuntu.com/p/pwHVrMyTBP/)
Snappy-debug:
= AppArmor =
Time: Oct 17 14:36:55
Log: apparmor="ALLOWED" operation="dbus_method_call" bus="system" path="/chipoble/190e/advertising" interface="org.freedesktop.DBus.Properties" member="GetAll" name=":1.9" mask="receive" pid=71950 label="snap.matter-pi-gpio-commander.lighting" peer_pid=929 peer_label="unconfined"
DBus access
(full logs: https://pastebin.ubuntu.com/p/NXWRsMVFhG/)
It is missing the DBus security policy needed for the communication.
Need to add:
plugs:
dbus-otbr-wpan0:
interface: dbus
bus: system
name: io.openthread.BorderRouter.wpan0
and:
apps:
lighting:
...
plugs:
...
- dbus-otbr-wpan0
to snapcraft.yaml
.
Then, connect:
sudo snap connect matter-pi-gpio-commander:dbus-otbr-wpan0 openthread-border-router:dbus-otbr-interface
Snap built with the latest change: matter-pi-gpio-commander_1.0.1_arm64.snap.zip
@MonicaisHer thanks for testing. I've released this snap to the latest/edge/pr-28
.
Will add documentation and merge after resolving https://github.com/canonical/openthread-border-router-snap/issues/29
For now, released to edge/thread
.
To install:
sudo snap install matter-pi-gpio-commander --channel=latest/edge/thread
Upgrade the SDK to hash 6b01cb9 to incorporate the following change: https://github.com/project-chip/connectedhomeip/pull/27861
This is to address the bug fix describe at https://github.com/project-chip/connectedhomeip/issues/29738
Install: