Internet connection lost, local network is OK

Hello every one,
I have search everywhere, but I can’t find any solution for my problem on OSMC with my RPI 1.

I have I have OSMC installed on my RPI1, connected trought ethernet cable. Everything have been working fine for several month until a few days ago when my RPI lost internet connection.
clock is no more updated, checking update fails, no mre youtube…
Funny thing is that I still have a network connection, i can ssh connect from my computer to my PI without any problem.

Anyway i tried to turn on debug mode, I only have one error on boot, but i do not think it is related :
“06:15:32 21.048361 T:3024151472 ERROR: DBus: Error org.freedesktop.DBus.Error.ServiceUnknown - The name org.freedesktop.UPower was not provided by any .service files”

Then I re-installed osmc on the sd card, succesfully, but the rpi still don’t get internet connection, and is not believing we are the first january 1970…

I think it is hardware issue, which would be bad :frowning: but before purchasing any new device, i’d like to ask for advices !
have you any ideas guys ?

Wired wireless? Logs?

To get a better understanding of the problem you are experiencing we need more information, including logs from you. Please see How to submit a useful support request - General - OSMC for advice on how to help us.

I’m not sure what sort of hardware error you’re thinking of.
We can rule out the basic IP over ethernet - otherwise you wouldn’t be able to SSH in.
I’d guess you’d have mentioned if you didn’t get visible output on your TV/monitor.
If you don’t know how to test out the firewall and DNS, then you should use grab-logs (I think), and then post them to give us a chance to work it out
Derek

Do basic network trouble shooting and post replies here

ping 8.8.8.8
ping www.google.com
route

I did not mentionned it, but osmc work fine except internet connection.
The pi is connected to my internet box by an ethernet cable.
I can access my NAS through my local network.
When i go to the admin of my internet box, I can see my osmc is connected, and everything seems normal.

I got the log file where I attempt to run osmc Update : http://pastebin.com/6ubw3fcX
here is a few cmd I ran to check network state

osmc@osmc:~$ ifconfig
eth0      Link encap:Ethernet  HWaddr b8:27:eb:8e:db:b9
          inet addr:192.168.0.23  Bcast:192.168.0.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST DYNAMIC  MTU:1500  Metric:1
          RX packets:1798 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1630 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:261907 (255.7 KiB)  TX bytes:183420 (179.1 KiB)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

and the other :

osmc@osmc:~$ ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8): 56 data bytes
64 bytes from 8.8.8.8: seq=0 ttl=53 time=31.505 ms
64 bytes from 8.8.8.8: seq=1 ttl=53 time=30.697 ms
64 bytes from 8.8.8.8: seq=3 ttl=53 time=30.382 ms
64 bytes from 8.8.8.8: seq=4 ttl=53 time=29.596 ms
64 bytes from 8.8.8.8: seq=10 ttl=53 time=29.554 ms
64 bytes from 8.8.8.8: seq=11 ttl=53 time=30.264 ms
64 bytes from 8.8.8.8: seq=13 ttl=53 time=29.283 ms
64 bytes from 8.8.8.8: seq=15 ttl=53 time=43.238 ms
64 bytes from 8.8.8.8: seq=16 ttl=53 time=30.578 ms
64 bytes from 8.8.8.8: seq=17 ttl=53 time=29.732 ms
^C
--- 8.8.8.8 ping statistics ---
18 packets transmitted, 10 packets received, 44% packet loss
round-trip min/avg/max = 29.283/31.482/43.238 ms
osmc@osmc:~$ ping www.google.com
ping: bad address 'www.google.com'
osmc@osmc:~$ route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default         Freebox-Server. 0.0.0.0         UG    0      0        0 eth0
87.98.175.85    Freebox-Server. 255.255.255.255 UGH   0      0        0 eth0
92.222.80.28    Freebox-Server. 255.255.255.255 UGH   0      0        0 eth0
192.71.249.83   Freebox-Server. 255.255.255.255 UGH   0      0        0 eth0
192.168.0.0     *               255.255.255.0   U     0      0        0 eth0
Freebox-Server. *               255.255.255.255 UH    0      0        0 eth0
212.117.180.145 Freebox-Server. 255.255.255.255 UGH   0      0        0 eth0
osmc@osmc:~$ 

Hope it’s usefull…

This is where the problem seems to be.
The IP routing is OK, but the DNS resolution just isn’t working - the problem is outside the RPi (which gives every evidence of working correctly).
Derek

Seems to be a DNS problem.
Post the output of cat /etc/resolv.conf

Well you’re right, this is a DNS issue…
I changed my dns conf a few days ago because i could not access “winguru.cz” from my phone, and forgot about that…
Now i got back to default conf, and that seems okay for all my devices to go to internet…
Sorry for that, my mistake. There is no dumb computer, only stupid humans !

But there is still stg i do not understand, why the dns conf would allow me to visit some web sites from my computer, but not from my phone ? And after a modification both phone and computer can visit every web sites, but the Rpi cannot go to internet any more…
This is quit a mystery for me :-S

Anyway, thanks to all of you spending time on my problem.

And that is something to which we couldn’t contribute without full information - you have the Pi solution!
Derek

Hi,
Since a couple of days I have the same problem:

Every service which includes network calls from osmc doesn’t work anymore
Nevertheless osmc is connected in ethernet, has an IP address and is always reachable through ssh
Also all the other services using internet outside osmc still work.
It’s on RPI3, last update done. Here you are some conf:

   $ cat /etc/resolv.conf 
   # Generated by Connection Manager
   search lan 
   nameserver 192.168.1.254

    ifconfig 
eth0      Link encap:Ethernet  HWaddr b8:27:eb:26:ba:2d  
          inet addr:192.168.1.18  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST DYNAMIC  MTU:1500  Metric:1
          RX packets:471114 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1998938 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:56018194 (53.4 MiB)  TX bytes:223478704 (213.1 MiB)

Rebooting yesterday it resolved the issue for a while.

I think the problem also comes from the box (a bbox tvw620 mine), but I didn’t touch the dns config.

Thanks.