operating-system icon indicating copy to clipboard operation
operating-system copied to clipboard

eth0 does not work out of the box on Raspberry Pi 400 - device has no carrier

Open goldfishcookie opened this issue 2 years ago • 27 comments

Describe the issue you are experiencing

On Home Assistant 9.4 and 9.5 ethernet port, eth0, does not work out of the box with Raspberry Pi 400. Main issue seems to be missing carrier, as per trying to set up a static ip to the device a following error is provided.

Error: Can’t update config on eth0: Connection ‘Supervisor eth0’ is not available on device eth0 because device has no carrier

IPv4 field remains blank. Setting ip manually to static and to match the settings from router link does not still work. Local access from device A to RPi with ethernet cable does not work either.

What operating system image do you use?

rpi4-64 (Raspberry Pi 4/400 64-bit OS)

What version of Home Assistant Operating System is installed?

9.5

Did you upgrade the Operating System.

No

Steps to reproduce the issue

  1. Get the latest, in this case 9.5, version of Home Assistant and flash it to SD-card with Balena Etcher
  2. Start RPi 400 with the, now finished, SD card.
  3. Wait for RPi to start. After 1m 30s you'll get an error (FAILED] Failed to start Wait Until Kernel Time Synchronized.
  4. From this point forward device is not detected within your router nor can it be connected to from another device. ...

Anything in the Supervisor logs that might be useful for us?

Can't acces system logs as there's no way to connect to RPi, even with local connection from device A to RPi.

Anything in the Host logs that might be useful for us?

Can't acces host logs as there's no way to connect to RPi, even with local connection from device A to RPi.

System information

No response

Additional information

Issue has been narrowed down to be an issue with Home Assistant as the port works just fine on Raspbian and the issue goes away when using USB-A to Ethernet adapter. When sending ping commands without adapter only result is, be it with ip address or by host name, unknown host.

% ping homeassistant.local ping: cannot resolve homeassistant.local: Unknown host

Logging in from cli and checking connection prints the following.

% login % nmcli eth0 unavailable

My network setup consists of direct line, ethernet from wall, to Unifi Dream Machine (first gen, not Pro) and from there a connection to Unifi Switch (US 8 60W). I've also connected the RPi400 to UDM directly, skipping the Switch, but that did not help either.

UDM v2.5.17 Switch 6.5.32

No issues with internet connection when RPi is booted to Raspbian.

goldfishcookie avatar Feb 01 '23 16:02 goldfishcookie

A little bit more information from Home Assistant web-UI.

Logger: homeassistant.components.hassio
Source: components/hassio/websocket_api.py:124
Integration: Home Assistant Supervisor (documentation, issues)
First occurred: 5:34:18 PM (1 occurrences)
Last logged: 5:34:18 PM

Failed to to call /network/interface/eth0/update - Can't create config and activate eth0: Connection 'Supervisor eth0' is not available on device eth0 because device has no carrier

goldfishcookie avatar Feb 05 '23 15:02 goldfishcookie

Missing carrier typically means a low level issue (cable?). Did you try different cables or connecting to a different switch?

On Home Assistant 9.4 and 9.5 ethernet port

Does that mean this worked in releases prior to 9.4 or did you just test those two releases?

agners avatar Feb 06 '23 11:02 agners

Missing carrier typically means a low level issue (cable?). Did you try different cables or connecting to a different switch?

On Home Assistant 9.4 and 9.5 ethernet port

Does that mean this worked in releases prior to 9.4 or did you just test those two releases?

Hi,

Tried different cables and none of them worked on eth0. One of the same cables worked just fine with USB-Ethernet adapter.

Tried this on both HA 9.4 and 9.5. and the connection did not work on either of those. Don’t know about releases prior to those.

goldfishcookie avatar Feb 06 '23 11:02 goldfishcookie

this issue happened to me as well.

DLKH6538 avatar Feb 28 '23 13:02 DLKH6538

Hi everybody, I have the same issue on RPI3B+ with haos_rpi3-64-9.5 and haos_rpi3-64-9.4.

The first time the problem happens was during upgrade from 9.4 to 9.5. The upgrade finished with the problem described above after the reboot.

Then I try to install it fresh via haos images witten with dd to SD-card and SSD.

The SD-Cards with image 9.4 and 9.5 (two different SD-card which were used before with different software) were not be able to start. In gparted I get the error, that the disk parameter containing an error. I checked both: 1. no repair via gparted => only black screen; 2. repair via gparted => only black screen.

