server icon indicating copy to clipboard operation
server copied to clipboard

Cant sync - Precondition failed after upgrade from 11.0.2 to 12.0

Open jsalatiel opened this issue 9 years ago • 45 comments

After upgrade the server from 11.0.2 to 12.0, a few users are reporting the client is not being able to sync anymore. I got the client log from one of them and it shows:

6/2/17 7:47:31 PM, Programas/mendeleydesktop_1.17.9-stable_amd64.deb,           Documents/nextCloud,Error downloading https://server.fqn/remote.php/dav/files/ana/Programas/mendeleydesktop_1.17.9-stable_amd64.deb-chunking-3534620524-14-0 - server replied: Precondition failed (An If-Match header was specified and the resource did not exist)
6/2/17 7:47:27 PM, Programas/ChemDoodle-linux-8.1.0.bin,           Documents/nextCloud,Error downloading https://server.fqn/remote.php/dav/files/ana/Programas/ChemDoodle-linux-8.1.0.bin-chunking-1120403321-13-1 - server replied: Precondition failed (An If-Match header was specified and the resource did not exist)

I have checked her directory directly in the server file system, and the file mendeleydesktop_1.17.9-stable_amd64.deb already exists and it is there. The same for the ChemDoodle-linux-8.1.0.bin file.

The client is 2.3.1-20170514.194620~xenial1

I also tried to run a rescan on the server, but it didn't help;

Server configuration

Operating system: Debian Jessie

Web server: Apache 2.4.10-10+deb8u8

Database: mysql 5.5.55-0+deb8u1

PHP version: 5.6.30+dfsg-0+deb8u1

Nextcloud version: (see Nextcloud admin page) 12.0.0 Updated from an older Nextcloud/ownCloud or fresh install: updated from 11.0.2

Where did you install Nextcloud from: download.nextcloud.com/server/releases/nextcloud-12.0.0.tar.bz2

jsalatiel avatar Jun 02 '17 23:06 jsalatiel

Same for me, Error came with Client update to 2.3.1,

cyablo avatar Jun 03 '17 13:06 cyablo

Same error, windows client 2.3.1

I diid some testes and noticed strange behavior:

  • I had downloaded 14MB zip file that did not get synced (file1)
  • I copied the 14MB zip file and renamed its extension to pdf (file2) - this file got synced.
  • small files (100kB) get synced no matter what extension is.
  • I copied above pdf (file2) to another file (file3) with zip extension and file3 got synced.
  • I changed an extension of original file1 to exe extnsion - it got synced
  • I changed file1 extension from exe to zip and it stayed synced. Crazy:-)

pafcioooo avatar Jun 05 '17 18:06 pafcioooo

Hey dudes

Same error here with a linux client 2.3.1 ubuntu, server version 12

I tried to reproduce @pafcioooo steps but my results are a bit different as I noticed the tests are not that very reproducible. I guess it might depends of wether your "replace" the file or "make a new one", timing of creation/change while upload is not done yet. Also i notice the bigger the file, the harder to sync.

fanff avatar Jun 06 '17 19:06 fanff

I have the Same Problem wenn downlaoding files directly into the nextcloud directory to sync and can reproduce it quite often running with

Nextcloud 12 on raspbian (raspberry pi 3) updated from version 11.0.3 MySql - 5.5.54 PhP -5.6.30

Windows 10 - Client Version 2.3.1 (build 8)

If i download a file directly into the nextcloud folder locally and the download takes some time i get the error

server replied: Precondition failed (An If-Match header was specified and the resource did not exist).

Logging into my Nextcloud instance an empty file is listed with the same name as the file downloaded. This file was created before the download was completed. It appears that the file cannot be updated for some reason after this point. If the empty file is deleted the client will sync the file correctly.

1manprojects avatar Jun 09 '17 16:06 1manprojects

@icewind1991 @rullzer perhaps u've got an idea?

blizzz avatar Jun 12 '17 10:06 blizzz

I can confirm this error also on Nextcloud 11.0.3 with the Linux Nextcloud client version 2.3.2-1.fc25. The error occurred when downloading via Firefox directly in a Nextcloud shared directory.

janvlug avatar Jun 17 '17 10:06 janvlug

We are also getting this error with NextCloud 12. Downloading a file directly into NC causes it and the solution is to either move it out and put it back, or logon to the web interface and delete the empty file from there.

franz-strebel avatar Jun 19 '17 09:06 franz-strebel

I also experienced this error when downloading an .exe file using Firefox 53.0.3 (32-bit) on Win7 SP1 (updated fully) with Nextcloud client 2.3.1 (build 8) Backend: Nextcloud 11.0.3 PHP 5.6.30 MariaDB/Mysql 5.5.52 CentOS 7.3.1611

rwilliamsit avatar Jun 19 '17 12:06 rwilliamsit

Users of my server are also having this issue, running the newest client. Server is a docker image from rootlogin. I'm not sure how, but if you need logs or anything I'm happy to help.

kwint avatar Jun 19 '17 19:06 kwint

Getting the same issue here. Seemed to happen with new client upgrade.

urbenlegend avatar Jun 21 '17 09:06 urbenlegend

Same here. Users have same problem on the Windows Client. Can't reproduce on Linux. User just created a Folder in ah shared Folder from another user. Also happened in a notshared folder.

Want to geht Notifactions. Hi Guys.

hanzlik avatar Jun 21 '17 12:06 hanzlik

I confirm the problem with desktop-client 2.3.2beta (build 1)/ server 12.0.0 22.06.2017 15:03:29, InstantUpload/2017/06/2017-06-17 17-38-12 3036_stitch.jpg, Nextcloud,Error transferring https://<fqdn>/remote.php/dav/files/hias/InstantUpload/2017/06/2017-06-17 17-38-12 3036_stich.jpg-chunking-3292803479-2-0 - server replied: Precondition failed (An If-Match header was specified and the resource did not exist).

++umgfoin

umgfoin avatar Jun 22 '17 13:06 umgfoin

OK, materialized as being a client-issue #5855.

umgfoin avatar Jun 26 '17 11:06 umgfoin

Same issue

Server: Nextcloud 12.0.0 PHP 7.0.18 Mysql 5.7.18 Ubuntu Server 16.04.2

Client: Windows 10 Nextcloud-client 2.3.1.8

jocarren avatar Jul 10 '17 18:07 jocarren

Issue still seems to persist in newest Server 11.0.4 and Client 2.3.2, at least for me.

cyablo avatar Aug 10 '17 13:08 cyablo

Same

hanzlik avatar Aug 10 '17 13:08 hanzlik

Same (An If-Match header was specified and the resource did not exist) with NC 12.0.1 (PHP 7.0.8, mysql 5.5.57, ubuntu server 14.04.1, Apache/2.4.7) and latest public stable clients (2.3.2. build 1) on MSW10.

kroko avatar Aug 11 '17 08:08 kroko

Ditto the above, I /literally/ just build the client to ensure it wasn't fixed in a commit recently, but Debian 9 (PHP 7.0+49, mysql 5.5.9999 (mariadb really) apache2 2.4.25-3+deb9u2)

nroach44 avatar Aug 17 '17 02:08 nroach44

I just started running into this late yesterday afternoon. I've been running NextCloud 11.0.4 on CentOS 7.3 using windows client 2.3.2(build 1). This setup has been working well until last night, and the only change was to bump PHP versions. Previously I was running php5.6 with NC, but upgraded to php7.0 yesterday, which is the only change that happened prior to this issue cropping up.

Gizmokid2005 avatar Aug 20 '17 21:08 Gizmokid2005

+1 here: Client Version 2.3.2 (build 1), Fresh install of server is 12.0.1 via docker container on 16.04 LTS host.

skepticatgit avatar Aug 23 '17 21:08 skepticatgit