Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

:tzdata_release_updater terminating #14

Closed
madshargreave opened this issue Jan 23, 2016 · 13 comments
Closed

:tzdata_release_updater terminating #14

madshargreave opened this issue Jan 23, 2016 · 13 comments

Comments

@madshargreave
Copy link

After updating to Elixir 1.2.1 I get the following error continously once i start my server

I use

{:tzdata, "~> 0.5.6"}
{:timex, "~> 0.19.2"},
[error] Task #PID<0.634.0> started from :tzdata_release_updater terminating
** (UndefinedFunctionError) undefined function Logger.log/3
    (logger) Logger.log(:debug, "Tzdata polling for update.", [module: Tzdata.ReleaseUpdater, function: "poll_for_update/0", line: 30])
    (tzdata) lib/tzdata/release_updater.ex:30: Tzdata.ReleaseUpdater.poll_for_update/0
    (tzdata) lib/tzdata/release_updater.ex:22: Tzdata.ReleaseUpdater.check_if_time_to_update/0
    (elixir) lib/task/supervised.ex:89: Task.Supervised.do_apply/2
    (elixir) lib/task/supervised.ex:40: Task.Supervised.reply/5
    (stdlib) proc_lib.erl:240: :proc_lib.init_p_do_apply/3
Function: #Function<0.63628506/0 in Tzdata.ReleaseUpdater.init/1>
@lau
Copy link
Owner

lau commented Jan 23, 2016

Is :logger or :tzdata in your applications list?

@madshargreave
Copy link
Author

Yes

@lau
Copy link
Owner

lau commented Jan 23, 2016

Strange. It works for me on Elixir 1.2.1.
It shouldn't be necessary but try deleting the _build dir and see if that helps.

@madshargreave
Copy link
Author

That actually did the trick, thanks

@lau
Copy link
Owner

lau commented Feb 12, 2016

Selv tak. Forresten vil jeg anbefale at bruge https://github.com/lau/calendar ;)

@id4ho
Copy link

id4ho commented Mar 8, 2017

Quick question.. I had this issue with calendar 0.17.2 and elixir 1.3.4. Deleting _build fixed it. Why does that fix this?

@lau
Copy link
Owner

lau commented Mar 8, 2017

@jackvnimble I think you might be seeing a different problem. Try deleting deps, then run mix deps.get and you'll might see it again. Solution: use version "~> 0.5.11" to avoid the problem.

@id4ho
Copy link

id4ho commented Mar 8, 2017

Ah gotcha! I'm stuck to 5.8 through https://github.com/lau/calendar 17.2. Maybe that could be safely bumped? ;)

@lau
Copy link
Owner

lau commented Mar 8, 2017

@jackvnimble Try running
mix deps.unlock tzdata and then mix deps.get

You should see tzdata 0.5.11 on the screen and in the mix.lock file0.5.8 should be replaced with 0.5.11.

~> means that higher patch versions are allowed. E.g. for ~> 0.5.8 versions allowed include 0.5.8, 0.5.9, 0.5.11, 0.5.99999 (if 0.5.99999ever gets released ;) ). But not0.6.0nor0.5.7`.
see https://hexdocs.pm/elixir/Version.html

@id4ho
Copy link

id4ho commented Mar 8, 2017

Ah nice! I'll give that a go

@hubertlepicki
Copy link

What does trigger this error exactly? Like, is it fetching some time zone data on regular basis from time to time?

@suprafly
Copy link

@lau I had this problem and your fix (below) worked. Thanks!

mix deps.unlock tzdata and then mix deps.get

@swaathi
Copy link

swaathi commented Jul 6, 2020

@lau It's 2020 and the only thing that worked is your fix. Thank you! 🙏🏼

mix deps.unlock tzdata and then mix deps.get

I also removed _build and deps folder before doing this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants