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

Invoking search on quickwit lambda #4381

Closed
fmassot opened this issue Jan 15, 2024 · 1 comment · Fixed by #5016
Closed

Invoking search on quickwit lambda #4381

fmassot opened this issue Jan 15, 2024 · 1 comment · Fixed by #5016
Labels
bug Something isn't working

Comments

@fmassot
Copy link
Contributor

fmassot commented Jan 15, 2024

I got the following error on the first call of make invoke-hdfs-searcher-term

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/home/fmassot/quickwit/repos/quickwit/distribution/lambda/cdk/cli.py", line 221, in invoke_hdfs_searcher
    return _invoke_searcher(
  File "/home/fmassot/quickwit/repos/quickwit/distribution/lambda/cdk/cli.py", line 216, in _invoke_searcher
    download_logs_to_file(lambda_result.request_id(), function_name, invoke_start)
  File "/home/fmassot/quickwit/repos/quickwit/distribution/lambda/cdk/cli.py", line 275, in download_logs_to_file
    for log in get_logs(
  File "/home/fmassot/quickwit/repos/quickwit/distribution/lambda/cdk/cli.py", line 242, in get_logs
    for page in paginator.paginate(
  File "/home/fmassot/quickwit/repos/quickwit/distribution/lambda/.venv/lib/python3.10/site-packages/botocore/paginate.py", line 269, in __iter__
    response = self._make_request(current_kwargs)
  File "/home/fmassot/quickwit/repos/quickwit/distribution/lambda/.venv/lib/python3.10/site-packages/botocore/paginate.py", line 357, in _make_request
    return self._method(**current_kwargs)
  File "/home/fmassot/quickwit/repos/quickwit/distribution/lambda/.venv/lib/python3.10/site-packages/botocore/client.py", line 553, in _api_call
    return self._make_api_call(operation_name, kwargs)
  File "/home/fmassot/quickwit/repos/quickwit/distribution/lambda/.venv/lib/python3.10/site-packages/botocore/client.py", line 1009, in _make_api_call
    raise error_class(parsed_response, operation_name)
botocore.errorfactory.ResourceNotFoundException: An error occurred (ResourceNotFoundException) when calling the FilterLogEvents operation: The specified log group does not exist.
make: *** [Makefile:80: invoke-hdfs-searcher-term] Error 1

@fmassot fmassot added the bug Something isn't working label Jan 15, 2024
@rdettai
Copy link
Contributor

rdettai commented Jan 24, 2024

For some reason, the log group is not visible on the first call to the Lambda. This is surprising as it is supposed to be created by CDK. In #4453 I made the error message a bit less scary by removing the stack trace 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants