-
Nextcloud Server version:
- Nextcloud Hub 25 Autumn (32.0.1)
-
Operating system and version (e.g., Ubuntu 24.04):
- Linux nextcloudpi 6.12.41-current-bcm2711
-
Web server and version (e.g, Apache 2.4.25):
- Apache 2.4.66-1~deb12u1
-
Reverse proxy and version _(e.g. nginx 1.27.2)
- nginx 1.27.4-1~bookworm
-
PHP version (e.g, 8.3):
- PHP 8.3.29
-
Is this the first time you’ve seen this error? (Yes / No):
-
Yes, but I might just not have noticed before
-
When did this problem seem to first start?
Probably when I started usingNextcloudpi
Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
NCP
-
Are you using CloudfIare, mod_security, or similar? (Yes / No)
No
Summary of the issue you are facing:
When requesting any page in my Nextcloudpi installation, most of the resulting requests go to my domain at wolk.diederickdevries.net, but some seem to go to Nextcloudpi, which is the host name of my Raspberry Pi. From the developer console:
GET /push/ws undefined
Host: nextcloudpi
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:147.0) Gecko/20100101 Firefox/147.0
Accept: */*
Accept-Language: en-US,en;q=0.9
Accept-Encoding: gzip, deflate, br, zstd
Sec-WebSocket-Version: 13
Origin: https://wolk.diederickdevries.net
Sec-WebSocket-Extensions: permessage-deflate
Sec-WebSocket-Key: xxxxxxxxxxxxxxxxxxxxxxxx
Sec-Fetch-Storage-Access: none
DNT: 1
Sec-GPC: 1
Connection: Upgrade
Sec-Fetch-Dest: empty
Sec-Fetch-Mode: websocket
Sec-Fetch-Site: cross-site
Pragma: no-cache
Cache-Control: no-cache
Upgrade: websocket
This and similar requests all result in a NS_ERROR_UNKNOWN_HOST and trigger a security warning in other browsers. There is no response.
My nginx.conf for NextcloudPI:
server {
listen 443 ssl;
server_name wolk.diederickdevries.net;
client_max_body_size 70M;
location / {
proxy_pass https://1.2.3.4;
proxy_ssl_verify off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
}
Steps to replicate it (hint: details matter!):
-
Install NextcloudPi on a Raspberry Pi
-
Have Nginx relay traffic for NextcloudPI
-
Log in and navigate to any page
Log entries
Web server / Reverse Proxy
The requests never seem to reach Nginx. These lines are from the moment the request above was done.
45.137.102.190 - - [10/Jan/2026:08:11:34 +0000] "GET / HTTP/1.1" 302 0 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:146.0) Gecko/20100101 Firefox/146.0" "-"
45.137.102.190 - - [10/Jan/2026:08:11:34 +0000] "GET /index.php/login HTTP/1.1" 200 6683 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:146.0) Gecko/20100101 Firefox/146.0" "-"
45.137.102.190 - - [10/Jan/2026:08:11:34 +0000] "GET /core/css/server.css?v=533158a8-0 HTTP/1.1" 200 19137 "https://wolk.diederickdevries.net/index.php/login" "Mozilla/5.0 (X11; Linux x86_64; rv:146.0) Gecko/20100101 Firefox/146.0" "-"
45.137.102.190 - - [10/Jan/2026:08:11:34 +0000] "GET /apps/theming/js/theming.js?v=533158a8-0 HTTP/1.1" 200 172 "https://wolk.diederickdevries.net/index.php/login" "Mozilla/5.0 (X11; Linux x86_64; rv:146.0) Gecko/20100101 Firefox/146.0" "-"
45.137.102.190 - - [10/Jan/2026:08:11:34 +0000] "GET /apps/theming/css/default.css?v=387770a3-0 HTTP/1.1" 200 2102 "https://wolk.diederickdevries.net/index.php/login" "Mozilla/5.0 (X11; Linux x86_64; rv:146.0) Gecko/20100101 Firefox/146.0" "-"
45.137.102.190 - - [10/Jan/2026:08:11:34 +0000] "GET /core/css/guest.css?v=533158a8-0 HTTP/1.1" 200 4209 "https://wolk.diederickdevries.net/index.php/login" "Mozilla/5.0 (X11; Linux x86_64; rv:146.0) Gecko/20100101 Firefox/146.0" "-"
45.137.102.190 - - [10/Jan/2026:08:11:34 +0000] "GET /dist/core-login.js?v=533158a8-0 HTTP/1.1" 200 49754 "https://wolk.diederickdevries.net/index.php/login" "Mozilla/5.0 (X11; Linux x86_64; rv:146.0) Gecko/20100101 Firefox/146.0" "-"
45.137.102.190 - - [10/Jan/2026:08:11:34 +0000] "GET /dist/core-main.js?v=533158a8-0 HTTP/1.1" 200 332466 "https://wolk.diederickdevries.net/index.php/login" "Mozilla/5.0 (X11; Linux x86_64; rv:146.0) Gecko/20100101 Firefox/146.0" "-"
45.137.102.190 - - [10/Jan/2026:08:11:34 +0000] "GET /index.php/apps/theming/theme/light.css?plain=1&v=dfeef155 HTTP/1.1" 200 1414 "https://wolk.diederickdevries.net/index.php/login" "Mozilla/5.0 (X11; Linux x86_64; rv:146.0) Gecko/20100101 Firefox/146.0" "-"
45.137.102.190 - - [10/Jan/2026:08:11:34 +0000] "GET /index.php/apps/theming/theme/light.css?p...skipping...
45.137.102.190 - - [21/Jan/2026:19:10:01 +0000] "POST /index.php/apps/text/session/7880/push HTTP/1.1" 200 65 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:147.0) Gecko/20100101 Firefox/147.0" "-"
45.137.102.190 - - [21/Jan/2026:19:10:02 +0000] "POST /index.php/apps/text/session/7880/sync HTTP/1.1" 200 620 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:147.0) Gecko/20100101 Firefox/147.0" "-"
45.137.102.190 - - [21/Jan/2026:19:10:07 +0000] "PROPFIND /remote.php/dav/calendars/Diederick/ HTTP/1.1" 207 2107 "-" "Mozilla/5.0 (Linux; Ubuntu 24.04) AppleWebKit/537.36 Chrome/122.0.6261.171 Safari/537.36" "-"
45.137.102.190 - - [21/Jan/2026:19:10:08 +0000] "POST /index.php/apps/text/session/7880/sync HTTP/1.1" 200 620 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:147.0) Gecko/20100101 Firefox/147.0" "-"
45.137.102.190 - - [21/Jan/2026:19:10:14 +0000] "POST /index.php/apps/text/session/7880/sync HTTP/1.1" 200 620 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:147.0) Gecko/20100101 Firefox/147.0" "-"
45.137.102.190 - - [21/Jan/2026:19:10:16 +0000] "POST /index.php/apps/text/session/7880/push HTTP/1.1" 200 65 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:147.0) Gecko/20100101 Firefox/147.0" "-"
45.137.102.190 - - [21/Jan/2026:19:10:20 +0000] "POST /index.php/apps/notify_push/pre_auth HTTP/1.1" 200 52 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:147.0) Gecko/20100101 Firefox/147.0" "-"
45.137.102.190 - - [21/Jan/2026:19:10:20 +0000] "POST /index.php/apps/text/session/7880/sync HTTP/1.1" 200 619 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:147.0) Gecko/20100101 Firefox/147.0" "-"
45.137.102.190 - - [21/Jan/2026:19:10:26 +0000] "POST /index.php/apps/text/session/7880/sync HTTP/1.1" 200 619 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:147.0) Gecko/20100101 Firefox/147.0" "-"
Configuration
Nextcloud
<?php
$CONFIG = array (
'passwordsalt' => 'xxxxxxxxxxxxxxxxxxxx',
'secret' => 'xxxxxxxxxxxxxxxxxxxx',
'trusted_domains' =>
array (
0 => 'localhost',
7 => 'nextcloudpi',
5 => 'nextcloudpi.local',
8 => 'nextcloudpi.lan',
3 => 'nextcloudpi',
11 => 'a.b.c.d', (my external IP)
1 => 'a.b.c.d', (internal IP of the PI)
14 => 'nextcloudpi',
20 => 'wolk.diederickdevries.net',
),
'datadirectory' => '/media/USBdrive/ncdata/data',
'dbtype' => 'mysql',
'version' => '32.0.1.2',
'overwrite.cli.url' => 'https://nextcloudpi/',
'dbname' => 'nextcloud',
'dbhost' => 'localhost',
'dbtableprefix' => 'oc_',
'mysql.utf8mb4' => true,
'dbuser' => 'ncadmin',
'dbpassword' => 'xxxxxxxxxxxxxxxxxxxx',
'installed' => true,
'instanceid' => 'xxxxxxxxxxxx',
'memcache.local' => '\\OC\\Memcache\\Redis',
'memcache.locking' => '\\OC\\Memcache\\Redis',
'redis' =>
array (
'host' => '/var/run/redis/redis.sock',
'port' => 0,
'timeout' => 0.0,
'password' => 'xxxxxxxxxxxxxxxxxxxx',
),
'tempdirectory' => '/media/USBdrive/ncdata/data/tmp',
'mail_smtpmode' => 'smtp',
'mail_smtpauthtype' => 'LOGIN',
'mail_from_address' => 'noreply',
'mail_domain' => 'diederickdevries.net',
'preview_max_x' => '2048',
'preview_max_y' => '2048',
'jpeg_quality' => '60',
'overwriteprotocol' => 'https',
'maintenance' => false,
'logfile' => '/media/USBdrive/ncdata/data/nextcloud.log',
'trusted_proxies' =>
array (
11 => '127.0.0.1',
12 => '::1',
14 => '127.0.1.1',
),
'mail_sendmailmode' => 'smtp',
'mail_smtpsecure' => 'ssl',
'mail_smtphost' => 'smtp.mymailhost.com',
'mail_smtpport' => '465',
'mail_smtpauth' => true,
'mail_smtpname' => 'xxxxxxxxxxxxxxxxxxxx'
'mail_smtppassword' => 'xxxxxxxxxxxxxxxxxxxx',
'maintenance_window_start' => 6,
'default_phone_region' => '+31',
);
Apps
The output of occ app:list (if possible).
root@nextcloudpi:/var/www/nextcloud# ./occ app:list
Cannot load Zend OPcache - it was already loaded
An unhandled exception has been thrown:
RedisException: Permission denied in /var/www/nextcloud/lib/private/RedisFactory.php:104
...
It looks like this has something to do with notifications, but I do get notifications in Gnome. At the same time, exposing the internal host name of my Raspberry Pi is a security risk.
Does anyone have any idea?
