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]: Couldn't update placeholder info #5791

Open
5 of 8 tasks
dierre72 opened this issue Jun 9, 2023 · 17 comments
Open
5 of 8 tasks

[Bug]: Couldn't update placeholder info #5791

dierre72 opened this issue Jun 9, 2023 · 17 comments

Comments

@dierre72
Copy link

dierre72 commented Jun 9, 2023

⚠️ Before submitting, please verify the following: ⚠️

Bug description

System Windows 10 Enterprice Version 10.0.19045 Build 19045
Nextcloud Client 3.8.2 Using virtual files plugin: wincfapi

Last month the client stopped to sync and received back a lot of these errors:
"Couldn't update placeholder info"

Following an advice from the community I reinstalled it
https://help.nextcloud.com/t/make-sure-nextcloud-is-running-on-your-pc-and-couldnt-update-placeholder-info/161123

But now after a couple of months, this morning I have the same issue.
I checked if I close nextcloud client and restart the file are shown but if I try to open or keep on device a file I receive the error:
Make sure Nextcloud is running on your PC, then try again
Obviously Nextcloud is running

I didn't know how to reproduce this bug it seems to be random. At the moment I reinstalled 3 times in the past without resolve this issue.
Last Test: I tried to delete the folder into AppData/Roaming/Nextcloud
Changed the Nextcloud temp directory on HD instead external SSD
Nextcloud client started with the connection request, I connected the client again but without success I need to reinstall again

Steps to reproduce

I do not know how to reproduce

Expected behavior

No error

Which files are affected by this bug

All files in Windows

Operating system

Windows

Which version of the operating system you are running.

System Windows 10 Enterprice Version 10.0.19045 Build 19045

Package

Appimage

Nextcloud Server version

25.0.3

Nextcloud Desktop Client version

3.8.2

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 Enabled

Are you using an external user-backend?

  • Default internal user-backend
  • LDAP/ Active Directory
  • SSO - SAML
  • Other

Nextcloud Server logs

