Unable to create network interfaces

EDIT: I’m pretty sure is a bug related to the bluetooth cache using all the inodes is HA OS’ overlay FS "no host internet connection" - "can't edit network settings" - "No space left" · Issue #4490 · home-assistant/supervisor · GitHub

HA OS running on a RasberryPi 4, system is otherwise functional.

Home Assistant 2023.8.4
Supervisor 2023.08.1
Operating System 10.5
Frontend 20230802.1 - latest

I am unable to add a network interface via the GUI, SSH add on and via ssh debugging. Is this a bug or pebkac?

All fail with no space left on device error. As you can see in the df output, there is space in /etc/NetworkManager/system-connections.

Via GUI

Can't create config and activate wlan0: failure adding connection: error writing to file '/etc/NetworkManager/system-connections/Supervisor wlan0-d6542995-c73e-4e96-86a0-8bb23554d6f6.nmconnection': failed to create file /etc/NetworkManager/system-connections/Supervisor wlan0-d6542995-c73e-4e96-86a0-8bb23554d6f6.nmconnection.MZINA2: No space left on device

`# ha net vlan eth0 88
Error: Can't create new interface: failure adding connection: error writing to file '/etc/NetworkManager/system-connections/Supervisor .88-db0d5b78-356a-4fdc-b7e5-5111ac5dff8d.nmconnection': failed to create file /etc/NetworkManager/system-connections/Supervisor .88-db0d5b78-356a-4fdc-b7e5-5111ac5dff8d.nmconnection.FHL4A2: No space left on device
`
`

`

`# ls -la /etc/NetworkManager/system-connections/
total 6
drwxr-xr-x    2 root     root          1024 Sep  4 20:48 .
drwxr-xr-x    7 root     root           143 Aug 16 16:30 ..
-rw-------    1 root     root           329 Dec  7  2020 Supervisor .88.nmconnection
-rw-------    1 root     root           412 Dec  7  2020 Supervisor wlan0-769c697b-1607-425b-96e4-e38f3251c102.nmconnection
-rw-------    1 root     root           363 Dec  7  2020 Supervisor wlan0.nmconnection
-rw-------    1 root     root           336 Dec  7  2020 Supervisor.eth0.88.nmconnection
-rw-------    1 root     root           283 Nov  3  2020 default
`

