{"action":"created","issue":{"url":"https://api.github.com/repos/appsignal/appsignal-elixir/issues/273","repository_url":"https://api.github.com/repos/appsignal/appsignal-elixir","labels_url":"https://api.github.com/repos/appsignal/appsignal-elixir/issues/273/labels{/name}","comments_url":"https://api.github.com/repos/appsignal/appsignal-elixir/issues/273/comments","events_url":"https://api.github.com/repos/appsignal/appsignal-elixir/issues/273/events","html_url":"https://github.com/appsignal/appsignal-elixir/issues/273","id":272015007,"number":273,"title":"Upgraded from 1.3.5 to 1.4.0, getting Nif and logger error","user":{"login":"doughsay","id":221693,"avatar_url":"https://avatars0.githubusercontent.com/u/221693?v=4","gravatar_id":"","url":"https://api.github.com/users/doughsay","html_url":"https://github.com/doughsay","followers_url":"https://api.github.com/users/doughsay/followers","following_url":"https://api.github.com/users/doughsay/following{/other_user}","gists_url":"https://api.github.com/users/doughsay/gists{/gist_id}","starred_url":"https://api.github.com/users/doughsay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/doughsay/subscriptions","organizations_url":"https://api.github.com/users/doughsay/orgs","repos_url":"https://api.github.com/users/doughsay/repos","events_url":"https://api.github.com/users/doughsay/events{/privacy}","received_events_url":"https://api.github.com/users/doughsay/received_events","type":"User","site_admin":false},"labels":[{"id":412561703,"url":"https://api.github.com/repos/appsignal/appsignal-elixir/labels/bug","name":"bug","color":"db1010","default":true},{"id":724570590,"url":"https://api.github.com/repos/appsignal/appsignal-elixir/labels/support","name":"support","color":"efaa04","default":false}],"state":"closed","locked":false,"assignee":{"login":"jeffkreeftmeijer","id":43621,"avatar_url":"https://avatars0.githubusercontent.com/u/43621?v=4","gravatar_id":"","url":"https://api.github.com/users/jeffkreeftmeijer","html_url":"https://github.com/jeffkreeftmeijer","followers_url":"https://api.github.com/users/jeffkreeftmeijer/followers","following_url":"https://api.github.com/users/jeffkreeftmeijer/following{/other_user}","gists_url":"https://api.github.com/users/jeffkreeftmeijer/gists{/gist_id}","starred_url":"https://api.github.com/users/jeffkreeftmeijer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeffkreeftmeijer/subscriptions","organizations_url":"https://api.github.com/users/jeffkreeftmeijer/orgs","repos_url":"https://api.github.com/users/jeffkreeftmeijer/repos","events_url":"https://api.github.com/users/jeffkreeftmeijer/events{/privacy}","received_events_url":"https://api.github.com/users/jeffkreeftmeijer/received_events","type":"User","site_admin":false},"assignees":[{"login":"jeffkreeftmeijer","id":43621,"avatar_url":"https://avatars0.githubusercontent.com/u/43621?v=4","gravatar_id":"","url":"https://api.github.com/users/jeffkreeftmeijer","html_url":"https://github.com/jeffkreeftmeijer","followers_url":"https://api.github.com/users/jeffkreeftmeijer/followers","following_url":"https://api.github.com/users/jeffkreeftmeijer/following{/other_user}","gists_url":"https://api.github.com/users/jeffkreeftmeijer/gists{/gist_id}","starred_url":"https://api.github.com/users/jeffkreeftmeijer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeffkreeftmeijer/subscriptions","organizations_url":"https://api.github.com/users/jeffkreeftmeijer/orgs","repos_url":"https://api.github.com/users/jeffkreeftmeijer/repos","events_url":"https://api.github.com/users/jeffkreeftmeijer/events{/privacy}","received_events_url":"https://api.github.com/users/jeffkreeftmeijer/received_events","type":"User","site_admin":false}],"milestone":null,"comments":10,"created_at":"2017-11-07T22:56:39Z","updated_at":"2018-02-02T15:27:44Z","closed_at":"2017-11-13T12:10:34Z","author_association":"NONE","body":"I'm deploying using docker containers and distillery, on an alpine linux base.  Appsignal has been working fine for quite a while now, but the upgrade to 1.4.0 broke.\r\n\r\nI think the most relevant bit is here:\r\n\r\n```\r\n{#{'__exception__'=>true,'__struct__'=>'Elixir.RuntimeError',message=><<\"cannot use Logger, the :logger application is not running\">>},[{'Elixir.Logger.Config','__data__',0,[{file,\"lib/logger/config.ex\"},{line,53}]},{'Elixir.Logger',bare_log,3,[{file,\"lib/logger.ex\"},{line,576}]},{'Elixir.Appsignal.Nif',init,0,[{file,\"lib/appsignal/nif.ex\"},{line,46}]},{init,'-run_on_load_handlers/2-fun-0-',1,[]}]}\r\n```\r\n\r\nLooks like it's failing to log something because Logger isn't running; which is weird, because usually it is running...  But also, the only reason I see that it *would* be trying to log in this situation is to tell me that the nif is incompatible.  But it's worked so far?\r\n\r\nAnyway, the full crash report is below in case it helps:\r\n\r\n```\r\n2017-11-07T22:35:15.761479315Z 2017-11-07 22:35:15 Error in process ~p on node ~p with exit value:~n~p~n\r\n2017-11-07T22:35:15.761922615Z \t\t\t2017-11-07 22:35:15 crash_report\r\n2017-11-07T22:35:15.762689717Z     initial_call:     pid:     registered_name:     error_info:     ancestors:     message_queue_len:     messages:     links:     dictionary:     trap_exit:     status:     heap_size:     stack_size:     reductions: 2017-11-07 22:35:15 supervisor_report\r\n2017-11-07T22:35:15.761569353Z <0.2536.0>\r\n2017-11-07T22:35:15.761596493Z 'noreaga@10.5.0.16'\r\n2017-11-07T22:35:15.761833826Z {#{'__exception__'=>true,'__struct__'=>'Elixir.RuntimeError',message=><<\"cannot use Logger, the :logger application is not running\">>},[{'Elixir.Logger.Config','__data__',0,[{file,\"lib/logger/config.ex\"},{line,53}]},{'Elixir.Logger',bare_log,3,[{file,\"lib/logger.ex\"},{line,576}]},{'Elixir.Appsignal.Nif',init,0,[{file,\"lib/appsignal/nif.ex\"},{line,46}]},{init,'-run_on_load_handlers/2-fun-0-',1,[]}]}\r\n2017-11-07T22:35:15.762022414Z {supervisor,kernel,['Argument__1']}\r\n2017-11-07T22:35:15.762035236Z <0.2522.0>\r\n2017-11-07T22:35:15.762055666Z []\r\n2017-11-07T22:35:15.762370978Z {exit,{on_load_function_failed,'Elixir.Appsignal.Nif'},[{init,run_on_load_handlers,0,[]},{kernel,init,1,[{file,\"kernel.erl\"},{line,217}]},{supervisor,init,1,[{file,\"supervisor.erl\"},{line,294}]},{gen_server,init_it,2,[{file,\"gen_server.erl\"},{line,365}]},{gen_server,init_it,6,[{file,\"gen_server.erl\"},{line,333}]},{proc_lib,init_p_do_apply,3,[{file,\"proc_lib.erl\"},{line,247}]}]}\r\n2017-11-07T22:35:15.762392017Z [kernel_sup,<0.2498.0>]\r\n2017-11-07T22:35:15.762596726Z 0\r\n2017-11-07T22:35:15.762615369Z []\r\n2017-11-07T22:35:15.762620583Z [<0.2499.0>]\r\n2017-11-07T22:35:15.762623317Z []\r\n2017-11-07T22:35:15.762625441Z true\r\n2017-11-07T22:35:15.762631172Z running\r\n2017-11-07T22:35:15.762633376Z 610\r\n2017-11-07T22:35:15.762635406Z 27\r\n2017-11-07T22:35:15.762637384Z 235\r\n2017-11-07T22:35:15.762643134Z {local,kernel_sup}\r\n2017-11-07T22:35:15.762794790Z start_error\r\n2017-11-07T22:35:15.762806201Z {on_load_function_failed,'Elixir.Appsignal.Nif'}\r\n2017-11-07T22:35:15.762993317Z [{pid,undefined},{id,kernel_safe_sup},{mfargs,{supervisor,start_link,[{local,kernel_safe_sup},kernel,safe]}},{restart_type,permanent},{shutdown,infinity},{child_type,supervisor}]\r\n2017-11-07T22:35:16.768307679Z     supervisor:     errorContext:     reason:     offender: 2017-11-07 22:35:16 crash_report\r\n2017-11-07T22:35:16.768461630Z {application_master,init,['Argument__1','Argument__2','Argument__3','Argument__4']}\r\n2017-11-07T22:35:16.768526621Z <0.2497.0>\r\n2017-11-07T22:35:16.768537816Z []\r\n2017-11-07T22:35:16.768543637Z {exit,{{shutdown,{failed_to_start_child,kernel_safe_sup,{on_load_function_failed,'Elixir.Appsignal.Nif'}}},{kernel,start,[normal,[]]}},[{application_master,init,4,[{file,\"application_master.erl\"},{line,134}]},{proc_lib,init_p_do_apply,3,[{file,\"proc_lib.erl\"},{line,247}]}]}\r\n2017-11-07T22:35:16.768619173Z [<0.2496.0>]\r\n2017-11-07T22:35:16.768628768Z 1\r\n2017-11-07T22:35:16.768639131Z [{'EXIT',<0.2498.0>,normal}]\r\n2017-11-07T22:35:16.768645637Z [<0.2496.0>,<0.2495.0>]\r\n2017-11-07T22:35:16.768651604Z []\r\n2017-11-07T22:35:16.768657043Z true\r\n2017-11-07T22:35:16.768663533Z running\r\n2017-11-07T22:35:16.768669277Z 376\r\n2017-11-07T22:35:16.768680964Z 27\r\n2017-11-07T22:35:16.768684494Z 213\r\n2017-11-07T22:35:16.769642625Z kernel\r\n2017-11-07T22:35:16.769560286Z     initial_call:     pid:     registered_name:     error_info:     ancestors:     message_queue_len:     messages:     links:     dictionary:     trap_exit:     status:     heap_size:     stack_size:     reductions: 2017-11-07 22:35:16 std_info\r\n2017-11-07T22:35:16.770419934Z {{shutdown,{failed_to_start_child,kernel_safe_sup,{on_load_function_failed,'Elixir.Appsignal.Nif'}}},{kernel,start,[normal,[]]}}\r\n2017-11-07T22:35:16.770457854Z permanent\r\n2017-11-07T22:35:17.271584900Z {\"Kernel pid terminated\",application_controller,\"{application_start_failure,kernel,{{shutdown,{failed_to_start_child,kernel_safe_sup,{on_load_function_failed,'Elixir.Appsignal.Nif'}}},{kernel,start,[normal,[]]}}}\"}\r\n2017-11-07T22:35:17.271784149Z     application:     exited:     type: Kernel pid terminated (application_controller) ({application_start_failure,kernel,{{shutdown,{failed_to_start_child,kernel_safe_sup,{on_load_function_failed,'Elixir.Appsignal.Nif'}}},{kernel,start,[no\r\n2017-11-07T22:35:17.275109211Z\r\n2017-11-07T22:35:19.286544783Z Crash dump is being written to: erl_crash.dump...done\r\n```"},"comment":{"url":"https://api.github.com/repos/appsignal/appsignal-elixir/issues/comments/362617322","html_url":"https://github.com/appsignal/appsignal-elixir/issues/273#issuecomment-362617322","issue_url":"https://api.github.com/repos/appsignal/appsignal-elixir/issues/273","id":362617322,"user":{"login":"joshuataylor","id":225131,"avatar_url":"https://avatars2.githubusercontent.com/u/225131?v=4","gravatar_id":"","url":"https://api.github.com/users/joshuataylor","html_url":"https://github.com/joshuataylor","followers_url":"https://api.github.com/users/joshuataylor/followers","following_url":"https://api.github.com/users/joshuataylor/following{/other_user}","gists_url":"https://api.github.com/users/joshuataylor/gists{/gist_id}","starred_url":"https://api.github.com/users/joshuataylor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joshuataylor/subscriptions","organizations_url":"https://api.github.com/users/joshuataylor/orgs","repos_url":"https://api.github.com/users/joshuataylor/repos","events_url":"https://api.github.com/users/joshuataylor/events{/privacy}","received_events_url":"https://api.github.com/users/joshuataylor/received_events","type":"User","site_admin":false},"created_at":"2018-02-02T15:27:44Z","updated_at":"2018-02-02T15:27:44Z","author_association":"NONE","body":"This is why we don't cache on CI/CD and do a fresh build.\r\n\r\nAlso `mix deps.clean appsignal` hasn't worked for me when I'm developing locally, I see this a few times a day when I'm in one of my umbrella apps, then change to another that uses phoenix/absinthe and it fails."}}
{"actor":{"display_login":"joshuataylor"}}