{"reqId":"ZILXRYlQx4fi5CuSsi43VgAAAE8","level":3,"time":"2023-06-09T07:39:49+00:00","remoteAddr":"192.168.1.60","user":"ncp","app":"no app in context","method":"PUT","url":"/remote.php/dav/files/ncp/Backups/GPS/4Sqaure%2014.11.13.rss","message":"Expected filesize of 1746463 bytes but read (from Nextcloud client) and wrote (to Nextcloud storage) 0 bytes. Could either be a network problem on the sending side or a problem writing to the storage on the server side.","userAgent":"Mozilla/5.0 (Windows) mirall/3.8.2stable-Win64 (build 20230516) (Nextcloud, windows-10.0.19045 ClientArchitecture: x86_64 OsArchitecture: x86_64)","version":"25.0.3.2","exception":{"Exception":"Sabre\\DAV\\Exception\\BadRequest","Message":"Expected filesize of 1746463 bytes but read (from Nextcloud client) and wrote (to Nextcloud storage) 0 bytes. Could either be a network problem on the sending side or a problem writing to the storage on the server side.","Code":0,"Trace":[{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":1137,"function":"put","class":"OCA\\DAV\\Connector\\Sabre\\File","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php","line":492,"function":"updateFile","class":"Sabre\\DAV\\Server","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"httpPut","class":"Sabre\\DAV\\CorePlugin","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":472,"function":"emit","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":253,"function":"invokeMethod","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":321,"function":"start","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/apps/dav/lib/Server.php","line":360,"function":"exec","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/apps/dav/appinfo/v2/remote.php","line":35,"function":"exec","class":"OCA\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/remote.php","line":171,"args":["/var/www/nextcloud/apps/dav/appinfo/v2/remote.php"],"function":"require_once"}],"File":"/var/www/nextcloud/apps/dav/lib/Connector/Sabre/File.php","Line":297,"message":"Expected filesize of 1746463 bytes but read (from Nextcloud client) and wrote (to Nextcloud storage) 0 bytes. Could either be a network problem on the sending side or a problem writing to the storage on the server side.","exception":{},"CustomMessage":"Expected filesize of 1746463 bytes but read (from Nextcloud client) and wrote (to Nextcloud storage) 0 bytes. Could either be a network problem on the sending side or a problem writing to the storage on the server side."}}
{"reqId":"ZILXcIlQx4fi5CuSsi43XAAAAEA","level":3,"time":"2023-06-09T07:40:33+00:00","remoteAddr":"192.168.1.60","user":"ncp","app":"no app in context","method":"PUT","url":"/remote.php/dav/files/ncp/Backups/GPS/4Sqaure%2014.11.13.rss","message":"Expected filesize of 1746463 bytes but read (from Nextcloud client) and wrote (to Nextcloud storage) 0 bytes. Could either be a network problem on the sending side or a problem writing to the storage on the server side.","userAgent":"Mozilla/5.0 (Windows) mirall/3.8.2stable-Win64 (build 20230516) (Nextcloud, windows-10.0.19045 ClientArchitecture: x86_64 OsArchitecture: x86_64)","version":"25.0.3.2","exception":{"Exception":"Sabre\\DAV\\Exception\\BadRequest","Message":"Expected filesize of 1746463 bytes but read (from Nextcloud client) and wrote (to Nextcloud storage) 0 bytes. Could either be a network problem on the sending side or a problem writing to the storage on the server side.","Code":0,"Trace":[{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":1137,"function":"put","class":"OCA\\DAV\\Connector\\Sabre\\File","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php","line":492,"function":"updateFile","class":"Sabre\\DAV\\Server","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"httpPut","class":"Sabre\\DAV\\CorePlugin","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":472,"function":"emit","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":253,"function":"invokeMethod","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":321,"function":"start","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/apps/dav/lib/Server.php","line":360,"function":"exec","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/apps/dav/appinfo/v2/remote.php","line":35,"function":"exec","class":"OCA\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/remote.php","line":171,"args":["/var/www/nextcloud/apps/dav/appinfo/v2/remote.php"],"function":"require_once"}],"File":"/var/www/nextcloud/apps/dav/lib/Connector/Sabre/File.php","Line":297,"message":"Expected filesize of 1746463 bytes but read (from Nextcloud client) and wrote (to Nextcloud storage) 0 bytes. Could either be a network problem on the sending side or a problem writing to the storage on the server side.","exception":{},"CustomMessage":"Expected filesize of 1746463 bytes but read (from Nextcloud client) and wrote (to Nextcloud storage) 0 bytes. Could either be a network problem on the sending side or a problem writing to the storage on the server side."}}
{"reqId":"ZILXvmc-S6PZdE1cP4zqjAAAAAQ","level":3,"time":"2023-06-09T07:41:51+00:00","remoteAddr":"192.168.1.60","user":"ncp","app":"no app in context","method":"PUT","url":"/remote.php/dav/files/ncp/Backups/GPS/4Sqaure%2014.11.13.rss","message":"Expected filesize of 1746463 bytes but read (from Nextcloud client) and wrote (to Nextcloud storage) 0 bytes. Could either be a network problem on the sending side or a problem writing to the storage on the server side.","userAgent":"Mozilla/5.0 (Windows) mirall/3.8.2stable-Win64 (build 20230516) (Nextcloud, windows-10.0.19045 ClientArchitecture: x86_64 OsArchitecture: x86_64)","version":"25.0.3.2","exception":{"Exception":"Sabre\\DAV\\Exception\\BadRequest","Message":"Expected filesize of 1746463 bytes but read (from Nextcloud client) and wrote (to Nextcloud storage) 0 bytes. Could either be a network problem on the sending side or a problem writing to the storage on the server side.","Code":0,"Trace":[{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":1137,"function":"put","class":"OCA\\DAV\\Connector\\Sabre\\File","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php","line":492,"function":"updateFile","class":"Sabre\\DAV\\Server","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"httpPut","class":"Sabre\\DAV\\CorePlugin","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":472,"function":"emit","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":253,"function":"invokeMethod","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":321,"function":"start","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/apps/dav/lib/Server.php","line":360,"function":"exec","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/apps/dav/appinfo/v2/remote.php","line":35,"function":"exec","class":"OCA\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/remote.php","line":171,"args":["/var/www/nextcloud/apps/dav/appinfo/v2/remote.php"],"function":"require_once"}],"File":"/var/www/nextcloud/apps/dav/lib/Connector/Sabre/File.php","Line":297,"message":"Expected filesize of 1746463 bytes but read (from Nextcloud client) and wrote (to Nextcloud storage) 0 bytes. Could either be a network problem on the sending side or a problem writing to the storage on the server side.","exception":{},"CustomMessage":"Expected filesize of 1746463 bytes but read (from Nextcloud client) and wrote (to Nextcloud storage) 0 bytes. Could either be a network problem on the sending side or a problem writing to the storage on the server side."}}

