Solved Can't install addons
#1
tldr; mirrors.kodi.tv redirects to http://ftp.halifax.rwth-aachen.de, even though there is no HTTP server at that address (only a FTP one).
This should really be fixed, as users redirected to that server will be unable to update or install packages.

Hi,
I recently installed Kodi and found I wasn't able to install any addons. kodi.log contained the following:
Code:
20:31:29 T:140349380097792   ERROR: CCurlFile::FillBuffer - Failed: Couldn't connect to server(7)
20:31:29 T:140349380097792   ERROR: CRepository: Failed to parse addons.xml. Malformated.
20:31:29 T:140349380097792   ERROR: CRepositoryUpdateJob[repository.xbmc.org] failed to read or parse directory 'http://mirrors.kodi.tv/addons/jarvis/addons.xml.gz'

Upon attempting to load that URL, I found the following:
Code:
$ curl -v http://mirrors.kodi.tv/addons/jarvis/addons.xml.gz
*   Trying 89.16.176.16...
* Connected to mirrors.kodi.tv (89.16.176.16) port 80 (#0)
> GET /addons/jarvis/addons.xml.gz HTTP/1.1
> Host: mirrors.kodi.tv
> User-Agent: curl/7.47.1
> Accept: */*
>
< HTTP/1.1 302 Found
< Server: nginx
< Date: Thu, 14 Apr 2016 11:53:46 GMT
< Content-Type: text/html; charset=utf-8
< Content-Length: 89
< Connection: close
< Cache-Control: private, no-cache
< Location: http://ftp.halifax.rwth-aachen.de/xbmc/addons/jarvis/addons.xml.gz
< X-Frame-Options: SAMEORIGIN
<
<a href="http://ftp.halifax.rwth-aachen.de/xbmc/addons/jarvis/addons.xml.gz">Found</a>.

* Closing connection 0

However, trying to curl that link yields the following:
Code:
$ curl -v http://ftp.halifax.rwth-aachen.de/xbmc/addons/jarvis/addons.xml.gz
*   Trying 137.226.34.46...
*   Trying 2a00:8a60:e012:a00::21...
* Immediate connect fail for 2a00:8a60:e012:a00::21: Network is unreachable
* connect to 137.226.34.46 port 80 failed: Connection refused
*   Trying 2a00:8a60:e012:a00::21...
* Immediate connect fail for 2a00:8a60:e012:a00::21: Network is unreachable
*   Trying 2a00:8a60:e012:a00::21...
* Immediate connect fail for 2a00:8a60:e012:a00::21: Network is unreachable
* Failed to connect to ftp.halifax.rwth-aachen.de port 80: Connection refused
* Closing connection 0
curl: (7) Failed to connect to ftp.halifax.rwth-aachen.de port 80: Connection refused

Changing the protocol to ftp:// fixes the problem, but I couldn't figure out how to change the system repository URL in Kodi. As a workaround, I configured /etc/hosts to resolve mirrors.kodi.tv to 127.0.0.1, and added the following section to /etc/nginx/nginx.conf
Code:
server {
        server_name mirrors.kodi.tv;

        location / {
            proxy_pass http://mirror.hro.nl/xbmc/;
        }
    }

This works fine for me, but others will probably get stuck on this.

I'm running Kodi 16.0 on Sabayon Linux.
Reply
#2
moved to proper forum.
Reply

Logout Mark Read Team Forum Stats Members Help
Can't install addons0