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

DB-WAL keeps growing #7646

Closed
martupeppeadmin opened this issue Dec 11, 2019 · 4 comments
Closed

DB-WAL keeps growing #7646

martupeppeadmin opened this issue Dec 11, 2019 · 4 comments

Comments

@martupeppeadmin
Copy link

Since I have updated to 2.6 the db-wa file keeps growing and it's not cleared after a sync session.

@theclem54
Copy link

This issue has also been identified in a couple of posts at ownCloud Central
https://central.owncloud.org/t/large-sync-db-wal-file-18gb/23085/3
https://central.owncloud.org/t/huge-db-wal-file-size-218gb-most-of-the-times-is-400gb/23902

I have found that if I quit ownCloud client, the db-wal file is removed.

I am using Windows Embedded on the system on which I have personally encountered a full drive issue and on Windows 10 I have also confirmed that quitting ownCloud client removes the file.

Expected behaviour is that the file is cleaned/removed at some regular interval, depending on it's function. If the file is not needed between multiple synchronisations, then it should be removed as soon as a synchronisation is completed.

@jnweiger
Copy link
Contributor

jnweiger commented Oct 15, 2020

https://www.sqlite.org/wal.html suggests that sqlite checkpointing should be performed periodically. Either automatically ("after 1000 rows" -- which I don't see happening) or manually. PRAGMA schema.wal_checkpoint;

As a rule of thumb, I suggest to merge the WAL at least when it reaches 50% of the size of the DB file.

@NicolasGoeddel
Copy link

Any chance that this can be fixed soon? Our wal file grows to a few gigabytes after just a month. I then have to stop the client and start it again which takes over half an hour, where 20 minutes is just the shutdown itself. The other 10 minutes is the discovery of the file system and creating those inotify watchers.

TheOneRing added a commit that referenced this issue Jan 15, 2021
This allow the creation of checkpoints and fixes the growing wal issue

Fixes: #7646
TheOneRing added a commit that referenced this issue Jan 18, 2021
This allow the creation of checkpoints and fixes the growing wal issue

Fixes: #7646
TheOneRing added a commit that referenced this issue Jan 18, 2021
This allow the creation of checkpoints and fixes the growing wal issue

Fixes: #7646
TheOneRing added a commit that referenced this issue Jan 18, 2021
This allow the creation of checkpoints and fixes the growing wal issue

Fixes: #7646
TheOneRing added a commit that referenced this issue Jan 18, 2021
This allow the creation of checkpoints and fixes the growing wal issue

Fixes: #7646
@jnweiger
Copy link
Contributor

Confirmed fixed with testpilotcloud 2.9.0 beta3 on win10

  • the wal file never grows beyond 4052KB
  • This size was quickly reached by repeatedly sharing and unsharing a gallery with 80 photos with this user.

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

Successfully merging a pull request may close this issue.

4 participants