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

When the amount of data is too large, the service will crash directly. My current sqlite file is 2G. #626

Closed
3 of 11 tasks
chendx-github opened this issue Jan 24, 2024 · 6 comments
Labels
a:bug Something isn't working

Comments

@chendx-github
Copy link

Can the issue be reproduced with the latest available release? (y/n)
y
Which one is the environment gotify server is running in?

  • Docker
  • Linux machine
  • Windows machine
Docker startup command or config file here (please mask sensitive information)

Do you have an reverse proxy installed in front of gotify server? (Please select None if the problem can be reproduced without the presense of a reverse proxy)

  • None
  • Nginx
  • Apache
  • Caddy
Reverse proxy configuration (please mask sensitive information)

On which client do you experience problems? (Select as many as you can see)

  • WebUI
  • gotify-cli
  • Android Client
  • 3rd-party API call (Please include your code)

What did you do?

What did you expect to see?

What did you see instead? (Include screenshots, android logcat/request dumps if possible)
When the amount of data is too large, the service will crash directly. My current sqlite file is 2G.

@chendx-github chendx-github added the a:bug Something isn't working label Jan 24, 2024
@chendx-github
Copy link
Author

After investigation, it was found that the issue was caused by the messages table containing messages with excessively long content, approximately around 1 gigabyte in size.

@jmattheis
Copy link
Member

How does it crash, what is the error message?

@chendx-github
Copy link
Author

No information, the process exited directly because it was running as a service, so there is no console log recorded.

@jmattheis
Copy link
Member

Could you share the sqlite file with me? Otherwise there isn't much to debug here for me. That said, the clients likely cannot handle 1gb messages. Gotify is more designed for smaller messages.

@chendx-github
Copy link
Author

Sorry I can't share the file since it contains private information, but as you said, this issue should not be considered a BUG, normally there shouldn't be messages of 1GB and the program worked fine after I deleted this anomalous data from the database, but it would be nice to have an alert that helps non-technical people to solve this issue.

@OdinVex
Copy link

OdinVex commented Mar 3, 2024

Sqlite doesn't do well with large databases. I'd switch to an actual server at that point.

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

No branches or pull requests

3 participants