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

Client 3.4.1 Syncing does not work properly. #4141

Closed
Ithu123 opened this issue Jan 5, 2022 · 45 comments
Closed

Client 3.4.1 Syncing does not work properly. #4141

Ithu123 opened this issue Jan 5, 2022 · 45 comments

Comments

@Ithu123
Copy link

Ithu123 commented Jan 5, 2022

Expected behaviour

Files get synced, while displaying a blue icon on the file. Afterwards file is synced with server and displaying a green Icon.
Using Windows Desktop client 3.3.6, Explorer this worked.

Actual behaviour

Client starts syncing, displays blue icon, then stops and ignores the file completly. Client also says everthing is synced.
grafik
grafik

Steps to reproduce

  1. Update from 3.6.1 to 3.4.1
  2. Create new file

Client configuration

Client version: 3.4.0 and 3.4.1

Operating system: Windows 10

OS language: German

Installation path of client: C:\Program Files\Nextcloud

Server configuration

Dockerized Nextcloud 23.0.0, with sshfs Storage

Nextcloud version: 23

Logs

I would provide logs, but there seem to be non for the faild sync.

@Ithu123 Ithu123 added the bug label Jan 5, 2022
@skj-dev
Copy link

skj-dev commented Jan 6, 2022

I experienced this on macOS (v12.1) as well, and rolled the desktop client back to 3.3.6 to have consistent syncing. There didn't seem to be any rhyme or reason to the files/folders that sync skipped.

I'm also using server version v23.0.0.

@araschke
Copy link

araschke commented Jan 6, 2022

I can confirm the behaviour described by lthu123. Same configuration (Windows 10, Desktop-Client 3.4.1, Server-Version 23.0)

@TimGitHoub
Copy link

Same problem here and same configuration.

@koppd
Copy link

koppd commented Jan 10, 2022

What's the file size of your test files?
Zero? Then it's the same issue as in bug #4157.

@skj-dev
Copy link

skj-dev commented Jan 10, 2022

In my case I don't think that (sync blocked by zero length files) was a factor. Some files would sync, and others would not. The files that did not sync were not zero length files. For me, this was apparently an issue for a lot longer than I realized, as when I reverted to desktop client v3.3.6 there were a lot of files that were suddenly synced from my local system to the server of varying ages, sizes, locations.

@Ithu123
Copy link
Author

Ithu123 commented Jan 10, 2022

What's the file size of your test files? Zero? Then it's the same issue as in bug #4157.

Nah, at least with my testing on Client v.3.4.0 file sizes varied from few kB to few MB. File size did not matter, as far as i can tell. In this case particular case file size varied in the kB range.

@ALLNL
Copy link

ALLNL commented Jan 11, 2022

I have the same issue with v3.4.1 (Windows 11) (Nextcloud v23.0.0 and v23.0.1rc1)

We only have this problem on Federation Share. This mean if I share a folder with other instance and create a file, the sync does not work. Moving a file to the shared folder sync works without problem.

v3.3.6 does not have this problem, I recommend downgrading:
https://github.com/nextcloud/desktop/releases/tag/v3.3.6

@koukjo
Copy link

koukjo commented Jan 11, 2022

The same issue appears in Archlinux nextcloud client v3.4.1 (Nextcloud v23.0.0)
When copying a file in the local folder nextcloud client syncs but no files has been uploaded in the server.
Downgrading to v3.3.6 also worked for me.

@sangfroid70
Copy link

Same issue since I upgraded to Nextcloud Server 23.0.0
Client :

Nextcloud version 3.4.1git
Git revision fa32c100148925092c9a320e6f8e2e0130b9cb6a
Using Qt 5.15.2, built against Qt 5.15.2
Using Qt platform plugin 'xcb'
Using 'OpenSSL 1.1.1m  14 Dec 2021'
Running on Arch Linux, x86_64

How to reproduce :
put a file in a folder of my laptop, the client seems starting to sync and client doesn't respond anymore.
No error or warning in logs.

@ghost
Copy link

ghost commented Jan 15, 2022

After reading this issue, I realized, that I have the same problem too with client 3.4.1 on windows10 and nc 23.0.1 RC1. After downgrading to client 3.3.6 over hundreds of new vacation-fotos were then synced between PC and server (and then with the androidclient on several other devices).

I'm still trying to figur out, if the syncing between android-devices and server is also involved (which would mean this is really a server-problem). And I'm not sure if this has led to data-loss; still investigating that.

@rhmkt
Copy link

rhmkt commented Jan 19, 2022

