-
Notifications
You must be signed in to change notification settings - Fork 807
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]: Linux Desktop Client is constantly syncing and writing to disc even no changes happened #7317
Comments
Same or similar issue here. For me its syncing every ~7 seconds. I'm using v 3.14.1
Update: I downgraded temporarily to version 3.13.4 but its the same here. |
hmmm, I am wondering if my ssd-lifespan got eaten by the log files since the beginning of using nextcloud. I am also wondering, why they ignore this since years, because this can heavily impact the lifespan of all user's ssd. I checked it on my machine and it seems to write a lot of log-files as well. It also compresses the logfile 25 times a minute. So every minute I get 25 new .gz files. Due to other users posts and bug-reports, I think this problem could be existing since I started using nextcloud a couple of years ago. On the other hand, the syncing problem exists only since one of the last two updates. I have never seen changing the symbol so frequently. Normally the sync process only starts when new files saved to the nextcloud folder or existing ones got updated. Currently the nextcloud app is on "pause sync", so no log files really will be written. When I write/edit any file I manually start syncing once. This really is a pain in the ass. But the real problem is not the syncing, it's more the huge amount of files written. I thought this is just one problem, but know I think when the sync problem is solved, the writing problem could still exist. How do you disabled the logging? Like how the user thvitt did it on the bugreport you mentioned, or another way? |
See my comment here #5302 (comment) |
I had some errors in the server side-protocol, notably missing permissions on directories which blocked full scanning of files. |
Hi, seems to be the same use case than mine. What permissions have been missing in your Samba server? I am running Samba in docker environment. Greets Thorsten |
I tried to only sync a local nextcloud server folder, then the sync and write problem were gone. A nex logfile was written once every several minutes or so and not 25 times a minute. To be honest, there was only 1 file in it, while there are hundreds and thousands in the smb-folder I normally sync. On the Qnap nas (smb-server) the share has read/write/execute for owner/group/others (777 in linux). The user who accesses the share has read/write (execute cannot be configured) access. There aren't really more things you can change on the GUI. So I am also really interessted in what you have changed. |
I do not use Samba, I use local external storage. This storage contained some sub-folders that were not accessible to the Nextcloud user. As a result, the file scan couldn't complete. I changed the file permissions and now the file scan is complete and the constant syncing on the client side is gone. If you already have 777 on all files and (sub-)folders, there may be another problem on your end. You should look at the server protocol and try to resolve any errors listed there. |
Yesterday I realized, that after I changed the folder to synchronize from the smb-folder to the local nextcloud folder and then changing back, it does not sync the whole smb-folder again. There were some files missing, even the client doesn't show anything. Maybe I have to reproduce that and create a new bug report. Back to this issue, I changed the log-level on the server to debug and let the client active for about 30 seconds as it produces a lot of entries and viewing the server log became really slow and laggy since they changed it a couple of versions ago. I know I can download the log and have a view in another program, but for this time it was ok. The log only showed some dirty tables read. Don't know if they have anything to to with the client.
Any ideas? |
I'm also seeing this issue with "external storage" folders. In my case, my external storage is an S3 bucket. The fact that it also impacts S3 bucket external storage, makes me think it's a broader issue. Desktop app: My server does use SQLite for the database since it's a single-user instance. This is the only file-sync issue I've had. |
Hi, The Samba Docker log then shows then: Does anyone have an idea? |
Hi, I only have external storage linked to Nextcloud via SMB. For now, I've temporarily downgraded to version 3.12.3 (Flatpak). It's not a permanent solution either... I can't say why this version works, but maybe it’ll help someone. Nextloud works fine on Mac and Windows, but on Linux it's not working with the newer versions. |
I also see the "re-sync every other second" issue for one of my instances, but I realized another cause: Do you by any chance use shares with read-only permission? If so, please check if the issue is resolved by these steps:
If you now no longer see the "sync every other second" issue, the local write permissions (and their handling by the client) are the culprit. Probably check our #7318. This goes back on #6296 which landed in 3.13 in March 2024. I just filed #7586 "Issue 2" describes in detail what I was referring to here, but this seems to be 3.15+ specific. |
For me, the answer is "no". I am the only one using nextcloud and I configured read/write permissions in the smb-connector on the nextcloud GUI. The underlying QNAP NAS also has read/write permission for the user, who connects from nextcloud to Qnap. So I should have read/write permissions on any folder/file. In my last post I have written, that after changing to a local nextcloud folder only, the sync worked, but after changing back to the smb folder, not all files were syncing correctly. So something under the hood seems to make problems, but I had no time yet to really check that again and create a bug report. But both problems could be related. Back to the problem about the excessive syncing, I get several log entries for ALL files on the nextcloud. So more files you have, more log entries exist. Here are some important log-entry-examples. The first couple of lines show the start of the sync process, while line 7 has a list of all files and folders, which are several hundred. The three lines in the middle exist for all files in the nextcloud I think and the last line shows the successful sync status. The logfile has a size of about 10 MB with thousands of lines an will be created about 25 times a minute. Hard to analyse that to find out what the problem could be. May someone else have an idea, otherwise the desktop client is nearly useless as currently I only sync once a day.
|
Bug description
Since one of the last two updates (3.14.1 or 3.14.0) the nextcloud desktop client is syncing every second. This means that the icon changes from green with white checkmark to the blue syncing sign for about half a second, changes back to green sign and again after half of a second back to the syncing sign.
In the system monitor, the nextcloud desktop app writes constantly 1.7 mb/s to disk, which is about 50 GB on a full working day. This happens all the time, even no program is open or writing to the nextcloud folder. It does not occure, when no network connection is present. So maybe it could also be a problem on the nextcloud server.
Steps to reproduce
Expected behavior
The nextcloud desktop app should only sync, when a new file is created or a file has changed.
Which files are affected by this bug
Don't know which files are affected
Operating system
Linux
Which version of the operating system you are running.
ZorinOS 17.2
Package
Community FlatPak
Nextcloud Server version
29.0.8
Nextcloud Desktop Client version
3.14.1
Is this bug present after an update or on a fresh install?
Updated from a minor version (ex. 3.4.2 to 3.4.4)
Are you using the Nextcloud Server Encryption module?
Encryption is Disabled
Are you using an external user-backend?
Nextcloud Server logs
No response
Additional info
While this bug is present, I have updated the nextcloud server version from 29.0.7 (i guess) to 29.0.8 but the bug still exists. I am not a 100% sure if I have updated the desktop client as well, but I think the problem started with version 3.14.0 and I have updated it to 3.14.1 without success. I think the problem started after a desktop client update and not after a server update.
I have also tried to reinstall the nextcloud desktop client and deleted the local copies of all files and resynced them without success as well.
I am not syncing local data of the nextcloud server, the data are connected by smb to the nextcloud server from a Qnap NAS. I connected it via the GUI of Nextcloud and not via fstab or something on the linux server where nextcloud is installed.
The text was updated successfully, but these errors were encountered: