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

Handle low storage (<1 GB) free space #1619

Open
Tracked by #2224
alltheseas opened this issue Oct 19, 2023 · 5 comments
Open
Tracked by #2224

Handle low storage (<1 GB) free space #1619

alltheseas opened this issue Oct 19, 2023 · 5 comments

Comments

@alltheseas
Copy link
Collaborator

alltheseas commented Oct 19, 2023

https://damus.io/note18yaem26028vr4ccxrmf5kdduu7y895sx4p0xu0rz5j9xa9yxetgsam9ulc

image

@jb55
Copy link
Collaborator

jb55 commented Oct 19, 2023 via email

@alltheseas
Copy link
Collaborator Author

guess we could just nuke the cache and nostrdb and switch to low data mode ?

Yes. Although there might be reason for the user to not want deletion of some locally stored files - trying to think of potential poor user experience.

Low data mode: #919

@alltheseas
Copy link
Collaborator Author

Experienced < 1 GB storage. Recurring crash, and reboot on Damus.

@alltheseas
Copy link
Collaborator Author

alltheseas commented Jan 24, 2024

1.7 (2) nostrdb note loading likely causing freeze and crash on devices with low free disk space

cc @danieldaquino @jb55

@alltheseas
Copy link
Collaborator Author

I wonder what to do when there isn’t enough disk space.

I’m thinking there are a few ways to address this:

  • We start a new NostrDB from scratch on the new container if there is no disk space
  • We make the NostrDB migration only when the user opts-in the Push notifications feature, and prevent them from doing so if there isn’t enough disk space

@jb55x, any preferences or other suggestions?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants