Good evening,
since i manually (occ) upgraded from Nextcloud 9 -> 10 -> 11 i have problems using the share function with link. I used this function with Nextcloud 9 without errors. Sharing with another user is working fine. Share using an link is only working, if i set the password of the current user as password for sharing an link. I have this error using Nextcloud in browser, with Android App and with iOS App.
Note: I changed the domain in the logfiles to “cloud.xyz.de”, mine is another one.
Nextcloud version : 10.0.2
Operating system and version: Debian 8
Apache or nginx version: Nginx 1.6.2
PHP version: 5.6
Is this the first time you’ve seen this error?: since Upgrade
Logfile Nextcloud
/var/www/cloud.xyz.de/data/nextcloud.log
{“reqId”:“1IHbwO7+PC57V0qJgJPT”,“remoteAddr”:“CLEARED-OUT”,“app”:“webdav”,“message”:“Exception: {“Message”:“HTTP\/1.1 401 No ‘Authorization: Basic’ header found. Either the client didn’t send one, or the server is misconfigured”,“Exception”:“Sabre\\DAV\\Exception\\NotAuthenticated”,“Code”:0,“Trace”:”#0 [internal function]: Sabre\\DAV\\Auth\\Plugin->beforeMethod(Object(Sabre\\HTTP\\Request), Object(Sabre\\HTTP\\Response))\n#1 \/var\/www\/cloud.xyz.de\/3rdparty\/sabre\/event\/lib\/EventEmitterTrait.php(105): call_user_func_array(Array, Array)\n#2 \/var\/www\/cloud.xyz.de\/3rdparty\/sabre\/dav\/lib\/DAV\/Server.php(466): Sabre\\Event\\EventEmitter->emit(‘beforeMethod’, Array)\n#3 \/var\/www\/cloud.xyz.de\/3rdparty\/sabre\/dav\/lib\/DAV\/Server.php(254): Sabre\\DAV\\Server->invokeMethod(Object(Sabre\\HTTP\\Request), Object(Sabre\\HTTP\\Response))\n#4 \/var\/www\/cloud.xyz.de\/apps\/dav\/appinfo\/v1\/webdav.php(60): Sabre\\DAV\\Server->exec()\n#5 \/var\/www\/cloud.xyz.de\/remote.php(165): require_once(’\/var\/www\/cloud…’)\n#6 {main}",“File”:"\/var\/www\/cloud.xyz.de\/3rdparty\/sabre\/dav\/lib\/DAV\/Auth\/Plugin.php",“Line”:168,“User”:false}",“level”:0,“time”:“2017-03-10T21:28:12+01:00”,“method”:“GET”,“url”:"/remote.php/webdav/",“user”:"–",“version”:“11.0.2.7”}
config.php
/var/www/cloud.xyz.de/config/config.php
<?php
$CONFIG = array (
'passwordsalt' => 'CLEARED-OUT',
'secret' => 'CLEARED-OUT',
'trusted_domains' =>
array (
0 => 'localhost',
),
'datadirectory' => '/var/www/cloud.xyz.de/data',
'overwrite.cli.url' => 'https://cloud.xyz.de',
'dbtype' => 'mysql',
'version' => '11.0.2.7',
'dbname' => 'nextcloud',
'dbhost' => 'localhost',
'dbtableprefix' => 'oc_',
'dbuser' => 'oc_admin',
'dbpassword' => 'CLEARED-OUT,
'logtimezone' => 'Europe/Berlin',
'installed' => true,
'instanceid' => 'CLEARED-OUT',
'mail_smtpmode' => 'smtp',
'mail_from_address' => 'CLEARED-OUT,
'mail_domain' => 'CLEARED-OUT',
'mail_smtpauth' => 1,
'mail_smtpauthtype' => 'LOGIN',
'mail_smtphost' => 'CLEARED-OUT',
'mail_smtpport' => '587',
'mail_smtpname' => 'CLEARED-OUT',
'mail_smtppassword' => 'CLEARED-OUT',
'mail_smtpsecure' => 'tls',
'appstore.experimental.enabled' => true,
'maintenance' => false,
'theme' => '',
'loglevel' => 0,
'default_language' => 'de',
'trashbin_retention_obligation' => 'auto',
'auth.bruteforce.protection.enabled' => false,
);
Logfile Webserver
/var/log/nginx/cloud.xyz.de.access.log
:
<IP> - <User> [10/Mar/2017:22:13:42 +0100] "GET /ocs/v1.php/apps/files_sharing/api/v1/shares HTTP/1.1" 200 1879 "-" "Mozilla/5.0 (iOS) Nextcloud-iOS/2.16"
<IP> - <User> [10/Mar/2017:22:13:47 +0100] "POST /ocs/v1.php/apps/files_sharing/api/v1/shares HTTP/1.1" 401 239 "-" "Mozilla/5.0 (iOS) Nextcloud-iOS/2.16"
Note: No entries in Nginx error log
Thanks a lot