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

Ingest Error: 504 API Timeout #190

Closed
RoloEdits opened this issue Oct 27, 2023 · 7 comments · Fixed by #195
Closed

Ingest Error: 504 API Timeout #190

RoloEdits opened this issue Oct 27, 2023 · 7 comments · Fixed by #195
Assignees
Labels
enhancement New feature or request

Comments

@RoloEdits
Copy link

Twice in the last 3 months has ingest stopped due to an error on timeout and a failure to reconnect. The fix has been to just keep deployments going at smaller intervals, but for some of our longer uptime services, the timeouts stopping all ingest has been confusing.

This is the error:

Error: could not ingest "stdin" into dataset "NAME": API error 504: Gateway Timeout

The deployments are done inside of a Docker container with this initiating the CLI:

ENTRYPOINT ./APP | axiom ingest DATASET

I'm not sure what would be causing the API timeout multiple times like this, but perhaps there could be a --continue-on-error flag that would keep trying to reconnect through all errors and just keep logging them to the console? The error was only logged once so its unknown how many times it took to give up trying. At least with a continual log we could see the number of attempts.

@lukasmalkmus lukasmalkmus self-assigned this Oct 31, 2023
@lukasmalkmus lukasmalkmus added the enhancement New feature or request label Oct 31, 2023
@lukasmalkmus
Copy link
Collaborator

Thanks for the report.

There can be various reasons for a 504. Axiom Go, which powers Axiom CLI has a sensible retry-mechanism but apparently not every 504 can be resolved adequately. I'll be checking out the parameters we're using over there but nonetheless, --continue-on-error might be a nice addition for ingest and stream.

@RoloEdits
Copy link
Author

Unsure if the same issue as the error message is different but I am seeing this:

Error: could not ingest "stdin" into dataset "DATASET": Post "https://api.axiom.co/v1/datasets/DATASET/ingest": read tcp IP:PORT -> IP:443: read: connection reset by peer

It took 8 days this time before it was unable to send to ingest anymore.

@lukasmalkmus
Copy link
Collaborator

@RoloEdits Is CLI invoked exactly as you described above?

ENTRYPOINT ./APP | axiom ingest DATASET

No extra command line arguments or any specific environment variables set?

@RoloEdits
Copy link
Author

CLI invocation has no flags, and AXIOM_TOKEN env is set.

@RoloEdits
Copy link
Author

Got a new message, this time a 503 Error.

Error: could not ingest "stdin" into dataset "DATASET": API error 503: Service Unavailable

@lukasmalkmus
Copy link
Collaborator

@RoloEdits Ups, forgot to ping you about it but can you try the latest release with --continue-on-error applied?

@RoloEdits
Copy link
Author

We have moved over to using https://vector.dev/ and sending to the axiom sink as it has had no issues ingesting. I will have to look into getting some services back to the axiom cli, but its pretty busy currently. Not sure how soon I can get that going.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants