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

Tornjak failes with a 400 error on api/agent/list in my webbrowser #210

Closed
marcofranssen opened this issue May 12, 2023 · 2 comments · Fixed by #368
Closed

Tornjak failes with a 400 error on api/agent/list in my webbrowser #210

marcofranssen opened this issue May 12, 2023 · 2 comments · Fixed by #368
Assignees
Labels
backend Tornjak API (Backend)
Milestone

Comments

@marcofranssen
Copy link
Contributor

When navigating to the agent list in Tornjak frontend it returns a 400 error response on the following api endpoint.

http://localhost:10000/api/agent/list

In the details of the error it shows the following.

failed to list agents: datastore-sql: disk I/O error

Based on the error details I think the error code should be a 500 http response.

To get rid of the error I removed the persistent volume claim and redeployed spire-server and tornjak. See https://github.com/spiffe/helm-charts example on how it is deployed.

@maia-iyer
Copy link
Collaborator

Hello, thank you for your feedback! This is good point for an open PR #127 currently on expanding and changing the error handling in the frontend - we'll take this into account :)

When you removed the error, what do you mean by removing the persistent volume claim? When deploying, were you using a previous version of the helm charts or one of our tutorial deployment files?

@mrsabath
Copy link
Collaborator

@maia-iyer when Tornjak backend is deployed it takes in account a storage that already exists and that was created during Spire server deployment. Typically this storage is done through Persistent Volume Claims (PVC).

@mrsabath mrsabath added this to the 1.4.x milestone Jun 13, 2023
@maia-iyer maia-iyer modified the milestones: 1.4.x, 1.5.x Oct 26, 2023
@maia-iyer maia-iyer added the backend Tornjak API (Backend) label Mar 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend Tornjak API (Backend)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants