[warn] Failed to lookup telemetry handlers

defmodule Arbit.MixProject do
	use Mix.Project

	def project do
		[
			app: :arbit,
			version: "0.1.0",
			elixir: "~> 1.10.1",
			start_permanent: Mix.env() == :prod,
			deps: deps()
		]
	end


	def application do
		[
			applications: [:export],
			extra_applications: [:logger],
			mod: {Arbit.Application, []}
		]
	end


	defp deps do
		[
			{:httpoison, "~> 1.7.0"},
			{:postgrex, "~> 0.15.5"},
			{:ecto_sql, "~> 3.4.5"},
			{:gen_stage, "~> 1.0.0"},
			{:jason, "~> 1.2.1"},
			{:export, "~> 0.1.0"},
			{:erlport, "~> 0.10.1"},
			{:puid, "~> 1.1.1"},
			{:poolboy, "~> 1.5.2"}
		]
	end
end

Error messages:
“#####” = redacted

09:58:07.829 [warn]  Failed to lookup telemetry handlers. Ensure the telemetry application has been started. 
 
09:58:07.853 [info]  Application arbit exited: Arbit.Application.start(:normal, []) returned an error: shutdown: failed to start child: ArbitDB.Repo
    ** (EXIT) shutdown: failed to start child: DBConnection.ConnectionPool
        ** (EXIT) exited in: GenServer.call(DBConnection.Watcher, {:watch, DBConnection.ConnectionPool.Supervisor, {DBConnection.ConnectionPool.Pool, {#PID<0.2712.0>, #Reference<0.2189827458.1482293250.245266>, Postgrex.Protocol, [types: Postgrex.DefaultTypes, port: 5432, repo: ArbitDB.Repo, telemetry_prefix: [:arbit_db, :repo], otp_app: :arbit, timeout: 15000, pool_size: 10, adapter: Ecto.Adapters.Postgres, database: "arbitdb", username: "#####", password: "#####" hostname: "localhost", migration_timestamps: [type: :utc_datetime_usec], pool: DBConnection.ConnectionPool]}}}, :infinity)
            ** (EXIT) no process: the process is not alive or there's no process currently associated with the given name, possibly because its application isn't started
** (Mix) Could not start application arbit: Arbit.Application.start(:normal, []) returned an error: shutdown: failed to start child: ArbitDB.Repo
    ** (EXIT) shutdown: failed to start child: DBConnection.ConnectionPool
        ** (EXIT) exited in: GenServer.call(DBConnection.Watcher, {:watch, DBConnection.ConnectionPool.Supervisor, {DBConnection.ConnectionPool.Pool, {#PID<0.2712.0>, #Reference<0.2189827458.1482293250.245266>, Postgrex.Protocol, [types: Postgrex.DefaultTypes, port: 5432, repo: ArbitDB.Repo, telemetry_prefix: [:arbit_db, :repo], otp_app: :arbit, timeout: 15000, pool_size: 10, adapter: Ecto.Adapters.Postgres, database: "arbitdb", username: "#####" password: "#####" hostname: "localhost", migration_timestamps: [type: :utc_datetime_usec], pool: DBConnection.ConnectionPool]}}}, :infinity)
            ** (EXIT) no process: the process is not alive or there's no process currently associated with the given name, possibly because its application isn't started

How do I resolve these errors?

Don’t use :applications key, it overrides everything else.

3 Likes

Awesome, thanks! :slight_smile: