nextcloud / nextcloudpi

📦 Build code for NextcloudPi: Raspberry Pi, Odroid, Rock64, curl installer...
https://nextcloudpi.com
2.57k stars 297 forks source link

The page isn’t redirecting properly. Issue with external proxy after upgrade to v1.39.12 #1348

Closed facorazza closed 3 years ago

facorazza commented 3 years ago

I'm using Traefik as SSL terminator and to slice my subdomains to the relative containers.

System information

NextCloudPi diagnostics ``` NextCloudPi version v1.39.13 NextCloudPi image NextCloudPi_docker_01-20-21 distribution Debian GNU/Linux 10 \n \l automount no USB devices none datadir /ncdata data in SD no data filesystem zfs data disk usage 1.5T/3.3T rootfs usage 36G/233G swapfile /swap.img dbdir /data/database Nextcloud check ok Nextcloud version 21.0.4.1 HTTPD service up PHP service up MariaDB service up Redis service up HPB service down Postfix service up internet check ok port check 80 open port check 443 open IP ***REMOVED SENSITIVE VALUE*** gateway ***REMOVED SENSITIVE VALUE*** interface eth0 certificates ***REMOVED SENSITIVE VALUE*** NAT loopback no uptime 1day ```
Nextcloud configuration ``` { "system": { "passwordsalt": "***REMOVED SENSITIVE VALUE***", "secret": "***REMOVED SENSITIVE VALUE***", "trusted_domains": { "0": "localhost", "1": "172.20.0.2", "5": "nextcloudpi.local", "7": "nextcloudpi", "8": "nextcloudpi.lan", "3": "***REMOVED SENSITIVE VALUE***", "11": "***REMOVED SENSITIVE VALUE***" }, "trusted_proxies": "***REMOVED SENSITIVE VALUE***", "forwarded_for_headers": [ "HTTP_X_FORWARDED_FOR" ], "datadirectory": "***REMOVED SENSITIVE VALUE***", "dbtype": "mysql", "version": "21.0.4.1", "overwrite.cli.url": "https:\/\/***REMOVED SENSITIVE VALUE***\/", "dbname": "***REMOVED SENSITIVE VALUE***", "dbhost": "***REMOVED SENSITIVE VALUE***", "dbport": "", "dbtableprefix": "oc_", "mysql.utf8mb4": true, "dbuser": "***REMOVED SENSITIVE VALUE***", "dbpassword": "***REMOVED SENSITIVE VALUE***", "installed": true, "instanceid": "***REMOVED SENSITIVE VALUE***", "memcache.local": "\\OC\\Memcache\\Redis", "memcache.locking": "\\OC\\Memcache\\Redis", "redis": { "host": "***REMOVED SENSITIVE VALUE***", "port": 0, "timeout": 0, "password": "***REMOVED SENSITIVE VALUE***" }, "tempdirectory": "\/ncdata\/tmp", "mail_smtpmode": "sendmail", "mail_smtpauthtype": "LOGIN", "mail_from_address": "***REMOVED SENSITIVE VALUE***", "mail_domain": "***REMOVED SENSITIVE VALUE***", "jpeg_quality": "75", "overwriteprotocol": "https", "maintenance": false, "loglevel": 0, "theme": "", "htaccess.RewriteBase": "\/", "data-fingerprint": "***REMOVED SENSITIVE VALUE***", "versions_retention_obligation": "auto, 90", "trashbin_retention_obligation": "auto, 30", "mail_sendmailmode": "smtp", "twofactor_enforced": "true", "twofactor_enforced_groups": [], "twofactor_enforced_excluded_groups": [], "updater.release.channel": "stable", "allow_local_remote_servers": "true", "app_install_overwrite": [ "files_external_dropbox", "telephoneprovider", "drawio", "previewgenerator" ], "has_rebuilt_cache": true, "simpleSignUpLink.shown": false, "default_phone_region": { "IT": "" }, "preview_max_x": "2048", "preview_max_y": "2048" } } ```
HTTPd logs ``` [Fri Sep 24 04:01:48.249471 2021] [ssl:error] [pid 186:tid 139628298265728] AH02217: ssl_stapling_init_cert: can't retrieve issuer certificate! [subject: CN=localhost / issuer: CN=localhost / serial: 4C14BEAFCE29952669E37EAEB97980B0DDA07BBB / notbefore: Jan 19 05:14:56 2021 GMT / notafter: Jan 17 05:14:56 2031 GMT] [Fri Sep 24 04:01:48.249487 2021] [ssl:error] [pid 186:tid 139628298265728] AH02604: Unable to configure certificate localhost:4443:0 for stapling [Fri Sep 24 04:01:48.261505 2021] [ssl:error] [pid 195:tid 139628298265728] AH02217: ssl_stapling_init_cert: can't retrieve issuer certificate! [subject: CN=localhost / issuer: CN=localhost / serial: 4C14BEAFCE29952669E37EAEB97980B0DDA07BBB / notbefore: Jan 19 05:14:56 2021 GMT / notafter: Jan 17 05:14:56 2031 GMT] [Fri Sep 24 04:01:48.261533 2021] [ssl:error] [pid 195:tid 139628298265728] AH02604: Unable to configure certificate localhost:4443:0 for stapling [Fri Sep 24 04:01:48.264036 2021] [mpm_event:notice] [pid 195:tid 139628298265728] AH00489: Apache/2.4.38 (Debian) OpenSSL/1.1.1d configured -- resuming normal operations [Fri Sep 24 04:01:48.264078 2021] [core:notice] [pid 195:tid 139628298265728] AH00094: Command line: '/usr/sbin/apache2' [Fri Sep 24 08:18:33.401328 2021] [mpm_event:notice] [pid 195:tid 139628298265728] AH00492: caught SIGWINCH, shutting down gracefully [Fri Sep 24 08:18:49.574408 2021] [ssl:error] [pid 188:tid 140473145857152] AH02217: ssl_stapling_init_cert: can't retrieve issuer certificate! [subject: CN=localhost / issuer: CN=localhost / serial: 4C14BEAFCE29952669E37EAEB97980B0DDA07BBB / notbefore: Jan 19 05:14:56 2021 GMT / notafter: Jan 17 05:14:56 2031 GMT] [Fri Sep 24 08:18:49.574432 2021] [ssl:error] [pid 188:tid 140473145857152] AH02604: Unable to configure certificate localhost:4443:0 for stapling [Fri Sep 24 08:18:49.587324 2021] [ssl:error] [pid 194:tid 140473145857152] AH02217: ssl_stapling_init_cert: can't retrieve issuer certificate! [subject: CN=localhost / issuer: CN=localhost / serial: 4C14BEAFCE29952669E37EAEB97980B0DDA07BBB / notbefore: Jan 19 05:14:56 2021 GMT / notafter: Jan 17 05:14:56 2031 GMT] [Fri Sep 24 08:18:49.587386 2021] [ssl:error] [pid 194:tid 140473145857152] AH02604: Unable to configure certificate localhost:4443:0 for stapling [Fri Sep 24 08:18:49.590043 2021] [mpm_event:notice] [pid 194:tid 140473145857152] AH00489: Apache/2.4.38 (Debian) OpenSSL/1.1.1d configured -- resuming normal operations [Fri Sep 24 08:18:49.590081 2021] [core:notice] [pid 194:tid 140473145857152] AH00094: Command line: '/usr/sbin/apache2' [Fri Sep 24 08:21:02.686760 2021] [mpm_event:notice] [pid 194:tid 140473145857152] AH00492: caught SIGWINCH, shutting down gracefully [Fri Sep 24 08:21:27.854295 2021] [ssl:error] [pid 182:tid 139628615644288] AH02217: ssl_stapling_init_cert: can't retrieve issuer certificate! [subject: CN=localhost / issuer: CN=localhost / serial: 4C14BEAFCE29952669E37EAEB97980B0DDA07BBB / notbefore: Jan 19 05:14:56 2021 GMT / notafter: Jan 17 05:14:56 2031 GMT] [Fri Sep 24 08:21:27.854311 2021] [ssl:error] [pid 182:tid 139628615644288] AH02604: Unable to configure certificate localhost:4443:0 for stapling [Fri Sep 24 08:21:27.865519 2021] [ssl:error] [pid 194:tid 139628615644288] AH02217: ssl_stapling_init_cert: can't retrieve issuer certificate! [subject: CN=localhost / issuer: CN=localhost / serial: 4C14BEAFCE29952669E37EAEB97980B0DDA07BBB / notbefore: Jan 19 05:14:56 2021 GMT / notafter: Jan 17 05:14:56 2031 GMT] [Fri Sep 24 08:21:27.865536 2021] [ssl:error] [pid 194:tid 139628615644288] AH02604: Unable to configure certificate localhost:4443:0 for stapling [Fri Sep 24 08:21:27.866936 2021] [mpm_event:notice] [pid 194:tid 139628615644288] AH00489: Apache/2.4.38 (Debian) OpenSSL/1.1.1d configured -- resuming normal operations [Fri Sep 24 08:21:27.866961 2021] [core:notice] [pid 194:tid 139628615644288] AH00094: Command line: '/usr/sbin/apache2' ```
Database logs ``` 2021-09-24 8:21:27 0 [Note] InnoDB: Compressed tables use zlib 1.2.11 2021-09-24 8:21:27 0 [Note] InnoDB: Number of pools: 1 2021-09-24 8:21:27 0 [Note] InnoDB: Using SSE2 crc32 instructions 2021-09-24 8:21:27 0 [Note] InnoDB: Initializing buffer pool, total size = 3.875G, instances = 1, chunk size = 128M 2021-09-24 8:21:28 0 [Note] InnoDB: Completed initialization of buffer pool 2021-09-24 8:21:28 0 [Note] InnoDB: If the mysqld execution user is authorized, page cleaner thread priority can be changed. See the man page of setpriority(). 2021-09-24 8:21:28 0 [Note] InnoDB: 128 out of 128 rollback segments are active. 2021-09-24 8:21:28 0 [Note] InnoDB: Creating shared tablespace for temporary tables 2021-09-24 8:21:28 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ... 2021-09-24 8:21:28 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB. 2021-09-24 8:21:28 0 [Note] InnoDB: Waiting for purge to start 2021-09-24 8:21:28 0 [Note] InnoDB: 10.3.27 started; log sequence number 53389078897; transaction id 36494563 2021-09-24 8:21:28 0 [Note] InnoDB: Loading buffer pool(s) from /data/database/ib_buffer_pool 2021-09-24 8:21:28 0 [Note] Plugin 'FEEDBACK' is disabled. 2021-09-24 8:21:28 0 [Note] Server socket created on IP: '127.0.0.1'. 2021-09-24 8:21:28 0 [Note] Reading of all Master_info entries succeeded 2021-09-24 8:21:28 0 [Note] Added new Master_info '' to hash table 2021-09-24 8:21:28 0 [Note] mysqld: ready for connections. Version: '10.3.27-MariaDB-0+deb10u1' socket: '/run/mysqld/mysqld.sock' port: 3306 Debian 10 2021-09-24 8:21:28 0 [Note] InnoDB: Buffer pool(s) load completed at 210924 8:21:28 ```
Nextcloud logs ``` {"reqId":"uXg4Ry501PeYcyKw0vb2","level":0,"time":"2021-09-24T15:16:28+00:00","remoteAddr":"","user":"--","app":"gpxedit","method":"","url":"--","message":"/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.","userAgent":"--","version":"21.0.4.1"} {"reqId":"uXg4Ry501PeYcyKw0vb2","level":0,"time":"2021-09-24T15:16:28+00:00","remoteAddr":"","user":"--","app":"metadata","method":"","url":"--","message":"/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.","userAgent":"--","version":"21.0.4.1"} {"reqId":"uXg4Ry501PeYcyKw0vb2","level":0,"time":"2021-09-24T15:16:28+00:00","remoteAddr":"","user":"--","app":"piwik","method":"","url":"--","message":"/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.","userAgent":"--","version":"21.0.4.1"} {"reqId":"uXg4Ry501PeYcyKw0vb2","level":0,"time":"2021-09-24T15:16:28+00:00","remoteAddr":"","user":"--","app":"qownnotesapi","method":"","url":"--","message":"/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.","userAgent":"--","version":"21.0.4.1"} {"reqId":"uXg4Ry501PeYcyKw0vb2","level":0,"time":"2021-09-24T15:16:28+00:00","remoteAddr":"","user":"--","app":"quickaccesssorting","method":"","url":"--","message":"/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.","userAgent":"--","version":"21.0.4.1"} {"reqId":"uXg4Ry501PeYcyKw0vb2","level":0,"time":"2021-09-24T15:16:28+00:00","remoteAddr":"","user":"--","app":"scanner","method":"","url":"--","message":"/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.","userAgent":"--","version":"21.0.4.1"} {"reqId":"uXg4Ry501PeYcyKw0vb2","level":0,"time":"2021-09-24T15:16:28+00:00","remoteAddr":"","user":"--","app":"socialsharing_diaspora","method":"","url":"--","message":"/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.","userAgent":"--","version":"21.0.4.1"} {"reqId":"uXg4Ry501PeYcyKw0vb2","level":0,"time":"2021-09-24T15:16:28+00:00","remoteAddr":"","user":"--","app":"socialsharing_email","method":"","url":"--","message":"/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.","userAgent":"--","version":"21.0.4.1"} {"reqId":"uXg4Ry501PeYcyKw0vb2","level":0,"time":"2021-09-24T15:16:28+00:00","remoteAddr":"","user":"--","app":"socialsharing_facebook","method":"","url":"--","message":"/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.","userAgent":"--","version":"21.0.4.1"} {"reqId":"uXg4Ry501PeYcyKw0vb2","level":0,"time":"2021-09-24T15:16:28+00:00","remoteAddr":"","user":"--","app":"socialsharing_twitter","method":"","url":"--","message":"/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.","userAgent":"--","version":"21.0.4.1"} {"reqId":"uXg4Ry501PeYcyKw0vb2","level":0,"time":"2021-09-24T15:16:28+00:00","remoteAddr":"","user":"--","app":"souvenirs","method":"","url":"--","message":"/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.","userAgent":"--","version":"21.0.4.1"} {"reqId":"uXg4Ry501PeYcyKw0vb2","level":0,"time":"2021-09-24T15:16:28+00:00","remoteAddr":"","user":"--","app":"suspicious_login","method":"","url":"--","message":"/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.","userAgent":"--","version":"21.0.4.1"} {"reqId":"uXg4Ry501PeYcyKw0vb2","level":0,"time":"2021-09-24T15:16:28+00:00","remoteAddr":"","user":"--","app":"talk_simple_poll","method":"","url":"--","message":"/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.","userAgent":"--","version":"21.0.4.1"} {"reqId":"uXg4Ry501PeYcyKw0vb2","level":0,"time":"2021-09-24T15:16:28+00:00","remoteAddr":"","user":"--","app":"twofactor_gateway","method":"","url":"--","message":"/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.","userAgent":"--","version":"21.0.4.1"} {"reqId":"uXg4Ry501PeYcyKw0vb2","level":0,"time":"2021-09-24T15:16:28+00:00","remoteAddr":"","user":"--","app":"video_converter","method":"","url":"--","message":"/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.","userAgent":"--","version":"21.0.4.1"} {"reqId":"uXg4Ry501PeYcyKw0vb2","level":0,"time":"2021-09-24T15:16:28+00:00","remoteAddr":"","user":"--","app":"news","method":"","url":"--","message":"new parser added : FeedIo\\Standard\\Json","userAgent":"--","version":"21.0.4.1"} {"reqId":"uXg4Ry501PeYcyKw0vb2","level":0,"time":"2021-09-24T15:16:28+00:00","remoteAddr":"","user":"--","app":"news","method":"","url":"--","message":"new parser added : FeedIo\\Standard\\Atom","userAgent":"--","version":"21.0.4.1"} {"reqId":"uXg4Ry501PeYcyKw0vb2","level":0,"time":"2021-09-24T15:16:28+00:00","remoteAddr":"","user":"--","app":"news","method":"","url":"--","message":"new parser added : FeedIo\\Standard\\Rss","userAgent":"--","version":"21.0.4.1"} {"reqId":"uXg4Ry501PeYcyKw0vb2","level":0,"time":"2021-09-24T15:16:28+00:00","remoteAddr":"","user":"--","app":"news","method":"","url":"--","message":"new parser added : FeedIo\\Standard\\Rdf","userAgent":"--","version":"21.0.4.1"} {"reqId":"uXg4Ry501PeYcyKw0vb2","level":1,"time":"2021-09-24T15:16:28+00:00","remoteAddr":"","user":"--","app":"passwords","method":"","url":"--","message":"Passwords runs /var/www/nextcloud/occ in global mode","userAgent":"--","version":"21.0.4.1"} ```
nachoparker commented 3 years ago

fixed in v1.39.14