lau / tzdata

tzdata for Elixir. Born from the Calendar library.
MIT License
303 stars 71 forks source link

timezone :tz_release_updater terminating #151

Open alpeshjamgade opened 1 month ago

alpeshjamgade commented 1 month ago

can anyone help me on this, since last few days facing this issue in production. everything in build is the same including library version. suddenly getting this issue.

:tzdata, "~> 1.0" elixir 1.11.2 erlang 23.0

Error:

10:31:56.726 [error] GenServer :tzdata_release_updater terminating ** (ArgumentError) argument error :erlang.element(1, :error) (tzdata 1.1.1) lib/tzdata/util.ex:223: Tzdata.Util.to_int/1 (tzdata 1.1.1) lib/tzdata/parser.ex:38: Tzdata.Parser.process_rule/1 (tzdata 1.1.1) lib/tzdata/parser.ex:24: Tzdata.Parser.process_tz_list/1 (tzdata 1.1.1) lib/tzdata/parser.ex:86: Tzdata.Parser.process_zone/5 (tzdata 1.1.1) lib/tzdata/parser.ex:24: Tzdata.Parser.process_tz_list/1 (tzdata 1.1.1) lib/tzdata/parser.ex:86: Tzdata.Parser.process_zone/5 (tzdata 1.1.1) lib/tzdata/parser.ex:24: Tzdata.Parser.process_tz_list/1 (tzdata 1.1.1) lib/tzdata/parser.ex:86: Tzdata.Parser.process_zone/5 (tzdata 1.1.1) lib/tzdata/parser.ex:24: Tzdata.Parser.process_tz_list/1 (tzdata 1.1.1) lib/tzdata/parser.ex:86: Tzdata.Parser.process_zone/5 (tzdata 1.1.1) lib/tzdata/parser.ex:24: Tzdata.Parser.process_tz_list/1 (tzdata 1.1.1) lib/tzdata/parser.ex:86: Tzdata.Parser.process_zone/5 (tzdata 1.1.1) lib/tzdata/parser.ex:24: Tzdata.Parser.process_tz_list/1 (tzdata 1.1.1) lib/tzdata/parser.ex:86: Tzdata.Parser.process_zone/5 (tzdata 1.1.1) lib/tzdata/parser.ex:24: Tzdata.Parser.process_tz_list/1 (tzdata 1.1.1) lib/tzdata/parser.ex:86: Tzdata.Parser.process_zone/5 (tzdata 1.1.1) lib/tzdata/parser.ex:24: Tzdata.Parser.process_tz_list/1 (tzdata 1.1.1) lib/tzdata/parser.ex:86: Tzdata.Parser.process_zone/5 (tzdata 1.1.1) lib/tzdata/parser.ex:24: Tzdata.Parser.process_tz_list/1 Last message: :check_if_time_to_update State: []

peaceful-james commented 1 month ago

Can you upgrade to latest version (1.1.2)?

https://github.com/lau/tzdata/commit/ba42b763610f3ce890f4e00f58b9b969d7a3d5c6

image

From your stacktrace:

:erlang.element(1, :error)

You can see the commit I linked and screenshotted changes a line to return a tuple instead of an int. I think this is at the heart of your issue.

fortmarek commented 1 month ago

Thanks @peaceful-james!

We were seeing the same issue and upgrading tzdata resolved it for us.