#Pi internet troubleshooting
1 messages · Page 1 of 1 (latest)
I connected with the WiFi button on the taskbar
Also, there's no DHCPD.conf file
@dark yarrow I did take my Pi on a trip with me to Denver, although it shouldn't have had an effect on it, right?
you will need a / in front of the etc
It could, depending on what all changed. Is the WiFi it's connecting to a phone hotspot or hardwired internet (by the name, guessing Verizon fiber?)
also what does cat /etc/resolv.conf give you?
It's a WiFi connection to a router
That gives me a bunch of info. What do you need?
hard to say without seeing it? Commented out lines aren't doing anything. First thought would be anything related to lease time or anything leftover from a prior network connection
I don't think there's anything like that in there
@dark yarrow
Have you looked in the settings of your router? My thought is that the lease time from your router/modem is shorter than what the Pi is expecting. Could probably be resolved by extending the time on the router or shortening it on the Pi.
Does a disconnect/reconnect from Wi-Fi also fix the issue?
I can't disconnect from the WiFi
Why not?
I don't know
What happens when you try?
when it freezes are you still able to pres ctrl+alt+F2 or ctrl+alt+F4 to get to a command line terminal?
Haven't tried yet
Now I'm getting a "Could not remove network error"
What are you doing that's generating that error?
Disconnecting from the Wifi
Uhhh, how do I get back out of the terminal and to the desktop?
Ctrl+alt+F something
probably F1 or F7, but could be any of them 1-8
if all else fails, you can "sudo reboot" from the terminal and it'll reboot back to the GUI
nice
Ok, hang on
Different distros are different, I can't keep track of the defaults everywhere :D
yes... that's good! That sounds like the DHCP lease expired so we/you should probably try to edit the dhclient settings, or the settings on your router
Let's do the first one
I assume it's a command followed by /etc/dhclient.conf?
would be the "cat" command above to view it - available options are here:
https://linux.die.net/man/5/dhclient.conf
The dhclient.conf file contains configuration information for dhclient, the Internet Systems Consortium DHCP Client.
unless that's not where RPi is storing it by default.
You're using Raspbian, correct?
okay cool. It would be nice to see that file if anything jumps out at me - if it has anything sensitive feel free to black it out before posting of course
wait what do you mean 404?
File not found
404 is an error from web browsers
okay gotcha
hmm I'll have to do a bit of research on that. also going to be on/off discord a bit the rest of the night, have a few things to do
if you want, I'd recommend logging into your router and seeing if there's a DHCP Lease Time (or similar) setting in there - if it's set to longer than 24 hours, set it to 24 hours. If it's less than 24 hours, but more than 1 hour, try setting it to 1 hour. If it's an hour or less, don't change it
that's probably going to be the best fix, if that fixes it, since it'll also apply to any other Pis you get
Idk where I can find that
find what?
The DHCP thing for the router
are you able to get logged into the router?
Idk
I would start there - you don't know if you don't try!
If you have another, working machine on your network, you can look at the "gateway address" in settings and that'll typically be the same as the router address. if you go to it in a web browser it's a good start
so if you open command prompt and type in "ipconfig /all" it should show you a bunch of information including "default gateway", probably something like 192.168.1.1
Yes, I see that
So does it work if you go there in a web browser?
any luck?
Thanks for the bump. Trying now
@dark yarrow I'm in my router right now. Where do I find it?
Found it. Now looking for the Raspberry Pi, but I don't see it
Did you find anything called "lease time"?
should be a setting for the whole DHCP scope
Yeah, I renewed it already
I didn't see the Pi as a connected device though until I restarted it
you probably don't just want to renew though, that fixes it once. If you shorten the least time (what was it set to, anyway?) that should fix it more long term if it's like similar issues I've experienced
#3 on page 109 is "lease time in minutes", that sounds like the setting you'll want to fiddle with.
1440 is what it's currently set to
that's 24 hours, so not unreasonable. But I'd try it with it set to 60 for a while and see if the Pi works any better.
You may need to reboot the Pi ~5 minutes after making the change to be sure it grabs one of the new, shorter leases
@dark yarrow
I'd say however long it usually takes for the connection to break?
That's the thing, I don't know
in theory, you'll know within an hour
I guess
any luck?
well darn, that means it's not as easy of a fix as I thought
somewhere there should be a setting on your Pi so that it automatically renews its DHCP lease
I'll have to do some looking
note here so thread stays alive
Any luck so far?
no, haven't had much of a chance yet, going to try and get you some commands to run tonight so I can see the output from them
okay can I get the output of:
ip a
lsb_release -sirc
ls -lah /etc | grep -i dhc
While connected or disconnected?
either.
might be easier while connected since you can ssh into the Pi from your Windows machine
(that's how I'd do it; it'll let you copy/paste)
Unless there's a reason you're running Debian 10 still I'd recommend upgrading that to 11 - which will rule out any 10-specific bugs.
My Pi hasn't given me any update requests
And it's Raspbian, not Debian, and yes there is a difference
Yes true I misspoke there, it's based on Debian and I confirmed Raspbian 11 bullseye based on Debian 11 bullseye is the current version
Whether or not you've been promoted, my personal recommendation would be to backup anything you need, just in case, and then do a system upgrade to the new version
I already migrated most of my work to my laptop since my Pi was having internet issues
How do I upgrade?
There are a few guides, or you could reflash the microSD card
https://www.linuxuprising.com/2021/11/how-to-upgrade-raspberry-pi-os-10.html?m=1
go for it
I'd have it replace everything if it's already not working and backed up
I would install the package maintainers version
what do you mean
When the updates install, don't I need to reboot to finish updating?
does it say anything about that? Generally yes, but usually it'll tell you you need to
are you following that guide? did you make sure to do the KMS stuff?
cat /var/run/reboot-required should tell you
Haven't gotten to that yet
the KMS stuff would likely be before reboot
K
I'd keep install maintainers version
So, replace all files
Btw, are you able to pin this?
what do you mean?
You never had the ability to pin messages?
oh I don't think so. I think that's moderators and stuff
I'm just a guy that's been using Ubuntu since 2008 and Debian since 2009
Ok, update is done, and the interface is no longer cut-off on the screen, lol
@dark yarrow
that sounds good
@dark yarrow It's fixed. One last question. How do I clone a git into a folder?
I think that's usually "git clone" but I'm not really good with Git
Should I ask in the regular help channel?
There's actually a #help-with-git - the exact command will vary based on where you're cloning from and the name of the repo, etc
I'll be curious to hear if the Pi stays connected any better now. If not.... at least you can rule out outdated software
I left it on overnight and it stayed connected