Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DHCP isn't getting IP address #878

Open
mulka opened this issue Sep 14, 2024 · 2 comments
Open

DHCP isn't getting IP address #878

mulka opened this issue Sep 14, 2024 · 2 comments

Comments

@mulka
Copy link

mulka commented Sep 14, 2024

Describe the problem

I had a problem where the raspberry pi wasn't getting an IPV4 address for my home wifi so the archive loop was stuck in the Waiting for archive to be reachable... state. A bunch of other stuff seemed to be working though. For example, I was able to view footage on the Tesla screen. I was able to connect directly to the raspberry pi's wifi access point it was advertising and SSH into it.

When running ifconfig I got this for wlan0. Notice that there is no IPV4 address there.

wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet6 fe80::ba27:ebff:feb4:cc9d  prefixlen 64  scopeid 0x20<link>
        ether b8:27:eb:b4:cc:9d  txqueuelen 1000  (Ethernet)
        RX packets 562  bytes 51055 (49.8 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 160  bytes 31280 (30.5 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

I did some research with ChatGPT and found that I could manually run dhclient.

sudo -i
bin/remountfs_rw
dhclient -r wlan0
dhclient wlan0

Initial indications seem like that has worked. It is trying to archive a bunch of files now. Will wait to see if it completes and if the problem comes back in a few days.

Device

Raspberry Pi Zero W

OS Image

Prebuilt TeslaUSB image

Car Model

Model Y

USB connection

Glove box

Logs

No response

Additional information

No response

@mulka
Copy link
Author

mulka commented Sep 16, 2024

I did a little more investigation and found out that /etc/wpa_supplicant/wpa_supplicant.conf did not have the
id_str="AP1" in it that is added configure-ap.sh. So, I don't know if something else maybe changed that file, or maybe there was a problem with the configure-ap.sh script and it didn't get to the end?

@marcone
Copy link
Owner

marcone commented Oct 1, 2024

I did a little more investigation and found out that /etc/wpa_supplicant/wpa_supplicant.conf did not have the id_str="AP1" in it that is added configure-ap.sh. So, I don't know if something else maybe changed that file, or maybe there was a problem with the configure-ap.sh script and it didn't get to the end?

Setup would have failed if configure-ap.sh failed. You can check /boot/teslausb-headless-setup.log to see if there were any issues during setup.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants