Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tzdata download URL broken (currently?) #180

Closed
rbvermaa opened this issue Jan 23, 2019 · 7 comments · Fixed by #181
Closed

tzdata download URL broken (currently?) #180

rbvermaa opened this issue Jan 23, 2019 · 7 comments · Fixed by #181

Comments

@rbvermaa
Copy link
Contributor

Our builds that depend on TimeZones.jl started failing due to the inability to download the tzdata. The server returns a 502 Bad gateway error. As this is an external dependency, we cannot do anything until the people who own the website fix the URL.

It seems that downloading from HTTP in stead of HTTPS does work at the moment, so we are using the workaround here to make our builds work again until the issue gets resolved. RelationalAI-oss@a586cef

@rbvermaa
Copy link
Contributor Author

Somehow it looks like they only serve the newest tzdata on https:

$ curl --fail -O https://data.iana.org/time-zones/releases/tzdata2018i.tar.gz
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  368k  100  368k    0     0   403k      0 --:--:-- --:--:-- --:--:--  403k

$ curl --fail -O https://data.iana.org/time-zones/releases/tzdata2018e.tar.gz
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:--  0:00:05 --:--:--     0
curl: (22) The requested URL returned error: 502 

Using http in stead of https works for both links.

@Benardi
Copy link

Benardi commented Jan 23, 2019

Same problem using Debian 9, can't use Genie.jl properly for this reason. Seems to be working under Ubuntu.

@ggiraud
Copy link

ggiraud commented Jan 23, 2019

Couldn't use LibPQ because of this.
Problem solved by using the temp fork:

(v1.1) pkg> add https://github.com/RelationalAI-oss/TimeZones.jl.git#rv-use-http-while-down

And then, reinstalled the depending package.

@Benardi
Copy link

Benardi commented Jan 23, 2019

Same problem using Debian 9, can't use Genie.jl properly for this reason. Seems to be working under Ubuntu.

Seems like tzdata at version 2018i-0+deb9u1 doesn't have such problem (tested).

@omus
Copy link
Member

omus commented Jan 23, 2019

Thanks for reporting this. Interesting that http is working more reliably. I can switch the default over to using HTTP instead of HTTPS but I expect this problem is just with the IANA servers.

@omus
Copy link
Member

omus commented Jan 23, 2019

So looking more closely it appears that I'm using a link that redirects. I'll update the URLs so that no redirects are required. I'll also note that the HTTP link does redirect to HTTPS so it's possible that the URL was just using a failed redirect.

I'll have a PR for this shortly.

@omus
Copy link
Member

omus commented Jan 23, 2019

Should be fixed in v0.8.5 (JuliaLang/METADATA.jl#20816)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants