-
Notifications
You must be signed in to change notification settings - Fork 26
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
Error starting service locally #280
Comments
Hello @amitcomo. Can you show the exact Bash command which you used to start the containers? Also, did you override any options in .env regarding nodes discovery? Looks like it crashed because the distribution layer failed to start (the one which is responsible configuration invalidation/synchronization if you have more than one instance deployed). |
version: '2'
Appreciate your help |
@amitcomo can you try running Annon with script from annon.infra? I believe that it crashes because, by default, Annon uses Kubernetes for its auto-clustering. If you start the code with IDE plugin, it would start it in dev mode, won't override any defaults and fail. You should either pass environment variables to use different clustering strategy ( |
Thanks Andrew. |
I'll leave this issue open to reconsider defaults later. |
When trying to work with the annon.api locally i get the following error:
{"timestamp":"2018-05-30T18:38:18.078Z","sourceLocation":{"line":null,"function":null,"file":null},"severity":"INFO","resource":null,"jsonPayload":{"metadata":{"error_logger":"std_info"},"message":"Application annon_api exited: Annon.start(:normal, []) returned an error: shutdown: failed to start child: Annon.AutoClustering\n ** (EXIT) an exception was raised:\n ** (ArgumentError) argument error\n (annon_api) Elixir.Annon.AutoClustering.erl:57: anonymous fn/4 in Annon.AutoClustering.do_reload_config/0\n (annon_api) Elixir.Annon.AutoClustering.erl:34: Annon.AutoClustering.init/1"}}
** (EXIT from #PID<0.73.0>) an exception was raised:
** (Mix.Error) Could not start application annon_api: Annon.start(:normal, []) returned an error: shutdown: failed to start child: Annon.AutoClustering
** (EXIT) an exception was raised:
** (ArgumentError) argument error
(annon_api) Elixir.Annon.AutoClustering.erl:57: anonymous fn/4 in Annon.AutoClustering.do_reload_config/0
(annon_api) Elixir.Annon.AutoClustering.erl:34: Annon.AutoClustering.init/1
(mix) lib/mix.ex:291: Mix.raise/1
(elixir) lib/enum.ex:737: Enum."-each/2-lists^foreach/1-0-"/2
(elixir) lib/enum.ex:737: Enum.each/2
(mix) lib/mix/tasks/app.start.ex:114: Mix.Tasks.App.Start.start/2
(mix) lib/mix/tasks/app.start.ex:86: Mix.Tasks.App.Start.run/1
(mix) lib/mix/task.ex:314: Mix.Task.run_task/3
(mix) lib/mix/tasks/run.ex:119: Mix.Tasks.Run.run/5
(mix) lib/mix/tasks/run.ex:76: Mix.Tasks.Run.run/1
{"timestamp":"2018-05-30T18:38:18.085Z","sourceLocation":{"line":null,"function":null,"file":null},"severity":"ERROR","resource":null,"jsonPayload":{"metadata":{"error_logger":"format"},"message":"Process #PID<0.1072.0> raised an exception\n** (Mix.Error) Could not start application annon_api: Annon.start(:normal, []) returned an error: shutdown: failed to start child: Annon.AutoClustering\n ** (EXIT) an exception was raised:\n ** (ArgumentError) argument error\n (annon_api) Elixir.Annon.AutoClustering.erl:57: anonymous fn/4 in Annon.AutoClustering.do_reload_config/0\n (annon_api) Elixir.Annon.AutoClustering.erl:34: Annon.AutoClustering.init/1\n (mix) lib/mix.ex:291: Mix.raise/1\n (elixir) lib/enum.ex:737: Enum."-each/2-lists^foreach/1-0-"/2\n (elixir) lib/enum.ex:737: Enum.each/2\n (mix) lib/mix/tasks/app.start.ex:114: Mix.Tasks.App.Start.start/2\n (mix) lib/mix/tasks/app.start.ex:86: Mix.Tasks.App.Start.run/1\n (mix) lib/mix/task.ex:314: Mix.Task.run_task/3\n (mix) lib/mix/tasks/run.ex:119: Mix.Tasks.Run.run/5\n (mix) lib/mix/tasks/run.ex:76: Mix.Tasks.Run.run/1"}}
Environment info:
Elixir 1.6.5 (compiled with OTP 20)
Thanks
The text was updated successfully, but these errors were encountered: