WebDAV Connection Not Working on Linux Arch (KDE Plasma + Dolphin)

The Basics

  • Nextcloud Server version (e.g., 29.x.x):
    • 31.0.7
  • Operating system and version (e.g., Ubuntu 24.04):
    • Ubuntu 24.04 (server) and Arch (Desktop)
  • Web server and version (e.g, Apache 2.4.25):
    • nginx 1.29
  • Reverse proxy and version _(e.g. nginx 1.27.2)
    • nginx 1.29
  • PHP version (e.g, 8.3):
    • 8.3.23
  • Is this the first time you’ve seen this error? (Yes / No):
    • Yes
  • When did this problem seem to first start?
    • Just now
  • Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
    • docker compose
  • Are you using CloudfIare, mod_security, or similar? (Yes / No)
    • No

Summary of the issue you are facing:

Running NextCloud server installed via docker compose. The server seems to be working fine and I can access the files via the web browser.

My computer is running Arch Linux with KDE Plasma 6. It comes bundled with Dolphin. This was a fresh install.

I am trying to add my NextCloud drive as a remote folder. I followed the instructions given here on setting up a remote folder in Dolphin. When did so, I get an error: Unable to connect to server. Please check your settings and try again.

The settings I entered were as given in the instructions:

  • Server: example.domain.com
  • Folder: remote.php/dav/files/USERNAME (I did not install it in a subdirectory, but instead in a subdomain)
  • Port: 443
  • Ticked ‘use encryption’ and ‘create an icon for this remote folder’
  • I was prompted for my username and password, and I used my username and an App Password from the 2FA settings.

(N.B.: yes, I did replace the placeholders with my username and server domain.)

When I tried connecting, I got the error I mentioned above.

I even tried a second method of using the NextCloud on-line account provider and enabling it as a storage option given here. When I did so and tried to open the web folder, I got an error saying the file or folder webdavs://USERNAME@example.domain.com:443/remote.php/dav/files/USERNAME does not exist.

Steps to replicate it (hint: details matter!):

  1. Fresh install of Arch Linux
  2. Open Dolphin
  3. Navigate to Network and click Add Remote Folder
  4. Select web folder (webdav)
  5. Enter the details above in the wizard and connect.

Second method:

  1. Install the kaccounts-providers package
  2. Create an online account for WebDAV and log in
  3. Enable storage integration in the wizard
  4. Navigate to Network section on Dolphin and try to open the NextCloud folder

Log entries

Nextcloud

There were no longs generated while trying to connect.

Web Browser

n/a

Web server / Reverse Proxy

No longs generated

Configuration

Nextcloud

The output of occ config:list system or similar is best, but, if not possible, the contents of your config.php file from /path/to/nextcloud is fine (make sure to remove any identifiable information!):

<?php
$CONFIG = array (
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'apps_paths' => 
  array (
    0 => 
    array (
      'path' => '/var/www/html/apps',
      'url' => '/apps',
      'writable' => false,
    ),
    1 => 
    array (
      'path' => '/var/www/html/custom_apps',
      'url' => '/custom_apps',
      'writable' => true,
    ),
  ),
  'memcache.distributed' => '\\OC\\Memcache\\Redis',
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'redis' => 
  array (
    'host' => 'redis',
    'password' => '',
    'port' => 6379,
  ),
  'instanceid' => 'ID',
  'passwordsalt' => 'SALT,
  'secret' => 'SECRET',
  'trusted_domains' => 
  array (
    0 => 'domain.example.com',
  ),
  'datadirectory' => '/var/www/html/data',
  'dbtype' => 'mysql',
  'version' => '25.0.1.1',
  'overwrite.cli.url' => 'http://domain.example.com',
  'dbname' => 'DB',
  'dbhost' => 'HOST',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'USERNAME',
  'dbpassword' => 'PASSWORD',
  'installed' => true,
  'mail_smtpmode' => 'smtp',
  'mail_smtpauthtype' => 'LOGIN',
  'mail_sendmailmode' => 'smtp',
  'mail_smtpauth' => 1,
  'mail_from_address' => 'mailer',
  'mail_domain' => 'MAIL',
  'mail_smtpport' => '25',
  'mail_smtphost' => '',
  'mail_smtpname' => '',
  'mail_smtppassword' => '',
);

Apps

None

Workaround

Meanwhile, I am able to sync folders using the desktop sync app for Arch Linux. This is not my preferred solution, as it involves syncing 150 GB of files to my computer instead of just leaving it in a remote folder.

Fixed it. It turns out the issue was the way Kwallet remembered the login credentials. I made a mistake typing the folder path (forgot the trailing /). And that was the webDAV address stored in the keyring. Dolphin was not overwriting it when I tried to set the folder up again with the correct path and the connection wizard wasn’t allowing me to enter a new entry for the same address for some reason.

I installed KWalletManager and manually deleted the password. then reconnected and everything was fine.

I spent ages trying to install what people on different posts said were missing libraries. I noticed everything worked fine on a different computer with a clean install. I reinstalled the OS thinking it was some dependencies or package conflicts that caused the issue. But it still didn’t work, so I thought the issue was in a config file. I did a full, clean reinstall, wiping my /home partition, and it seemed to work briefly in that it prompted me for a password once, but then never prompted me again. So from that I guessed it might have been a credential or keyring issue.

I’m going to post about this on the Arch/Plasma forum as it seems like an issue there.

2 Likes

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.