Nextcloud version : 20.0.4
Operating system and version: DietPi 6.34.3
Apache or nginx version : lighttpd instead of Apache
Webserver: lighttpd/1.4.53 (fpm-fcgi)
PHP version : 7.3.19-1~deb10u1
Content of System Report generated from Settings, Admin, Support:
Server configuration detail
Operating system: Linux 5.4.79-v8+ #1373 SMP PREEMPT Mon Nov 23 13:32:41 GMT 2020 aarch64
Webserver: lighttpd/1.4.53 (fpm-fcgi)
Database: mysql 10.3.27
PHP version: 7.3.19-1~deb10u1
Modules loaded: Core, date, libxml, openssl, pcre, zlib, filter, hash, Reflection, SPL, session, sodium, standard, cgi-fcgi, mysqlnd, PDO, xml, apcu, calendar, ctype, curl, dom, mbstring, fileinfo, ftp, gd, gettext, iconv, igbinary, intl, json, exif, mysqli, pdo_mysql, Phar, posix, readline, redis, shmop, SimpleXML, sockets, sysvmsg, sysvsem, sysvshm, tokenizer, wddx, xmlreader, xmlwriter, xsl, zip, Zend OPcache
Nextcloud version: 20.0.4 - 20.0.4.0
Updated from an older Nextcloud/ownCloud or fresh install:
Where did you install Nextcloud from: unknown
Signing status
Array
(
)
The issue you are facing:
Cannot connect to WebDAV (Error 401).
I have seen this post where the solution is to use Apache.
I’m hoping to get help with solving the issue with my setup which uses lighttpd. Please see this DietPi forum post where a Nextcloud user was able to connect to WebDAV. In DietPi, Nextcloud is pre-configured so users have a working Nextcloud by simply picking it from a list.
Is this the first time you’ve seen this error? : Yes
Steps to replicate it:
- Use WebDAV url from Nextcloud Files, Setting to connect android app (I tried Joplin and Keepass2Android)
- Joplin error message - OCA\DAV\Connector\Sabre\Exception\PasswordLoginForbidden…Code 401
- Keepass2Android error message - Response(protocol=http/1.1, code 401,message=Unauthorized
- I have checked that username and password are correct.
The output of your Nextcloud log in Admin > Logging:
The output of your config.php file in /path/to/nextcloud
(make sure you remove any identifiable information!):
$CONFIG = array (
'passwordsalt' => 'removedforpost',
'secret' => 'removedforpost',
'trusted_domains' =>
array (
0 => 'localhost',
1 => '*',
),
'datadirectory' => '/mnt/dietpi_userdata/nextcloud_data',
'dbtype' => 'mysql',
'version' => '20.0.4.0',
'hashingThreads' => 4,
'memcache.local' => '\\OC\\Memcache\\APCu',
'filelocking.enabled' => true,
'memcache.locking' => '\\OC\\Memcache\\Redis',
'redis' =>
array (
'host' => '/run/redis/redis-server.sock',
'port' => 0,
),
'overwrite.cli.url' => 'http://localhost/nextcloud',
'dbname' => 'nextcloud',
'dbhost' => 'localhost',
'dbport' => '',
'dbtableprefix' => 'oc_',
'mysql.utf8mb4' => true,
'dbuser' => 'removedforpost',
'dbpassword' => 'removedforpost',
'installed' => true,
'instanceid' => 'ocr3jb2uwoy6',
'maintenance' => false,
'twofactor_enforced' => 'true',
'twofactor_enforced_groups' =>
array (
),
'twofactor_enforced_excluded_groups' =>
array (
),
);
The output of your lighttpd log in /var/log/____
: /var/log/lighttpd/error.log
2021-01-10 21:12:25: (mod_openssl.c.1746) SSL: 1 error:1408F10B:SSL routines:ssl3_get_record:wrong version number
Thanks in advance for any help.