Configuring HPB with ncp

Hey together,

got the new update to NC21 with my ncp installation.
Thanks to anyone who puts effort into it.

Now im curious and want to configure the HPB of NC21 ad well it doesn’t run as expected.

With notify_push:setup i get the following result:

me:~# ncc notify_push:setup https://my-domain/push
✓ redis is configured
🗴 can’t connect to push server: cURL error 28: Connection timed out after 30000 milliseconds (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://my-domain/push/test/cookie

Has anyone a good guide or can guide me in configuring the HPB?
Unfortunately I can’t find a helpful documentation online. Therefore it will be awesome for anyone who looks for that to find it here.

Thanks

please share the output of sudo ncp-report and we’ll take it from there

Thanks @nachoparker .
If you need further information, please let me know.

<–! Paste this in GitHub report →

NextCloudPi diagnostics

NextCloudPi version  v1.39.1
NextCloudPi image    NextCloudPi_12-20-19
distribution         Raspbian GNU/Linux 10 \n \l
automount            no
USB devices          none
datadir              /var/www/nextcloud/data
data in SD           yes
data filesystem      ext2/ext3
data disk usage      72G/181G
rootfs usage         72G/181G
swapfile             /var/swap
dbdir                /var/lib/mysql
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               1:07

Nextcloud configuration

{
    "system": {
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": {
            "0": "localhost",
            "5": "nextcloudpi.local",
            "7": "nextcloudpi",
            "8": "nextcloudpi.lan",
            "1": "192.168.0.100",
            "20": "subdomain",
            "22": "mydomain",
            "12": "mydomain",
            "13": "mydomain",
            "3": "An unhandled exception has been thrown:\nRedisException: LOADING Redis is loading the dataset in memory in \nStack trace:\n#0 \n#1 \n#2 \n#3 \n#4 \n#5 \n#6 \n#7 \n#8 \n#9 \n#10 \n#11 \n#12 {main}"
        },
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "mysql",
        "version": "21.0.4.1",
        "overwrite.cli.url": "https:\/\/An unhandled exception has been thrown:\nRedisException: LOADING Redis is loading the dataset in memory in \nStack trace:\n#0 \n#1 \n#2 \n#3 \n#4 \n#5 \n#6 \n#7 \n#8 \n#9 \n#10 \n#11 \n#12 {main}\/",
        "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": "\/var\/www\/nextcloud\/data\/tmp",
        "mail_smtpmode": "smtp",
        "mail_smtpauthtype": "LOGIN",
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "preview_max_x": "2048",
        "preview_max_y": "2048",
        "jpeg_quality": "60",
        "overwriteprotocol": "https",
        "loglevel": "2",
        "log_type": "file",
        "maintenance": false,
        "mail_sendmailmode": "smtp",
        "mail_smtpsecure": "ssl",
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpauth": 1,
        "mail_smtpport": "465",
        "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
        "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
        "app_install_overwrite": [
            "previewgenerator",
            "sharerenamer"
        ],
        "theme": "",
        "htaccess.RewriteBase": "\/",
        "trusted_proxies": "***REMOVED SENSITIVE VALUE***"
    }
}

HTTPd logs

