Comments (6)
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.
Hi Martin. What do you mean by "the ets file is missing"? An ets file ships with tzdata.
from tzdata.
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.
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.
Granted, perhaps we read too much into the meaning of disabling autoupdate. :-)
from tzdata.
However, "offline" installs do exist, however infrequent they may be... :-)
from tzdata.
Related Issues (20)
- Erlang 23 HTTPC support - update Hackney to ~> 1.16 HOT 2
- IANA data does not seem to be correctly parsed for America/Whitehorse (Canada/Yukon) and America/Dawson HOT 5
- Compiler warnings on Elixir 1.11.0
- Possible to force HTTP client Hackney
- Invalid gap for the first naive datetime in the gap range
- tzdata_current_release raise an argument error
- Method to convert an alias to a canonical zone? HOT 1
- Dropping hackney dependency HOT 10
- Tzdata 2.0 plans HOT 4
- GenServer Tzdata.EtsHolder terminating when update HOT 9
- GenServer :tzdata_release_updater terminating HOT 8
- (FunctionClauseError) no function clause matching in Keyword.delete_key/3 HOT 3
- Configurable download_url HOT 2
- Tzdata.ReleaseUpdater argument error HOT 3
- Argument Error on :ets.lookup in ReleaseReader
- UndefinedFunctionError or wrong gap when date-time hits exactly the start of a gap HOT 1
- Tzdata polling for update HOT 9
- Function to list possible offsets for a time zone HOT 1
- Question: why were the functions related to `zone1970.tab` data removed (module `TableData`)? HOT 4
- Ability to download fresh tz release during build HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tzdata.