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) andArch
(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!):
- Fresh install of Arch Linux
- Open Dolphin
- Navigate to Network and click Add Remote Folder
- Select web folder (webdav)
- Enter the details above in the wizard and connect.
Second method:
- Install the
kaccounts-providers
package - Create an online account for WebDAV and log in
- Enable storage integration in the wizard
- 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.