[Wed Sep 15 18:49:03.012092 2021] [authz_host:error] [pid 13958:tid 2780488704] [client 192.168.0.126:42682] AH01753: access check of 'localhost' to /img/loading-small.gif failed, reason: unable to get the remote host name
[Wed Sep 15 18:49:03.014634 2021] [authz_host:error] [pid 13958:tid 2772087808] [client 192.168.0.126:42682] AH01753: access check of 'localhost' to /img/ncp-logo.svg failed, reason: unable to get the remote host name
[Wed Sep 15 18:49:03.186085 2021] [authz_host:error] [pid 13958:tid 2755286016] [client 192.168.0.126:42682] AH01753: access check of 'localhost' to /img/defaults.svg failed, reason: unable to get the remote host name
[Wed Sep 15 18:49:03.186086 2021] [authz_host:error] [pid 13958:tid 2772087808] [client 192.168.0.126:42682] AH01753: access check of 'localhost' to /img/toggle.svg failed, reason: unable to get the remote host name
[Wed Sep 15 18:49:03.186558 2021] [authz_host:error] [pid 13958:tid 2788889600] [client 192.168.0.126:42682] AH01753: access check of 'localhost' to /img/reboot.svg failed, reason: unable to get the remote host name
[Wed Sep 15 18:49:03.186995 2021] [authz_host:error] [pid 13958:tid 2763686912] [client 192.168.0.126:42682] AH01753: access check of 'localhost' to /img/poweroff.svg failed, reason: unable to get the remote host name
[Wed Sep 15 18:49:03.253886 2021] [authz_host:error] [pid 13958:tid 2763686912] [client 192.168.0.126:42682] AH01753: access check of 'localhost' to /img/search.svg failed, reason: unable to get the remote host name, referer: https://nextcloudpi.local:4443/css/ncp.css
[Wed Sep 15 18:49:03.256767 2021] [authz_host:error] [pid 13958:tid 2763686912] [client 192.168.0.126:42682] AH01753: access check of 'localhost' to /img/nc-button.svg failed, reason: unable to get the remote host name, referer: https://nextcloudpi.local:4443/css/ncp.css
[Wed Sep 15 18:49:03.258702 2021] [authz_host:error] [pid 13958:tid 2755286016] [client 192.168.0.126:42682] AH01753: access check of 'localhost' to /img/defaults-white.svg failed, reason: unable to get the remote host name, referer: https://nextcloudpi.local:4443/css/ncp.css
[Wed Sep 15 18:49:03.259014 2021] [authz_host:error] [pid 13958:tid 2763686912] [client 192.168.0.126:42682] AH01753: access check of 'localhost' to /img/dashboard.svg failed, reason: unable to get the remote host name, referer: https://nextcloudpi.local:4443/css/ncp.css
[Wed Sep 15 18:49:03.260465 2021] [authz_host:error] [pid 13958:tid 2755286016] [client 192.168.0.126:42682] AH01753: access check of 'localhost' to /img/wizard.svg failed, reason: unable to get the remote host name, referer: https://nextcloudpi.local:4443/css/ncp.css
[Wed Sep 15 18:49:03.260528 2021] [authz_host:error] [pid 13958:tid 2788889600] [client 192.168.0.126:42682] AH01753: access check of 'localhost' to /img/info-white.svg failed, reason: unable to get the remote host name, referer: https://nextcloudpi.local:4443/css/ncp.css
[Wed Sep 15 18:49:03.260746 2021] [authz_host:error] [pid 13958:tid 2763686912] [client 192.168.0.126:42682] AH01753: access check of 'localhost' to /img/settings-white.svg failed, reason: unable to get the remote host name, referer: https://nextcloudpi.local:4443/css/ncp.css
[Wed Sep 15 18:49:03.261873 2021] [authz_host:error] [pid 13958:tid 2763686912] [client 192.168.0.126:42682] AH01753: access check of 'localhost' to /img/files.svg failed, reason: unable to get the remote host name, referer: https://nextcloudpi.local:4443/css/ncp.css
[Wed Sep 15 18:49:03.263501 2021] [authz_host:error] [pid 13958:tid 2763686912] [client 192.168.0.126:42682] AH01753: access check of 'localhost' to /img/menu.svg failed, reason: unable to get the remote host name, referer: https://nextcloudpi.local:4443/css/ncp.css
[Wed Sep 15 18:49:03.266454 2021] [authz_host:error] [pid 13958:tid 2788889600] [client 192.168.0.126:42682] AH01753: access check of 'localhost' to /ncp-output.php failed, reason: unable to get the remote host name
[Wed Sep 15 18:49:03.284925 2021] [authz_host:error] [pid 13958:tid 2763686912] [client 192.168.0.126:42682] AH01753: access check of 'localhost' to /ncp-launcher.php failed, reason: unable to get the remote host name
[Wed Sep 15 18:49:03.524409 2021] [authz_host:error] [pid 13958:tid 2755286016] [client 192.168.0.126:42682] AH01753: access check of 'localhost' to /img/favicon.png failed, reason: unable to get the remote host name
[Wed Sep 15 18:49:10.805488 2021] [authz_host:error] [pid 13958:tid 2763686912] [client 192.168.0.126:42682] AH01753: access check of 'localhost' to /ncp-launcher.php failed, reason: unable to get the remote host name
[Wed Sep 15 18:49:10.835479 2021] [authz_host:error] [pid 13958:tid 2763686912] [client 192.168.0.126:42682] AH01753: access check of 'localhost' to /ncp-launcher.php failed, reason: unable to get the remote host name

