-
Notifications
You must be signed in to change notification settings - Fork 339
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Network Settings not working with snap installed on Ubuntu Server 24.04 #3178
Comments
Usually the "No introspectable" error occurs if the application tries to open two connections to the DBus system bus at once, but that shouldn't be possible. Could it be conflicting with another application on Ubuntu Server? |
Doesn't reproduce on Ubuntu Desktop 22.04 or Ubuntu Core 22 or Ubuntu Core 24. |
I tried the install sequence above on RPI5+Core24, ref recent discussion on Matrix. ubu-core-666@localhost:~$ sudo snap install --edge webthings-gateway webthings-gateway (edge) 2.0.0 from WebThings (webthingsio✓) installed ubu-core-666@localhost:~$ sudo snap connect webthings-gateway:network-manager ubu-core-666@localhost:~$ sudo snap restart webthings-gateway With proper syntax system-observe is connected, but the network-manager is not.
Log complains about system-observe, among other things: 2024-11-24 14:00:02.188 INFO : Error trying to read os-release file: Error: EACCES: permission denied, open '/var/lib/snapd/hostfs/etc/os-release' |
@GHoGit On Ubuntu Core you need to install the network-manager snap before connecting the network-manager interface, because it doesn't come pre-installed on Ubuntu Core. Try installing the network-manager snap, connecting the interface and then restarting the gateway daemon:
I've added installation instructions for both Ubuntu and Ubuntu Core to the snap listing https://snapcraft.io/webthings-gateway |
Swapped flash and tried again with Ubuntu desktop on RPI5. Attempt to install 24.10 twice without success. Apply quick format and install 24.04 -> boot and initial install OK. This time DO_NOT reclaim domain (tried reclaim again this morning, and again no mail received), but rather create new domain name for test. Observations (some of these are known):
"data": { I'll redo my 'Rules' test tomorrow to check if the indexing issue is again apparent. |
@GHoGit Thank you very much for doing this testing and reporting back your findings. Most of the below is unrelated to this issue so I've linked to other issues where appropriate.
Hmm, I haven't tried Ubuntu Desktop 24.x, only 22.x so it's possible the issue is with Ubuntu Desktop 24.x? Could be the same issue I'm seeing on Ubuntu Server 24.04.
I still haven't been able to reproduce a bug with either reclaiming or registering a domain, but glad to hear that a new registration worked.
Oh, so is this working on Ubuntu (Desktop?) 24.04 but not 24.10?
Oh, interesting. It appears this is because it gets filtered out of the add-ons list in the gateway UI due to the required Node.js version. I have filed WebThingsIO/zigbee-adapter#346
I have filed tim-hellhake/systeminfo-adapter#36 for this.
Thanks. |
As a follow up on this testing done last month: So, instead i loaded Raspberry Pi OS 64bit and installed the snap and made a quick run-through. Add Cron, HUE, Pulse, Run Program, SystemInfo, Timer. Extract from log: // GHo |
@GHoGit wrote:
This is expected. The platform detection from inside a snap currently only recognises Ubuntu or Ubuntu Core https://github.com/WebThingsIO/gateway/blob/master/src/platform.ts#L89 If it doesn't detect one of those operating systems then it won't try to use the NetworkManager back end for Network Settings. It's possible that other Linux distributions which ship with NetworkManager (which I think Raspberry Pi OS Bookworm does) might work with the NetworkManager back end, but we'd need to test that and add support to the corresponding platform instance. To be honest if you're installing the snap on an existing installation of Raspberry Pi OS it's probably not as important to be able to configure the network settings from the WebThings Gateway web interface because you've probably already configured network settings during first time setup or the built-in UI. It would be nice for the snap to be able to modify hardware settings on other headless Linux distributions though. |
STR:
$ sudo snap install --edge webthings-gateway
$ snap connect webthings-gateway:system-observe
$ sudo snap connect webthings-gateway:network-manager
$ sudo snap restart webthings-gateway
Expected:
Actual:
Errors in run-app.log:
The text was updated successfully, but these errors were encountered: