Hi all,
I face a problem with my trusted_proxies array.
In config.php I find the array with strange error messages. I have AdGuardHome setup as DNS server in my router. The IP address of the AdGuardHome machine is showing in the trusted_proxies array. That server has some downtime from time to time for servicing reasons and can’t be reached then.
But how is this related to the trusted_proxies entry in config.php?? All entries here are auto-generated and not set manually.
occ config:system:get trusted_proxies
127.0.0.1
::1
;; communications error to 192.168.188.23#53: connection refused
;; communications error to 192.168.188.23#53: connection refused
;; communications error to 192.168.188.23#53: connection refused
;; communications error to 2481:7e8:af80:2211:a00:28ff:fee2:bee0#53: timed out
;; no servers could be reached
Thanks!
- NC Version: 30.0.5
- Operating system and version: Debian 12.9
- Web server and version: Apache 2.4
- PHP 8.3
- Is this the first time you’ve seen this error? Yes
- When did this problem seem to first start? When my AdGuard DNS server was down and Nextcloud was updated to newer minor version
- Installation method: NCP
- Are you using Cloudflare, mod_security, or similar? No
Summary of the issue:
Trusted_proxies array in config.php has strange entries related to the IP address of the AdGuard DNS server.
Config.php contents:
<?php
$CONFIG = array (
'passwordsalt' => 'removed',
'secret' => 'removed',
'trusted_domains' =>
array (
0 => '127.0.0.1',
1 => '192.168.188.24',
2 => 'removed',
11 => 'removed',
3 => 'nextcloudpi',
14 => 'nextcloudpi',
),
'datadirectory' => '/media/Nextcloud_Data/Data',
'dbtype' => 'mysql',
'version' => '30.0.5.1',
'overwrite.cli.url' => 'https://nextcloudpi/',
'dbname' => 'nextcloud',
'dbhost' => 'localhost',
'dbport' => '',
'dbtableprefix' => 'oc_',
'mysql.utf8mb4' => true,
'dbuser' => 'ncadmin',
'dbpassword' => 'removed',
'installed' => true,
'instanceid' => 'oclaqn5ofjmm',
'memcache.local' => '\\OC\\Memcache\\Redis',
'memcache.locking' => '\\OC\\Memcache\\Redis',
'redis' =>
array (
'host' => '/var/run/redis/redis.sock',
'port' => 0,
'timeout' => 0.0,
'password' => 'removed',
),
'tempdirectory' => '/media/Nextcloud_Data/Data/tmp',
'mail_smtpmode' => 'smtp',
'mail_smtpauthtype' => 'LOGIN',
'mail_domain' => 'removed',
'preview_max_x' => 2048,
'preview_max_y' => 2048,
'jpeg_quality' => 60,
'overwriteprotocol' => 'https',
'loglevel' => 2,
'log_type' => 'file',
'maintenance' => false,
'theme' => '',
'logfile' => '/media/Nextcloud_Data/Data/nextcloud.log',
'data-fingerprint' => 'removed',
'mail_sendmailmode' => 'smtp',
'mail_smtpsecure' => 'ssl',
'mail_smtphost' => 'removed',
'mail_smtpauth' => 1,
'mail_smtpport' => '465',
'mail_smtpname' => 'removed',
'mail_smtppassword' => 'removed',
'mail_from_address' => 'nextcloud_on_odroid',
'default_language' => 'de',
'default_phone_region' => 'DE',
'app_install_overwrite' =>
array (
0 => 'occweb',
1 => 'sensorlogger',
2 => 'riotchat',
3 => 'news',
4 => 'files_rightclick',
5 => 'extract',
),
'trusted_proxies' =>
array (
11 => '127.0.0.1',
12 => '::1',
14 => ';; communications error to 192.168.188.23#53: connection refused
;; communications error to 192.168.188.23#53: connection refused
;; communications error to 192.168.188.23#53: connection refused
;; communications error to 2481:7e8:af80:2211:a00:28ff:fee2:bee0#53: timed out
;; no servers could be reached',
),
'maintenance_window_start' => 1,
'memories.db.triggers.fcu' => true,
'memories.exiftool' => '/var/www/nextcloud/apps/memories/bin-ext/exiftool-amd64-glibc',
'memories.vod.path' => '/var/www/nextcloud/apps/memories/bin-ext/go-vod-amd64',
'memories.gis_type' => 1,
'allow_local_remote_servers' => true,
);