ijdickinson

ijdickinson

Error when trying to set up Honeycomb/OpenTelemetry with Phoenix app

I’m trying to get Honeycomb set up with my Elixir/Phoenix app. I’ve been following the guide in this blog post by Dave Lucia as a starting place.

It seemed to be going OK, but my app won’t start when I deploy it to fly.io. The error I get from flyctl logs is:

2023-03-07T15:50:11Z app[20e7bcfd] lhr [info]
{
  "Kernel pid terminated",
  application_controller,
  "{application_start_failure,
    tls_certificate_check,
    {{shutdown,
      {failed_to_start_child,tls_certificate_check_shared_state,{{badmatch,{error,enoent}
    },
    [{pubkey_os_cacerts,get,0,
      [{file,\"pubkey_os_cacerts.erl\"},{line,38}]
      },
      {tls_certificate_check_shared_state,maybe_load_authorities_trusted_by_otp,3,
      [{file,\"/app/deps/tls_certificate_check/src/tls_certificate_check_shared_state.erl\"},{line,362}]
      },
      {tls_certificate_check_shared_state,new_shared_state,2,
      [{file,\"/app/deps/tls_certificate_check/src/tls_certificate_check_shared_state.erl\"},{line,335}]
      },
      {tls_certificate_check_shared_state,handle_shared_state_initialization,2,
      [{file,\"/app/deps/tls_certificate_check/src/tls_certificate_check_shared_state.erl\"},{line,262}]
      },
      {gen_server,try_dispatch,4,
      [{file,\"gen_server.erl\"},{line,1123}]
      },
      {gen_server,handle_msg,6,
      [{file,\"gen_server.erl\"},{line,1200}]
      },
      {proc_lib,init_p_do_apply,3,
      [{file,\"proc_lib.erl\"},{line,240}]
      }
    ]
    }}},
    {tls_certificate_check_app,start,[normal,[]]}}}"
}

tls_certificate_check is not something I’ve set up, it’s added as a dependency of OpenTelemetry. So I’m not sure what it’s looking for and not finding. As far as I’ve been able to find, that’s the only diagnostic info I can locate.

Googling hasn’t given me any directions to try, so I’m feeling a bit stuck. Can anyone suggest anything to look at?

Marked As Solved

ijdickinson

ijdickinson

In the end, the solution was to apt-get install erlang into the image.

Thanks again for your help, @BradS2S

Last Post!

BradS2S

BradS2S

Glad it worked out :slight_smile:

Where Next?

Popular in Questions Top

New
lanycrost
Hi everyone! I need implement if…else if…else condition from my elixir code, and anymore of this control flow structures not work proper...
New
sen
Hi All, I set a environment variables in dev.exs , like below code. when i start server, how can i set the ${enable} value? thanks. d...
New
belgoros
I’m not a pro in using Regex and can’t figure out why the following behaviour happens, especially if we take into account the difference ...
New
bsollish-terakeet
Credo is smart enough to check for (something like) this: assert length(the_list) == 0 with this response: Checking if an enum is empt...
New
freewebwithme
Using vs code and installed ElixirLS: support and debugger. And I got an error popped up on start up says Failed to run ‘elixir’ comma...
New
SoCreat
i’m a new one to elixir which editor can i use vs code? or atom? Thanks! :smiley:
New

Other popular topics Top

nobody
Hi! In PHP: $_SERVER[‘SERVER_ADDR’] - in Elixir? Searched the docs for ip address and the web, no good results. Thanks!
New
grych
Hi folks, Few months ago I have announced the proof-of-concept of the library to manipulate the browsers DOM objects directly from Elixi...
639 54006 488
New
vonH
When I run the Plug and I recompile I wind up having to use Ctrl C to quit iex and start again. Witht the help of rlwrap I can use the cu...
New
openscript
Hello! Sorry for this astonishing simple question, but I’m really stuck. I try to set up the intellij-elixir plugin, but I don’t know ho...
New
chrismccord
Phoenix 1.4.0 released Phoenix 1.4 is out! This release ships with exciting new features, most notably with HTTP2 support, improved deve...
688 31494 112
New
Harrisonl
We have an ECS cluster with 4 services, where each task joins a single cluster, via discovery ECS discovery service. Currently when I de...
New

We're in Beta

About us Mission Statement