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

improve error on missing config #4565

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

improve error on missing config #4565

wants to merge 1 commit into from

Conversation

PSeitz
Copy link
Contributor

@PSeitz PSeitz commented Feb 12, 2024

Improve Error message when we can't find the quickwit.yaml

This may happen if the quickwit binary is a system package, which is the case with nixOS https://search.nixos.org/packages?query=Quickwit

Currently I think there is no easy one-liner to create a missing config.
It could be added to quickwit tool init-config maybe?
We could also point to download a config from the gh repo, but there would be the issue with different versions.

@PSeitz PSeitz requested a review from fmassot February 12, 2024 04:39
@@ -219,7 +219,9 @@ pub fn start_actor_runtimes(
async fn load_node_config(config_uri: &Uri) -> anyhow::Result<NodeConfig> {
let config_content = load_file(&StorageResolver::unconfigured(), config_uri)
.await
.context("failed to load node config")?;
.context(r#"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • load_file can fail for other reasons, we should display this error only on not found error
  • config_uri is not necessarily quickwit/quickwit.yaml, depending on what was the argument of --config or value of QW_CONFIG.

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

Successfully merging this pull request may close these issues.

None yet

2 participants