When installing OH from Raspberry distribution, can someone please tell me what the first boot “Ensuring network connectivity” is actually looking for? is it trying to ping an external host (ICMP), or resolve a DNS record? or something else to verify it has internet connectivity?
When doing a clean install of Openhab 4 using “Raspberry Pi Imager”… first boot always failed to connect to the internet.
2024-07-04_00:18:19_UTC [openHABian] Setting up NetworkManager and Wi-Fi connection... 2024-07-04_00:18:20_UTC [openHABian] Ensuring network connectivity... **FAILED**
2024-09-07_04:10:44_UTC [openHABian] Installing Comitup hotspot... OK
OK
2024-09-07_04:11:59_UTC [openHABian] The public internet is not reachable. Please check your local network environment.
We have launched a publicly accessible hotspot named openHABian-<n>.
Use a device to connect and go to http://raspberrypi.local or http://10.41.0.1/
and select the WiFi network you want to connect your openHABian system to.
After about an hour, we will continue trying to get your system installed,
but without proper Internet connectivity this is not likely to be going to work.
After mucking around in the forums and tinkering with Raspbian conf flies and IP v6 I finally turned my attention to my firewall… a Cisco thing.
Solution
I disabled all my firewall outbound protocol filtering and TCP filtering and the OH 4 first boot has successfully “found” the internet.
2024-09-07_04:21:50_UTC [openHABian] Setting up NetworkManager and Wi-Fi connection... 2024-09-07_04:21:51_UTC [openHABian] Ensuring network connectivity... OK
I would like to put all my firewall rules back in… but not sure what I need to add to ensure future OH connectiivty tests succeed.
hardware is Pi 4.
cat /etc/os-release
PRETTY_NAME=“Raspbian GNU/Linux 12 (bookworm)”
VERSION=“12 (bookworm)”
VERSION_CODENAME=bookworm
ID=raspbian