Coder Social home page Coder Social logo

Comments (6)

lau avatar lau commented on July 22, 2024 2

Thank you for letting me know about you experience :) I definitely think errors messages should be helpful.

I recognize that "offline" installs exist, and they should be supported as well as possible. Updating time zone data for running systems that are not connected to the internet is something that I want to make easier at some point.

from tzdata.

lau avatar lau commented on July 22, 2024

Hi Martin. What do you mean by "the ets file is missing"? An ets file ships with tzdata.

from tzdata.

martin-langhoff avatar martin-langhoff commented on July 22, 2024

Good question. As it's a release (for installation as an rpm) into tightly controlled systems, we are also defining data_dir to point to /var/lib/myapp.

So the ets file gets copied into apps/myapp/rel/myapp/lib/tzdata-0.x.y/priv/release_ets during the build/release process. However, at runtime data_dir is pointing to /var/lib/myapp/.

At my end, I have updated my rpm installer to copy the ets files during %post. That was my mistake. So my application is sorted. However,

  • It does look like an unexpected misbehaviour that it connects to the network, ignoring autoupdate: disabled.
  • The error msg is confusing - why am I getting a network error (nxdomain) at startup of an app when I've configured it to run offline? (ie: autoupdate disabled).

from tzdata.

lau avatar lau commented on July 22, 2024

If there is no ETS file available it tries to download one at startup. It is working as intended. Tzdata cannot work without any time zone data. But it would be helpful if there was a log message or error message when no ETS file is found at startup.

Autoupdate is to update the existing data. The configuration for autoupdate is about checking for new versions periodically. This is a different service from the one checking if any ets files exist at startup.

from tzdata.

martin-langhoff avatar martin-langhoff commented on July 22, 2024

Granted, perhaps we read too much into the meaning of disabling autoupdate. :-)

from tzdata.

martin-langhoff avatar martin-langhoff commented on July 22, 2024

However, "offline" installs do exist, however infrequent they may be... :-)

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.