#Pi internet troubleshooting

1 messages · Page 1 of 1 (latest)

dark yarrow
#

How did you setup the Wi-Fi? Is there a "network settings" tool in the GUI?

rain orchid
#

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?

dark yarrow
#

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?

rain orchid
#

It's a WiFi connection to a router

rain orchid
dark yarrow
rain orchid
#

I don't think there's anything like that in there

rain orchid
#

@dark yarrow

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?

rain orchid
#

I can't disconnect from the WiFi

dark yarrow
#

Why not?

rain orchid
#

I don't know

dark yarrow
#

What happens when you try?

rain orchid
#

It won't let me disconnect

#

It just freezes and then doesn't disconnect

dark yarrow
#

when it freezes are you still able to pres ctrl+alt+F2 or ctrl+alt+F4 to get to a command line terminal?

rain orchid
#

Haven't tried yet

rain orchid
dark yarrow
#

What are you doing that's generating that error?

rain orchid
#

Disconnecting from the Wifi

rain orchid
dark yarrow
#

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

dark yarrow
#

nice

rain orchid
#

Ok, hang on

dark yarrow
#

Different distros are different, I can't keep track of the defaults everywhere :D

rain orchid
#

I'm seeing wlan0 as "Expired 192.168.#.#"

#

Does that tell you anything?

dark yarrow
#

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

rain orchid
#

Let's do the first one

rain orchid
dark yarrow
#

unless that's not where RPi is storing it by default.

You're using Raspbian, correct?

rain orchid
#

Yes

#

Which is probably why I have a 404 on the file

dark yarrow
#

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?

rain orchid
#

File not found

dark yarrow
#

404 is an error from web browsers

rain orchid
#

With cat /etc/dhclient.conf

#

I typed 404 to be quick, lol

dark yarrow
#

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

rain orchid
#

Idk where I can find that

dark yarrow
#

find what?

rain orchid
#

The DHCP thing for the router

dark yarrow
#

are you able to get logged into the router?

rain orchid
#

Idk

dark yarrow
#

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

rain orchid
#

I'm on my laptop right now

#

Windows

dark yarrow
#

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

dark yarrow
#

So does it work if you go there in a web browser?

dark yarrow
#

any luck?

rain orchid
#

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

dark yarrow
#

Did you find anything called "lease time"?

#

should be a setting for the whole DHCP scope

rain orchid
#

Yeah, I renewed it already

#

I didn't see the Pi as a connected device though until I restarted it

dark yarrow
#

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

rain orchid
#

I have no idea what it's set to

#

@dark yarrow This is all I see

dark yarrow
#

#3 on page 109 is "lease time in minutes", that sounds like the setting you'll want to fiddle with.

rain orchid
dark yarrow
#

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

rain orchid
#

Alright

#

So, now we wait? How long do we wait?

rain orchid
#

@dark yarrow

dark yarrow
#

I'd say however long it usually takes for the connection to break?

rain orchid
#

That's the thing, I don't know

dark yarrow
#

in theory, you'll know within an hour

rain orchid
#

I guess

dark yarrow
#

any luck?

rain orchid
#

Nope, still getting the same error

#

@dark yarrow

dark yarrow
#

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

dark yarrow
#

note here so thread stays alive

rain orchid
#

Any luck so far?

dark yarrow
#

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

dark yarrow
#

okay can I get the output of:

ip a
lsb_release -sirc
ls -lah /etc | grep -i dhc
rain orchid
#

While connected or disconnected?

dark yarrow
#

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)

rain orchid
#

lsb_release -sirc

#

ls -lah /etc | grep -i dhc

#

@dark yarrow

dark yarrow
#

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.

rain orchid
#

My Pi hasn't given me any update requests

rain orchid
dark yarrow
#

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

rain orchid
#

I already migrated most of my work to my laptop since my Pi was having internet issues

#

How do I upgrade?

dark yarrow
rain orchid
#

@dark yarrow

dark yarrow
#

go for it

rain orchid
#

Just making sure

#

Uhhhhh @dark yarrow

dark yarrow
#

I'd have it replace everything if it's already not working and backed up

rain orchid
#

So, what do I pick?

#

@dark yarrow

dark yarrow
#

I would install the package maintainers version

rain orchid
#

Yep, that's the one

#

@dark yarrow When do I reboot?

dark yarrow
#

what do you mean

rain orchid
#

When the updates install, don't I need to reboot to finish updating?

dark yarrow
#

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

rain orchid
dark yarrow
#

the KMS stuff would likely be before reboot

rain orchid
#

K

rain orchid
#

@dark yarrow

dark yarrow
#

I'd keep install maintainers version

rain orchid
#

So, replace all files

rain orchid
dark yarrow
#

what do you mean?

rain orchid
#

You never had the ability to pin messages?

dark yarrow
#

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

rain orchid
#

Ok, update is done, and the interface is no longer cut-off on the screen, lol

#

@dark yarrow

dark yarrow
#

that sounds good

rain orchid
#

@dark yarrow It's fixed. One last question. How do I clone a git into a folder?

dark yarrow
rain orchid
#

Should I ask in the regular help channel?

dark yarrow
#

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

rain orchid
#

I left it on overnight and it stayed connected