Then I used a SSD which was succesfully used before updrade haos. Some problem after starting gparted: disk containg an error. 1. no repair via gparted => only black screen; 2. repair via gparted => boot possible, but then I run in the error described above.

I changed the boot parameter for the fat32 partition from msftres to boot,esp

greenstone02 avatar Feb 28 '23 18:02 greenstone02

Same problem here with a new Raspberry pi 400. Can't get anywhere with eth0 ethernet. Wifi works, and everything is updated over it.

From supervisor logs:

[supervisor.host.network] Can´t create config and activate eth0: Connection ´Supervisor eth0´is not available on device eth0 because device has no carrier

luddement avatar Mar 10 '23 18:03 luddement

same here raspbarry pi 3b, upgrade from 9.4 to 9.5 did not complete succesfully on eth0, after disconnecting the cable and continuing in wifi the upgrade finished, but eth0 is not working anymore with: [supervisor.host.network] Can´t create config and activate eth0: Connection ´Supervisor eth0´is not available on device eth0 because device has no carrier

working on wifi for now

mdbruinnl avatar Apr 03 '23 07:04 mdbruinnl

This is an incredibly frustrating issue to not have fixed by now.

MarchosiasM avatar Apr 17 '23 21:04 MarchosiasM

Can you all check Home Assistant OS 10?

I am testing Raspberry Pi 3 and 4 regularly, and just tested Raspberry Pi 400 with Home Assistant OS 10. Ethernet works just fine here. So this must be some combination of Ethernet switch and/or software missconfiguration.

agners avatar Apr 18 '23 13:04 agners

Unfortunately updating to Home Assistant 10 and to the latest core, 2023.4.6, did not fix the issue for me. So same issue when running these from HA CLI. Connection still works with USB-A to Ethernet-adapter but is not a good long-term solution.

% login % nmcli eth0 unavailable

Sorry for the noise, commented from phone and accidentally closed this issue.

goldfishcookie avatar Apr 30 '23 10:04 goldfishcookie

Adding some more information. My network-setup consists of Unifi Dream Machine and after that there's Unifi Switch. I've also tried to connect to HA from directly UDM, as in skipping the swich, still no dice. I'll add this information to bug description as well.

Connection works just fine Raspbian.

goldfishcookie avatar Apr 30 '23 10:04 goldfishcookie

Just came across this issue while attempting to install HA. I have 2 RPI400, one was purchased around 18 months ago, one earlier this year. The older RPI 400 installs HA successfully using Ethernet port. The newer model cannot access the Ethernet port with the message as described above. Same switch cables etc. Used HAOS 10.2 and core 2023.6.1 Both PI’s ports were working perfectly using latest raspberry pi os.

canonone99 avatar Jun 15 '23 11:06 canonone99

Has anyone found a working solution to this issue? I too had to go in and install HA via wifi to get my system up and running on the rpi400. Is the issue on home assistant end or the rpi400? Do I go out and buy a rpi4 and just run my HA on that or is this going to get sorted?

Steph1116 avatar Jun 26 '23 00:06 Steph1116

Same issue here. Homeassistant was connected via eth0 until today. Stopped working suddenly in Mid of May. (been away some time). Same error: Can't create config and activate eth0: Connection 'Supervisor eth0' is not available on device eth0 because device has no carrier

Wifi connects well. Updated until most recent version now but issue is still there.

Using a Rasperry PI 4

benjaminrau avatar Jun 26 '23 17:06 benjaminrau

Got the same issue with Raspberry pi 4 and Homeassistant os 10.3

LukasBeckers avatar Aug 06 '23 09:08 LukasBeckers

Same issue here Rasperry PI 4

Pro-Control avatar Sep 06 '23 19:09 Pro-Control

I have the same issue on a recently purchased pi4. Would be great to see this fixed.

dalleyd1 avatar Sep 08 '23 07:09 dalleyd1

I have the same issue! I have a pi4!

minul08 avatar Sep 15 '23 14:09 minul08

Same for me on OS 10.5. Running on PI4 and got it absolutely unexpected. No changes or updates.

cntzr avatar Sep 29 '23 11:09 cntzr

Just for the record, I got this error when I try to configure ethernet settings without the actual ethernet cable plugged into my NUC. Perhaps some people here are having cable/physical issues, worth a check maybe.

ahaverty avatar Nov 19 '23 13:11 ahaverty

