Can't webdav into nextcloud

Hi,

I have been running my own Nextcloud installation for a few weeks now (and have played around with it, installed apps, removed them, etc.) and I have run into the following problem:

It is impossible to access Nextcloud via webdav. (I can’t say whether it worked originally because this is the first time I tried.)

While my system can be reached from the internet, the problem also affects purely local connections. Everything else seems to function normally - I can log in via a browser (both locally and via the web). To make sure it is not an issue with my PC/Mac, I have spun up a new installation of Nextcloud to which I can connect via webdav from the same machines without issues.

[/details]

Nextcloud version (eg, 20.0.5): 20.0.10 (most current version offered to me)
Operating system and version (eg, Ubuntu 20.04): Debian 10 (lxc container inside PVE)
Apache or nginx version (eg, Apache 2.4.25): Apache 2.4.38
PHP version (eg, 7.4): 7.3.27-1

The issue you are facing:

I can’t access Nextcloud via webdav. I have tried from a PC and from a Mac. I always get an error that something went wrong (but not what specifically).

In the log (on the admin page) it only says that log in failed for [myusername] (and the IP from which I tried).

Is this the first time you’ve seen this error? (Y/N): Y (but it is also the first time I am trying to access via webdav)

Steps to replicate it:

  1. connect to “[IP]/remote.php/dav/files/[username]/”

The output of your Nextcloud log in Admin > Logging:

Login failed: '[username]' (Remote IP: '[IP]')

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

<?php
$CONFIG = array (
  'passwordsalt' => 'xxxxxxxxxxxxxxxxxxxxxx',
  'secret' => 'xxxxxxxxxxxxxx',
  'trusted_domains' => 
  array (
    0 => 'localhost',
    1 => 'xxxxx',
    2 => 'xxxxx'
  ),
  'datadirectory' => '/var/www/nextcloud/data',
  'objectstore' => 
  array (
    'class' => '\\OC\\Files\\ObjectStore\\S3',
    'arguments' => 
    array (
      'bucket' => 'xxxxxx',
      'autocreate' => true,
      'key' => 'nextcloud',
      'secret' => 'xxxxxxxxx',
      'hostname' => 'xxxxxxxxx',
      'port' => 9000,
      'use_ssl' => false,
      'region' => '',
      'use_path_style' => true,
      'legacy_auth' => true,
    ),
  ),
  'dbtype' => 'mysql',
  'version' => '20.0.10.1',
  'overwrite.cli.url' => 'http://localhost',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'nextcloud',
  'dbpassword' => 'xxxxx',
  'installed' => true,
  'filelocking.enabled' => true,
  'instanceid' => 'xxxxx',
  'maintenance' => false,
  'loglevel' => 0,
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'twofactor_enforced' => 'true',
  'twofactor_enforced_groups' => 
  array (
    0 => 'admin',
  ),
  'twofactor_enforced_excluded_groups' => 
  array (
  ),
  'mail_smtpmode' => 'smtp',
  'mail_sendmailmode' => 'smtp',
  'mail_smtpsecure' => 'tls',
  'mail_smtpauthtype' => 'LOGIN',
  'mail_smtphost' => 'xxxxx',
  'mail_smtpport' => '587',
  'mail_from_address' => 'xxxxx',
  'mail_domain' => 'xxx',
  'mail_smtpauth' => 1,
  'mail_smtpname' => 'xxx',
  'mail_smtppassword' => 'xxx',
  'mail_smtpstreamoptions' => 
  array (
    'ssl' => 
    array (
      'allow_self_signed' => true,
      'verify_peer' => false,
      'verify_peer_name' => false,
    ),
  ),
  'onlyoffice' => 
  array (
    'verify_peer_off' => true,
    'jwt_header' => 'AuthorizationJwt',
  ),

The output of your Apache/nginx/system log in /var/log/____:

Not sure - there is no file “system log” in “/var/log/”. There is a file “syslog” there but it only contains repeating lines of

Jun 24 16:09:01 nextcloud systemd[1]: Starting Clean php session files...
Jun 24 16:09:01 nextcloud systemd[1]: phpsessionclean.service: Succeeded.
Jun 24 16:09:01 nextcloud systemd[1]: Started Clean php session files.
Jun 24 16:20:01 nextcloud CRON[15223]: (www-data) CMD (^I/usr/bin/php -f /usr/share/nextcloud/cron.php /dev/null 2>&1)
Jun 24 16:20:01 nextcloud postfix/pickup[15157]: CB7791436: uid=33 from=<www-data>
Jun 24 16:20:01 nextcloud postfix/cleanup[15227]: CB7791436: message-id=<20210624162001.CB7791436@nextcloud>
Jun 24 16:20:01 nextcloud postfix/qmgr[629]: CB7791436: from=<www-data@nextcloud>, size=637, nrcpt=1 (queue active)
Jun 24 16:20:01 nextcloud postfix/local[15229]: CB7791436: to=<www-data@nextcloud>, orig_to=<www-data>, relay=local, delay=0.05, delays=0.03/0.01/0/0.01, dsn=2.0.0, stat$
Jun 24 16:20:01 nextcloud postfix/qmgr[629]: CB7791436: removed
Jun 24 16:22:01 nextcloud CRON[15232]: (root) CMD (   cd / && run-parts --report /etc/cron.hourly)
Jun 24 16:35:01 nextcloud CRON[15246]: (www-data) CMD (^I/usr/bin/php -f /usr/share/nextcloud/cron.php /dev/null 2>&1)
Jun 24 16:35:01 nextcloud postfix/pickup[15157]: E318C1436: uid=33 from=<www-data>
Jun 24 16:35:01 nextcloud postfix/cleanup[15250]: E318C1436: message-id=<20210624163501.E318C1436@nextcloud>
Jun 24 16:35:01 nextcloud postfix/qmgr[629]: E318C1436: from=<www-data@nextcloud>, size=637, nrcpt=1 (queue active)
Jun 24 16:35:01 nextcloud postfix/local[15252]: E318C1436: to=<www-data@nextcloud>, orig_to=<www-data>, relay=local, delay=0.05, delays=0.03/0.02/0/0, dsn=2.0.0, status=$
Jun 24 16:35:01 nextcloud postfix/qmgr[629]: E318C1436: removed
Jun 24 16:39:01 nextcloud CRON[15256]: (root) CMD (  [ -x /usr/lib/php/sessionclean ] && if [ ! -d /run/systemd/system ]; then /usr/lib/php/sessionclean; fi)
Jun 24 16:39:01 nextcloud systemd[1]: Starting Clean php session files...
Jun 24 16:39:02 nextcloud systemd[1]: phpsessionclean.service: Succeeded.
Jun 24 16:39:02 nextcloud systemd[1]: Started Clean php session files.

What are the critical settings for allowing webdav? Is it possible that I somehow and inadvertently disabled webdav for my user?

Thank you for your help!

Ideas anybody?