Skip to content

{on_load_function_failed,prometheus_process_collector} error #13

@michaelstalker

Description

@michaelstalker

I'm building a Distillery release in a Docker container running Alpine Linux, and am getting an {on_load_function_failed,prometheus_process_collector} error.

Here's some environment information:

  • The bug happens in prometheus_process_collector version 1.4.0. Version 1.3.1 runs without any problems.
  • I've seen this happen with both Elixir 1.6.5 with OTP 20, and Elixir 1.7.3 with OTP 21
  • The bug happens on Alpine Linux in a Docker container
  • I'm trying to run the app in a Distillery release. I'm using Distillery 2.0.10.
  • I installed the g++ library in the Docker image so prometheus_process_collector would compile
  • prometheus_process_collector is a dependency of one application in an umbrella project.

The Docker container crashes when I try running docker run <image ID>. The entrypoint for the Docker container is the Distillery binary, and it's set to run in the foreground. I'm building my dependencies with mix do deps.get, compile.

The app runs fine when I run it outside of a Docker container in a macOS 10.13.6 environment.

Here's the crash report:

2018-10-13 19:50:41.388715 crash_report        #{label=>{proc_lib,crash},report=>[[{initial_call,{supervisor,kernel,['Argument__1']}},{pid,<0.1197.0>},{registered_name,[]},{error_info,{exit,{on_load_function_failed,prometheus_process_collector},[{init,run_on_load_handlers,0,[]},{kernel,init,1,[{file,"kernel.erl"},{line,212}]},{supervisor,init,1,[{file,"supervisor.erl"},{line,295}]},{gen_server,init_it,2,[{file,"gen_server.erl"},{line,374}]},{gen_server,init_it,6,[{file,"gen_server.erl"},{line,342}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,249}]}]}},{ancestors,[kernel_sup,<0.1171.0>]},{message_queue_len,0},{messages,[]},{links,[<0.1173.0>]},{dictionary,[]},{trap_exit,true},{status,running},{heap_size,376},{stack_size,27},{reductions,273}],[]]}
2018-10-13 19:50:41.388764 supervisor_report   #{label=>{supervisor,start_error},report=>[{supervisor,{local,kernel_sup}},{errorContext,start_error},{reason,{on_load_function_failed,prometheus_process_collector}},{offender,[{pid,undefined},{id,kernel_safe_sup},{mfargs,{supervisor,start_link,[{local,kernel_safe_sup},kernel,safe]}},{restart_type,permanent},{shutdown,infinity},{child_type,supervisor}]}]}
2018-10-13 19:50:42.392873 crash_report        #{label=>{proc_lib,crash},report=>[[{initial_call,{application_master,init,['Argument__1','Argument__2','Argument__3','Argument__4']}},{pid,<0.1170.0>},{registered_name,[]},{error_info,{exit,{{shutdown,{failed_to_start_child,kernel_safe_sup,{on_load_function_failed,prometheus_process_collector}}},{kernel,start,[normal,[]]}},[{application_master,init,4,[{file,"application_master.erl"},{line,138}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,249}]}]}},{ancestors,[<0.1169.0>]},{message_queue_len,1},{messages,[{'EXIT',<0.1171.0>,normal}]},{links,[<0.1169.0>,<0.1167.0>]},{dictionary,[]},{trap_exit,true},{status,running},{heap_size,610},{stack_size,27},{reductions,193}],[]]}
2018-10-13 19:50:42.393766 std_info            #{label=>{application_controller,exit},report=>[{application,kernel},{exited,{{shutdown,{failed_to_start_child,kernel_safe_sup,{on_load_function_failed,prometheus_process_collector}}},{kernel,start,[normal,[]]}}},{type,permanent}]}
{"Kernel pid terminated",application_controller,"{application_start_failure,kernel,{{shutdown,{failed_to_start_child,kernel_safe_sup,{on_load_function_failed,prometheus_process_collector}}},{kernel,start,[normal,[]]}}}"}
Kernel pid terminated (application_controller) ({application_start_failure,kernel,{{shutdown,{failed_to_start_child,kernel_safe_sup,{on_load_function_failed,prometheus_process_collector}}},{kernel,sta

I poked around in erl_crash.dump for a bit, but didn't know exactly what to look for. What can I do to help troubleshoot this?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions