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]: Nextcloud Client corrupting Harddrives (SSD) - Severe Bug? #6364

Closed
4 tasks done
q2apro opened this issue Jan 19, 2024 · 11 comments
Closed
4 tasks done

[Bug]: Nextcloud Client corrupting Harddrives (SSD) - Severe Bug? #6364

q2apro opened this issue Jan 19, 2024 · 11 comments

Comments

@q2apro
Copy link

q2apro commented Jan 19, 2024

Bug description

Nextcloud starts with Windows. Starting full resynchronization process. Harddrive shows up as corrupted in Windows. No access to Harddrive and thus no sync is possible anymore (please read details below).

Steps to reproduce

  1. Have two SSDs (NTFS) in your system (one is 2TB, one is 4TB).
  2. Use the system for a few months.
  3. Turn your computer off for several days (shut down).
  4. Work on another computer remotely, that syncs to the server too.
  5. Start your main computer.
  6. There is a chance that one of the harddrives shows up as "corrupted" and cannot be accessed anymore.

image

Scan drive for errors

Forcing you to use fchdsk on next start which takes about 8 hours to fix the corrupted sectors!

Something similar has been reported at (but there with USB): https://www.reddit.com/r/NextCloud/comments/111o5pu/filesystem_corruption_due_to_nextcloud_am_i_the/)

Connection at my computer is SATA.

⚠️ After the first occurence of this "corrupted data" two months ago I bought a new 2 TB SSD and replaced the 2 TB SSD in my computer. Then I restarted Windows and Nextcloud started to sync/copy the server files to the SSD. After a few hours the same error showed up again. It was a brand new SSD!

⚠️ Once the error showed up on the 2 TB and a month later it happened on the 4TB.

⚠️ There were always files lost. I could see it with the "sync conflict" of the Nextcloud client. It showed the "local version" of the file with 0 MB and the server version with data.

In my opinion it is definitely the Nextcloud desktop client that writes in some way that the SSDs (NTFS) get corrputed.

SEVERE BUG

Expected behavior


Which files are affected by this bug

several local files

Operating system

Windows

Which version of the operating system you are running.

Windows 10

Package

Appimage

Nextcloud Server version

27.1.5

Nextcloud Desktop Client version

3.11.0

Is this bug present after an update or on a fresh install?

Fresh desktop client install

Are you using the Nextcloud Server Encryption module?

Encryption is Enabled

@marcotrevisan
Copy link

Hi @q2apro The Nextcloud Desktop can only use the operating system's usermode API to write files, how can such kind of usage cause a corruption at file system level?

Can you exclude, for example, the following cause: your SATA cable/connector is slightly damaged (perhaps not visibly) and Nextcloud is using your drive more often than the other apps, so when your hardware problem is causing corruption it will likely happen on Nextcloud data? This possible cause is perfectly fit for your steps to reproduce and the observed effects, and has higher chances to be true than a user app corrupting the filesystem.

Unfortunately your steps to reproduce won't systematically determine the described effect.

I hope this helps

@q2apro
Copy link
Author

q2apro commented Jan 19, 2024

Thank you for your reply.

The PC is brand-new (Gigabyte GTX1650 4GB GDDR5 passiv), also the cable.

Main SSD is SSD M.2 Samsung 980 500GB.

There are two added SSD:

  • Crucial MX500 4TB (CT4000MX500SSD1)
  • Samsung SSD 860 EVO 2TB

Connected like this:

image

image

image

image

Unfortunately I do not have another SATA cable at the moment.

However, I have removed Nextcloud from the autostart. This way I can see if the "corrupted harddrive" error also appears in the next days/weeks - without Nextcloud.

Note: The SSD harddrives I have used on a former computer without any errors. Only after getting the new computer, installing them, and using Nextcloud, the problem started.

@q2apro q2apro changed the title [Bug]: Nextcloud Client corrupting Harddrives (SSD) - Severe Bug! [Bug]: Nextcloud Client corrupting Harddrives (SSD) - Severe Bug? Jan 19, 2024
@marcotrevisan
Copy link

Thanks for your sharing! You might as well try to configure Nextcloud Desktop's synchronization folder to be in another disk i.e. the main disk, that may also help speeding up your troubleshooting.
Last but not least, I know I may sound paranoic but I would add 3.5" to 2.5" adapters for those two SSD's, I know they're solid state drives but you never know 🤞

