TimeZones.jl icon indicating copy to clipboard operation
TimeZones.jl copied to clipboard

Error when updating TimeZones?

Open ccoffrin opened this issue 5 years ago • 3 comments

This may be a non issue, but thought I would mention just the same. A recent package update and got the following message,

   Building TimeZones → `~/.julia/packages/TimeZones/cAGJs/deps/build.log`
┌ Error: Error building `TimeZones`: 
│ 
│ curl: (22) The requested URL returned error: 503
│ ERROR: LoadError: Unable to automatically install 'tzdata2020a' from '/home/cjc/.julia/packages/TimeZones/cAGJs/Artifacts.toml'
│ Stacktrace:
│  [1] error(::String) at ./error.jl:33
│  [2] ensure_artifact_installed(::String, ::Dict{String,Any}, ::String; platform::Pkg.BinaryPlatforms.Platform, verbose::Bool, quiet_download::Bool) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.4/Pkg/src/Artifacts.jl:894
│  [3] do_artifact_str(::String, ::Dict{String,Any}, ::String, ::Module) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.4/Pkg/src/Artifacts.jl:1023
│  [4] #invokelatest#1 at ./essentials.jl:712 [inlined]
│  [5] invokelatest at ./essentials.jl:711 [inlined]
│  [6] macro expansion at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.4/Pkg/src/Artifacts.jl:1058 [inlined]
│  [7] build(::String, ::Array{String,1}, ::String, ::String, ::String; verbose::Bool) at /home/cjc/.julia/packages/TimeZones/cAGJs/src/tzdata/build.jl:52
│  [8] build(::String) at /home/cjc/.julia/packages/TimeZones/cAGJs/src/tzdata/build.jl:113
│  [9] build(::String; force::Bool) at /home/cjc/.julia/packages/TimeZones/cAGJs/src/build.jl:11
│  [10] build at /home/cjc/.julia/packages/TimeZones/cAGJs/src/build.jl:11 [inlined] (repeats 2 times)
│  [11] top-level scope at /home/cjc/.julia/packages/TimeZones/cAGJs/deps/build.jl:3
│  [12] include(::String) at ./client.jl:439
│  [13] top-level scope at none:5
│ in expression starting at /home/cjc/.julia/packages/TimeZones/cAGJs/deps/build.jl:3

└ @ Pkg.Operations /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.4/Pkg/src/Operations.jl:899

However another call to ] build TimeZones seemed to work fine.

ccoffrin avatar Jul 18 '20 22:07 ccoffrin

Thanks for the report. We can possibly implement an automated retry but I'd like to see how rare this issue is first

omus avatar Jul 20 '20 15:07 omus

sounds good.

ccoffrin avatar Jul 20 '20 15:07 ccoffrin

A very similar his error occurred today for one of our internal packages during nightly CI.

┌ Error: Error building `TimeZones`: 
│ [ Info: Downloading 2020a tzdata
│ ┌ Error: Download failed: curl: (7) Failed to connect to data.iana.org port 443: Connection refused
│ └ @ Base download.jl:43
│ ERROR: LoadError: failed process: Process(`curl -s -S -g -L -f -o /eph/builds/.../depot/packages/TimeZones/OjMoF/deps/tzarchive/tzdata2020a.tar.gz https://data.iana.org/time-zones/releases/tzdata2020a.tar.gz`, ProcessExited(7)) [7]

oxinabox avatar Oct 19 '20 12:10 oxinabox

In PR https://github.com/JuliaTime/TimeZones.jl/pull/441 the deps/build.jl was removed so this is no longer an issue. Included in TimeZones release 1.12

omus avatar Aug 22 '23 04:08 omus