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

bug: issue when service has not been used for a while #69

Closed
lucasmenendez opened this issue Aug 29, 2023 · 1 comment · Fixed by #71
Closed

bug: issue when service has not been used for a while #69

lucasmenendez opened this issue Aug 29, 2023 · 1 comment · Fixed by #71
Assignees
Labels
bug Something isn't working
Milestone

Comments

@lucasmenendez
Copy link
Collaborator

If the service has not been used for a while and you try to make a request, the server will return an internal server error:

Error: 500 Internal Server Error: error creating the census tree on the census database

If you continue to make requests, the service will start to work properly again.

@lucasmenendez lucasmenendez added the bug Something isn't working label Aug 29, 2023
@lucasmenendez lucasmenendez added this to the v0.2.0 milestone Aug 29, 2023
@lucasmenendez lucasmenendez self-assigned this Aug 29, 2023
@lucasmenendez
Copy link
Collaborator Author

these could be the traces related to the error:

2023-08-29T10:20:00.095Z ERR api/censuses.go:188 > error saving the census on the database error="database is locked"
2023-08-29T10:20:10.521Z ERR api/censuses.go:188 > error saving the census on the database error="database is locked"
2023-08-29T10:20:17.18Z ERR api/censuses.go:188 > error saving the census on the database error="database is locked"
2023-08-29T10:20:24.962Z ERR api/censuses.go:103 > holders transaction rollback failed error="sql: transaction has already been committed or rolled back"
2023-08-29T10:23:17.608Z ERR api/censuses.go:188 > error saving the census on the database error="database is locked"

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.

1 participant