BerryLan install over Raspi OS Bullseye

Hello everyone!

I have enjoyed the learning and tinkering on raspi and am so glad to have awesome open source software like Berrylan. I have hit a small road block. I have the official image download from raspberrypi.org. It is the full desktop version of bullseye (with recommended software). The hardware is Pi4 2GB.

I have installed BerryLan following these instructions. GitHub - nymea/berrylan: Raspberry Pi WiFi setup
The git repository I added was this:

echo "deb http://repository.nymea.io bullseye rpi" | sudo tee /etc/apt/sources.list.d/nymea.list
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-key A1A19ED6

The problem is that the device does not show up in the list of bluetooth devices in the BerryLan app. Has anyone else come across this? Any help would be appreciated.

If you check the logs of nymea-networkmanager it should tell you if/why it’s visible or not

Ok so here are the logs after a reboot without network connection over eth0 or wlan0. I initially had an eth0 network connection but rebooted without the cable plugged in. I am hoping for a behavior where if there is no network, we broadcast a bluetooth connection. Do you see my user error here? Thanks!

-- Journal begins at Thu 2022-01-27 18:48:17 MST, ends at Thu 2022-03-10 10:16:19 MST. --
Mar 09 17:17:55 raspberrypi systemd[1]: Started Daemon for nymea to configure wifi network using a Bluetooth LE connection.
Mar 09 17:17:55 raspberrypi nymea-networkmanager[2409]:  I | Application: Using configuration file from: "/etc/nymea/nymea-networkmanager.conf"
Mar 09 17:17:55 raspberrypi nymea-networkmanager[2409]:  I | Application: =====================================
Mar 09 17:17:55 raspberrypi nymea-networkmanager[2409]:  I | Application: Starting nymea-networkmanager "0.5.7+202107022223~ede20c2~stretch"
Mar 09 17:17:55 raspberrypi nymea-networkmanager[2409]:  I | Application: =====================================
Mar 09 17:17:55 raspberrypi nymea-networkmanager[2409]:  I | Application: Advertising name: "BT WLAN setup"
Mar 09 17:17:55 raspberrypi nymea-networkmanager[2409]:  I | Application: Platform name: "nymea-box"
Mar 09 17:17:55 raspberrypi nymea-networkmanager[2409]:  I | Application: Mode: Core::ModeOffline
Mar 09 17:17:55 raspberrypi nymea-networkmanager[2409]:  I | Application: Timeout: 60
Mar 09 17:17:55 raspberrypi nymea-networkmanager[2409]:  I | Application: DBus interface: "system"
Mar 09 17:17:55 raspberrypi nymea-networkmanager[2409]:  W | NymeaService: Invalid D-Bus HardwareManager interface.
Mar 09 17:17:55 raspberrypi nymea-networkmanager[2409]:  W | NymeaService: Could not init nymea D-Bus services
Mar 09 17:17:55 raspberrypi nymea-networkmanager[2409]:  W | DBus: Failed to register D-Bus service.
Mar 09 17:17:55 raspberrypi nymea-networkmanager[2409]:  I | NetworkManager: Starting the network manager.
Mar 09 17:17:55 raspberrypi nymea-networkmanager[2409]:  I | NetworkManager: Initializing network manager
Mar 09 17:17:55 raspberrypi nymea-networkmanager[2409]:  I | NetworkManager: DBus interface created successfully "/org/freedesktop/NetworkManager"
Mar 09 17:17:55 raspberrypi nymea-networkmanager[2409]:  I | NetworkManager: Reading initial properties...
Mar 09 17:17:55 raspberrypi nymea-networkmanager[2409]:  I | NetworkManager: Version: "1.30.0"
Mar 09 17:17:55 raspberrypi nymea-networkmanager[2409]:  I | NetworkManager: State changed: "NetworkManagerStateConnectedGlobal"
Mar 09 17:17:55 raspberrypi nymea-networkmanager[2409]:  I | Application: Not advertising bluetooth because we are online and we are running in Core::ModeOffline
Mar 09 17:17:55 raspberrypi nymea-networkmanager[2409]:  I | NetworkManager: Connectivity state changed: "Full"
Mar 09 17:17:55 raspberrypi nymea-networkmanager[2409]:  I | NetworkManager: Networking enabled
Mar 09 17:17:55 raspberrypi nymea-networkmanager[2409]:  I | NetworkManager: Wireless networking enabled
Mar 09 17:17:55 raspberrypi nymea-networkmanager[2409]:  I | NetworkManager: Get available devices
Mar 09 17:17:55 raspberrypi nymea-networkmanager[2409]:  I | NetworkManager: [+] NetworkDevice("lo" - "Generic", "NetworkDeviceStateUnmanaged")
Mar 09 17:17:55 raspberrypi nymea-networkmanager[2409]:  I | NetworkManager: [+] WiredNetworkDevice("eth0", "E4:5F:01:8C:61:8D", 0 [Mb/s], true, "NetworkDeviceStateActivated")
Mar 09 17:17:55 raspberrypi nymea-networkmanager[2409]:  I | NetworkManager: [+] WirelessNetworkDevice("wlan0", "DA:08:A0:FE:60:CF", WirelessNetworkDevice::WirelessModeInfrastructure, 0 [Mb/s], "NetworkDeviceStateUnavailable")
Mar 09 17:17:55 raspberrypi nymea-networkmanager[2409]:  I | NetworkManager: Load connection list
Mar 09 17:17:55 raspberrypi nymea-networkmanager[2409]:  I | NetworkManager: Settings: [+] NetworkConnection("Wired connection 1", "{4fb23e87-70d9-34a6-ad36-761f78d5358c}", "eth0", "802-3-ethernet", "09.03.2022 17:17")
Mar 09 17:17:55 raspberrypi nymea-networkmanager[2409]:  I | NetworkManager: The network manager is now available
Mar 09 17:17:55 raspberrypi nymea-networkmanager[2409]:  I | Application: Networkmanager is now available.
Mar 09 17:17:55 raspberrypi nymea-networkmanager[2409]:  I | Application: Not advertising bluetooth because we are online and we are running in Core::ModeOffline
Mar 09 17:17:55 raspberrypi nymea-networkmanager[2409]:  I | NetworkManager: Network manager initialized successfully.
Mar 09 17:17:55 raspberrypi nymea-networkmanager[2409]:  I | NetworkManager: Starting initial wireless network scan...
Mar 09 17:17:55 raspberrypi nymea-networkmanager[2409]:  I | NetworkManager: Request scan WirelessNetworkDevice("wlan0", "DA:08:A0:FE:60:CF", WirelessNetworkDevice::WirelessModeInfrastructure, 0 [Mb/s], "NetworkDeviceStateUnavai>
Mar 09 17:17:55 raspberrypi nymea-networkmanager[2409]:  W | NetworkManager: Scan error: "org.freedesktop.NetworkManager.Device.NotAllowed" "Scanning not allowed while unavailable"
Mar 09 17:19:35 raspberrypi nymea-networkmanager[2409]:  I | Application: Cought SIGTERM quit signal...
Mar 09 17:19:35 raspberrypi nymea-networkmanager[2409]:  I | Application: =====================================
Mar 09 17:19:35 raspberrypi nymea-networkmanager[2409]:  I | Application: Shutting down nymea-networkmanager
Mar 09 17:19:35 raspberrypi nymea-networkmanager[2409]:  I | Application: =====================================
Mar 09 17:19:35 raspberrypi nymea-networkmanager[2409]:  I | Application: Shutting down nymea service
Mar 09 17:19:35 raspberrypi nymea-networkmanager[2409]:  W | NymeaService: Could not enable/disable bluetooth hardware resource. D-Bus interface not available.
Mar 09 17:19:35 raspberrypi nymea-networkmanager[2409]:  I | Application: Shutting down bluetooth service
Mar 09 17:19:35 raspberrypi nymea-networkmanager[2409]:  I | NetworkManagerBluetoothServer: Destroy bluetooth server.
Mar 09 17:19:35 raspberrypi nymea-networkmanager[2409]:  I | Application: Shutting down network-manager service
Mar 09 17:19:35 raspberrypi nymea-networkmanager[2409]:  I | NetworkManager: Destroy network manager.
Mar 09 17:19:35 raspberrypi systemd[1]: Stopping Daemon for nymea to configure wifi network using a Bluetooth LE connection...
Mar 09 17:19:36 raspberrypi systemd[1]: nymea-networkmanager.service: Succeeded.
Mar 09 17:19:36 raspberrypi systemd[1]: Stopped Daemon for nymea to configure wifi network using a Bluetooth LE connection.
-- Boot 543a456c96034c3fba7acec198424009 --
Mar 09 17:19:47 raspberrypi systemd[1]: Started Daemon for nymea to configure wifi network using a Bluetooth LE connection.
Mar 09 17:19:48 raspberrypi nymea-networkmanager[743]:  I | Application: Using configuration file from: "/etc/nymea/nymea-networkmanager.conf"
Mar 09 17:19:48 raspberrypi nymea-networkmanager[743]:  I | Application: =====================================
Mar 09 17:19:48 raspberrypi nymea-networkmanager[743]:  I | Application: Starting nymea-networkmanager "0.5.7+202107022223~ede20c2~stretch"
Mar 09 17:19:48 raspberrypi nymea-networkmanager[743]:  I | Application: =====================================
Mar 09 17:19:48 raspberrypi nymea-networkmanager[743]:  I | Application: Advertising name: "BT WLAN setup"
Mar 09 17:19:48 raspberrypi nymea-networkmanager[743]:  I | Application: Platform name: "nymea-box"

I just noticed that if I call sudo systemctl restart nymea-networkmanager.service the device shows up right away in the app. Maybe I need to write a script that resets the nymea-networkmanager service on boot up?

Oh… right… so this is actually a known bug. The fix will be released to stable soon. We already have included the fix in the official berrylan image, so I didn’t think about it any more.

It’s already included in the experimental repository, so if you can’t wait, use that one

deb http://ci-repo.nymea.io/experimental-silo bullseye rpi

When the next stable update is released, you can move back to the stable repository.