Hi all,
I’ve been trying to get the System Bridge integration to work on my Ubuntu 22.04 machine, but having some issues.
With the recent version 3.4.4, and latest HA Core 2022.8.5.
I’m not seeing the entities being reported in HA (error messages in links below)
After a while, the System Bridge integration stops working on my Ubuntu Machine with the error
OSError: [Errno 24] Too many open files
Both of these issues have been documented here, but no solution yet.
opened 05:58PM - 16 Aug 22 UTC
investigation
### Description
Hi All,
Just wanted to move my discussion to an issue now … (details in the link):
https://github.com/timmo001/system-bridge/discussions/1829#discussioncomment-3403209
I still can't get System Bridge (SB) to work in HA. No entities are being reported.
Its running on my Ubuntu 22.04 machine, I can access the system bridge via weburl, and I see all the data there.
`http://192.168.1.139:9170/app/data.html?apiKey=[redacted API]&apiPort=9170`
HA auto discovers SB, it accepts my token, but no entities in HA while it runs. After a while, like hours, [another issue happens](https://github.com/timmo001/system-bridge/issues/1876), but I just wanted to solve the issue of getting information into HA first.
Perhaps its not not working with Ubuntu 22.04?
IF you have any ideas? that would be awesome, thanks!
### What Platform / OS are you running?
Linux
### What version are you running?
3.4.4
### Anything in the logs or a references that might be useful?
```txt
Home Assistant 2022.8.5
Supervisor 2022.08.3
Operating System 8.5
Frontend 20220802.0 - latest
```
### Additional information
_No response_
opened 01:48PM - 22 Jul 22 UTC
investigation
### Description
Hi!
Running the program in UBuntu 22.04 and using the web ur… l to access to data
`└─5042 /usr/bin/python3.10 -m systembridgebackend --no-gui`
everything runs fine for a few hours, data is being generated and upates but then stops with the error messag below:
```
Jul 22 07:42:15 GC676AA-ABA-m8150n python3.10[5042]: File "/home/anto/.local/lib/python3.10/site-packages/systembridgebackend/modules/>
Jul 22 07:42:15 GC676AA-ABA-m8150n python3.10[5042]: self._bridge = Bridge(self.service_changed)
Jul 22 07:42:15 GC676AA-ABA-m8150n python3.10[5042]: File "/home/anto/.local/lib/python3.10/site-packages/systembridgebackend/modules/>
Jul 22 07:42:15 GC676AA-ABA-m8150n python3.10[5042]: File "/home/anto/.local/lib/python3.10/site-packages/zeroconf/_core.py", line 450>
Jul 22 07:42:15 GC676AA-ABA-m8150n python3.10[5042]: File "/home/anto/.local/lib/python3.10/site-packages/zeroconf/_utils/net.py", lin>
Jul 22 07:42:15 GC676AA-ABA-m8150n python3.10[5042]: File "/home/anto/.local/lib/python3.10/site-packages/zeroconf/_utils/net.py", lin>
Jul 22 07:42:15 GC676AA-ABA-m8150n python3.10[5042]: File "/home/anto/.local/lib/python3.10/site-packages/zeroconf/_utils/net.py", lin>
Jul 22 07:42:15 GC676AA-ABA-m8150n python3.10[5042]: File "/home/anto/.local/lib/python3.10/site-packages/ifaddr/_posix.py", line 56, >
Jul 22 07:42:15 GC676AA-ABA-m8150n python3.10[5042]: OSError: [Errno 24] Too many open files
```
### What Platform / OS are you running?
Linux
### What version are you running?
pyinstaller-5.2 sanic-ext-22.6.2 systembridgebackend-3.4.1 systembridgecli-3.4.1 systembridgefrontend-3.4.1 systembridgegui-3.4.1 systembridgeshared-3.4.1 systembridgewindowssensors-3.4.1 typer-0.6.1
### Anything in the logs or a references that might be useful?
```txt
Successfully installed pyinstaller-5.2 sanic-ext-22.6.2 systembridgebackend-3.4.1 systembridgecli-3.4.1 systembridgefrontend-3.4.1 systembridgegui-3.4.1 systembridgeshared-3.4.1 systembridgewindowssensors-3.4.1 typer-0.6.1
```
### Additional information
_No response_
I’m reaching out to the broader community, for hopes of getting some more information.
Is anybody using this integration with their Ubuntu 22.04 machine? thanks
j_d
(JD)
March 2, 2023, 2:58pm
2
Hi, just to let you know, you’re not alone.
I was looking for a simple to solution to monitor one of my VMs and another solution to shutdown one of my RaspberryPis remotely and found system bridge, which should be able to handle both
I installed it on my Ubuntu VM. I took me sometime to figure out how to run it headless, but it’s running now and the API is working, but I can’t get the HA integration to work. I think it is related to this issue: System Bridge Entities not reporting to HA · Issue #77731 · home-assistant/core · GitHub
There is also a PR from October(!) Update systembridgeconnector to 3.4.8 by timmo001 · Pull Request #79732 · home-assistant/core · GitHub which is just waiting for a review and approve.
It’s sad to see that a simple PR takes that long
@j_d Thanks for your input! Let’s hope these recent PRs will solve the issue.
By the way are you getting the too many open files error? After about maybe a day I get that issue when using the local API. But like you I don’t know what running headless means I have a Ubuntu machine without a monitor on it and no GUI but it is the Ubuntu desktop version so I don’t know what that has anything to do with it.
Also I’ve noticed quite a bit of disk activity on Ubuntu when this program runs. Are you experiencing this also?
j_d
(JD)
March 3, 2023, 9:41am
4
headless means running system bridge without an UI. You can use the --no-gui
flag for this. It is all written on the webpage: Running | System Bridge
Okay thanks for confirming then I’ve always been running headless then