Skip to content

Setup may crash on startup #9

@martinsumner

Description

@martinsumner

The exometer_core application has a dependency on setup. When setup is started as an application it starts a gen_server setup_srv, and calls run_setup/0 on this service API.

This may crash though:

2025-01-28T15:20:45.313628+00:00 [error] <0.125.0>@: Caught exception:, {badmatch,{error,eacces}}, [{setup,verify_dir,1,[{file,"/riak/_build/default/lib/setup/src/setup.erl"},{line,283}]},{setup,verify_directories,0,[{file,"/riak/_build/default/lib/setup/src/setup.erl"},{line,274}]},{setup,run_setup_,0,[{file,"/riak/_build/default/lib/setup/src/setup.erl"},{line,965}]},{setup,run_setup,0,[{file,"/riak/_build/default/lib/setup/src/setup.erl"},{line,951}]},{setup_srv,handle_call,3,[{file,"/riak/_build/default/lib/setup/src/setup_srv.erl"},{line,42}]},{gen_server,try_handle_call,4,[{file,"gen_server.erl"},{line,721}]},{gen_server,handle_msg,6,[{file,"gen_server.erl"},{line,750}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,226}]}]

Only exometer_core uses setup. The only real use of setup seems to be in finding applications which have exometer_defaults in their environment variables. Most of what setup does is irrelevant to Riak. Rather than troubleshoot log noise like this, perhaps it should be removed from our version of exometer_core.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions