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 reporting of functionbeat deploy in AWS #23466

Closed
jsoriano opened this issue Jan 12, 2021 · 4 comments
Closed

Improve error reporting of functionbeat deploy in AWS #23466

jsoriano opened this issue Jan 12, 2021 · 4 comments
Labels

Comments

@jsoriano
Copy link
Member

jsoriano commented Jan 12, 2021

When deploying functionbeat to AWS using functionbeat deploy, it checks if the bucket exists. This check does an authenticated HEAD request to the bucket. If this request doesn't return any error, the check passes. If it returns any error, it only checks if the bucket doesn't exist, for any other error it returns: "bucket '%s' already exist and you don't have permission to access it":

// Catchall for unauthorized access.
return fmt.Errorf("bucket '%s' already exist and you don't have permission to access it", o.bucketName)

This is misleading for many other errors that could be happening. For example any connectivity or authentication problem is going to print this error.

Return the actual cause of the failure instead of this error.

Related issues:

@jsoriano jsoriano added bug Functionbeat Team:Integrations Label for the Integrations team labels Jan 12, 2021
@elasticmachine
Copy link
Collaborator

Pinging @elastic/integrations (Team:Integrations)

@masci masci added Team:Elastic-Agent Label for the Agent team and removed Team:Integrations Label for the Integrations team labels Jan 13, 2021
@elasticmachine
Copy link
Collaborator

Pinging @elastic/agent (Team:Agent)

@cachedout
Copy link
Contributor

Strong +1 to fixing this issue. I've been fighting Functionbeat for a few hours now and still can't get pass this error and it's totally unclear what's happening here. :-/

@kvch
Copy link
Contributor

kvch commented Oct 6, 2021

Closed in #25262

@kvch kvch closed this as completed Oct 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants