Addons not installing

Hello everyone,
Loving my new raspberry pi 2 and have tried all of the different releases. I have one problem with OSMC though, if I try download add-ons it just says 0% for a bit and then a message pops up saying please wait then it returns to normal. The add-on however in still not downloaded. This error doesn’t seam to affect programs, weather, skins or other scripts, which download ok. But subtitle add-ons and video add-ons all will not download.

xbian and openelec did not have this issue, only OSMC. I have tried redownloading and installing the RC2 image a few times but the error persists. The uploaded log file is from a fresh install on the rpi2. I attempted to install the youtube plugin.
http://xbmclogs.com/ps79nkhb

1 Like

Link broken. Use our Log Upload module (in MyOSMC) instead.

Here is a link to the full log uploaded through osmc
http://paste.osmc.io/afogametoy
I’m able to ping google from the Pi and I tried both dhcp and static Ip. I’ve redone the log to include a failed download from video addons and a success download from lyrics. Only some categories are effected by this but includes the whole category.

There’s something wrong with the internet connection on your Pi. The log is full of errors saying it is unable to connect:

01:02:43 T:1763365920   ERROR: CCurlFile::Stat - Failed: Couldn't connect to server(7) for http://mirrors.kodi.tv/addons/gotham/plugin.video.amc/icon.png
01:02:44 T:1763365920   ERROR: CCurlFile::Stat - Failed: Couldn't connect to server(7) for http://mirrors.kodi.tv/addons/gotham/plugin.video.animevice/icon.png
01:02:54 T:1763365920   ERROR: CCurlFile::Stat - Failed: Timeout was reached(28) for http://mirrors.kodi.tv/addons/gotham/plugin.video.watson/icon.png
01:02:58 T:1763365920   ERROR: CCurlFile::Stat - Failed: Couldn't connect to server(7) for http://mirrors.kodi.tv/addons/gotham/plugin.video.itunes_podcasts/icon.png
01:03:08 T:1763365920   ERROR: CCurlFile::Stat - Failed: Timeout was reached(28) for http://mirrors.kodi.tv/addons/gotham/plugin.video.itunes_trailers/icon.png
01:03:18 T:1754977312   ERROR: CCurlFile::Stat - Failed: Timeout was reached(28) for http://mirrors.kodi.tv/addons/helix/plugin.video.ardmediathek_de/icon.png
01:03:28 T:1754977312   ERROR: CCurlFile::Stat - Failed: Timeout was reached(28) for http://mirrors.kodi.tv/addons/gotham/plugin.video.arretsurimages/icon.png
01:03:38 T:1754977312   ERROR: CCurlFile::Stat - Failed: Timeout was reached(28) for http://mirrors.kodi.tv/addons/gotham/plugin.video.attactv/icon.png

As you’ve only provided a Kodi log and not a full set of logs including system journal there’s no way to see what the cause is.

Are you using Ethernet or Wifi ? DHCP or static IP ? If you log into the Pi with SSH can you ping a site on the internet ?

Full logs would help a lot here…

Thanks the above post has been modified

Hi,

Thanks for the updated logs. Unfortunately I can’t see anything in the system journal this is amiss with your Ethernet connection.

Being able to ping something doesn’t on it’s own prove that there are no issues with your internet connection, and your log is still full of curl errors. Search the log file you posted for CURL and copy one of the URL’s it says it can’t connect to, for example:

http://mirrors.kodi.tv/addons/helix/plugin.video.youtube/fanart.jpg

First try going to that in a browser on your PC on the same internet connection - for me I see a big youtube image so I know I can get to that file. Now try downloading that to the Pi using curl at an ssh command line:

curl http://mirrors.kodi.tv/addons/helix/plugin.video.youtube/fanart.jpg

What do you get ? I get:

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>302 Found</title>
</head><body>
<h1>Found</h1>
<p>The document has moved <a href="http://mirror.ox.ac.uk/sites/xbmc.org/addons/helix/plugin.video.youtube/fanart.jpg">here</a>.</p>
</body></html>

As you can see that’s a 302 redirect, so now try the same with the redirect URL both in your PC’s browser and curl on the Pi command line. (You may get a different URL if you’re not in the UK)

I get the same image using the redirected mirror URL.

Trying to download it will curl will (should) show gibberish as it’s a jpg image not text.

What country are you in ? Is it possible some URL’s are being blocked/filtered by your ISP ? If not it’s still possible that the regional mirror you’re redirected to is having issues.

Hello,
I tried what you said from the web browser on my pc and I got the large youtube image. connecting through ssh I got this:

> Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
> permitted by applicable law.
> Last login: Mon Apr 27 18:41:04 2015 from 192.168.1.8
> osmc@osmc:~$ curl http://mirrors.kodi.tv/addons/helix/plugin.video.youtube/fanart.jpg
> <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
> <html><head>
> <title>302 Found</title>
> </head><body>
> <h1>Found</h1>
> <p>The document has moved <a href="http://mirror.ufs.ac.za/xbmc/addons/helix/plugin.video.youtube/fanart.jpg">here</a>.</p>
> </body></html>
> osmc@osmc:~$ 

I’m in Australia. If I can change the mirror could this help?

Can you have a look at this thread and try some of the tests listed there ? You might be having the same dns related issue: (if it does seem that you are seeing the same issue there, probably best to continue discussion there)

Any luck with above issue? I’m having exactly the same thing, unable to install any add-on…

Very annoying, ~/.kodi/temp/kodi.log reporting errors, but trying those urls with CURL directly works fine.

08:45:35 T:2712925216   ERROR: CCurlFile::Stat - Failed: Couldn't connect to server(7) for http://mirrors.kodi.tv/addons/gotham/plugin.video.itunes_podcasts/icon.png
08:45:36 T:2811012128   ERROR: CCurlFile::Stat - Failed: Couldn't connect to server(7) for http://mirrors.kodi.tv/addons/gotham/plugin.video.itunes_trailers/icon.png
08:45:37 T:2785846304   ERROR: CCurlFile::Stat - Failed: Couldn't connect to server(7) for http://mirrors.kodi.tv/addons/helix/plugin.video.ardmediathek_de/icon.png
08:45:42 T:2712925216   ERROR: CCurlFile::Stat - Failed: Couldn't connect to server(7) for http://mirrors.kodi.tv/addons/gotham/plugin.video.arretsurimages/icon.png
08:45:54 T:2811012128   ERROR: CCurlFile::Stat - Failed: Timeout was reached(28) for http://mirrors.kodi.tv/addons/gotham/plugin.video.arteplussept/icon.png
08:45:56 T:2811012128   ERROR: CCurlFile::FillBuffer - Failed: Couldn't connect to server(7)
08:45:56 T:2811012128   ERROR: CCurlFile::CReadState::Connect, didn't get any data from stream.
08:45:57 T:2785846304   ERROR: CCurlFile::Stat - Failed: Couldn't connect to server(7) for http://mirrors.kodi.tv/addons/gotham/plugin.video.attactv/icon.png
08:45:58 T:2712925216   ERROR: CCurlFile::Stat - Failed: Couldn't connect to server(7) for http://mirrors.kodi.tv/addons/helix/plugin.video.awntv/icon.png

osmc@osmc:~$ curl -v http://mirrors.kodi.tv/addons/helix/plugin.video.awntv/icon.png
* Hostname was NOT found in DNS cache
*   Trying 89.16.176.16...
* Connected to mirrors.kodi.tv (89.16.176.16) port 80 (#0)
> GET /addons/helix/plugin.video.awntv/icon.png HTTP/1.1
> User-Agent: curl/7.38.0
> Host: mirrors.kodi.tv
> Accept: */*
>
< HTTP/1.1 302 Found
< Date: Sun, 10 May 2015 09:00:19 GMT
* Server Apache is not blacklisted
< Server: Apache
< X-MirrorBrain-Mirror: ufs.ac.za
< X-MirrorBrain-Realm: other
< Link: <http://mirrors.kodi.tv/addons/helix/plugin.video.awntv/icon.png.meta4>; rel=describedby; type="application/metalink4+xml"
< Link: <http://mirror.ufs.ac.za/xbmc/addons/helix/plugin.video.awntv/icon.png>; rel=duplicate; pri=1; geo=za
< Link: <http://ftp.cc.uoc.gr/mirrors/xbmc/addons/helix/plugin.video.awntv/icon.png>; rel=duplicate; pri=2; geo=gr
< Link: <http://mirror.yandex.ru/mirrors/xbmc/addons/helix/plugin.video.awntv/icon.png>; rel=duplicate; pri=3; geo=ru
< Link: <http://xbmc.mirror.garr.it/mirrors/xbmc/addons/helix/plugin.video.awntv/icon.png>; rel=duplicate; pri=4; geo=it
< Link: <http://ftp.vectranet.pl/xbmc/addons/helix/plugin.video.awntv/icon.png>; rel=duplicate; pri=5; geo=pl
< Digest: MD5=4WSJkuqDg+Qd1AEXuyKffg==
< Digest: SHA=6bTVWFg1CttUQHkPIDWY5U9EHOs=
< Digest: SHA-256=We18RE/Nap+MQfLWVk1ebrnR10iPo5K8S4WYpCCuBJQ=
< Location: http://mirror.ufs.ac.za/xbmc/addons/helix/plugin.video.awntv/icon.png
< Vary: Accept-Encoding
< Content-Length: 253
< Connection: close
< Content-Type: text/html; charset=iso-8859-1
<
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>302 Found</title>
</head><body>
<h1>Found</h1>
<p>The document has moved <a href="http://mirror.ufs.ac.za/xbmc/addons/helix/plugin.video.awntv/icon.png">here</a>.</p>
</body></html>
* Closing connection 0

No, I tried putting osmc in DMZ zone on my router and followed the instruction on the suggested thread but neither worked. My issue was that some things download like skins but other catagories will not. Program addons download but all video adons do not. Internet works for some not for others. Hopefully it will be resolved in a future update

This issue is nearly exclusively only one of two problems. Either a DNS problem or a source repo issue. Try changing your DNS to Google public DNS (8.8.8.8) and or try connecting to source with a different device.

I am already using the 8.8.8.8 DNS, interestingly I cannot get a connection if I try use the default dns to the router. As a workaround I found the zip file of the addon I wanted and used the wget function to download it and manually installed through osmc.
Im not sure about the source repo, If I use xbian or openelec there are no issues. Not sure if they use a different repo

Try editing /etc/connman.prefs and change dnsproxy to no then reboot. You’ll need recent updates (or RC3) installed for this file to exist.

great thanks this worked.

Looks like a bug in the dns forwarder in connman, we have seen a couple of other similar reports.

We might come back to you later and ask you to try some tests with it turned back on, which would help us to track the cause of the problem down, as we can’t reproduce the problem firsthand.

Thanks.

just a quick note on this. I performed another reinstall and this did not work alone. Instead I had to do the same thing outlined in the forum you linked to before which was to update, edit /etc/connan.prefs and then edit edit/usr/bin/start-network
Last time I had missed the step of updating and instead manually created conman.prefs which did not work.

Hi,
Just installed OSMC on my RP2 and I am experiencing the same problem. Now I am almost a complete noob in this matter. Can someone please tell me how to reach the file (etc/connman.prefs )for editing it ? I am able to use putty and get into command mode through a pc :smile:
thanks !