@joshtrichards
Copy link
Member

Something similar has been reported at (but there with USB):

That other situation that was reported did turn out to be a hardware/local configuration issue. It was not the Desktop client.

@q2apro
Copy link
Author

q2apro commented Jan 31, 2024

Just wanted to report back that I did neither unplug the PC, nor turned it off. I came back after 10 days, turned on the PC and the SSDs worked.

It could be that the issue is related to: https://www.reddit.com/r/buildapc/comments/14ib1v0/power_went_out_while_gaming_now_my_ssd_doesnt/

For anyone having some SSD issue, try:

Power off the PC.
Unplug the power cord from the power socket.
Press power button for few seconds to drain all the residual power stored in the capacitors.
Plug the cable back and power the PC now and check.

As a next attempt, I will turn off the PC completely (also unplug the socket) and report back in two weeks if the error above happened again.

@q2apro
Copy link
Author

q2apro commented Feb 1, 2024

Update:

In the evening I let the computer running, Nextcloud said the sync will take 5 hours.

The next morning I returned to the computer and see the Windows error message again: "Scan drive for errors"

Nextcloud was not running anymore. So I think Windows updated over night and restarted.

This morning I have changed the two SATA cables. Restarted the computer.

Started Nextcloud again, seemed to have synched all data. But showed this error:

image

Now running chkdsk -f -r which will take up to 9 hours.

screenshot 3

I will report back.


Here are the logs before the error (found in C:\Users\myuser\AppData\Roaming\Nextcloud\logs):

