Skip to content
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

Setup may crash on startup #9

Open
martinsumner opened this issue Jan 29, 2025 · 1 comment
Open

Setup may crash on startup #9

martinsumner opened this issue Jan 29, 2025 · 1 comment

Comments

@martinsumner
Copy link
Contributor

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.

@martinsumner
Copy link
Contributor Author

OpenRiak/exometer_core#1

@tburghart tburghart transferred this issue from OpenRiak/riak-forked Feb 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant