Open ioannispelelis opened 9 months ago
After at least 3 different installs and restores each time same problem. I scratched my head a few days on this until i found out that for some reason NetworkManager would only manage loopback interface.
So i forced it to manage the ethernet interface
restarted supervisor and now everything is in the green
And i can again install and use addons that require network/internet connection.
Do not know however why on each installation attempt of the image the installation would not manage ethernet in NetworkManager First time it happens to me after at least a dozen installations of ha_fbx image... Maybe some bug in the installation cloud ini script?
it looks like the workaround i explained above is non persistent. after a reboot/shutdown of the VM i have to redo it..
Reproduced on hafbx-debian-2023.11.3
I'm not sure if that's expected, but systemd-networkd is also running on the VM; tried masking it, just lost network after the next boot.
# nmcli connection show
NAME UUID TYPE DEVICE
lo cfc37435-7fa4-4f56-80e8-09589b1e4d1e loopback lo
Supervisor enp0s3 6080cc15-2ad5-3117-b3bb-c9361b827dea ethernet --
To enable it (aka the workaround):
nmcli con up 6080cc15-2ad5-3117-b3bb-c9361b827dea
I tried many things to fix this, including the following: no joy
nmcli con mod 6080cc15-2ad5-3117-b3bb-c9361b827dea connection.autoconnect yes
I have done an "automated" workaround (ugly) until someone figures out why NetworkManager is skipping the VM network interface:
$ cat /etc/systemd/system/fix-networkmanager.service
[Unit]
After=network.target
[Service]
ExecStart=nmcli con up 6080cc15-2ad5-3117-b3bb-c9361b827dea
[Install]
WantedBy=multi-user.target
$ systemctl daemon-reload
$ systemctl enable fix-networkmanager.service
I have done an "automated" workaround (ugly) until someone figures out why NetworkManager is skipping the VM network interface:
$ cat /etc/systemd/system/fix-networkmanager.service [Unit] After=network.target [Service] ExecStart=nmcli con up 6080cc15-2ad5-3117-b3bb-c9361b827dea [Install] WantedBy=multi-user.target $ systemctl daemon-reload $ systemctl enable fix-networkmanager.service
Thanks this workaround worked. But it would be nice that this issue is fixed. i just reinstalled the latested build of hafbx-debian-2024.5.3 and again the same issue with the network manager. @foreign-sub any ideas?
Describe the bug When installing a fresh image of ha_fbx there is an issue with network_manager As such we are getting errors in supervisor![image](https://github.com/foreign-sub/ha_fbx/assets/57101460/65924318-185e-424f-990f-e2b1da13ce28)
23-09-20 22:10:11 WARNING (MainThread) [supervisor.resolution.evaluations.base] NetworkManager is not correctly configured (more-info: https://www.home-assistant.io/more-info/unsupported/network_manager)
Also it seems that because of this installing addons is not possible because HA thinks there is no internet![image](https://github.com/foreign-sub/ha_fbx/assets/57101460/f0acf464-7495-46b3-90f4-fe6172af096a)
To Reproduce Steps to reproduce the behavior:
Expected behavior NetworkManager should work normally and HA should be able to connect to internet to download addons
I am unable to restore my HomeAssistant to it's normal operation because of this. How can it be fixed? unable to install SSH plugin, or MariaDB, or Samba Share...