Skip to content

Instantly share code, notes, and snippets.

@matiasgarciaisaia
Last active January 4, 2018 20:58
Show Gist options
  • Save matiasgarciaisaia/00a135073b2bfe18a49d9386207aaa3b to your computer and use it in GitHub Desktop.
Save matiasgarciaisaia/00a135073b2bfe18a49d9386207aaa3b to your computer and use it in GitHub Desktop.
ActiveMonitoring Broker error (see comments for more info)
1/4/2018 5:44:45 PMwarning: variable "deps" does not exist and is being expanded to "deps()", please use parentheses to remove the ambiguity or change the variable name
1/4/2018 5:44:45 PM /app/deps/coherence/mix.exs:15
1/4/2018 5:44:45 PM
1/4/2018 5:44:45 PMwarning: variable "package" does not exist and is being expanded to "package()", please use parentheses to remove the ambiguity or change the variable name
1/4/2018 5:44:45 PM /app/deps/coherence/mix.exs:16
1/4/2018 5:44:45 PM
1/4/2018 5:44:45 PM
1/4/2018 5:44:45 PM20:44:45.887 [info] Already up
1/4/2018 5:44:46 PMwarning: variable "deps" does not exist and is being expanded to "deps()", please use parentheses to remove the ambiguity or change the variable name
1/4/2018 5:44:46 PM /app/deps/coherence/mix.exs:15
1/4/2018 5:44:46 PM
1/4/2018 5:44:46 PMwarning: variable "package" does not exist and is being expanded to "package()", please use parentheses to remove the ambiguity or change the variable name
1/4/2018 5:44:46 PM /app/deps/coherence/mix.exs:16
1/4/2018 5:44:46 PM
1/4/2018 5:44:47 PM20:44:47.785 [info] Running ActiveMonitoring.Endpoint with Cowboy using http://localhost:80
1/4/2018 5:44:48 PM20:44:48.521 [error] {:invalid_timezone, {:error, {:invalid_timezone, nil}}}
1/4/2018 5:44:48 PM20:44:48.521 [error] {:invalid_timezone, {:error, {:invalid_timezone, nil}}}
1/4/2018 5:44:48 PM20:44:48.521 [error] {:invalid_timezone, {:error, {:invalid_timezone, nil}}}
1/4/2018 5:44:48 PM20:44:48.521 [error] {:invalid_timezone, {:error, {:invalid_timezone, nil}}}
1/4/2018 5:44:48 PM20:44:48.521 [error] {:invalid_timezone, {:error, {:invalid_timezone, nil}}}
1/4/2018 5:44:48 PM20:44:48.521 [error] {:invalid_timezone, {:error, {:invalid_timezone, nil}}}
1/4/2018 5:44:49 PM20:44:49.367 [error] GenServer ActiveMonitoring.Runtime.Broker terminating
1/4/2018 5:44:49 PM** (CaseClauseError) no case clause matching: {:error, %OAuth2.Response{body: %{"error" => "Channel not found: Callcentric 111"}, headers: [{"date", "Thu, 04 Jan 2018 20:44:48 GMT"}, {"server", "Apache/2.2.22 (Ubuntu)"}, {"x-ua-compatible", "IE=Edge,chrome=1"}, {"cache-control", "no-cache, private"}, {"x-request-id", "921dbbc50e44d36791ac3727522dc1fd"}, {"x-runtime", "0.469307"}, {"x-rack-cache", "miss"}, {"x-powered-by", "Phusion Passenger 4.0.35"}, {"status", "400 Bad Request"}, {"vary", "Accept-Encoding"}, {"connection", "close"}, {"transfer-encoding", "chunked"}, {"content-type", "application/json; charset=utf-8"}], status_code: 400}}
1/4/2018 5:44:49 PM (active_monitoring) lib/verboice/client.ex:49: Verboice.Client.parse_response/1
1/4/2018 5:44:49 PM (active_monitoring) lib/active_monitoring/runtime/verboice_channel.ex:72: ActiveMonitoring.Runtime.VerboiceChannel.call/2
1/4/2018 5:44:49 PM (elixir) lib/enum.ex:645: Enum."-each/2-lists^foreach/1-0-"/2
1/4/2018 5:44:49 PM (elixir) lib/enum.ex:645: Enum.each/2
1/4/2018 5:44:49 PM (active_monitoring) lib/active_monitoring/runtime/broker.ex:71: ActiveMonitoring.Runtime.Broker.call_pending_subjects/2
1/4/2018 5:44:49 PM (elixir) lib/enum.ex:645: Enum."-each/2-lists^foreach/1-0-"/2
1/4/2018 5:44:49 PM (elixir) lib/enum.ex:645: Enum.each/2
1/4/2018 5:44:49 PM (active_monitoring) lib/active_monitoring/runtime/broker.ex:38: ActiveMonitoring.Runtime.Broker.handle_info/3
1/4/2018 5:44:49 PMLast message: :poll
1/4/2018 5:44:50 PM20:44:50.311 [error] {:invalid_timezone, {:error, {:invalid_timezone, nil}}}
1/4/2018 5:44:50 PM20:44:50.311 [error] {:invalid_timezone, {:error, {:invalid_timezone, nil}}}
1/4/2018 5:44:50 PM20:44:50.311 [error] {:invalid_timezone, {:error, {:invalid_timezone, nil}}}
1/4/2018 5:44:50 PM20:44:50.311 [error] {:invalid_timezone, {:error, {:invalid_timezone, nil}}}
1/4/2018 5:44:50 PM20:44:50.312 [error] {:invalid_timezone, {:error, {:invalid_timezone, nil}}}
1/4/2018 5:44:50 PM20:44:50.312 [error] {:invalid_timezone, {:error, {:invalid_timezone, nil}}}
1/4/2018 5:44:50 PM20:44:50.478 [error] GenServer ActiveMonitoring.Runtime.Broker terminating
1/4/2018 5:44:50 PM** (CaseClauseError) no case clause matching: {:error, %OAuth2.Response{body: %{"error" => "Channel not found: Callcentric 111"}, headers: [{"date", "Thu, 04 Jan 2018 20:44:50 GMT"}, {"server", "Apache/2.2.22 (Ubuntu)"}, {"x-ua-compatible", "IE=Edge,chrome=1"}, {"cache-control", "no-cache, private"}, {"x-request-id", "6dd612169e0cdc761a3dc9c8156025b6"}, {"x-runtime", "0.129907"}, {"x-rack-cache", "miss"}, {"x-powered-by", "Phusion Passenger 4.0.35"}, {"status", "400 Bad Request"}, {"vary", "Accept-Encoding"}, {"connection", "close"}, {"transfer-encoding", "chunked"}, {"content-type", "application/json; charset=utf-8"}], status_code: 400}}
1/4/2018 5:44:50 PM (active_monitoring) lib/verboice/client.ex:49: Verboice.Client.parse_response/1
1/4/2018 5:44:50 PM (active_monitoring) lib/active_monitoring/runtime/verboice_channel.ex:72: ActiveMonitoring.Runtime.VerboiceChannel.call/2
1/4/2018 5:44:50 PM (elixir) lib/enum.ex:645: Enum."-each/2-lists^foreach/1-0-"/2
1/4/2018 5:44:50 PM (elixir) lib/enum.ex:645: Enum.each/2
1/4/2018 5:44:50 PM (active_monitoring) lib/active_monitoring/runtime/broker.ex:71: ActiveMonitoring.Runtime.Broker.call_pending_subjects/2
1/4/2018 5:44:50 PM (elixir) lib/enum.ex:645: Enum."-each/2-lists^foreach/1-0-"/2
1/4/2018 5:44:50 PM (elixir) lib/enum.ex:645: Enum.each/2
1/4/2018 5:44:50 PM (active_monitoring) lib/active_monitoring/runtime/broker.ex:38: ActiveMonitoring.Runtime.Broker.handle_info/3
1/4/2018 5:44:50 PMLast message: :poll
1/4/2018 5:44:51 PM20:44:51.488 [error] {:invalid_timezone, {:error, {:invalid_timezone, nil}}}
1/4/2018 5:44:51 PM20:44:51.488 [error] {:invalid_timezone, {:error, {:invalid_timezone, nil}}}
1/4/2018 5:44:51 PM20:44:51.488 [error] {:invalid_timezone, {:error, {:invalid_timezone, nil}}}
1/4/2018 5:44:51 PM20:44:51.488 [error] {:invalid_timezone, {:error, {:invalid_timezone, nil}}}
1/4/2018 5:44:51 PM20:44:51.488 [error] {:invalid_timezone, {:error, {:invalid_timezone, nil}}}
1/4/2018 5:44:51 PM20:44:51.488 [error] {:invalid_timezone, {:error, {:invalid_timezone, nil}}}
1/4/2018 5:44:51 PM20:44:51.860 [error] GenServer ActiveMonitoring.Runtime.Broker terminating
1/4/2018 5:44:51 PM** (CaseClauseError) no case clause matching: {:error, %OAuth2.Response{body: %{"error" => "Channel not found: Callcentric 111"}, headers: [{"date", "Thu, 04 Jan 2018 20:44:51 GMT"}, {"server", "Apache/2.2.22 (Ubuntu)"}, {"x-ua-compatible", "IE=Edge,chrome=1"}, {"cache-control", "no-cache, private"}, {"x-request-id", "65a5ba4b1e0d7134971025ea394a99c8"}, {"x-runtime", "0.138128"}, {"x-rack-cache", "miss"}, {"x-powered-by", "Phusion Passenger 4.0.35"}, {"status", "400 Bad Request"}, {"vary", "Accept-Encoding"}, {"connection", "close"}, {"transfer-encoding", "chunked"}, {"content-type", "application/json; charset=utf-8"}], status_code: 400}}
1/4/2018 5:44:51 PM (active_monitoring) lib/verboice/client.ex:49: Verboice.Client.parse_response/1
1/4/2018 5:44:51 PM (active_monitoring) lib/active_monitoring/runtime/verboice_channel.ex:72: ActiveMonitoring.Runtime.VerboiceChannel.call/2
1/4/2018 5:44:51 PM (elixir) lib/enum.ex:645: Enum."-each/2-lists^foreach/1-0-"/2
1/4/2018 5:44:51 PM (elixir) lib/enum.ex:645: Enum.each/2
1/4/2018 5:44:51 PM (active_monitoring) lib/active_monitoring/runtime/broker.ex:71: ActiveMonitoring.Runtime.Broker.call_pending_subjects/2
1/4/2018 5:44:51 PM (elixir) lib/enum.ex:645: Enum."-each/2-lists^foreach/1-0-"/2
1/4/2018 5:44:51 PM (elixir) lib/enum.ex:645: Enum.each/2
1/4/2018 5:44:51 PM (active_monitoring) lib/active_monitoring/runtime/broker.ex:38: ActiveMonitoring.Runtime.Broker.handle_info/3
1/4/2018 5:44:51 PMLast message: :poll
1/4/2018 5:44:52 PM20:44:52.868 [error] {:invalid_timezone, {:error, {:invalid_timezone, nil}}}
1/4/2018 5:44:52 PM20:44:52.868 [error] {:invalid_timezone, {:error, {:invalid_timezone, nil}}}
1/4/2018 5:44:52 PM20:44:52.868 [error] {:invalid_timezone, {:error, {:invalid_timezone, nil}}}
1/4/2018 5:44:52 PM20:44:52.868 [error] {:invalid_timezone, {:error, {:invalid_timezone, nil}}}
1/4/2018 5:44:52 PM20:44:52.868 [error] {:invalid_timezone, {:error, {:invalid_timezone, nil}}}
1/4/2018 5:44:52 PM20:44:52.868 [error] {:invalid_timezone, {:error, {:invalid_timezone, nil}}}
1/4/2018 5:44:53 PM20:44:53.090 [error] GenServer ActiveMonitoring.Runtime.Broker terminating
1/4/2018 5:44:53 PM** (CaseClauseError) no case clause matching: {:error, %OAuth2.Response{body: %{"error" => "Channel not found: Callcentric 111"}, headers: [{"date", "Thu, 04 Jan 2018 20:44:52 GMT"}, {"server", "Apache/2.2.22 (Ubuntu)"}, {"x-ua-compatible", "IE=Edge,chrome=1"}, {"cache-control", "no-cache, private"}, {"x-request-id", "622b0114a700b409a638970ea7e8670b"}, {"x-runtime", "0.145581"}, {"x-rack-cache", "miss"}, {"x-powered-by", "Phusion Passenger 4.0.35"}, {"status", "400 Bad Request"}, {"vary", "Accept-Encoding"}, {"connection", "close"}, {"transfer-encoding", "chunked"}, {"content-type", "application/json; charset=utf-8"}], status_code: 400}}
1/4/2018 5:44:53 PM (active_monitoring) lib/verboice/client.ex:49: Verboice.Client.parse_response/1
1/4/2018 5:44:53 PM (active_monitoring) lib/active_monitoring/runtime/verboice_channel.ex:72: ActiveMonitoring.Runtime.VerboiceChannel.call/2
1/4/2018 5:44:53 PM (elixir) lib/enum.ex:645: Enum."-each/2-lists^foreach/1-0-"/2
1/4/2018 5:44:53 PM (elixir) lib/enum.ex:645: Enum.each/2
1/4/2018 5:44:53 PM (active_monitoring) lib/active_monitoring/runtime/broker.ex:71: ActiveMonitoring.Runtime.Broker.call_pending_subjects/2
1/4/2018 5:44:53 PM (elixir) lib/enum.ex:645: Enum."-each/2-lists^foreach/1-0-"/2
1/4/2018 5:44:53 PM (elixir) lib/enum.ex:645: Enum.each/2
1/4/2018 5:44:53 PM (active_monitoring) lib/active_monitoring/runtime/broker.ex:38: ActiveMonitoring.Runtime.Broker.handle_info/3
1/4/2018 5:44:53 PMLast message: :poll
1/4/2018 5:44:53 PM20:44:53.094 [info] Application active_monitoring exited: shutdown
1/4/2018 5:44:54 PM{"Kernel pid terminated",application_controller,"{application_terminated,active_monitoring,shutdown}"}
1/4/2018 5:44:54 PMKernel pid terminated (application_controller) ({application_terminated,active_monitoring,shutdown})
1/4/2018 5:44:54 PM
1/4/2018 5:44:55 PMCrash dump is being written to: erl_crash.dump...done
@matiasgarciaisaia
Copy link
Author

This happened after renaming the channel in Verboice. Whenever the broker tries to call a pending subject, Verboice returns a "Channel doesn't exist" error, and the broker crashes. After the third retry, the application stops working at all.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment