Repository navigation
Description
Steps to reproduce
- Install NC on shared host (all-inkl with SSL Lets encrypt in my case) using mySQL
- Create user
- OS X - Finder - Cmd+K: Connect to https://host.url/remote.php/webdav using user credentials
- Try to upload a file
Expected behaviour
File should be uploaded.
Actual behaviour
File with 0 kB is created, but Finder shows error message (German) "Der Finder konnte diesen Vorgang nicht abschließen, da einige Daten in „coupon2.pdf“ nicht gelesen oder geschrieben werden konnten.
(Fehler: -36)" Error:-36
Upload with Cyberduck via WebDAV (HTTPS) works.
Server configuration
Operating system:
Linux 3.13.0-105-generic #152-Ubuntu SMP Fri Dec 2 15:37:11 UTC 2016 x86_64
Web server:
Apache
Database:
MySQL Server-Version: 5.6.33-nmm1-log - (Ubuntu)
PHP version:
7.0.10-NMM1 as CGI/FPM
Nextcloud version: (see Nextcloud admin page)
11.0.0
Updated from an older Nextcloud/ownCloud or fresh install:
10.0.2 / same behavior for fresh install
Where did you install Nextcloud from:
tar file from nextcloud.com
Signing status:
Signing status
No errors have been found.List of activated apps:
App list
Contacts CalendarThe content of config/config.php:
Config report
'[REMOVED]', 'passwordsalt' => '[REMOVED]', 'secret' => '[REMOVED]', 'trusted_domains' => array ( 0 => '[REMOVED].[REMOVED].[REMOVED]', ), 'datadirectory' => '/www/htdocs/[REMOVED]/[REMOVED]_data', 'tempdirectory' => '/www/htdocs/[REMOVED]/[REMOVED]_temp', 'overwrite.cli.url' => 'https://[REMOVED].[REMOVED].it', 'dbtype' => 'mysql', 'version' => '11.0.0.10', 'dbname' => '[REMOVED]', 'dbhost' => 'localhost', 'dbport' => '', 'dbtableprefix' => 'oc_', 'dbuser' => '[REMOVED]', 'dbpassword' => '[REMOVED]', 'logtimezone' => 'UTC', 'installed' => true, 'mail_from_address' => '[REMOVED]', 'mail_smtpmode' => 'php', 'mail_domain' => '[REMOVED].[REMOVED]', 'loglevel' => 0, 'mail_smtpsecure' => 'ssl', 'theme' => '', 'maintenance' => false, );Are you using external storage, if yes which one: No.
Are you using encryption: yes, but same behavior without encryption (tested with new installation)
Are you using an external user-backend, if yes which one: No.
Client configuration
Browser:
Finder (Browser upload works)
Operating system:
Mac OS X 10.12.2
Activity
Ramalama2 commentedon Dec 30, 2016
## I can confirm, same here!
## Specs:
NC 11 (Upgrade history: OC8 -> OC9 -> NC10 -> NC11)
Debian Jessie, Kernel 4.8.11
PHP-fpm 7.1.0 / Mariadb 10.1.20 / Nginx 1.11.8 / Redis-Server: 3.2.6
## Client:
MacOS Sierra 10.12.2
(But same happens on windows)
## Error LOG:
## Easy Log from Admin Panel:
Cheers :-)
navimike commentedon Jan 1, 2017
Happens also when using a Synology Disk Station as client...
vsamoletov commentedon Jan 8, 2017
+1. The same on a fresh Nextcloud 11.0.1 (daily) Build:2017-01-07T21:01:17+00:00 2c2c4cc install.
Please fix, not able to use :(
nickvergessen commentedon Jan 13, 2017
Can you try connecting to
remote.php/dav/filesinstead ofremote.php/webdav?Ramalama2 commentedon Jan 15, 2017
@nickvergessen
I can connect, but if i try to upload a file, it asks me to login, but i cant login...
here is the error:
I've updated to NC 11.0.1RC1 nothing changed :-(
Ramalama2 commentedon Jan 16, 2017
@nickvergessen
Maybe an nginx problem?
Does webdav work for you on nc11?
I can post nginx config or anything else you want:-)
Ask me what you need:-)
Ramalama2 commentedon Jan 16, 2017
Ps,
Just tryed on centos7, exactly same error...
Tryed first with kernel 3.10, now ive updated to 4.9.1, nothing helps...
Centos7 kernel 4.9.1 / php71w-fpm / mariadb 10.1 / redis 3.2.6
Hope to fix that soon xD
Cheers
hinmanjp commentedon Jan 16, 2017
I'm seeing this on OpenSuse 42.2 w/ Apache. Looking through the forums, the one thing that everybody with this issue seems to have in common is PHP 7.x.
This issue is still marked as "needs info". Is more information still needed?
Ramalama2 commentedon Jan 17, 2017
@nickvergessen
"Can you try connecting to remote.php/dav/files instead of remote.php/webdav?"
I was to stupid, now: "remote.php/dav/files/USERNAME/"
i can connect, but behavior is exactly same as "remote.php/webdav"
i can see files, i can even create folders, but if i try to upload, i get empty 0kb files (and error)
here is a log from /remote.php/dav/files/user/
Cheers :-)
Flole998 commentedon Jan 17, 2017
This is probably related to the underlying filesystem not supporting flock. Flock is for example not supported on CIFS (Samba Shares) and the old FAT Filesystem. The only way to make it work would be to not use flock in the sabredav Lock plugin.
Ramalama2 commentedon Jan 17, 2017
@Flole998
Im using ext4 on the debian server
And xfs on the centos server
Its definitive some thing with php, because create folders on webdav works.
If i upload a file i get empty 0kb files... So something is interrupting php...
Its like php execution time or sth like that... But ive set it already to 600...
Would be nice if someone with working webdav could post php.ini and nginx config...
That would help a lot, because its not working on both (all) servers...
sackla commentedon Jan 20, 2017
same problem here. debian, apache, php 5.6.28. nextcloud 11.0.0
Sabre\DAV\Exception: HTTP/1.1 500 No subsystem set a valid HTTP status code. Something must have interrupted the request without providing further detail.i tried different clients:
andreas-p commentedon Jan 20, 2017
Same with NC11.0.1. According to https://fossies.org/diffs/nextcloud/10.0.2_vs_11.0.0/3rdparty/sabre/dav/lib/DAV/Server.php-diff.html , the check in 3rdparty/sabre/dav/lib/DAV/Server.php lines 494-496 which throws the exception "No subsystem set a valid HTTP status code" was added since NC10. Commenting them out restores functionality, at least using Windows10 as client.
40 remaining items
Ramalama2 commentedon Feb 6, 2017
Thank you very much!!! :-)
gabkol commentedon Feb 13, 2017
@Flole998 thank you for your fixes.
I can confirm this issue and also that your fixes works fine!
MorrisJobke commentedon Feb 17, 2017
@Flole998 Could also #3370 fix the issue in here?
MorrisJobke commentedon Feb 17, 2017
@Flole998 Is there a less intrusive way than this commenting out of actual code? What is the user agent of the windows device?
Flole998 commentedon Feb 17, 2017
#3370 is not going to fix the lock issue. As every office version uses a different user agent and windows explorer also uses 2 different versions. For mac os it is also required so it would be possible to add more user agents to that check but it would make absolutely no sense to not enable lock feature for every client. Also it is required to add the 200 status code to the fake lock php file as seen in the patch.
MorrisJobke commentedon Feb 17, 2017
Cc @LukasReschke for the fake locker
Oz246 commentedon Feb 24, 2017
Hello,
After installing the two scripts I still can not connect to webdav via Windows
Here is a screen in French of the problems encountered.
Translation : The folder you entered does not appear to be valid. Choose another one
Second message when connecting via network drive
Translation: Mutual authentication failed. Server passwords are deprecated on the domain controller
Domoel commentedon Mar 1, 2017
How can i apply the .patch ?
JulienPalard commentedon Mar 1, 2017
@Domoel Typically by using the
patchprogram, you should probably already have it on your system, but if not, it should be properly packaged like https://packages.debian.org/stretch/patchTypical usage is:
A
git applywill do, too, even if you're outside a git repository, if you're on a strange setup withgitbut notpatchyou can try it, same way:git apply < patchfile.Domoel commentedon Mar 2, 2017
Im using a Synology DS for nextcloud and dont know how to do it this way. :/ Sorry ^^
klada commentedon Mar 7, 2017
I can confirm the issue is still present in NextCloud 11.0.2 (with
LOCK, as mentioned in #3672):Apache-Log:
NextCloud-Log:
nickvergessen commentedon Mar 7, 2017
Thanks for the details, will make a patch
Flole998 commentedon Mar 7, 2017
@nickvergessen There is already a patch which i made available above, it just needs to be converted into a PR.
nickvergessen commentedon Mar 7, 2017
Yes, patch is in #3757