Open KangarooKoala opened 6 months ago
I see it later picks up eth0, but connName is still empty which means it's filtered out by https://github.com/PhotonVision/photonvision/blob/6a2d83e19ba6d0b87f8dd6ca84102805e6443fe4/photon-core/src/main/java/org/photonvision/common/networking/NetworkUtils.java#L121 . Can you reflash back to stock and upload journalctl logs of the first run of photon starting from scratch?
Weird- After reflashing, it works now. It could be that I skipped past the NetworkManager interface dropdown at some point in initial setup and that somehow messed it up, or maybe it was something else.
Steps (for completeness):
Here's the log: photonvision-journalctl.txt
I'm good with closing this as can't reproduce, though if you want me to try some more testing I could also do that.
Here's what is happening:
The first time it queries network manager, the ethernet link isn't fully up and it returns an empty value for connName:
Nov 17 06:45:09 ubuntu java[795]: [2023-11-17 06:45:09] [General - NetworkUtils] [DEBUG] Found network interfaces:
Nov 17 06:45:09 ubuntu java[795]: [NMDeviceInfo [connName=, devName=eth0, nmType=NMTYPE_ETHERNET], NMDeviceInfo [connName=, devName=lo, nmType=NMTYPE_UNKNOWN]]
This gets replaced by the default value of "Wired connection 1" because that is the default name on Raspberry Pi. It then tries to set up the network interface and fails:
Nov 17 06:45:09 photonvision java[795]: [2023-11-17 06:45:09] [General - ShellExec] [DEBUG] Executing "nmcli con mod "Wired connection 1" ipv4.method "auto" ipv6.method "disabled""
Nov 17 06:45:09 photonvision java[795]: [2023-11-17 06:45:09] [General - ShellExec] [DEBUG] Got exit code 10
Nov 17 06:45:09 photonvision java[795]: [2023-11-17 06:45:09] [General - NetworkManager] [ERROR] Exception while setting DHCP!
A little later, it queries the network interfaces again and this time, it gets a valid name of "netplan-eth0":
Nov 17 06:48:55 photonvision java[795]: [2023-11-17 06:48:55] [General - NetworkUtils] [DEBUG] Found network interfaces:
Nov 17 06:48:55 photonvision java[795]: [NMDeviceInfo [connName=netplan-eth0, devName=eth0, nmType=NMTYPE_ETHERNET], NMDeviceInfo [connName=, devName=lo, nmType=NMTYPE_UNKNOWN]]
however, it continues to use the "Wired connection 1" default until the user manually changes it in the Settings interface.
Describe the bug NetworkManager isn't detecting any wired connections.
To Reproduce Steps to reproduce the behavior:
Screenshots / Videos Video:
https://github.com/PhotonVision/photonvision/assets/91924258/d61a20db-3e9d-450f-b9f2-47d9bff61304
Settings:
photonvision-settings-export.zip
Platform:
Additional context After seeing that NetworkManager didn't work, I manually edited /etc/network/interfaces to have the following contents:
Additionally, looking through the logs, it's trying to do stuff with "Wired connection 1", but there is no such connection: