503 error after moving to v1.50.1

I’m in a similar situation to powerflo support request (1.5.0 / 24.0.5.1, auto-updated, fully working instance, then I applied the 1.5.0.1 docker which brought the 503 error and I got the MySQL error if trying to revert to 1.4.9).

I tried to restore my backup, which worked last time (after 1.5.0) but this time it didn’t: the ncp interface showed up but MySQL wasn’t running and I couldn’t bring it to work via the docker’s console.

After applying your new test image ncp started, albeit with a “HPB service down” error, but Nextcloud asked for an upgrade (it was on 24.0.3.2 after I tried to restore the backup today). I’ve updated internally to 2.5.0.1, HPB now runs.
Nextcloud doesn’t recognize any user at login, though.
This login issue happened after my first 1.5.0 manual update too, which I had solved restoring the backup.

I may try another backup restore, maybe doing so after upgrading to this test image could work?

Edit: I tried the 3142733511 image, same

I was finally able to recover a working installation using the same old backup. This was harsh.
Currently on a test ncp image and nc 24.0.3.2, everything works again.

2 Likes

I have the same Problem using v1.50.3
503 Service Unavailable

Service Unavailable

The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.

Same here, “503 Service Unavailable”, and in the System Info: “Nextcloud check: Error” and HPB not running.

NCP 1.50.3 on RPi4 4GB

<–! Paste this in GitHub report →

NextCloudPi diagnostics

/usr/local/bin/ncc: line 3:  7125 Segmentation fault      ${SUDO} php /var/www/nextcloud/occ "$@"
NextCloudPi version  v1.50.3
NextCloudPi image    NextCloudPi_11-24-20
OS                   Debian GNU/Linux 11. 5.15.61-v8+ (aarch64)
automount            yes
USB devices          sda 
datadir              /media/MX500/ncdata
data in SD           no
data filesystem      ext2/ext3
data disk usage      76G/427G
rootfs usage         9.2G/31G
swapfile             /var/swap
dbdir                /media/MX500/ncdatabase
Nextcloud check      error
HTTPD service        up
PHP service          up
MariaDB service      up
Redis service        up
HPB service          down
Postfix service      up
Internet check       ok
public IP            ***REMOVED SENSITIVE VALUE***
public IP            ***REMOVED SENSITIVE VALUE***
Port check 80        open (ipv4 & ipv6)
Port check 443       open (ipv4 & ipv6)
IP                   ***REMOVED SENSITIVE VALUE***
gateway              ***REMOVED SENSITIVE VALUE***
Interface            eth0
certificates         ***REMOVED SENSITIVE VALUE***
NAT loopback         no
Uptime               10min

Nextcloud configuration

/usr/local/bin/ncp-report: line 48:  7507 Segmentation fault      sudo -u www-data php /var/www/nextcloud/occ config:list system

HTTPd logs

[Sat Oct 08 21:41:50.353898 2022] [authz_host:error] [pid 832:tid 548172841344] [client 192.168.1.24:58268] AH01753: access check of 'localhost' to /wizard/index.php failed, reason: unable to get the remote host name
[Sat Oct 08 21:41:50.378341 2022] [authz_host:error] [pid 832:tid 548172841344] [client 192.168.1.24:58268] AH01753: access check of 'localhost' to /wizard/index.php failed, reason: unable to get the remote host name
[Sat Oct 08 21:41:50.530521 2022] [authz_host:error] [pid 832:tid 548206436736] [client 192.168.1.24:58268] AH01753: access check of 'localhost' to /wizard/JS/jquery.bootstrap.wizard.js failed, reason: unable to get the remote host name, referer: https://192.168.1.9:4443/wizard/
[Sat Oct 08 21:41:50.530537 2022] [authz_host:error] [pid 832:tid 548181242240] [client 192.168.1.24:58268] AH01753: access check of 'localhost' to /wizard/JS/wizard.js failed, reason: unable to get the remote host name, referer: https://192.168.1.9:4443/wizard/
[Sat Oct 08 21:41:50.530613 2022] [authz_host:error] [pid 832:tid 548240007552] [client 192.168.1.24:58268] AH01753: access check of 'localhost' to /wizard/bootstrap/js/bootstrap.min.js failed, reason: unable to get the remote host name, referer: https://192.168.1.9:4443/wizard/
[Sat Oct 08 21:41:50.530955 2022] [authz_host:error] [pid 832:tid 548248400256] [client 192.168.1.24:58268] AH01753: access check of 'localhost' to /wizard/JS/jquery-latest.js failed, reason: unable to get the remote host name, referer: https://192.168.1.9:4443/wizard/
[Sat Oct 08 21:41:50.530981 2022] [authz_host:error] [pid 832:tid 548231614848] [client 192.168.1.24:58268] AH01753: access check of 'localhost' to /wizard/CSS/wizard.css failed, reason: unable to get the remote host name, referer: https://192.168.1.9:4443/wizard/
[Sat Oct 08 21:41:50.531054 2022] [authz_host:error] [pid 832:tid 548172841344] [client 192.168.1.24:58268] AH01753: access check of 'localhost' to /wizard/bootstrap/css/bootstrap.min.css failed, reason: unable to get the remote host name, referer: https://192.168.1.9:4443/wizard/
[Sat Oct 08 21:41:50.568488 2022] [authz_host:error] [pid 832:tid 548172841344] [client 192.168.1.24:58268] AH01753: access check of 'localhost' to /img/menu.svg failed, reason: unable to get the remote host name, referer: https://192.168.1.9:4443/wizard/CSS/wizard.css
[Sat Oct 08 21:41:50.748059 2022] [authz_host:error] [pid 832:tid 548248400256] [client 192.168.1.24:58268] AH01753: access check of 'localhost' to /ncp-output.php failed, reason: unable to get the remote host name, referer: https://192.168.1.9:4443/wizard/
[Sat Oct 08 21:42:00.540324 2022] [authz_host:error] [pid 832:tid 548223222144] [client 192.168.1.24:58268] AH01753: access check of 'localhost' to /wizard/img/nc-logo.png failed, reason: unable to get the remote host name, referer: https://192.168.1.9:4443/wizard/
[Sat Oct 08 21:42:00.540334 2022] [authz_host:error] [pid 832:tid 548198044032] [client 192.168.1.24:58268] AH01753: access check of 'localhost' to /wizard/img/ncp-logo.svg failed, reason: unable to get the remote host name, referer: https://192.168.1.9:4443/wizard/
[Sat Oct 08 21:42:03.690010 2022] [authz_host:error] [pid 832:tid 548223222144] [client 192.168.1.24:58268] AH01753: access check of 'localhost' to / failed, reason: unable to get the remote host name, referer: https://192.168.1.9:4443/wizard/
[Sat Oct 08 21:42:03.714936 2022] [authz_host:error] [pid 832:tid 548223222144] [client 192.168.1.24:58268] AH01753: access check of 'localhost' to / failed, reason: unable to get the remote host name, referer: https://192.168.1.9:4443/wizard/
[Sat Oct 08 21:42:03.715314 2022] [authz_host:error] [pid 832:tid 548223222144] [client 192.168.1.24:58268] AH01753: access check of 'localhost' to /index.php failed, reason: unable to get the remote host name, referer: https://192.168.1.9:4443/wizard/
[Sat Oct 08 21:42:03.740333 2022] [authz_host:error] [pid 832:tid 548223222144] [client 192.168.1.24:58268] AH01753: access check of 'localhost' to /index.php failed, reason: unable to get the remote host name, referer: https://192.168.1.9:4443/wizard/
[Sat Oct 08 21:42:05.434911 2022] [authz_host:error] [pid 832:tid 548223222144] [client 192.168.1.24:58268] AH01753: access check of 'localhost' to /ncp-launcher.php failed, reason: unable to get the remote host name
[Sat Oct 08 21:42:05.434914 2022] [authz_host:error] [pid 832:tid 548248400256] [client 192.168.1.24:58268] AH01753: access check of 'localhost' to /ncp-output.php failed, reason: unable to get the remote host name
[Sat Oct 08 21:42:15.034375 2022] [authz_host:error] [pid 832:tid 548223222144] [client 192.168.1.24:58268] AH01753: access check of 'localhost' to /ncp-launcher.php failed, reason: unable to get the remote host name
[Sat Oct 08 21:42:15.066595 2022] [authz_host:error] [pid 832:tid 548223222144] [client 192.168.1.24:58268] AH01753: access check of 'localhost' to /ncp-launcher.php failed, reason: unable to get the remote host name

