Nextcloud version (eg, 29.0.5): Version 29.0.4
Operating system and version (eg, Ubuntu 24.04): Debian 12 (bookworm), Raspberry Pi OS Lite (64-bit)
on my host machine
Apache or nginx version (eg, Apache 2.4.25): Apache/2.4.61
PHP version (eg, 8.3): 8.2.23
The issue you are facing:
The web ui works just fine, along with the android app. The problem occurs when I try to connect the desktop app, I enter the domain pointing to my host, and it just says:
Failed to connect to Nextcloud at https://nextcloud.mydomain.com:
Server replied "403 Forbidden" to "GET https://nextcloud.mydomain.com/status.php"
(domain name changed, cuz, you know - home instance :>)
Is this the first time you’ve seen this error? (Y/N):
Y
Steps to replicate it:
I don’t know that you mean by replicate it, do I need to detail my entire install process? I used docker compose to setup nextcloud (not AIO) with nginx proxymanager.
The issue occurs when:
- I open the nextcloud desktop app, on either my linux laptop or windows desktop
- I type in my domain
- It responds with the aforementioned `403 Forbidden’ to the GET request
I’m guessing it’s something with the apache server or npm, but I’ve been surfing around for solutions on this forum for so long and I haven’t found something that works for me
I should also mention that I’ve set my nameservers to Cloudflare’s, and that I have an A record pointing at my static WAN IP for my domain, with the Cloudflare “Proxy” switch toggled on in their DNS control panel. HSTS is also enabled, both on npm and the cloudflare web dashboard.
The output of your Nextcloud log in Admin > Logging:
https://pastebin.com/KWmVwkYU
I don’t think it is relevant, since it doesn’t mention the failed attempts, but…
The output of your config.php file in /path/to/nextcloud
(make sure you remove any identifiable information!):
<?php
$CONFIG = array (
'htaccess.RewriteBase' => '/',
'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,
),
),
'upgrade.disable-web' => true,
'passwordsalt' => 'shhhhh',
'secret' => 'secretssss',
'trusted_domains' =>
array (
0 => 'localhost',
1 => 'nextcloud.mydomain.com',
),
'datadirectory' => '/var/www/html/data',
'dbtype' => 'mysql',
'version' => '29.0.5.1',
'overwrite.cli.url' => 'https://nextcloud.mydomain.com',
'overwriteprotocol' => 'https',
'dbname' => 'nextcloud',
'dbhost' => 'nextcloud-db',
'dbport' => '',
'dbtableprefix' => 'oc_',
'mysql.utf8mb4' => true,
'dbuser' => 'nextcloud',
'dbpassword' => 'it definitely is not this',
'installed' => true,
'instanceid' => 'ocu2zf021ek4',
'defaultapp' => '',
'maintenance_window_start' => 1,
'maintenance' => false,
'default_phone_region' => '+45',
);
The output of your Apache/nginx/system log in /var/log/____
:
I tried to tail -f
the access log and error log, but nothing showed up when I tried to connect at the same time. I don’t know if this is what is meant by this section.
Output errors in nextcloud.log in /var/www/ or as admin user in top right menu, filtering for errors. Use a pastebin service if necessary.
I already added this one (unfiltered) but it’s so short it should be fine:
Ask for any more information and I shall provide! I hope anybody has any idea what’s wrong…