I have the same issue, Windows client 3.4.1, Windows 10 x64 21H2, NextCloud 23.0.0

@KimmoJ
Copy link

KimmoJ commented Jan 27, 2022

I'm seeing this also, 3.4.1 on Windows 10 vs a freshly installed NC 23. Something is definitely off. I have partial folders uploading and others not, only some files are tagged as synced in the Windows Explorer, it's like the client can't "see them" or whatever. I connected to the NC via Webdav and Windows Explorer and uploaded a folder that way and the client then downloaded the files from the NC, but things I add in the client folder for upload gets partially uploaded only. Very disturbing behavior, I wish it would just fail so you know, now I'm just not sure what's up there and what isn't. Something with the client and/or NC 23 "bulk upload" improvements...? Still, I guess I'd rather it be the client that's busted than the entire Nextcloud, so fingers crossed it's "just" that.

Update: Client 3.3.6 immediately uploaded a bunch of files when I downgraded to that version, so the 3.4.x client right now is not ok.

@Emporea
Copy link

Emporea commented Jan 27, 2022

Anyone has infos about this problem occuring on Nextcloud Server <23?

@holzfelix
Copy link

I have the Same issue!

@holzfelix
Copy link

I can confirm that a downgrade to 3.3.6 solves the problem. Server is V23

The 3.4 client is broken.

@JMLatGitHub
Copy link

Anyone has infos about this problem occuring on Nextcloud Server <23?

Hi there, @Emporea.

My setup:
Debian Sid (Testing V12, Bookworm), Linux-Kernel SMP Debian 5.15.15-1 (2022-01-18) x86_64 GNU/Linux); Redis Server 6.0.16; MariaDB 10.5.12; STUN/TURN Server (coTURN) 4.5.2 'dan Eider'; PHP 8.0.14; NGINX 1.21.6; Nextcloud Server 21.0.2.1

Testing constellations:
Created/copied four directories with 12 files each into four different Sync Folder connections, one of them defined as Virtual Files connection.

Client scenarios:
Nextcloud Desktop Client 3.3.6: Sync successful.
Nextcloud Desktop Client 3.4.1: Sync successful.
Nextcloud Desktop Client 3.4.2: Sync successful, but without Windows File Manager overlay icons that should indicate the sync state of folders and files (bug reported already #4223). I have verified the successful synchronization via web access to the server.

@Emporea
Copy link

Emporea commented Jan 29, 2022

I guess the nextcloud v23 sync 2.0 is more like a sync 0.02 alpha.
I once thought Nextcloud was stable. Now I would call it experimental.

@JMLatGitHub
Copy link

Well, in the meantime, I basically assume with every new announcement/major change that there will be correspondingly big problems... that's why I'm currently still at V21 on the server side. 🤷‍♂️

@CyprusSocialite
Copy link

I'm experiencing the same problem with 3.4.2 on Windows with the exception that sometimes the folder itself might appear synched (green checkmark), but the underlying files still aren't.

I noticed that once some sort of change is introduced, for example one of those files is renamed, Nextcloud does detect and sync it - now together with everything else in the directory.

Perhaps this is the result of an oversight in some attempt at optimising how sync traverses directory trees?..

@Emporea
Copy link

Emporea commented Jan 29, 2022

Well, in the meantime, I basically assume with every new announcement/major change that there will be correspondingly big problems... that's why I'm currently still at V21 on the server side. 🤷‍♂️

Yeah I am also on 22. Besides the timestamp to epoch 0 problem its working so far I guess. But who knows.

@Korsani
Copy link

Korsani commented Jan 30, 2022

I can confirm that a downgrade to 3.3.6 solves the problem. Server is V23

The 3.4 client is broken.

Same issue here :

  • MacOS 11.6
  • NC Server 23.0
    Client take 100% cpu and get stuck upon syncing TO the server. It seems to sync well FROM the server.
    And forcing a sync via nextcloudcmd clean the stuff (allows the client to not eat all CPU)
    Downgrading to 3.3.6 seems to fix.

@neumantm
Copy link

Can confirm that this issue doesn't seem to appear on older versions of the server (21 in my case).

@CyprusSocialite
Copy link

Can confirm that this issue doesn't seem to appear on older versions of the server (21 in my case).

Isn't this a client issue?

@m707
Copy link

m707 commented Jan 30, 2022 via email

@CyprusSocialite
Copy link

I am afraid it's a combined issue :(. 3.4.1 seems to be working with old server (<22) where 3.3.6 seems to work with everything.

Schade

@m707
Copy link

m707 commented Feb 2, 2022

After update to 3.4.2 my issues are fixed again.

Glücklich ;)