Database logs

2021-09-15 18:02:30 0 [Note] InnoDB: Uses event mutexes
2021-09-15 18:02:30 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2021-09-15 18:02:30 0 [Note] InnoDB: Number of pools: 1
2021-09-15 18:02:30 0 [Note] InnoDB: Using generic crc32 instructions
2021-09-15 18:02:30 0 [Note] InnoDB: Initializing buffer pool, total size = 1G, instances = 1, chunk size = 128M
2021-09-15 18:02:31 0 [Note] InnoDB: Completed initialization of buffer pool
2021-09-15 18:02:31 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-15 18:02:31 0 [Note] InnoDB: 128 out of 128 rollback segments are active.
2021-09-15 18:02:31 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2021-09-15 18:02:31 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2021-09-15 18:02:31 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB.
2021-09-15 18:02:31 0 [Note] InnoDB: 10.3.29 started; log sequence number 11491767495; transaction id 30707394
2021-09-15 18:02:31 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool
2021-09-15 18:02:31 0 [Note] Plugin 'FEEDBACK' is disabled.
2021-09-15 18:02:32 0 [Note] Server socket created on IP: '127.0.0.1'.
2021-09-15 18:02:32 0 [Note] Reading of all Master_info entries succeeded
2021-09-15 18:02:32 0 [Note] Added new Master_info '' to hash table
2021-09-15 18:02:32 0 [Note] /usr/sbin/mysqld: ready for connections.
Version: '10.3.29-MariaDB-0+deb10u1'  socket: '/run/mysqld/mysqld.sock'  port: 3306  Raspbian 10
2021-09-15 18:02:36 0 [Note] InnoDB: Buffer pool(s) load completed at 210915 18:02:36

Nextcloud logs

