• 1
  • 2
  • 3
  • 4(current)
  • 5
  • 6
  • 7
Solved [JAPAN only] HTTP 502 Bad Gateway error for most of add-ons, scripts, and skins
#46
I discovered last night that I also have this problem. I am in Japan.

I am going to post a debug log when I get home tonight, but before I do is there any personal information in there, or is it safe to post "as-is"?

Also, what else do you need, just the IP address?
#47
Enable debug, enable curl debug, restart Kodi, download an add-on stop Kodi.
Check the log before uploading. There should not be any personal information in it, but it never hurts to check.
#48
Here is the Curl log.

My IP address at the time was 50 . 31 . 252 . 40
#49
20:11:30 T:10988 DEBUG: CFileCache::Open - opening <xunitytalk/addons/addons.xml.md5> using cache
20:11:30 T:10988 DEBUG: CurlFile::Open(103D4160) http://xty.me/xunitytalk/addons/addons.xml.md5
20:11:40 T:10988 DEBUG: Curl:Big Grinebug - TEXT: Connection timed out after 10000 milliseconds
20:11:40 T:10988 DEBUG: Curl:Big Grinebug - TEXT: Closing connection 0
20:11:40 T:10988 ERROR: CCurlFile::FillBuffer - Failed: Timeout was reached(28)
20:11:40 T:10988 ERROR: CCurlFile::Open failed with code 0 for http://xty.me/xunitytalk/addons/addons.xml.md5

OUR repo works just fine......
#50
What is the point in even trying to help out around here if nobody believes you, even when you post the correct information?

Firstly, no YOUR repo doesn't work fine. I just removed all other repos and retried - same issue.

Secondly, even if YOUR repo was working fine, why would ANOTHER repo not working prevent me installing something from YOUR repo?

Thirdly, why so reticent to admit that there is a problem? Why so snarky?

Here is a new log, with only the Kodi repo. Same issue.
#51
I also experienced same error and I'm staying in Japan.

During checking the issue, I found some interesting things;

1. Reproduce

I can reproduce the issue by using simple wget;

Code:
$ wget http://mirrors.kodi.tv/addons/isengard/resource.language.ko_kr/resource.language.ko_kr-1.0.5.zip
...
Connecting to mirrors.kodi.tv|89.16.176.16|:80... connected.
HTTP request sent, awaiting response... 502 Bad Gateway
2016-01-02 12:20:36 ERROR 502: Bad Gateway.

Source IP address can be taken by;
Code:
$ curl ifconfig.co
52.11.156.178

Here is the list of IP addresses which I could check above.
(BTW, it's unfortunate that this wiki does not support table, or am I missing?)
Code:
| Source IP address | Place of source | Result          |
|-------------------|-----------------|-----------------|
| 52.11.156.178     | U.S.            | Success         |
| 54.173.187.11     | U.S.            | Success         |
| 52.77.246.142     | Singapore       | Success         |
| 52.192.219.178    | Japan           | 502 Bad Gateway |
| 1.79.73.212       | Japan           | 502 Bad Gateway |
| 211.135.205.192   | Japan           | 502 Bad Gateway |
| 61.121.241.17     | Japan           | 502 Bad Gateway |
| 118.87.165.135    | Japan           | 502 Bad Gateway |

This looks indicate that Japan is blocked while U.S. is not.

I guess nginx is configured to redirect to nearest mirror site according to IP source location, but there is some problem in the logic for some region in Asia, which caused 502 error. (just a guess, might be wrong.)


2. Workaruond

During checking, I found "X-Forwarded-For" header makes that access success.

Code:
$ wget --header="X-Forwarded-For: unknown" http://mirrors.kodi.tv/addons/isengard/resource.language.ko_kr/resource.language.ko_kr-1.0.5.zip
...
Connecting to mirrors.kodi.tv (mirrors.kodi.tv)|89.16.176.16|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://mirror.1000mbps.com/xbmc/addons/isengard/resource.language.ko_kr/resource.language.ko_kr-1.0.5.zip [following]
...
2016-01-02 17:37:12 (64.3 KB/s) - `resource.language.ko_kr-1.0.5.zip' saved [82591/82591]

This looks strange, but this is current behavior.
So using http proxy enable to access.

I have squid proxy server access, so I used it to install skins and others.
If you don't have such proxy server, I guess installing squid locally and use it, is easy workaround.

Hope this helps.
#52
I've been experiencing this for the past month or so and thought that my install of OSMC was broken.
However, after a fresh install today I am still seeing the problem.
Like most others with the issue I too am in Japan.

Here is my log after trying to install shoutcast.

http://paste.osmc.io/lofetomule

using a proxy server I was able to overcome the problem
#53
Same thing here in Russia. Some addons and dependencies won't install. Here is the log: http://xbmclogs.com/p5waesp97 .
#54
shouldn't "solved" be removed from the thread title . . . because clearly the issue isn't solved.
#55
Indeed - and as if by magic... Wink
|Banned add-ons (wiki)|Forum rules (wiki)|VPN policy (wiki)|First time user (wiki)|FAQs (wiki) Troubleshooting (wiki)|Add-ons (wiki)|Free content (wiki)|Debug Log (wiki)|

Kodi Blog Posts
#56
Seeing farcus's log, Bad Gateway error happens by accessing;
http://mirrors.kodi.tv/addons/gotham/plu...-2.3.0.zip

Seeing ZdenniZ's log, the error happens by accessing;
http://mirrors.kodi.tv/addons/gotham/scr...-3.3.0.zip

Both is same at my place (My current source IP is 183.74.201.161)

Code:
$ wget "http://mirrors.kodi.tv/addons/gotham/script.module.simplejson/script.module.simplejson-3.3.0.zip"
--2016-01-04 00:26:42--  http://mirrors.kodi.tv/addons/gotham/script.module.simplejson/script.module.simplejson-3.3.0.zip
Resolving mirrors.kodi.tv (mirrors.kodi.tv)... 89.16.176.16
Connecting to mirrors.kodi.tv (mirrors.kodi.tv)|89.16.176.16|:80... connected.
HTTP request sent, awaiting response... 502 Bad Gateway
2016-01-04 00:26:43 ERROR 502: Bad Gateway.
$ wget "http://mirrors.kodi.tv/addons/gotham/plugin.audio.shoutcast/plugin.audio.shoutcast-2.3.0.zip"
...
HTTP request sent, awaiting response... 502 Bad Gateway
2016-01-04 00:29:02 ERROR 502: Bad Gateway.

Anyways, seeing post by server maintainer, I guess they want to see source IP address also, when you experience the issue, which can be taken by accessing (for example) https://www.whatismyip.com/ (or command line exist in my previous post).
#57
My Ip is dynamic, but the current one is 188.168.168.244 so it should be from this subnet anyway.

Image
#58
Quote:My Ip is dynamic, but the current one is ...

I expect this info is fine. Thank you.

Now they have the URL which causing 502 error, and list of source IP addresses which hit error.
I hope this is enough information for them to investigate the cause.
#59
here's mine

118.243.174.252

also dynamic - using asahinet in Japan.
#60
this all seems very strange.
I can now install the shoutcast plugin (don't get the 502 error) but I still get the 502 error on multiple other addons (including ZdenniZ's link - http://mirrors.kodi.tv/addons/gotham/scr...-3.3.0.zip )
  • 1
  • 2
  • 3
  • 4(current)
  • 5
  • 6
  • 7

Logout Mark Read Team Forum Stats Members Help
[JAPAN only] HTTP 502 Bad Gateway error for most of add-ons, scripts, and skins1