Database logs

2022-03-07 17:54:25 0 [Note] /usr/sbin/mysqld (initiated by: unknown): Normal shutdown
2022-03-07 17:54:25 0 [Note] Event Scheduler: Purging the queue. 0 events
2022-03-07 17:54:25 0 [Note] InnoDB: FTS optimize thread exiting.
2022-03-07 17:54:25 0 [Note] InnoDB: Starting shutdown...
2022-03-07 17:54:25 0 [Note] InnoDB: Dumping buffer pool(s) to /media/MX500/ncdatabase/ib_buffer_pool
2022-03-07 17:54:25 0 [Note] InnoDB: Buffer pool(s) dump completed at 220307 17:54:25
2022-03-07 17:54:27 0 [Note] InnoDB: Removed temporary tablespace data file: "ibtmp1"
2022-03-07 17:54:27 0 [Note] InnoDB: Shutdown completed; log sequence number 15944314726; transaction id 37053836
2022-03-07 17:54:27 0 [Note] /usr/sbin/mysqld: Shutdown complete


Nextcloud logs

{"reqId":"Y0BeeWpcKc6XdGgappc1CwAAAAw","level":2,"time":"2022-10-07T17:14:33+00:00","remoteAddr":"192.241.218.238","user":"--","app":"core","method":"GET","url":"/autodiscover/autodiscover.json?@zdi/Powershell","message":"Trusted domain error. \"192.241.218.238\" tried to access using \"92.132.29.30\" as host.","userAgent":"Mozilla/5.0 zgrab/0.x","version":"24.0.5.1","data":{"app":"core"}}
{"reqId":"Y0Bgt7NdK3VcsTOZmSY4_AAAAEU","level":2,"time":"2022-10-07T17:24:07+00:00","remoteAddr":"178.79.131.23","user":"--","app":"core","method":"GET","url":"/","message":"Trusted domain error. \"178.79.131.23\" tried to access using \"92.132.29.30\" as host.","userAgent":"Mozilla/5.0 (Windows NT 6.1; WOW64; rv:8.0) Gecko/20100101 Firefox/8.0","version":"24.0.5.1","data":{"app":"core"}}
{"reqId":"Y0BmBGpcKc6XdGgappc1WgAAAA0","level":2,"time":"2022-10-07T17:46:44+00:00","remoteAddr":"192.241.220.134","user":"--","app":"core","method":"GET","url":"/autodiscover/autodiscover.json?@zdi/Powershell","message":"Trusted domain error. \"192.241.220.134\" tried to access using \"92.132.29.30\" as host.","userAgent":"Mozilla/5.0 zgrab/0.x","version":"24.0.5.1","data":{"app":"core"}}
{"reqId":"Y0BqmrNdK3VcsTOZmSY5VQAAAEg","level":2,"time":"2022-10-07T18:06:18+00:00","remoteAddr":"45.33.96.205","user":"--","app":"core","method":"GET","url":"/","message":"Trusted domain error. \"45.33.96.205\" tried to access using \"92.132.29.30\" as host.","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.113 Safari/537.36","version":"24.0.5.1","data":{"app":"core"}}
{"reqId":"Y0BrbLNdK3VcsTOZmSY5XQAAAEg","level":2,"time":"2022-10-07T18:09:48+00:00","remoteAddr":"51.254.59.114","user":"--","app":"core","method":"GET","url":"/","message":"Trusted domain error. \"51.254.59.114\" tried to access using \"92.132.29.30\" as host.","userAgent":"Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2228.0 Safari/537.36","version":"24.0.5.1","data":{"app":"core"}}
{"reqId":"Y0BtTrNdK3VcsTOZmSY5bwAAAEA","level":2,"time":"2022-10-07T18:17:50+00:00","remoteAddr":"157.245.80.71","user":"--","app":"core","method":"GET","url":"/logo.png","message":"Trusted domain error. \"157.245.80.71\" tried to access using \"92.132.29.30\" as host.","userAgent":"Mozilla/5.0 (Windows NT 10.0; rv:91.0) Gecko/20100101 Firefox/91.0","version":"24.0.5.1","data":{"app":"core"}}
{"reqId":"Y0CCZGpcKc6XdGgappc2HgAAAAc","level":2,"time":"2022-10-07T19:47:48+00:00","remoteAddr":"128.14.209.170","user":"--","app":"core","method":"GET","url":"/","message":"Trusted domain error. \"128.14.209.170\" tried to access using \"92.132.29.30\" as host.","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.113 Safari/537.36","version":"24.0.5.1","data":{"app":"core"}}
{"reqId":"Y0CGzrNdK3VcsTOZmSY6JQAAAEM","level":2,"time":"2022-10-07T20:06:38+00:00","remoteAddr":"174.138.25.187","user":"--","app":"core","method":"GET","url":"/","message":"Trusted domain error. \"174.138.25.187\" tried to access using \"92.132.29.30\" as host.","userAgent":"Mozilla/5.0 zgrab/0.x","version":"24.0.5.1","data":{"app":"core"}}
{"reqId":"Y0CRIGpcKc6XdGgappc2lgAAAAc","level":2,"time":"2022-10-07T20:50:40+00:00","remoteAddr":"20.58.43.98","user":"--","app":"core","method":"GET","url":"/webclient/","message":"Trusted domain error. \"20.58.43.98\" tried to access using \"92.132.29.30:443\" as host.","userAgent":"Python-urllib/3.10","version":"24.0.5.1","data":{"app":"core"}}
{"reqId":"Y0Cd07NdK3VcsTOZmSY6rQAAAEY","level":2,"time":"2022-10-07T21:44:51+00:00","remoteAddr":"35.195.93.98","user":"--","app":"core","method":"GET","url":"/","message":"Trusted domain error. \"35.195.93.98\" tried to access using \"92.132.29.30\" as host.","userAgent":"python-requests/2.28.1","version":"24.0.5.1","data":{"app":"core"}}
{"reqId":"Y0CiK6IEKhr-vr_F7gBc9AAAAEE","level":2,"time":"2022-10-07T22:03:23+00:00","remoteAddr":"185.7.214.218","user":"--","app":"core","method":"GET","url":"/remote/fgt_lang?lang=/../../../..//////////dev/cmdb/sslvpn_websession","message":"Trusted domain error. \"185.7.214.218\" tried to access using \"92.132.29.30:443\" as host.","userAgent":"Python-urllib/3.8","version":"24.0.5.1","data":{"app":"core"}}
{"reqId":"Y0CzXK0lA-NtZeyRStlliAAAAAA","level":2,"time":"2022-10-07T23:16:44+00:00","remoteAddr":"138.197.156.146","user":"--","app":"core","method":"GET","url":"/ab2g","message":"Trusted domain error. \"138.197.156.146\" tried to access using \"92.132.29.30\" as host.","userAgent":"Mozilla/5.0 zgrab/0.x","version":"24.0.5.1","data":{"app":"core"}}
{"reqId":"Y0CzXK0lA-NtZeyRStlliQAAAAM","level":2,"time":"2022-10-07T23:16:45+00:00","remoteAddr":"138.197.156.146","user":"--","app":"core","method":"GET","url":"/ab2h","message":"Trusted domain error. \"138.197.156.146\" tried to access using \"92.132.29.30\" as host.","userAgent":"Mozilla/5.0 zgrab/0.x","version":"24.0.5.1","data":{"app":"core"}}
{"reqId":"Y0C6eqIEKhr-vr_F7gBdGQAAAEQ","level":2,"time":"2022-10-07T23:47:06+00:00","remoteAddr":"101.35.120.107","user":"--","app":"core","method":"POST","url":"/api/Ticket/query?m=18900547892&refer__2377=eu0%3DiKY5DK0ITxBkP56KGI94Wq7KQDCFtleD","message":"Trusted domain error. \"101.35.120.107\" tried to access using \"ticket.gzhotelgroup.com\" as host.","userAgent":"Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.92 Safari/537.36","version":"24.0.5.1","data":{"app":"core"}}
{"reqId":"Y0DJ0aIEKhr-vr_F7gBdKwAAAEo","level":2,"time":"2022-10-08T00:52:33+00:00","remoteAddr":"152.89.196.211","user":"--","app":"core","method":"GET","url":"/?XDEBUG_SESSION_START=phpstorm","message":"Trusted domain error. \"152.89.196.211\" tried to access using \"92.132.29.30\" as host.","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.108 Safari/537.36","version":"24.0.5.1","data":{"app":"core"}}
{"reqId":"Y0DKFqIEKhr-vr_F7gBdLAAAAE0","level":2,"time":"2022-10-08T00:53:42+00:00","remoteAddr":"23.251.102.74","user":"--","app":"core","method":"GET","url":"/Telerik.Web.UI.WebResource.axd?type=rau","message":"Trusted domain error. \"23.251.102.74\" tried to access using \"92.132.29.30\" as host.","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.113 Safari/537.36","version":"24.0.5.1","data":{"app":"core"}}
{"reqId":"Y0DTDK0lA-NtZeyRStlluwAAAAA","level":2,"time":"2022-10-08T01:31:56+00:00","remoteAddr":"162.142.125.7","user":"--","app":"core","method":"GET","url":"/","message":"Trusted domain error. \"162.142.125.7\" tried to access using \"92.132.29.30\" as host.","userAgent":"Mozilla/5.0 (compatible; CensysInspect/1.1; +https://about.censys.io/)","version":"24.0.5.1","data":{"app":"core"}}
{"reqId":"Y0DWIK0lA-NtZeyRStllxQAAABY","level":2,"time":"2022-10-08T01:45:04+00:00","remoteAddr":"167.94.138.61","user":"--","app":"core","method":"GET","url":"/","message":"Trusted domain error. \"167.94.138.61\" tried to access using \"92.132.29.30:443\" as host.","userAgent":"--","version":"24.0.5.1","data":{"app":"core"}}
{"reqId":"Y0DWIaIEKhr-vr_F7gBdOwAAAFI","level":2,"time":"2022-10-08T01:45:05+00:00","remoteAddr":"167.94.138.61","user":"--","app":"core","method":"GET","url":"/","message":"Trusted domain error. \"167.94.138.61\" tried to access using \"92.132.29.30\" as host.","userAgent":"Mozilla/5.0 (compatible; CensysInspect/1.1; +https://about.censys.io/)","version":"24.0.5.1","data":{"app":"core"}}
{"reqId":"Y0DZH6IEKhr-vr_F7gBdPwAAAEU","level":2,"time":"2022-10-08T01:57:51+00:00","remoteAddr":"198.199.94.236","user":"--","app":"core","method":"GET","url":"/owa/auth/logon.aspx?url=https%3a%2f%2f1%2fecp%2f","message":"Trusted domain error. \"198.199.94.236\" tried to access using \"92.132.29.30\" as host.","userAgent":"Mozilla/5.0 zgrab/0.x","version":"24.0.5.1","data":{"app":"core"}}

Did you update with the webUI or via ncp-config?

Check if you have a NextcloudPi backup, if you do you can restore it and get a working setup back in a few minutes, for me it worked twice; just be sure to secure your Nextcloud shared data beforehand, because it could be replaced with an empty directory if you just restore the ncp backup.

You can follow the steps I wrote in this answer.

Again, please make sure to copy/move your Nextcloud data somewhere safe BEFORE restoring your ncp backup.

via ncp-config, always

From that thread, I copied these two commands:

sudo bash -c 'source /usr/local/etc/library.sh && clear_opcache' 
sudo service php8.1-fpm restart

Reboot, and now it looks I’m back to normal :slight_smile:

1 Like