Hello, I’m attempting to do a multi-container environment. I am getting this error when running the wifi-connect start.sh. Cannot get the NetworkManager service state
Cannot get the NetworkManager service state thread 'main' panicked at 'calledResult::unwrap()on anErrvalue: D-Bus error: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory (org.freedesktop.DBus.Error.FileNotFound)', /checkout/src/libcore/result.rs:906:4 note: Run with RUST_BACKTRACE=1 for a backtrace.
Your error is highlighting that the host DBUS isn’t being used; the label exposes /host/run/dbus/system_bus_socket and your vnc-app service should use this instead of /var/run/dbus/system_bus_socket.
Change that in your implementation and it should be OK
I’m having the same problem. I can’t see anything I’m missing. I have the label and the DBUS_SYSTEM_BUS_ADDRESS environment variable. Can someone help me see what I’m missing?
This is the error I’m getting:
Attaching to config_wifi-connect_1
wifi-connect_1 | Starting WiFi Connect
wifi-connect_1 | Cannot get the NetworkManager service state
wifi-connect_1 | thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: D-Bus error: Failed to connect to socket /host/run/dbus/system_bus_socket: No such file or directory (org.freedesktop.DBus.Error.FileNotFound)', /checkout/src/libcore/result.rs:906:4
wifi-connect_1 | note: Run with `RUST_BACKTRACE=1` for a backtrace.
config_wifi-connect_1 exited with code 101
@nghiant2710 What I’m trying to do is run wifi-connect on an AMD64 computer running Ubuntu 18.04. The computer is a Cincoze DA-1100. I’ve also been trying to run it on a Dell Ultrabook which is also an AMD64 system.
Do I even need to use Balena OS? All of the documentation I’ve found for running wifi-connect in docker involve using one of the Balena base images.
Hi James, you do not need to use a container with Docker to run WiFi Connect on you Ubuntu installation. You can just download the latest release archive from GitHub for amd64 and use it directly from inside the OS. Will that work for you? If you need to use Docker then you will need to expose D-Bus unix socket into the container.
Thanks,
Zahari