Linux connected to internet, but Kodi isn't.
-
Hi guys,
First post here, but have been lurking for a while.
New to Raspberry Pi and Linux, so please be kind :)
I have two Pi 3 Model B running retropie 4.1, with a USB keyboard and a Wii U Pro controller connected via bluetooth. I've tried a few different power supplies, including a lab bench supply, so I think I can rule that out.
I am using a wired ethernet connection, but have also tried wifi to the same result.
Basically from the command prompt I can see the internet, with repositories, updates and downloads all working normally. In Emulationstation the scraper works and everything seems ok.
But Kodi reports that it isn't connected to the internet, and won't scrape - but it can see my network, NFS/ SMB shares, play vids off my server, etc, with no problem.
I have tried on both Pi's I have with different builds, different SD cards, used the stock Kodi 16 from the repo, tried the updated Kodi 17 RC, all with no luck.
My router is set to DHCP with most devices on a fixed IP (mac address binding) and I have a metric butload of devices connected via gigabit ethernet and wifi (phones, tablets, Desktop PCs, Xbox, Smart TV, 4 laptops in the house, etc) all working with no issues.
I suspect the issue is not with the Pi, but with some router setting the Pi doesn't like, (although it is weird that Emulationstation scrapes with no issue) but I don't have enough knowledge to rule anything out at this point.
It would be amazing if somebody could hold my hand and walk me through solving this.
Many thanks.
-
Added Kodi debug log (I'm learning) :D
-
That's strange, you seem to not have internet in Kodi indeed. Did you tried to make a backup of ~/.kodi (it's the dir with all Kodi settings) and then remove it to start fresh, with default Kodi settings ? Does it work then ?
-
Thanks, I'll try that now.
-
Sadly, no difference.
Is there some config file, somewhere with network settings inside?
On the bright side, because of this issue I've learned to use puTTy and WinSCP.
-
There is no network settings in Kodi, or only for Kodi.
Try a new install from scratch of the latest RetroPie image + Kodi. If it doesn't work also, it should be something in your network/routers (firewall ?). -
Ok, this is solved.
For some reason, Kodi had a DNS issue.
I'm not sure why, but what I needed to do was change the Pi to Google name server:
sudo nano /etc/resolv.conf
Change to 8.8.8.8
After this, immediately everything works.
And I learned a hell of a lot of stuff going down this rabbit hole.
-
Update:
To change the name server permanently, check out the following link:
-
I getting upset. I put the dns. it shows up fine in kodi. when I restart my pie it goes back to the other one. tried both metheds still no luck. It still says can't connect.
Edit: just found out that repo is down. kodi internet still works. -
hi, i have the same problem, i am trying the solution to change the name server permanently.
when typing "/etc/dnsmasq.conf"
i get the permission denied.
Anyone have a solution?
Thx
-
@stino you'll need to use the sudo command to elevate to root privileges. Without sudo at the beginning, you won't have write access to the file. Also, you'll need to open this in an editor, so try sudo nano /etc/dnsmasq.conf which should open in the nano text editor for you to mess with. Remember to save when exiting with ctrl x
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.