@holzfelix
Copy link

After update to 3.4.2 my issues are fixed again.

Glücklich ;)

I can't confirm that

@Ralf-J
Copy link

Ralf-J commented Feb 4, 2022

Unfortunately can also not confirm that the issue is resolved with 3.4.2. Using it on MacOS 12; server Version is 23.

@juliusknorr
Copy link
Member

I can also reproduce this issue here with files that are below 1MB, I watched some debug archive that I'll share separately by running multiple of dd if=/dev/urandom of=1024K bs=1024 count=1024

Screenshot 2022-02-10 at 09 08 02

@rhmkt
Copy link

rhmkt commented Feb 13, 2022

I seem to be having the issue even more now. I have 3.3.6 installed and was working great on a computer that has had NextCloud desktop client for at least a year. The server version has upgraded through time, while this older PC was using it. Ran into the 3.4.X problem and commented above.

Now I have a new PC, so I installed 3.3.6 directly to avoid the problem, but it did not resolve the issue. The new PC does not detect new files unless the client is closed and reopened, only randomly in random folders. Copied settings and data from old PC, but the issue still exists. Tried upgrading to 3.4.2 and down to 3.3.3, the same problem exists.

The server version is still 23.0.0.10.

I have also tried files in varying sizes, from a few KB to many MB. No change. If the file exists before, and I delete it, it detects the delete. If I re-add, it sometimes detects the re-added files. New files get ignored entirely.

Any tips to get it at least semi-working? I am about ready to blow my server away and go back to 22.X, just a lot of time and work that I want to avoid if possible.

@Emporea
Copy link

Emporea commented Feb 13, 2022

The changelog isnt on the website yet but you could atleast try 23.0.1 or even 23.0.2rc

@rhmkt
Copy link

rhmkt commented Feb 13, 2022

I seem to be having the issue even more now. I have 3.3.6 installed and was working great on a computer that has had NextCloud desktop client for at least a year. The server version has upgraded through time, while this older PC was using it. Ran into the 3.4.X problem and commented above.

Now I have a new PC, so I installed 3.3.6 directly to avoid the problem, but it did not resolve the issue. The new PC does not detect new files unless the client is closed and reopened, only randomly in random folders. Copied settings and data from old PC, but the issue still exists. Tried upgrading to 3.4.2 and down to 3.3.3, the same problem exists.

The server version is still 23.0.0.10.

I have also tried files in varying sizes, from a few KB to many MB. No change. If the file exists before, and I delete it, it detects the delete. If I re-add, it sometimes detects the re-added files. New files get ignored entirely.

Any tips to get it at least semi-working? I am about ready to blow my server away and go back to 22.X, just a lot of time and work that I want to avoid if possible.

It appears that if you copy the NextCloud settings from one PC to another, the folders do not sync right. I uninstalled everything and cleared all the user profile data from the new PC. I then installed 3.3.6 and manually recreated each synced folder (leaving virtual files off, not sure if that makes a difference) and it appears to be working again. So something with copying the NextCloud config file from one PC to another causes issues with syncing and noticing changes.

My assumption is the original issues referenced above still exist, as nothing worked on the old PC with the 3.4.2 client when I tested it.

@lars-becker
Copy link

Whatever it is, is has something to do with the new bulk upload. The last line of the client log always look similar to this:

[ OCC::CookieJar::cookiesForUrl ]:	QUrl("https://***.de/remote.php/dav/bulk") requests: (QNetworkCookie("__Host-nc_sameSiteCookielax=true; secure; HttpOnly; SameSite=lax; expires=Fri, 31-Dec-2100 23:59:59 GMT; domain=***.de; path=/"), QNetworkCookie("__Host-nc_sameSiteCookiestrict=true; secure; HttpOnly; SameSite=strict; expires=Fri, 31-Dec-2100 23:59:59 GMT; domain=***.de; path=/"), QNetworkCookie("oc_sessionPassphrase=***; secure; HttpOnly; SameSite=Lax; domain=***.de; path=/"), QNetworkCookie("***; secure; HttpOnly; SameSite=Lax; domain=cloud.europa-union-hamburg.de; path=/"))
2022-02-16 01:06:32:031 [ info nextcloud.sync.networkjob /build/nextcloud-client/src/nextcloud-client/src/libsync/abstractnetworkjob.cpp:361 ]:	OCC::PutMultiFileJob created for "***.de" + "" "OCC::BulkPropagatorJob"

Is there a possibility to disable bulk uploads? This feature is highly disruptive because it's impossible to work with the sync client.