2024-01-31 21:56:38:453 [ info nextcloud.gui.folder.manager C:\Users\User\AppData\Local\Temp\windows-19197\client-building\desktop\src\gui\folderman.cpp:1167 ]:	<========== Sync finished for folder [D:] of account [[email protected]] with remote [https://nx12345.your-storageshare.de/remote.php/dav/files/Nextcloud-Drive-Storage/Volume-D]
2024-01-31 21:56:38:453 [ info nextcloud.gui.folder.manager C:\Users\User\AppData\Local\Temp\windows-19197\client-building\desktop\src\gui\folderman.cpp:882 ]:	Starting the next scheduled sync in 12 seconds
2024-01-31 21:56:40:798 [ info nextcloud.gui.folder.manager C:\Users\User\AppData\Local\Temp\windows-19197\client-building\desktop\src\gui\folderman.cpp:1112 ]:	Scheduling folder "2" , the last 1 syncs failed , anotherSyncNeeded 1 , last status: "Error" , time since last sync: 126178
2024-01-31 21:56:40:798 [ info nextcloud.gui.folder.manager C:\Users\User\AppData\Local\Temp\windows-19197\client-building\desktop\src\gui\folderman.cpp:701 ]:	Schedule folder  "2"  to sync!
2024-01-31 21:56:40:798 [ info nextcloud.gui.folder.manager C:\Users\User\AppData\Local\Temp\windows-19197\client-building\desktop\src\gui\folderman.cpp:714 ]:	Sync for folder  "2"  already scheduled, do not enqueue!
2024-01-31 21:56:45:798 [ info nextcloud.gui.folder.manager C:\Users\User\AppData\Local\Temp\windows-19197\client-building\desktop\src\gui\folderman.cpp:1112 ]:	Scheduling folder "2" , the last 1 syncs failed , anotherSyncNeeded 1 , last status: "Error" , time since last sync: 131178
2024-01-31 21:56:45:798 [ info nextcloud.gui.folder.manager C:\Users\User\AppData\Local\Temp\windows-19197\client-building\desktop\src\gui\folderman.cpp:701 ]:	Schedule folder  "2"  to sync!
2024-01-31 21:56:45:798 [ info nextcloud.gui.folder.manager C:\Users\User\AppData\Local\Temp\windows-19197\client-building\desktop\src\gui\folderman.cpp:714 ]:	Sync for folder  "2"  already scheduled, do not enqueue!
2024-01-31 21:56:50:797 [ info nextcloud.gui.folder.manager C:\Users\User\AppData\Local\Temp\windows-19197\client-building\desktop\src\gui\folderman.cpp:1112 ]:	Scheduling folder "2" , the last 1 syncs failed , anotherSyncNeeded 1 , last status: "Error" , time since last sync: 136176
2024-01-31 21:56:50:797 [ info nextcloud.gui.folder.manager C:\Users\User\AppData\Local\Temp\windows-19197\client-building\desktop\src\gui\folderman.cpp:701 ]:	Schedule folder  "2"  to sync!
2024-01-31 21:56:50:797 [ info nextcloud.gui.folder.manager C:\Users\User\AppData\Local\Temp\windows-19197\client-building\desktop\src\gui\folderman.cpp:714 ]:	Sync for folder  "2"  already scheduled, do not enqueue!
2024-01-31 21:56:50:864 [ info nextcloud.gui.application C:\Users\User\AppData\Local\Temp\windows-19197\client-building\desktop\src\gui\owncloudgui.cpp:233 ]:	Sync state changed for folder  "https://nx12345.your-storageshare.de/remote.php/dav/files/Nextcloud-Drive-Storage/Volume-E" :  "Preparing to sync"
2024-01-31 21:56:50:864 [ info nextcloud.gui.folder C:\Users\User\AppData\Local\Temp\windows-19197\client-building\desktop\src\gui\folder.cpp:1023 ]:	*** Start syncing  "https://nx12345.your-storageshare.de/remote.php/dav/files/Nextcloud-Drive-Storage/Volume-E"  - Nextcloud client version 3.11.0stable-Win64 (build 20231211)
2024-01-31 21:56:50:926 [ info nextcloud.gui.folder C:\Users\User\AppData\Local\Temp\windows-19197\client-building\desktop\src\gui\folder.cpp:1063 ]:	Forbidding local discovery to read from the database
2024-01-31 21:56:50:937 [ info nextcloud.gui.folder.manager C:\Users\User\AppData\Local\Temp\windows-19197\client-building\desktop\src\gui\folderman.cpp:1148 ]:	>========== Sync started for folder [E:] of account [[email protected]] with remote [https://nx12345.your-storageshare.de/remote.php/dav/files/Nextcloud-Drive-Storage/Volume-E]
2024-01-31 21:56:50:956 [ warning nextcloud.sync.database.sql C:\Users\User\AppData\Local\Temp\windows-19197\client-building\desktop\src\common\ownsql.cpp:264 ]:	Sqlite prepare statement error: "disk I/O error" in "PRAGMA quick_check;"
2024-01-31 21:56:50:956 [ warning nextcloud.sync.database.sql C:\Users\User\AppData\Local\Temp\windows-19197\client-building\desktop\src\common\ownsql.cpp:97 ]:	Error preparing quick_check on database
2024-01-31 21:56:50:956 [ critical nextcloud.sync.database.sql C:\Users\User\AppData\Local\Temp\windows-19197\client-building\desktop\src\common\ownsql.cpp:150 ]:	Consistency check failed, removing broken db "E:/.sync_74717f732702.db"
2024-01-31 21:56:50:957 [ info nextcloud.sync.database C:\Users\User\AppData\Local\Temp\windows-19197\client-building\desktop\src\common\syncjournaldb.cpp:338 ]:	sqlite3 version "3.42.0"
2024-01-31 21:56:50:957 [ info nextcloud.sync.database C:\Users\User\AppData\Local\Temp\windows-19197\client-building\desktop\src\common\syncjournaldb.cpp:350 ]:	sqlite3 locking_mode= "exclusive"
2024-01-31 21:56:50:957 [ warning nextcloud.sync.database.sql C:\Users\User\AppData\Local\Temp\windows-19197\client-building\desktop\src\common\ownsql.cpp:264 ]:	Sqlite prepare statement error: "disk I/O error" in "PRAGMA journal_mode=WAL;"
2024-01-31 21:56:50:957 [ fatal default C:\Users\User\AppData\Local\Temp\windows-19197\client-building\desktop\src\common\ownsql.cpp:265 ]:	ENFORCE: "allow_failure" in file C:\Users\User\AppData\Local\Temp\windows-19197\client-building\desktop\src\common\ownsql.cpp, line 265 with message: SQLITE Prepare error

Sqlite prepare statement error: "disk I/O error" in "PRAGMA journal_mode=WAL;"

The other log files are also at 21:56 and before. So I guess the Windows restart did not happen, but the error appeared with Nextcloud. And Nextcloud shut down.

I checked all the Windows startup times with Get-WinEvent -LogName Microsoft-Windows-Diagnostics-Performance/Operational | Where { $_.Id -eq 100} in PowerShell:

TimeCreated                      Id LevelDisplayName Message
-----------                      -- ---------------- -------
01.02.2024 08:21:12             100 Warning          Windows has started up: ...
01.02.2024 08:18:25             100 Error            Windows has started up: ...
19.01.2024 15:15:39             100 Warning          Windows has started up: ...
18.01.2024 20:50:35             100 Warning          Windows has started up: ...

There was no Windows reboot on 31.01.2024.

The Error appeared while Nextcloud was operating.

@q2apro
Copy link
Author

q2apro commented Feb 1, 2024

And here is the Nextcloud sync log just before the other log file (which started 2024-01-31 21:56:38:453):

2024-01-31 21:56:38:082 [ info nextcloud.sync.propagator.root.directory C:\Users\User\AppData\Local\Temp\windows-19197\client-building\desktop\src\libsync\owncloudpropagator.cpp:1525 ]:	OCC::SyncFileItem::Success slotSubJobsFinished OCC::PropagatorJob::Running pending uploads 0 subjobs state OCC::PropagatorJob::Finished
2024-01-31 21:56:38:085 [ info nextcloud.sync.propagator.root.directory C:\Users\User\AppData\Local\Temp\windows-19197\client-building\desktop\src\libsync\owncloudpropagator.cpp:1501 ]:	scheduleSelfOrChild OCC::PropagatorJob::Running pending uploads 0 subjobs state OCC::PropagatorJob::Finished
2024-01-31 21:56:38:085 [ info nextcloud.sync.propagator C:\Users\User\AppData\Local\Temp\windows-19197\client-building\desktop\src\libsync\owncloudpropagator.h:220 ]:	Starting CSyncEnums::CSYNC_INSTRUCTION_REMOVE propagation of "Portables/VLCPortable/App/vlc/lua/meta/fetcher" by OCC::PropagateLocalRemove(0x233fb48efc0)
2024-01-31 21:56:38:085 [ info nextcloud.sync.propagator.localremove C:\Users\User\AppData\Local\Temp\windows-19197\client-building\desktop\src\libsync\propagatorjobs.cpp:94 ]:	Start propagate local remove job
2024-01-31 21:56:38:085 [ info nextcloud.sync.propagator.localremove C:\Users\User\AppData\Local\Temp\windows-19197\client-building\desktop\src\libsync\propagatorjobs.cpp:102 ]:	Going to delete: "D:/Portables/VLCPortable/App/vlc/lua/meta/fetcher"
2024-01-31 21:56:38:085 [ warning nextcloud.sync.filesystem C:\Users\User\AppData\Local\Temp\windows-19197\client-building\desktop\src\libsync\filesystem.cpp:176 ]:	Error removing folder "D:/Portables/VLCPortable/App/vlc/lua/meta/fetcher"
2024-01-31 21:56:38:085 [ warning nextcloud.sync.propagator C:\Users\User\AppData\Local\Temp\windows-19197\client-building\desktop\src\libsync\owncloudpropagator.cpp:286 ]:	Could not complete propagation of "Portables/VLCPortable/App/vlc/lua/meta/fetcher" by OCC::PropagateLocalRemove(0x233fb48efc0) with status OCC::SyncFileItem::NormalError and error: "Could not remove folder \"D:\\Portables\\VLCPortable\\App\\vlc\\lua\\meta\\fetcher\""
2024-01-31 21:56:38:088 [ warning nextcloud.gui.activity C:\Users\User\AppData\Local\Temp\windows-19197\client-building\desktop\src\gui\tray\usermodel.cpp:878 ]:	Item  "Portables/VLCPortable/App/vlc/lua/meta/fetcher"  retrieved resulted in  "Could not remove folder \"D:\\Portables\\VLCPortable\\App\\vlc\\lua\\meta\\fetcher\""
2024-01-31 21:56:38:088 [ warning nextcloud.gui.activity C:\Users\User\AppData\Local\Temp\windows-19197\client-building\desktop\src\gui\tray\usermodel.cpp:840 ]:	Item  "Portables/VLCPortable/App/vlc/lua/meta/fetcher"  retrieved resulted in error  "Could not remove folder \"D:\\Portables\\VLCPortable\\App\\vlc\\lua\\meta\\fetcher\""
2024-01-31 21:56:38:105 [ info nextcloud.sync.propagator C:\Users\User\AppData\Local\Temp\windows-19197\client-building\desktop\src\libsync\owncloudpropagator.cpp:1384 ]:	PropagateDirectory::slotFirstJobFinished emit finished OCC::SyncFileItem::NormalError
2024-01-31 21:56:38:105 [ info nextcloud.sync.propagator C:\Users\User\AppData\Local\Temp\windows-19197\client-building\desktop\src\libsync\owncloudpropagator.cpp:1580 ]:	PropagateRootDirectory::slotDirDeletionJobsFinished emit finished OCC::SyncFileItem::NormalError
2024-01-31 21:56:38:124 [ info nextcloud.sync.engine C:\Users\User\AppData\Local\Temp\windows-19197\client-building\desktop\src\libsync\syncengine.cpp:983 ]:	Sync run took  63245 ms
2024-01-31 21:56:38:128 [ info nextcloud.gui.folder C:\Users\User\AppData\Local\Temp\windows-19197\client-building\desktop\src\gui\folder.cpp:1159 ]:	Client version 3.11.0stable-Win64 (build 20231211)  Qt 5.15.10  SSL  OpenSSL 3.1.3 19 Sep 2023
2024-01-31 21:56:38:128 [ warning nextcloud.gui.folder C:\Users\User\AppData\Local\Temp\windows-19197\client-building\desktop\src\gui\folder.cpp:1166 ]:	SyncEngine finished with ERROR
2024-01-31 21:56:38:133 [ debug com.nextcloud.owncloudgui C:\Users\User\AppData\Local\Temp\windows-19197\client-building\desktop\src\gui\owncloudgui.cpp:410 ]	[ OCC::ownCloudGui::slotShowTrayMessage ]:	Going to show notification with title: ' "Sync Activity" ' and message: ' "Portables\\VLCPortable\\App\\vlc\\lua\\meta\\fetcher could not be synced due to an error. See the log for details." '
2024-01-31 21:56:38:136 [ info nextcloud.gui.folder C:\Users\User\AppData\Local\Temp\windows-19197\client-building\desktop\src\gui\folder.cpp:412 ]:	Folder "" sync result:  OCC::SyncResult::SyncRunning
2024-01-31 21:56:38:136 [ info nextcloud.gui.folder C:\Users\User\AppData\Local\Temp\windows-19197\client-building\desktop\src\gui\folder.cpp:1195 ]:	the last 2 syncs failed
2024-01-31 21:56:38:137 [ info nextcloud.gui.application C:\Users\User\AppData\Local\Temp\windows-19197\client-building\desktop\src\gui\owncloudgui.cpp:233 ]:	Sync state changed for folder  "https://nx12345.your-storageshare.de/remote.php/dav/files/Nextcloud-Drive-Storage/Volume-D" :  "Error"

SyncEngine finished with ERROR

@q2apro
Copy link
Author

q2apro commented Feb 1, 2024

And besides, the 139 error messages Nextcloud throws and says "Could not remove folder".

image

Here are entries from the log:

2024-02-01 15:39:36:539 [ info nextcloud.sync.propagator.localremove C:\Users\User\AppData\Local\Temp\windows-20060\client-building\desktop\src\libsync\propagatorjobs.cpp:94 ]:	Start propagate local remove job
2024-02-01 15:39:36:539 [ info nextcloud.sync.propagator.localremove C:\Users\User\AppData\Local\Temp\windows-20060\client-building\desktop\src\libsync\propagatorjobs.cpp:102 ]:	Going to delete: "E:/Pictures/Favorite Photos"
2024-02-01 15:39:36:539 [ warning nextcloud.sync.filesystem C:\Users\User\AppData\Local\Temp\windows-20060\client-building\desktop\src\libsync\filesystem.cpp:176 ]:	Error removing folder "E:/Pictures/Favorite Photos"
2024-02-01 15:39:36:539 [ warning nextcloud.sync.propagator C:\Users\User\AppData\Local\Temp\windows-20060\client-building\desktop\src\libsync\owncloudpropagator.cpp:286 ]:	Could not complete propagation of "Pictures/Favorite Photos" by OCC::PropagateLocalRemove(0x249991a0460) with status OCC::SyncFileItem::NormalError and error: "Could not remove folder \"E:\\Pictures\\Favorite Photos\""
2024-02-01 15:39:36:539 [ warning nextcloud.gui.activity C:\Users\User\AppData\Local\Temp\windows-20060\client-building\desktop\src\gui\tray\usermodel.cpp:878 ]:	Item  "Pictures/Favorite Photos"  retrieved resulted in  "Could not remove folder \"E:\\Pictures\\Favorite Photos\""
2024-02-01 15:39:36:539 [ warning nextcloud.gui.activity C:\Users\User\AppData\Local\Temp\windows-20060\client-building\desktop\src\gui\tray\usermodel.cpp:840 ]:	Item  "Pictures/Favorite Photos"  retrieved resulted in error  "Could not remove folder \"E:\\Pictures\\Favorite Photos\""
2024-02-01 15:39:36:539 [ info nextcloud.sync.propagator C:\Users\User\AppData\Local\Temp\windows-20060\client-building\desktop\src\libsync\owncloudpropagator.cpp:1384 ]:	PropagateDirectory::slotFirstJobFinished emit finished OCC::SyncFileItem::NormalError
 
2024-02-01 15:39:36:543 [ info nextcloud.sync.propagator C:\Users\User\AppData\Local\Temp\windows-20060\client-building\desktop\src\libsync\owncloudpropagator.h:220 ]:	Starting CSyncEnums::CSYNC_INSTRUCTION_REMOVE propagation of "Pictures/2024/Whatsapp/WhatsApp Voice Notes" by OCC::PropagateLocalRemove(0x249991a0be0)
2024-02-01 15:39:36:543 [ info nextcloud.sync.propagator.localremove C:\Users\User\AppData\Local\Temp\windows-20060\client-building\desktop\src\libsync\propagatorjobs.cpp:94 ]:	Start propagate local remove job
2024-02-01 15:39:36:543 [ info nextcloud.sync.propagator.localremove C:\Users\User\AppData\Local\Temp\windows-20060\client-building\desktop\src\libsync\propagatorjobs.cpp:102 ]:	Going to delete: "E:/Pictures/2024/Whatsapp/WhatsApp Voice Notes"
2024-02-01 15:39:36:543 [ warning nextcloud.sync.filesystem C:\Users\User\AppData\Local\Temp\windows-20060\client-building\desktop\src\libsync\filesystem.cpp:176 ]:	Error removing folder "E:/Pictures/2024/Whatsapp/WhatsApp Voice Notes"
2024-02-01 15:39:36:543 [ warning nextcloud.sync.propagator C:\Users\User\AppData\Local\Temp\windows-20060\client-building\desktop\src\libsync\owncloudpropagator.cpp:286 ]:	Could not complete propagation of "Pictures/2024/Whatsapp/WhatsApp Voice Notes" by OCC::PropagateLocalRemove(0x249991a0be0) with status OCC::SyncFileItem::NormalError and error: "Could not remove folder \"E:\\Pictures\\2024\\Whatsapp\\WhatsApp Voice Notes\""
2024-02-01 15:39:36:544 [ warning nextcloud.gui.activity C:\Users\User\AppData\Local\Temp\windows-20060\client-building\desktop\src\gui\tray\usermodel.cpp:878 ]:	Item  "Pictures/2024/Whatsapp/WhatsApp Voice Notes"  retrieved resulted in  "Could not remove folder \"E:\\Pictures\\2024\\Whatsapp\\WhatsApp Voice Notes\""
2024-02-01 15:39:36:544 [ warning nextcloud.gui.activity C:\Users\User\AppData\Local\Temp\windows-20060\client-building\desktop\src\gui\tray\usermodel.cpp:840 ]:	Item  "Pictures/2024/Whatsapp/WhatsApp Voice Notes"  retrieved resulted in error  "Could not remove folder \"E:\\Pictures\\2024\\Whatsapp\\WhatsApp Voice Notes\""
 
2024-02-01 15:39:36:618 [ warning nextcloud.sync.propagator C:\Users\User\AppData\Local\Temp\windows-20060\client-building\desktop\src\libsync\owncloudpropagator.cpp:286 ]:	Could not complete propagation of "Pictures/2023/2023-08/WhatsApp Video" by OCC::PropagateLocalRemove(0x2499930a490) with status OCC::SyncFileItem::NormalError and error: "Could not remove folder \"E:\\Pictures\\2023\\2023-08\\WhatsApp Video\\Private\", Could not remove folder \"E:\\Pictures\\2023\\2023-08\\WhatsApp Video\\Sent\""
2024-02-01 15:39:36:618 [ warning nextcloud.gui.activity C:\Users\User\AppData\Local\Temp\windows-20060\client-building\desktop\src\gui\tray\usermodel.cpp:878 ]:	Item  "Pictures/2023/2023-08/WhatsApp Video"  retrieved resulted in  "Could not remove folder \"E:\\Pictures\\2023\\2023-08\\WhatsApp Video\\Private\", Could not remove folder \"E:\\Pictures\\2023\\2023-08\\WhatsApp Video\\Sent\""
2024-02-01 15:39:36:618 [ warning nextcloud.gui.activity C:\Users\User\AppData\Local\Temp\windows-20060\client-building\desktop\src\gui\tray\usermodel.cpp:840 ]:	Item  "Pictures/2023/2023-08/WhatsApp Video"  retrieved resulted in error  "Could not remove folder \"E:\\Pictures\\2023\\2023-08\\WhatsApp Video\\Private\", Could not remove folder \"E:\\Pictures\\2023\\2023-08\\WhatsApp Video\\Sent\""
2024-02-01 15:39:36:618 [ info nextcloud.sync.propagator C:\Users\User\AppData\Local\Temp\windows-20060\client-building\desktop\src\libsync\owncloudpropagator.cpp:1384 ]:	PropagateDirectory::slotFirstJobFinished emit finished OCC::SyncFileItem::NormalError
2024-02-01 15:39:36:637 [ info nextcloud.sync.propagator.root.directory C:\Users\User\AppData\Local\Temp\windows-20060\client-building\desktop\src\libsync\owncloudpropagator.cpp:1501 ]:	scheduleSelfOrChild OCC::PropagatorJob::Running pending uploads 0 subjobs state OCC::PropagatorJob::Finished
2024-02-01 15:39:36:637 [ info nextcloud.sync.propagator C:\Users\User\AppData\Local\Temp\windows-20060\client-building\desktop\src\libsync\owncloudpropagator.h:220 ]:	Starting CSyncEnums::CSYNC_INSTRUCTION_REMOVE propagation of "Pictures/2023/2023-08/WhatsApp Images" by OCC::PropagateLocalRemove(0x24999309170)

How to fix this issue?

@mgallien
Copy link
Collaborator

mgallien commented Feb 1, 2024

@q2apro
I may kindly suggest to try asking for help in https://help.nextcloud.com where you have more chance of getting help
as others said, this is very unlikely a bug from desktop client
I have been syncing lots of files on very active servers for ages with SSD without having ever encountered any issue
To conclude, I am sorry for your trouble and really hope people can help you recover 💙

@mgallien mgallien closed this as completed Feb 1, 2024
@mgallien
Copy link
Collaborator

mgallien commented Feb 1, 2024

I prefer closing this issue as I believe this is more a request for help (and I know people are actively helping on the forum)
I am unconvinced this is a bug at the level of desktop client

@marcotrevisan
Copy link

@q2apro as a side note: from the error messages you posted, looks like you're syncing also some app's internal folders (for instance: "D:\Portables\VLCPortable\App\vlc\lua\meta\fetcher").
This is generally not a good idea as the apps may keep their files open, and they may get corrupted when their work folders are touched by other processes. I'd avoid syncing an entire disk (even if it's an external one) or an entire user's folder. Much better setting a dedicated Nextcloud data folder and use that as a root for synchronization.
Also, it's worth noting that a given folder should never be synced by more than one sync service.

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

No branches or pull requests

4 participants