Hi - I’m going to start off by introducing myself and explaining how I’ve come to this thread.
I don’t have OSMC, but I am interested in this problem I am a Superuser on Virgin Media’s community forum and my attention was drawn to this issue by a thread claiming Virgin Media are blocking traffic,
Superusers like myself don’t work for Virgin we have been given that status because of how helpful we’ve been to other users. I like to lay the blame where it lies so if I beleived Virgin Media were at fault I would indeed be posting it there.
Here’s what I find when I test.
-
DNS for osmc.tv and apt.osmc.tv resolves to the same IP address meaning the sites are hosted on the same web server (unsurprisingly). And both Virgin Media’s and Google’s public DNS gives the same result.
C:\Users\timdu>nslookup apt.osmc.tv
Server: cache1.service.virginmedia.net
Address: 194.168.4.100
Non-authoritative answer:
Name: apt.osmc.tv
Address: 159.253.212.250C:\Users\timdu>nslookup apt.osmc.tv 8.8.8.8 Server: google-public-dns-a.google.com Address: 8.8.8.8 Non-authoritative answer: Name: apt.osmc.tv Address: 159.253.212.250
-
When I browse to http://apt.osmc.tv I get a 302 redirect to the actual repository location as well I should
-
When I browse to http://osmc.tv I get a 302 redirect to https://osmc.tv - again as expected.
4 I downloaded wget for Windows and confirmed what was happening in the browser here are my wget results.
For apt.osmc.tv
C:\Users\timdu>wget apt.osmc.tv
SYSTEM_WGETRC = c:/progra~1/wget/etc/wgetrc
syswgetrc = C:\Program Files (x86)\GnuWin32/etc/wgetrc
--2017-05-18 07:23:22-- http://apt.osmc.tv/
Resolving apt.osmc.tv... 159.253.212.250
Connecting to apt.osmc.tv|159.253.212.250|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://ftp.fau.de/osmc/osmc/apt/ [following]
--2017-05-18 07:23:22-- http://ftp.fau.de/osmc/osmc/apt/
Resolving ftp.fau.de... 131.188.12.211
Connecting to ftp.fau.de|131.188.12.211|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1364 (1.3K) [text/html]
Saving to: `index.html'
100%[==============================================================================>]
1,364 --.-K/s in 0s
2017-05-18 07:23:22 (27.5 MB/s) - `index.html' saved [1364/1364]
Now for omsc.tv
C:\Users\timdu>wget osmc.tv --no-check-certificate
SYSTEM_WGETRC = c:/progra~1/wget/etc/wgetrc
syswgetrc = C:\Program Files (x86)\GnuWin32/etc/wgetrc
--2017-05-18 12:39:32-- http://osmc.tv/
Resolving osmc.tv... 159.253.212.250
Connecting to osmc.tv|159.253.212.250|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://osmc.tv/ [following]
--2017-05-18 12:39:32-- https://osmc.tv/
Connecting to osmc.tv|159.253.212.250|:443... connected.
WARNING: cannot verify osmc.tv's certificate, issued by `/C=US/O=Let's Encrypt/CN=Let's Encrypt Authority X3':
Unable to locally verify the issuer's authority.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: `index.html.2'
[ <=> ] 114,311 --.-K/s in 0.01s
2017-05-18 12:39:33 (9.64 MB/s) - `index.html.2' saved [114311]
Grindax repeated the tests and again he reached the server but he got a different result.
osmc@osmc:~$ wget apt.osmc.tv
converted 'http://apt.osmc.tv' (ANSI_X3.4-1968) -> 'http://apt.osmc.tv' (UTF-8)
--2017-05-18 08:05:22-- http://apt.osmc.tv/
Resolving apt.osmc.tv (apt.osmc.tv)... 159.253.212.250
Connecting to apt.osmc.tv (apt.osmc.tv)|159.253.212.250|:80... connected.
HTTP request sent, awaiting response... 500 Internal server error
2017-05-18 08:05:22 ERROR 500: Internal server error.
And for osmc.tv
osmc@osmc:~$ wget http://osmc.tv
converted 'http://osmc.tv' (ANSI_X3.4-1968) -> 'http://osmc.tv' (UTF-8)
--2017-05-18 08:14:59-- http://osmc.tv/
Resolving osmc.tv (osmc.tv)... 159.253.212.250
Connecting to osmc.tv (osmc.tv)|159.253.212.250|:80... connected.
HTTP request sent, awaiting response... 500 Internal server error
2017-05-18 08:14:59 ERROR 500: Internal server error.
Finally he did a test to the secure version of the site directly
osmc@osmc:~$ wget https://osmc.tv
converted 'https://osmc.tv' (ANSI_X3.4-1968) -> 'https://osmc.tv' (UTF-8)
--2017-05-18 08:15:13-- https://osmc.tv/
Resolving osmc.tv (osmc.tv)... 159.253.212.250
Connecting to osmc.tv (osmc.tv)|159.253.212.250|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: 'index.html'
index.html [ <=> ] 111.63K --.-KB/s in 0.05s
2017-05-18 08:15:13 (2.00 MB/s) - 'index.html' saved [114311]
So what does this tell us?
In certain circumstances, the 302 redirects in place on your web server are failing and the server is throwing a 500 error instead… The only possible use of proxies I know of on the Virgin Media network are their Web Safe platform, however from past experience where it has caused an issue I’ve seen the DNS lookups actually diverted to the web safe platform. This would be evident in Grindax’s wget results if this were happening.
If I were running the server at osmc.tv, I’d certainly want to be examining my server logs at this point to see if I can figure out what is going on.
HTH
Tim