I don'T think that it has anything to do with the virtual files, because I'm using the Linux version without virtual files and it happens on my desktop as well as on those who are using windows with and without virtual files.

@pandorra2
Copy link

Is there a possibility to disable bulk uploads? This feature is highly disruptive because it's impossible to work with the sync client.

#4243 (comment)
;)

@LecrisUT
Copy link

LecrisUT commented Feb 25, 2022

So is it confirmed that with 23.0.2 and with bulk uploads disabled, this issue is not occurring. I would not call it resolved, but at the very least, if this issue is directly linked to desktop#4243 and server#29702, then we should close this one and move further discussions there.

Particularly can we get some updated feedback from:

  • @juliushaertl or anyone doing a similar test about the file size mattering: reply
  • @Ithu123 about the file size not mattering
  • @JorgeGNL is it related to Federation share (might be better to create a separate issue there)

Anybody else if they can give a detailed test that they have done particularly noting:

  • The versions of the Nextcloud server (particularly if it's 23.0.2), bulk upload setting and other v2 sync features (probably I have the name of the new sync engine wrong)
  • What configurations work or not with the latest client v3.4.2.
  • Setup of the files that create sync issues
  • Any other notable settings or conditions

@juliusknorr
Copy link
Member

Yes, for me the issue was mitigated with the bulk upload disabling, further more there was #4263 for additional hardening of the sync process.

In regards to the bulk upload topic there is also nextcloud/server#29702 for further tracking of the server side issues.

@Ithu123
Copy link
Author

Ithu123 commented Mar 21, 2022

So i finally had the time to update and it seems, that with bulk upload disabled the problem is gone. Unfortunately i am now witnessing other Problems.

@maja68
Copy link

maja68 commented Mar 22, 2022

Hi @Ithu123,

do you mind to give a reference to the issues you are facing? I mean, which other problems you are witnessing?

@Maarrk
Copy link

Maarrk commented Mar 25, 2022

Anybody else if they can give a detailed test that they have done particularly noting:

Had the described issue with this setup:

  • Server: 23.0.0
  • Client: Windows 3.4.1
  • Everything with default settings
  • Files were just put into the synchronised folder in bulk
    • I don't see anything specific with the files that didn't synchronise
    • I think it didn't happen to any file that I put there on it's own (it was only in the big backup folders)
    • There were circa 7400 files that didn't sync out of 17000, ( ca. 1GB out of 51GB)
  • Connection over HTTPS, AFAIK no E2EE

Steps done to fix:

Results:

  • Server is now 23.0.3
  • Missing files synchronised in a few minutes
  • Didn't see any issues yet, done some changes through client and web, things seem to work normally

@github-actions
Copy link

This bug report did not receive an update in the last 4 weeks. Please take a look again and update the issue with new details, otherwise the issue will be automatically closed in 2 weeks. Thank you!

@github-actions github-actions bot added the stale label Apr 22, 2022
@Quadratball
Copy link

Anybody else if they can give a detailed test that they have done particularly noting:

Had the described issue with this setup:

* Server: 23.0.0

* Client: Windows 3.4.1

* Everything with default settings

* Files were just put into the synchronised folder in bulk
  
  * I don't see anything specific with the files that didn't synchronise
  * I think it didn't happen to any file that I put there on it's own (it was only in the big backup folders)
  * There were circa 7400 files that didn't sync out of 17000, ( ca. 1GB out of 51GB)

* Connection over HTTPS, AFAIK no E2EE

Steps done to fix:

* [Updated via command line](https://docs.nextcloud.com/server/latest/admin_manual/maintenance/update.html#using-the-command-line-based-updater)

Results:

* Server is now 23.0.3

* Missing files synchronised in a few minutes

* Didn't see any issues yet, done some changes through client and web, things seem to work normally

Thanks, was running 23.0.0 and updated to 23.0.4 and everything works like charm.

@LecrisUT
Copy link

I believe we should close this issue for now as the title and most of the discussion are irrelevant now. Still keep in mind that the bulk sync with small/empty files is not yet tested.

@github-actions github-actions bot removed the stale label Apr 23, 2022
@github-actions
Copy link

This bug report did not receive an update in the last 4 weeks. Please take a look again and update the issue with new details, otherwise the issue will be automatically closed in 2 weeks. Thank you!

@github-actions github-actions bot added the stale label May 21, 2022
@github-actions
Copy link

github-actions bot commented Jun 4, 2022

This bug report is getting automatically closed due to no answer since the issue has been staled. Thank you!

@github-actions github-actions bot closed this as completed Jun 4, 2022
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