{"reqId":"zx7XSwrbWhMZ7eOKWjTn","level":1,"time":"2021-09-15T16:38:11+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"\\OC\\Repair::step: Repair step: Reset generated avatar flag","userAgent":"--","version":"20.0.12.1"}
{"reqId":"zx7XSwrbWhMZ7eOKWjTn","level":1,"time":"2021-09-15T16:38:11+00:00","remoteAddr":"","user":"--","app":"no app in context","method":"","url":"--","message":"Deprecated event type for \\OC\\Repair::step: Symfony\\Component\\EventDispatcher\\GenericEvent is used","userAgent":"--","version":"20.0.12.1"}
{"reqId":"zx7XSwrbWhMZ7eOKWjTn","level":1,"time":"2021-09-15T16:38:11+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"\\OC\\Repair::step: Repair step: Keep legacy encryption enabled","userAgent":"--","version":"20.0.12.1"}
{"reqId":"zx7XSwrbWhMZ7eOKWjTn","level":1,"time":"2021-09-15T16:38:11+00:00","remoteAddr":"","user":"--","app":"no app in context","method":"","url":"--","message":"Deprecated event type for \\OC\\Repair::step: Symfony\\Component\\EventDispatcher\\GenericEvent is used","userAgent":"--","version":"20.0.12.1"}
{"reqId":"zx7XSwrbWhMZ7eOKWjTn","level":1,"time":"2021-09-15T16:38:11+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"\\OC\\Repair::step: Repair step: Check encryption key format","userAgent":"--","version":"20.0.12.1"}
{"reqId":"zx7XSwrbWhMZ7eOKWjTn","level":1,"time":"2021-09-15T16:38:11+00:00","remoteAddr":"","user":"--","app":"no app in context","method":"","url":"--","message":"Deprecated event type for \\OC\\Repair::step: Symfony\\Component\\EventDispatcher\\GenericEvent is used","userAgent":"--","version":"20.0.12.1"}
{"reqId":"zx7XSwrbWhMZ7eOKWjTn","level":1,"time":"2021-09-15T16:38:11+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"\\OC\\Repair::step: Repair step: Remove old dashboard app config data","userAgent":"--","version":"20.0.12.1"}
{"reqId":"zx7XSwrbWhMZ7eOKWjTn","level":1,"time":"2021-09-15T16:38:11+00:00","remoteAddr":"","user":"--","app":"no app in context","method":"","url":"--","message":"Deprecated event type for \\OC\\Repair::step: Symfony\\Component\\EventDispatcher\\GenericEvent is used","userAgent":"--","version":"20.0.12.1"}
{"reqId":"zx7XSwrbWhMZ7eOKWjTn","level":1,"time":"2021-09-15T16:38:11+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"\\OC\\Repair::step: Repair step: Add job to cleanup the bruteforce entries","userAgent":"--","version":"20.0.12.1"}
{"reqId":"zx7XSwrbWhMZ7eOKWjTn","level":1,"time":"2021-09-15T16:38:11+00:00","remoteAddr":"","user":"--","app":"no app in context","method":"","url":"--","message":"Deprecated event type for \\OC\\Repair::step: Symfony\\Component\\EventDispatcher\\GenericEvent is used","userAgent":"--","version":"20.0.12.1"}
{"reqId":"zx7XSwrbWhMZ7eOKWjTn","level":1,"time":"2021-09-15T16:38:11+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"\\OC\\Repair::step: Repair step: Queue a one-time job to check for user uploaded certificates","userAgent":"--","version":"20.0.12.1"}
{"reqId":"zx7XSwrbWhMZ7eOKWjTn","level":1,"time":"2021-09-15T16:38:11+00:00","remoteAddr":"","user":"--","app":"no app in context","method":"","url":"--","message":"Deprecated event type for \\OC\\Repair::step: Symfony\\Component\\EventDispatcher\\GenericEvent is used","userAgent":"--","version":"20.0.12.1"}
{"reqId":"zx7XSwrbWhMZ7eOKWjTn","level":1,"time":"2021-09-15T16:38:11+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"\\OC\\Repair::step: Repair step: Repair DAV shares","userAgent":"--","version":"20.0.12.1"}
{"reqId":"zx7XSwrbWhMZ7eOKWjTn","level":1,"time":"2021-09-15T16:38:11+00:00","remoteAddr":"","user":"--","app":"no app in context","method":"","url":"--","message":"Deprecated event type for \\OC\\Repair::step: Symfony\\Component\\EventDispatcher\\GenericEvent is used","userAgent":"--","version":"20.0.12.1"}
{"reqId":"zx7XSwrbWhMZ7eOKWjTn","level":1,"time":"2021-09-15T16:38:11+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"\\OC\\Repair::step: Repair step: Add background job to set the lookup server share state for users","userAgent":"--","version":"20.0.12.1"}
{"reqId":"zx7XSwrbWhMZ7eOKWjTn","level":1,"time":"2021-09-15T16:38:11+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"\\OC\\Updater::startCheckCodeIntegrity: Starting code integrity check...","userAgent":"--","version":"20.0.12.1"}
{"reqId":"zx7XSwrbWhMZ7eOKWjTn","level":1,"time":"2021-09-15T16:38:29+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"\\OC\\Updater::finishedCheckCodeIntegrity: Finished code integrity check","userAgent":"--","version":"20.0.12.1"}
{"reqId":"zx7XSwrbWhMZ7eOKWjTn","level":1,"time":"2021-09-15T16:38:29+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"\\OC\\Updater::updateEnd: Update successful","userAgent":"--","version":"21.0.4.1"}
{"reqId":"zx7XSwrbWhMZ7eOKWjTn","level":1,"time":"2021-09-15T16:38:29+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"\\OC\\Updater::maintenanceDisabled: Turned off maintenance mode","userAgent":"--","version":"21.0.4.1"}
{"reqId":"zx7XSwrbWhMZ7eOKWjTn","level":1,"time":"2021-09-15T16:38:29+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"\\OC\\Updater::resetLogLevel: Reset log level to Warning(2)","userAgent":"--","version":"21.0.4.1"}

systemctl status notify_push

?

there was another user seeing this. I wonder how that junk got there. I think you need to fix your config.php, replacing that junk everywhere where it shows with your domain name

root@nextcloudpi:~# systemctl status notify_push
Warning: The unit file, source configuration file or drop-ins of notify_push.ser
● notify_push.service - Push daemon for Nextcloud clients
Loaded: loaded (/etc/systemd/system/notify_push.service; enabled; vendor pres
Active: active (running) since Wed 2021-09-15 18:02:32 BST; 1h 38min ago
Main PID: 1175 (notify_push)
Tasks: 5 (limit: 4915)
CGroup: /system.slice/notify_push.service
└─1175 /var/www/nextcloud/apps/notify_push/bin/armv7/notify_push --al

Sep 15 18:02:32 nextcloudpi systemd[1]: Started Push daemon for Nextcloud client
Sep 15 18:05:02 nextcloudpi notify_push[1175]: [2021-09-15 18:05:02.314176 +01:0
lines 1-11/11 (END)

Okay I changed that. thought already that this was weird.

I recogniced that ncp doesn’t renew my letsencrypt certificate. Probably it has the same root as the HPB issue. Haven’t really checked if it was renewed before the update.
At the moment it isn’t possible to renew the certificate in the WebUI.
Could that be the issue and ist there a possible way to check that?

tracking the redis junk in config here Trusted proxy and trusted domain settings are lost · Issue #1334 · nextcloud/nextcloudpi · GitHub

Screenshot_20210918-095505_Firefox

I don’t use Talk and I do not know, how I can bring the hpb on the way… why hpb is down?

Ncp is using it for talk or as well for file synchronisation?

@Stefan76

it is an optimization for user notifications. It is mostly noticeable with many users.

NC will work just fine without it

You can check with ncc notify_push:setup https://<your_domain>/push to see why it didn’t get activated automatically, it is typically because you are behind a proxy

NOTE: this is different from the talk HPB

Hey @nachoparker thanks for all the effort you put into ncp the last week.
The issues with the ssl certificate is solved. I thought that was the first reason that caused the HPB to be down.

The HPB at my instance is still down, which isnt a big problem. To help you all here are the chech that are done at the setup and the result:
ncc notify_push:setup
This setup wizard is intended for use on single server instances
where the nextcloud server, web server/reverse proxy and push daemon all run on the same machine.
If your setup is more complex or involves any kind of load balancing
you should follow the manual setup instruction on the README instead

Press enter to continue or ESC to cancel…

Push binary seems to be running already

🗴 failed to run self-test.
test output: ✓ redis is configured
🗴 using unencrypted http for push server is strongly discouraged
🗴 push server url is set to localhost, the push server will not be reachable from other machines
✓ push server is receiving redis messages
✓ push server can load mount info from database
🗴 can’t connect to push server: cURL error 28: Operation timed out after 30001 milliseconds with 0 bytes received (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for http://localhost:7867/test/reverse_cookie

See the steps in the README for manual setup instructions: GitHub - nextcloud/notify_push: Update notifications for nextcloud clients

I hope that helps.
Just to be sure that this isnt a thing. On my RPI runs also a docker instance of pihole. Could that be a reason?
Or could it be reason that i have a dual stack connection (IPv4/IPv6)

Hi,
I’m running in similar problems, maybe other ones, hard to tell for me. I thought I’d try to get HPB working and ran ncc notify_push:setup https://<your_domain>/push.
First I got a similar error and since then I get this response when opening the nextcloud:
image

I run NCP in a docker container with Caddy2 in front of it. Any easy way to roll back to the state before I ran the notify_push setup? I replaced the container to see if it makes a difference, but it doesn’t.

NextCloudPi diagnostics

NextCloudPi version  v1.39.13
NextCloudPi image    NextCloudPi_docker_09-20-21
distribution         Debian GNU/Linux 10 \n \l
automount            no
USB devices          sda sdb
datadir              /data/nextcloud/data
data in SD           no
data filesystem      btrfs
data disk usage      1.9T/3.7T
rootfs usage         4.9G/29G
swapfile             none
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               2days

Nextcloud configuration

{
    "system": {
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": {
            "0": "localhost",
            "11": "<ip>",
            "1": "172.17.0.3",
            "5": "nextcloudpi.local",
            "7": "nextcloudpi",
            "8": "nextcloudpi.lan",
            "6": "<ip>",
            "4": "<ip>",
            "20": "<ip>",
            "21": "<ip>",
            "22": "_",
            "3": "<ip>"
        },
        "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": "\/var\/www\/nextcloud\/data\/tmp",
        "mail_smtpmode": "smtp",
        "mail_smtpauthtype": "LOGIN",
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "preview_max_x": "2048",
        "preview_max_y": "2048",
        "jpeg_quality": "60",
        "overwriteprotocol": "https",
        "maintenance": false,
        "loglevel": 2,
        "mail_sendmailmode": "smtp",
        "htaccess.RewriteBase": "\/",
        "updater.release.channel": "stable",
        "theme": "",
        "mail_smtpauth": 1,
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": "465",
        "mail_smtpsecure": "ssl",
        "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
        "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
        "data-fingerprint": "38d57e0a08d93567a91927762918b7af"
    }
}

HTTPd logs

[Fri Sep 24 05:55:13.401047 2021] [authz_host:error] [pid 111:tid 281472749916560] [client 192.168.1.132:61559] AH01753: access check of 'localhost' to /img/defaults.svg failed, reason: unable to get the remote host name
[Fri Sep 24 05:55:13.401273 2021] [authz_host:error] [pid 111:tid 281472775119248] [client 192.168.1.132:61559] AH01753: access check of 'localhost' to /img/reboot.svg failed, reason: unable to get the remote host name
[Fri Sep 24 05:55:13.453483 2021] [authz_host:error] [pid 111:tid 281472775119248] [client 192.168.1.132:61559] AH01753: access check of 'localhost' to /img/search.svg failed, reason: unable to get the remote host name, referer: https://192.168.1.114:4443/css/ncp.css
[Fri Sep 24 05:55:13.453855 2021] [authz_host:error] [pid 111:tid 281472758317456] [client 192.168.1.132:61559] AH01753: access check of 'localhost' to /img/nc-button.svg failed, reason: unable to get the remote host name, referer: https://192.168.1.114:4443/css/ncp.css
[Fri Sep 24 05:55:13.454548 2021] [authz_host:error] [pid 111:tid 281472758317456] [client 192.168.1.132:61559] AH01753: access check of 'localhost' to /img/dashboard.svg failed, reason: unable to get the remote host name, referer: https://192.168.1.114:4443/css/ncp.css
[Fri Sep 24 05:55:13.481342 2021] [authz_host:error] [pid 111:tid 281472758317456] [client 192.168.1.132:61559] AH01753: access check of 'localhost' to /img/defaults-white.svg failed, reason: unable to get the remote host name, referer: https://192.168.1.114:4443/css/ncp.css
[Fri Sep 24 05:55:13.481610 2021] [authz_host:error] [pid 111:tid 281472758317456] [client 192.168.1.132:61559] AH01753: access check of 'localhost' to /img/settings-white.svg failed, reason: unable to get the remote host name, referer: https://192.168.1.114:4443/css/ncp.css
[Fri Sep 24 05:55:13.482604 2021] [authz_host:error] [pid 111:tid 281472758317456] [client 192.168.1.132:61559] AH01753: access check of 'localhost' to /img/wizard.svg failed, reason: unable to get the remote host name, referer: https://192.168.1.114:4443/css/ncp.css
[Fri Sep 24 05:55:13.482678 2021] [authz_host:error] [pid 111:tid 281472766718352] [client 192.168.1.132:61559] AH01753: access check of 'localhost' to /img/files.svg failed, reason: unable to get the remote host name, referer: https://192.168.1.114:4443/css/ncp.css
[Fri Sep 24 05:55:13.482799 2021] [authz_host:error] [pid 111:tid 281472775119248] [client 192.168.1.132:61559] AH01753: access check of 'localhost' to /img/info-white.svg failed, reason: unable to get the remote host name, referer: https://192.168.1.114:4443/css/ncp.css
[Fri Sep 24 05:55:13.621123 2021] [authz_host:error] [pid 111:tid 281472775119248] [client 192.168.1.132:61559] AH01753: access check of 'localhost' to /ncp-output.php failed, reason: unable to get the remote host name
[Fri Sep 24 05:55:13.621808 2021] [authz_host:error] [pid 111:tid 281472766718352] [client 192.168.1.132:61559] AH01753: access check of 'localhost' to /ncp-launcher.php failed, reason: unable to get the remote host name
[Fri Sep 24 05:55:13.839752 2021] [authz_host:error] [pid 111:tid 281472758317456] [client 192.168.1.132:61559] AH01753: access check of 'localhost' to /img/favicon.png failed, reason: unable to get the remote host name
[Fri Sep 24 05:55:22.232942 2021] [authz_host:error] [pid 111:tid 281472766718352] [client 192.168.1.132:61559] AH01753: access check of 'localhost' to /ncp-launcher.php failed, reason: unable to get the remote host name
[Fri Sep 24 05:55:22.290911 2021] [authz_host:error] [pid 111:tid 281472766718352] [client 192.168.1.132:61559] AH01753: access check of 'localhost' to /ncp-launcher.php failed, reason: unable to get the remote host name
[Fri Sep 24 05:55:22.290990 2021] [authz_host:error] [pid 111:tid 281472749916560] [client 192.168.1.132:61559] AH01753: access check of 'localhost' to /img/delete.svg failed, reason: unable to get the remote host name
[Fri Sep 24 05:55:22.291649 2021] [authz_host:error] [pid 111:tid 281472758317456] [client 192.168.1.132:61559] AH01753: access check of 'localhost' to /img/download.svg failed, reason: unable to get the remote host name
[Fri Sep 24 05:55:26.132701 2021] [authz_host:error] [pid 111:tid 281472766718352] [client 192.168.1.132:61559] AH01753: access check of 'localhost' to /img/info.svg failed, reason: unable to get the remote host name, referer: https://192.168.1.114:4443/css/ncp.css
[Fri Sep 24 06:08:44.838315 2021] [authz_host:error] [pid 111:tid 281472766718352] [client 192.168.1.132:61559] AH01753: access check of 'localhost' to /ncp-launcher.php failed, reason: unable to get the remote host name
[Fri Sep 24 06:09:04.277440 2021] [authz_host:error] [pid 111:tid 281472766718352] [client 192.168.1.132:61559] AH01753: access check of 'localhost' to /img/red-circle.svg failed, reason: unable to get the remote host name, referer: https://192.168.1.114:4443/css/ncp.css

Database logs

2021-09-24  5:43:58 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2021-09-24  5:43:58 0 [Note] InnoDB: Number of pools: 1
2021-09-24  5:43:58 0 [Note] InnoDB: Using generic crc32 instructions
2021-09-24  5:43:58 0 [Note] InnoDB: Initializing buffer pool, total size = 896M, instances = 1, chunk size = 128M
2021-09-24  5:43:59 0 [Note] InnoDB: Completed initialization of buffer pool
2021-09-24  5:43:59 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  5:43:59 0 [Note] InnoDB: 128 out of 128 rollback segments are active.
2021-09-24  5:43:59 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2021-09-24  5:43:59 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2021-09-24  5:43:59 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB.
2021-09-24  5:43:59 0 [Note] InnoDB: 10.3.22 started; log sequence number 32567244953; transaction id 45290032
2021-09-24  5:43:59 0 [Note] InnoDB: Loading buffer pool(s) from /data/database/ib_buffer_pool
2021-09-24  5:43:59 0 [Note] Plugin 'FEEDBACK' is disabled.
2021-09-24  5:43:59 0 [Note] Server socket created on IP: '127.0.0.1'.
2021-09-24  5:43:59 0 [Note] Reading of all Master_info entries succeeded
2021-09-24  5:43:59 0 [Note] Added new Master_info '' to hash table
2021-09-24  5:43:59 0 [Note] mysqld: ready for connections.
Version: '10.3.22-MariaDB-0+deb10u1'  socket: '/run/mysqld/mysqld.sock'  port: 3306  Debian 10
2021-09-24  5:43:59 0 [Note] InnoDB: Buffer pool(s) load completed at 210924  5:43:59
2021-09-24  5:44:00 8 [Warning] Access denied for user 'ncadmin'@'localhost' (using password: YES)

Nextcloud Logs

I temporarily changed the port forwarding on my router to allow letsencrypt via NCP instead of Caddy and now I can access the nextcloud, but lost Caddy of cause.
I’m glad for any help to be able to use both Caddy and NC without HPB for the moment :slight_smile:

there were some fixes to NCP behind a reverse proxy, hopefully it’s all good now

Thank you @nachoparker!
While running the update I got this error: Error after ncp-update v1.39.19

Might be unrelated though.

My Guide gives you a One liner all the HPB stack in full in just one docker

https://malaty.net/nextcloud-hpb-all-in-one-docker

It couldn’t get easier

1 Like