Last of update of they year, quite literally, from me. Tried again to boot the latest Home Assistant, 2023.12, from USB and so far the issue has not been fixed. I still could still not get ip to the RPi400. My USB to Ethernet adapter also stopped working at one point on HA and as such, natively booting to HA is not an option to me anymore on RPi400. I do wonder if there was a minor change to what ethernet chipsets were used at one point, as that would at the very least confirm why @canonone99 is having issues with a newer device but not with the older one and why, seemingly, certain RPi4s are having the issue.

I've since moved to installing HA to a docker container as ethernet does work under Raspbian. Do note though if you go with this route that you lose Supervised unless you install HA with other means.

I can, however, still test the ethernet every now and then as long as I have the RPi400, if need be. Well, at least until I move to the HA Green.

goldfishcookie avatar Dec 31 '23 19:12 goldfishcookie

Just for the record, I got this error when I try to configure ethernet settings without the actual ethernet cable plugged into my NUC. Perhaps some people here are having cable/physical issues, worth a check maybe.

I find this ridiculous. Why can't I change Ethernet IP address and other settings while the cable is disconnected? I would consider it a bug.

My problem is that I can't get IP properly configured after I moved from one router to another. I have managed to connect by WiFi, but now when I attach an Ethernet cable the device gets the same IP assigned as with WiFi and everything stops working. And now I can't change IP without plugging the cable and can't connect when it is plugged in. :facepalm:

FinemechanicPub avatar Jan 11 '24 19:01 FinemechanicPub

Some more information from latest Home Assistant from boot.

[OK] Reached target System Time Set.
[FAILED] Failed to start Wait Until Kernel Time Synchronized.
See 'systemctl status systemd-time-wait-sync.service' for details

Output from aforementioned systemctl.

x systemd-time-wait-sync.service - Wait Until Kernel Time Synchronized
Loaded: loaded (/usr/lib/systemd/systen/systemd-time-wait-sync.service: enabled; preset: enabled)
Drop-In: /etc/systemd/system/systemd-time-wait-sync.service.d
network-online.conf, timeout.conf
Active: failed (Result: timeout) since Tue 2023-04-04 11:17:01 UTC; 2min 25s ago
Docs: man:systemd-time-wait-sync.service(8)
Process: 524 ExecStart=/usr/lib/systemd/systemd-time-wait-sync (code=exited, status=0/SUCCESS)
Main PID: 524 (code=exited, status=0/SUCCESS)
CPU: 16ms

Apr 01 10:55:33 honeassistant systemd[1]: Starting Wait Until Kernel Time Synchronized...
Apr 04 10:55:33 homeassistant sustend-time-wait-sync[524]: Failed to add a watch for /run/systemd/timesync: No such file or directory
Apr 04 10:55:33 homeassistant systemd-time-vait-sync[524]: adjtime state 5 status 40 time Tue 2023-04-04 10:55:33.594891 UTC
Apr 01 11:15:31 homeassistant systemd-time-vait-sync[524]: adjtime state 5 status 40 time Tue 2023-04-04 11:15:31.728256 UIC
Apr 01 11:17:01 homeassistant systemd[1]: systemd-time-wait-sync.service: start operation timed out. Terminating.
Apr 01 11:17:01 homeassistant systemd-time-wait-syncl529): Exit without adjtimex synchronized.
Apr 04 11:17:01 homeassistant systemd[1]: systemd-time-wait-sync.service: Failed with result 'timeout'.
Apr 01 11:17:01 honeassistant systemd[1]: Failed to start Wait Until Kernel Time Synchronized.

goldfishcookie avatar Jan 14 '24 09:01 goldfishcookie

I'm facing now the same issue on Pi4 with HA OS 10.5. Suddenly no more eth connection. IPv4 disabled and can't be enabled. Any solution?

outofsight avatar Feb 05 '24 16:02 outofsight

stesso identico problema su nuc intel, con adatattore usb/lan nesusn problema

giankaleo avatar Feb 05 '24 21:02 giankaleo

There hasn't been any activity on this issue recently. To keep our backlog manageable we have to clean old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant OS version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar May 06 '24 05:05 github-actions[bot]

I face the same issue, just installed the latest software version haos_rpi4-64-12.3.img on a brand new Rpi4 64 that i purchased directly from the link provided in the Instructions by Home Assistant. Very frustrating.

reodel avatar May 13 '24 20:05 reodel

There hasn't been any activity on this issue recently. To keep our backlog manageable we have to clean old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant OS version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar Aug 13 '24 05:08 github-actions[bot]