marcmc
Posts: 6
Joined: Sun Jan 27, 2013 9:27 am

RPi doesn't connect to the internet

Tue Jul 22, 2014 6:12 pm

One or two months back I made out of my RPi a server with webmin, samba, transmission and apache web. It all has worked perfectly until a few days ago. When I woke up my internet connection was gone, at the afternoon my internet connection was restored but I couldn't connect to the server, when I checked in my router settings if my RPi was connected to the internet it didn't show up but when I checked the RPi the LEDs that indicate that the ethernet cable is connected and that there is internet connection were on. Then I connectd the ethernet cable to different ethernet ports on the router, changed the ethernet cable but still nothing. I'm not sure if to anyone has happened this before but I'm not sure if ill need to buy a new RPi or if it is a software problem (although I dont think so).
Thanks in advanced.
Marc Sarri

User avatar
Laurens-wuyts
Posts: 716
Joined: Wed Aug 21, 2013 7:35 pm
Location: Belgium
Contact: Website

Re: RPi doesn't connect to the internet

Tue Jul 22, 2014 6:48 pm

Have you tried scanning your network?
http://www.advanced-ip-scanner.com/nl/
If you find you're Pi look at it's IP and see if it's the same as before.
If it's not the same, try this IP to connect to your server.
When you don't find your pi, connect an external monitor, keyboard and mouse to the pi and type

Code: Select all

sudo ifconfig
See "eth0" "inet adrr."

Laurens

marcmc
Posts: 6
Joined: Sun Jan 27, 2013 9:27 am

Re: RPi doesn't connect to the internet

Thu Jul 24, 2014 7:41 pm

Laurens-wuyts wrote:Have you tried scanning your network?
http://www.advanced-ip-scanner.com/nl/
If you find you're Pi look at it's IP and see if it's the same as before.
If it's not the same, try this IP to connect to your server.
When you don't find your pi, connect an external monitor, keyboard and mouse to the pi and type

Code: Select all

sudo ifconfig
See "eth0" "inet adrr."

Laurens
Well as I said before I entered the router configuration where it shows all of the connected devices and the RPi doesn't show up, also I can't connect to my server nor I can SSH into it. Maybe it could be a hardware problem. Well I suppose I'll have to connect it to a screen and see if I can fix the problem.
But thanks anyway.
:)

morgad
Posts: 21
Joined: Sun Jan 29, 2012 10:24 pm
Contact: Website

Re: RPi doesn't connect to the internet

Thu Jul 24, 2014 8:43 pm

just to add a "me too" :(

mine failed similary aftert a dist-upgrade on 6th July
(systemd related?)

machinw was also headlesa server

also running as ntp server, ftp client, Samba server, UPS monitor
.
as far as I can see, no IPv4, No dhcp, No login, no dbus
a couple of second of messages on screen, some morre info in log file

the only way to check log files is to put the card in another machine
which is not the machine I am typing this from, this one does not understand ext4 :(

still trying to work out how to turn Samba off while offline to see if that fixes problem

best regards
Dave

morgad
Posts: 21
Joined: Sun Jan 29, 2012 10:24 pm
Contact: Website

Re: RPi doesn't connect to the internet

Mon Jul 28, 2014 8:37 pm

partial success ...

bought a new SD card, and flashed it with the backup image I made last year (!)

this booted :)

I then dist-upgraded (500 Mb downladed, 1000+ packages upgraded, this failed to boot exactly as per first card
(2 seconds of output on screen, nothing written to log files.)


I then chenged /etc/default/nfs-common to chenge
NEED_STATD=YES back to NEED_STATD=

and the machine now boots to a graphical login prompt, I have no idea what my username/password are, as I have always used ssh access keys

unfortunalty the network does not come up (bliinkenlights, but no IP address to ping to)

any ideas where to go next ??
bnest regaerds
Dave

Return to “Networking and servers”