Coder Social home page Coder Social logo

ArgumentError in Tzdata update about tzdata HOT 5 CLOSED

lau avatar lau commented on July 22, 2024 5
ArgumentError in Tzdata update

from tzdata.

Comments (5)

lau avatar lau commented on July 22, 2024 3

Thanks everyone for the feedback.

It looks like iana.org is returned a slightly different modified at timestamp for the same 2017c release.
The two different ones I have seen are Last-Modified: Mon, 23 Oct 2017 15:20:26 GMT and
Last-Modified: Mon, 23 Oct 2017 15:19:20 GMT.

Because of a changed Last-Modified timestamp, Tzdata expects that there is a new version, and it will download it and try to create a new table for it. But it is the same version, so it crashes when trying to create an already existing ETS table for 2017c.

The crashes are noise, but I expect things to otherwise function as expected. Because it is only the updater that crashes and it should be restarted.

A way to handle this more gracefully and avoid crashing the updater is to check if the newly downloaded version is the same as the already existing version. And if the downloaded version is not a newer version, just stop there, create a log entry about what happened, and not try to create a new ETS table. I hope to have a new version out that handles this more gracefully.

from tzdata.

lau avatar lau commented on July 22, 2024 1

A new version that fixes the issue has been released: 0.5.13

from tzdata.

sickill avatar sickill commented on July 22, 2024

Started getting the same couple of hours ago.

from tzdata.

paulswartz avatar paulswartz commented on July 22, 2024

Short term fix: rm -r deps/tzdata/priv/*

from tzdata.

ishikawa avatar ishikawa commented on July 22, 2024

@paulswartz Certainly we use CircleCI to build our releases and cache deps directory. I’ll try to rebuild without cache. Thanks to your advice!

from tzdata.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.