`# df
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/root               134784    134784         0 100% /
devtmpfs               1906952         0   1906952   0% /dev
tmpfs                  1941896         0   1941896   0% /dev/shm
tmpfs                   776760      1244    775516   0% /run
tmpfs                   776760      1244    775516   0% /etc/machine-id
/dev/mmcblk0p1           32686      8118     24568  25% /mnt/boot
/dev/mmcblk0p7           89563     25738     56944  31% /mnt/overlay
/dev/mmcblk0p7           89563     25738     56944  31% /etc/dropbear
/dev/mmcblk0p7           89563     25738     56944  31% /etc/modprobe.d
/dev/mmcblk0p7           89563     25738     56944  31% /etc/modules-load.d
/dev/mmcblk0p7           89563     25738     56944  31% /etc/udev/rules.d
/dev/mmcblk0p7           89563     25738     56944  31% /root/.docker
/dev/mmcblk0p7           89563     25738     56944  31% /root/.ssh
/dev/mmcblk0p7           89563     25738     56944  31% /etc/NetworkManager/system-connections
/dev/mmcblk0p7           89563     25738     56944  31% /etc/hostname
/dev/mmcblk0p7           89563     25738     56944  31% /etc/hosts
/dev/mmcblk0p7           89563     25738     56944  31% /etc/systemd/timesyncd.conf
/dev/mmcblk0p8        30027376  10288148  18195524  36% /mnt/data
/dev/zram2               15340        56     14144   0% /tmp
tmpfs                  1941900       260   1941640   0% /var
/dev/mmcblk0p7           89563     25738     56944  31% /var/lib/NetworkManager
/dev/mmcblk0p7           89563     25738     56944  31% /var/lib/bluetooth
/dev/mmcblk0p8        30027376  10288148  18195524  36% /var/lib/docker
/dev/mmcblk0p7           89563     25738     56944  31% /var/lib/systemd
/dev/mmcblk0p8        30027376  10288148  18195524  36% /var/log/journal
overlay               30027376  10288148  18195524  36% /mnt/data/docker/overlay2/9f39d97203ee642bd4eee120a1db0b9391728bcd0fb47c98df92aea633d513a5/merged
overlay               30027376  10288148  18195524  36% /var/lib/docker/overlay2/9f39d97203ee642bd4eee120a1db0b9391728bcd0fb47c98df92aea633d513a5/merged
overlay               30027376  10288148  18195524  36% /mnt/data/docker/overlay2/0f4f6e78a52f7f0985a3c896c657bab6fde30f0693703a1a00dda2aa9c6ee501/merged
overlay               30027376  10288148  18195524  36% /var/lib/docker/overlay2/0f4f6e78a52f7f0985a3c896c657bab6fde30f0693703a1a00dda2aa9c6ee501/merged
overlay               30027376  10288148  18195524  36% /mnt/data/docker/overlay2/d9d160aaf0373d506a9e311182df49bb17a26ae9ba77c3657beab3472d40eafb/merged
overlay               30027376  10288148  18195524  36% /var/lib/docker/overlay2/d9d160aaf0373d506a9e311182df49bb17a26ae9ba77c3657beab3472d40eafb/merged
overlay               30027376  10288148  18195524  36% /mnt/data/docker/overlay2/622f90d3102d2831688f6b0de71b926c02e8da4864afd40833695d89a96c228d/merged
overlay               30027376  10288148  18195524  36% /var/lib/docker/overlay2/622f90d3102d2831688f6b0de71b926c02e8da4864afd40833695d89a96c228d/merged
overlay               30027376  10288148  18195524  36% /mnt/data/docker/overlay2/0adb2ca407d557eaa7f14a76295b876d5eaa7c624ee99f575959c338af6ba975/merged
overlay               30027376  10288148  18195524  36% /var/lib/docker/overlay2/0adb2ca407d557eaa7f14a76295b876d5eaa7c624ee99f575959c338af6ba975/merged
overlay               30027376  10288148  18195524  36% /mnt/data/docker/overlay2/d59e1b9fd274977aa24f43d75a5fda997af1a82d5961c0fb36db2bf77a23ae83/merged
overlay               30027376  10288148  18195524  36% /var/lib/docker/overlay2/d59e1b9fd274977aa24f43d75a5fda997af1a82d5961c0fb36db2bf77a23ae83/merged
overlay               30027376  10288148  18195524  36% /mnt/data/docker/overlay2/7249b01b3326edd2346128dd2c9a654a3d57d8fca43cc873389f1376c7326b12/merged
overlay               30027376  10288148  18195524  36% /var/lib/docker/overlay2/7249b01b3326edd2346128dd2c9a654a3d57d8fca43cc873389f1376c7326b12/merged
overlay               30027376  10288148  18195524  36% /mnt/data/docker/overlay2/1c89ee17a311ff582dba486cd019031c6b0c1d4eb820dc4d3164762ac23c2322/merged
overlay               30027376  10288148  18195524  36% /var/lib/docker/overlay2/1c89ee17a311ff582dba486cd019031c6b0c1d4eb820dc4d3164762ac23c2322/merged
overlay               30027376  10288148  18195524  36% /mnt/data/docker/overlay2/d158c0b220784bf1e85a9cd40e9c3fdaee37fb80a8fa8f5c861c44efaa9e6599/merged
overlay               30027376  10288148  18195524  36% /var/lib/docker/overlay2/d158c0b220784bf1e85a9cd40e9c3fdaee37fb80a8fa8f5c861c44efaa9e6599/merged
overlay               30027376  10288148  18195524  36% /mnt/data/docker/overlay2/a0f34a76d3b710503f98de9e8a001512349d7598ef080f33539938b170755866/merged
overlay               30027376  10288148  18195524  36% /var/lib/docker/overlay2/a0f34a76d3b710503f98de9e8a001512349d7598ef080f33539938b170755866/merged
overlay               30027376  10288148  18195524  36% /mnt/data/docker/overlay2/9662e6d693bec1ea56fc5f9716e38e148ecf3a323bc22adf0c2f30a1d7ba457e/merged
overlay               30027376  10288148  18195524  36% /var/lib/docker/overlay2/9662e6d693bec1ea56fc5f9716e38e148ecf3a323bc22adf0c2f30a1d7ba457e/merged`

Same issue, did you get this resolved?

The issue was related to bluez cache files exhausting the inodes on the filesystem.

HAOS now has a service that runs weekly to clear out the cache of any stale files.

Make sure you are running the HAOS 11.0 or newer.