Kodi Community Forum
Solved [JAPAN only] HTTP 502 Bad Gateway error for most of add-ons, scripts, and skins - Printable Version

Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Discussions (https://forum.kodi.tv/forumdisplay.php?fid=222)
+--- Forum: Website and Forum Issues or Suggestions (https://forum.kodi.tv/forumdisplay.php?fid=35)
--- Thread: Solved [JAPAN only] HTTP 502 Bad Gateway error for most of add-ons, scripts, and skins (/showthread.php?tid=237874)

Pages: 1 2 3 4 5 6 7


[JAPAN only] HTTP 502 Bad Gateway error for most of add-ons, scripts, and skins - tars - 2015-09-05

Since v.15.0, I've been having trouble installing add-ons. First, language & skins won't install, and now most basic add-ons won't be installed.
Log file points at HTTP 502 Bad Gateway error for all the cases of failed installation.

<For Updating Versioncheck>

12:01:25 T:6048 DEBUG: FileManager: copy http://mirrors.kodi.tv/addons/gotham/service.xbmc.versioncheck/service.xbmc.versioncheck-0.3.7.zip|Referer=service.xbmc.versioncheck-0.3.6.zip -> special://home/addons/packages/service.xbmc.versioncheck-0.3.7.zip
12:01:25 T:6048 DEBUG: CurlFile::Open(090AEE28) http://mirrors.kodi.tv/addons/gotham/service.xbmc.versioncheck/service.xbmc.versioncheck-0.3.7.zip
12:01:25 T:6048 ERROR: CCurlFile::FillBuffer - Failed: HTTP returned error 502
12:01:25 T:6048 ERROR: CCurlFile::Open failed with code 502 for http://mirrors.kodi.tv/addons/gotham/service.xbmc.versioncheck/service.xbmc.versioncheck-0.3.7.zip|Referer=service.xbmc.versioncheck-0.3.6.zip
12:01:25 T:6048 ERROR: CAddonInstallJob[service.xbmc.versioncheck]: failed to download special://home/addons/packages/service.xbmc.versioncheck-0.3.7.zip

<For installing Universal Movie Scraper>

13:24:45 T:2388 ERROR: CCurlFile::FillBuffer - Failed: HTTP returned error 502
13:24:45 T:2388 ERROR: CCurlFile::Open failed with code 502 for http://mirrors.kodi.tv/addons/gotham/metadata.common.movieposterdb.com/metadata.common.movieposterdb.com-1.1.2.zip|Referer=metadata.universal-2.6.5.zip
13:24:45 T:2388 ERROR: CAddonInstallJob[metadata.common.movieposterdb.com]: failed to download special://home/addons/packages/metadata.common.movieposterdb.com-1.1.2.zip
13:24:45 T:2388 ERROR: CAddonInstallJob[metadata.universal]: failed to install dependency metadata.common.movieposterdb.com

<For installing Backup add-on>

13:29:49 T:4908 ERROR: CCurlFile::FillBuffer - Failed: HTTP returned error 502
13:29:49 T:4908 ERROR: CCurlFile::Open failed with code 502 for http://mirrors.kodi.tv/addons/gotham/script.module.googleapi/script.module.googleapi-1.4.0.zip|Referer=script.xbmcbackup-1.0.6.zip
13:29:49 T:4908 ERROR: CAddonInstallJob[script.module.googleapi]: failed to download special://home/addons/packages/script.module.googleapi-1.4.0.zip
13:29:49 T:4908 ERROR: CAddonInstallJob[script.xbmcbackup]: failed to install dependency script.module.googleapi

If I go to the corresponding site on a browser, I get the same 502 error. For some, I was able to download and install manually, but most of them won't be downloaded.


RE: Keep getting HTTP 502 Bad Gateway error for most of add-ons, scripts, and skins - tars - 2015-09-05

It's still not working and looks like it's not only me:

237875 (thread)

237493 (thread)


As I said earlier, it's not an intermittent issue as I observed languages and skin installation have not been working for weeks.

Please check if the mirror server is working fine. It could be responding differently to requests from different regions.


RE: Keep getting HTTP 502 Bad Gateway error for most of add-ons, scripts, and skins - Martijn - 2015-09-05

server is working just fine.
HTTP returned error 502 means the error is very likely on your end else there would be many thousands of other complaints as well


RE: Keep getting HTTP 502 Bad Gateway error for most of add-ons, scripts, and skins - tars - 2015-09-05

(2015-09-05, 14:03)Martijn Wrote: server is working just fine.
HTTP returned error 502 means the error is very likely on your end else there would be many thousands of other complaints as well

Maybe I should make myself clearer. It's not that I can't access the repo site at all.
I can access the mirror server for parent folders of the zip files, but clicking on the file gives me the 502 error like the following screenshot.


Image


I get the same both from a Windows 10 laptop and an Android tablet of mine, so it's not an OS or machine issue.

If you mean you don't yet have enough complaints to make you guys actually look into the issue, then I guess I should wait.


RE: Keep getting HTTP 502 Bad Gateway error for most of add-ons, scripts, and skins - Martijn - 2015-09-05

We have many, many, many millions of downloads of files each day so if it was a problem on our side we would know


RE: Keep getting HTTP 502 Bad Gateway error for most of add-ons, scripts, and skins - tars - 2015-09-05

(2015-09-05, 15:04)Martijn Wrote: We have many, many, many millions of downloads of files each day so if it was a problem on our side we would know

So now you know it's not working properly for some users.


RE: Keep getting HTTP 502 Bad Gateway error for most of add-ons, scripts, and skins - PatK - 2015-09-05

(2015-09-05, 15:08)tars Wrote:
(2015-09-05, 15:04)Martijn Wrote: We have many, many, many millions of downloads of files each day so if it was a problem on our side we would know

So now you know it's not working properly for some users.
Try a different mirror site


RE: Keep getting HTTP 502 Bad Gateway error for most of add-ons, scripts, and skins - tars - 2015-09-05

(2015-09-05, 18:27)PatK Wrote: Try a different mirror site

That works, but requires lots of work for a simple add-on to manually download and install a chain of required dependencies through repeated (interrupted) installation attempts.
Anyway that's the only way working for me for now. Thanks for the tip!

Hopefully you guys will resolve the original issue soon.


RE: Keep getting HTTP 502 Bad Gateway error for most of add-ons, scripts, and skins - sahilmdoshi - 2015-09-06

I am having the same issue as you. How were you able to solve this issue? What different mirror site?


RE: Keep getting HTTP 502 Bad Gateway error for most of add-ons, scripts, and skins - tars - 2015-09-06

(2015-09-06, 05:17)sahilmdoshi Wrote: I am having the same issue as you. How were you able to solve this issue? What different mirror site?

No real solution yet, just a band-aid one for a few urgent add-ons.

This page (Mirror_list (wiki)) lists mirror sites most of which working for me. Then you go to one of them, get the missing dependency, and install it manually. Try installing the add-on again and find out the next missing dependency, and so on. As I said, it's a lot of manual work.


RE: Keep getting HTTP 502 Bad Gateway error for most of add-ons, scripts, and skins - YoBing - 2015-09-06

how about using proxy server? I mean, change to another country's IP.
I heard some country had a same problem and they used VPN or proxy server.
but it is also a lot of manual work for installation.


RE: Keep getting HTTP 502 Bad Gateway error for most of add-ons, scripts, and skins - mikiok36 - 2015-09-06

I have the same problem as tars.
The version is 15.1.

For the installation of Japanese language the log says:
00:50:59 T:140024261433088 ERROR: CCurlFile::Open failed with code 502 for http://mirrors.kodi.tv/addons/isengard/resource.language.ja_jp/resource.language.ja_jp-1.0.4.zip

I am in Japan, and I know some people in Japan have the same problem.

I suppose the problem is in the mirror server to which the requests
from Japan are redirected, for the error does not occur when I use a
web proxy in US.


RE: Keep getting HTTP 502 Bad Gateway error for most of add-ons, scripts, and skins - tars - 2015-09-06

How many more complaints do we need to make people actually look into the issue? I am pretty sure millions of downloads are still occurring at this moment with the mirror server, but that does not necessarily mean everything is fine.


RE: Keep getting HTTP 502 Bad Gateway error for most of add-ons, scripts, and skins - scott967 - 2015-09-06

I get reports now and then from users of a skin I maintain that they are trying to install the skin but it doesn't work -- reason is always one or more dependencies didn't download from Kodi servers. I tell them to retry later and that seems to work.

scott s.
.


RE: Keep getting HTTP 502 Bad Gateway error for most of add-ons, scripts, and skins - Wintermute0110 - 2015-09-07

I am also in Japan and can confirm this bug as stated by op.

This is repeated every few minutes in Kodibuntu log, when Kodi tries to update the addons.

Code:
01:52:55 T:140517908150016   ERROR: CCurlFile::FillBuffer - Failed: HTTP returned error 502
01:52:55 T:140517908150016   ERROR: CCurlFile::Open failed with code 502 for http://mirrors.kodi.tv/addons/helix/service.library.data.provider/service.library.data.provider-0.1.2.zip|Referer=service.library.data.provider-0.0.9.zip
01:52:55 T:140517908150016   ERROR: CAddonInstallJob[service.library.data.provider]: failed to download special://home/addons/packages/service.library.data.provider-0.1.2.zip
01:52:55 T:140518670399232  NOTICE: Thread JobWorker start, auto delete: true
01:52:56 T:140518670399232   ERROR: CCurlFile::FillBuffer - Failed: HTTP returned error 502
01:52:56 T:140518670399232   ERROR: CCurlFile::Open failed with code 502 for http://mirrors.kodi.tv/addons/helix/service.scrobbler.lastfm/service.scrobbler.lastfm-1.1.1.zip|Referer=service.scrobbler.lastfm-0.1.0.zip
01:52:56 T:140518670399232   ERROR: CAddonInstallJob[service.scrobbler.lastfm]: failed to download special://home/addons/packages/service.scrobbler.lastfm-1.1.1.zip
01:52:56 T:140518420883200  NOTICE: Thread FileCache start, auto delete: false
01:52:57 T:140518670399232   ERROR: CCurlFile::FillBuffer - Failed: HTTP returned error 502
01:52:57 T:140518670399232   ERROR: CCurlFile::Open failed with code 502 for http://mirrors.kodi.tv/addons/isengard/weather.openweathermap.extended/weather.openweathermap.extended-2.0.4.zip|Referer=weather.openweathermap.extended-0.0.7.zip
01:52:57 T:140518670399232   ERROR: CAddonInstallJob[weather.openweathermap.extended]: failed to download special://home/addons/packages/weather.openweathermap.extended-2.0.4.zip
01:52:57 T:140518579238656   ERROR: CCurlFile::Stat - Failed: HTTP response code said error(22) for http://mirrors.kodi.tv/addons/gotham/script.module.routing/script.module.routing-0.2.0.zip|Referer=plugin.video.mms-4.0.1.zip
01:52:57 T:140518579238656   ERROR: CCurlFile::FillBuffer - Failed: HTTP returned error 502
01:52:57 T:140518579238656   ERROR: CCurlFile::Open failed with code 502 for http://mirrors.kodi.tv/addons/gotham/script.module.routing/script.module.routing-0.2.0.zip|Referer=plugin.video.mms-4.0.1.zip
01:52:57 T:140518579238656   ERROR: CAddonInstallJob[script.module.routing]: failed to download special://home/addons/packages/script.module.routing-0.2.0.zip
01:52:57 T:140518579238656   ERROR: CAddonInstallJob[plugin.video.mms]: failed to install dependency script.module.routing

If I open the addon URLs from my laptop (also using Linux) they work OK. However, it seems Kodi is having trouble getting some of the addon URLs.