Additional info

No other info

@dierre72
Copy link
Author

Today the same problem reappeared... I have to uninstall than re-install nextcloud

@shivangjhalani
Copy link

I am facing the same issue, any updates?

@dierre72
Copy link
Author

I am facing the same issue, any updates?

No, on my side the only way is uninstall, restart the pc and re-install again the software.

@shivangjhalani
Copy link

shivangjhalani commented Jul 26, 2023

No, on my side the only way is uninstall, restart the pc and re-install again the software.

I used bulk crap uninstaller to uninstall and deleted all the nextcloud app related files, the issue still pops up sadly, will try to do that once more.

@dierre72
Copy link
Author

Reading on several sites seems the issue is relative to the desktop client but unlucky I did not understand in which way.
Someone speaks about a crash of the app that corrupts one or more files.
I tried to delete only configuration files but with no effect... The only way is a complete uninstall.
I looked for a solution for a long time before open this bug but all my searches are without result.
At the moment, my app has been working for a month but when I am out of home I put it in pause

@PhilippSchlesinger
Copy link

There is a PR #5890 which will likely fix the problem you describe.
The fix is part of the latest release https://github.com/nextcloud/desktop/releases/tag/v3.9.1

@shivangjhalani
Copy link

I am using the latest 3.9.1 version, the issue is still there even after a reinstall..
image

@HEtchevers
Copy link

I have the same issue but the original error message: Couldn't update placeholder info.

This has happened when I wanted to "Always keep on this device" for folders with Gb of data.

I believe this happened AFTER the last release was automatically installed, as the first thing I check now when I get weird client errors if is there is an update and I had already been up to date with Version 3.9.1 (Windows). I can try to reinstall it but that is the most I can do on the client end.

All our IT is on vacation until after August 16th locally (and does not offer support in any case for Nextcloud, it's "just a service" offered to enable university employees to have access to cloud storage - maybe @SCD-Aix-Marseille-Universite knows who manages AMUbox, but I don't know where to turn).

@romanbatt
Copy link

I have the same issue, except it only affects some of my pictures that are auto-uploaded from my phone. Newer PDF's and even some instant upload photos are fine, and there seems to be no issues.

@mr-manuel
Copy link

I have the same issue. I checked the access logs on Nextcloud for the files where the message appears and there is no entry. Therefore the problem should be in the Nextcloud client. A force resync does not change anything.

Windows 11 22H2
Nextcloud Client 3.10.1

@cederron

This comment was marked as duplicate.

@zolokonst
Copy link

I have the same issue.
I am using 2 clients:
3.10 on Win11 and 3.12.3 on Win10.
The virtual folders is ON.
Server version 28.0.4
The client cert on 3.10 is used. (BTW I have troubles with the recent client versions while using this feature)
I see the "Couldn't update placeholder info" for files which should be excluded with exclude list only. But these files are appear on the server. Like "~Newfile.txt"

@HikeAndMap

This comment was marked as duplicate.

@HikeAndMap
Copy link

Same problem - happens to me as well - all I can do is remove all data, delete everything, uninstall, re-install. and losing a day of my life.

@ph818
Copy link

ph818 commented Jun 3, 2024

I have this issue as well. For me it is affecting me on hidden files from mac and Thumbs.db

I ended up deleting the ._ files and renaming the various Thumbs.db to Thumbs-bak.db, and that cleared the errors... for now.

@SergeTarasov
Copy link

Same problem. Had to delete files causing the error from the cloud.

@joshtrichards
Copy link
Member

Related: #5955

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