503 Service Unavailable (PHP Service Down)

Hi All,

After a recent upgrade of NCP to v1.10.6, I’m getting 503 errors when trying to connect. From the report, it seems as though my PHP Service is down… any help in getting me back up and running would be much appreciated!!!

Nextcloud Logs were too large to upload. Full ncp-report is available @ https://send.firefox.com/download/e5cf0ad12d/#zRNM0LztQl5HOLkWINqR4w

NextCloudPi diagnostics

NextCloudPi version  v1.10.6
NextCloudPi image    NextCloudPi_11-04-18
distribution         Raspbian GNU/Linux 9 \n \l
automount            no
USB devices          none
datadir              /var/www/nextcloud/data
data in SD           yes
data filesystem      ext2/ext3
data disk usage      3.4G/30G
rootfs usage         3.4G/30G
swapfile             /var/swap
dbdir                /var/lib/mysql
Nextcloud check      ok
Nextcloud version    15.0.5.3
HTTPD service        up
PHP service          down
MariaDB service      up
Redis service        up
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         yes
uptime               26min

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.7.107",
            "3": "***REMOVED SENSITIVE VALUE***",
            "2": "***REMOVED SENSITIVE VALUE***",
            "4": "***REMOVED SENSITIVE VALUE***",
            "11": "141.156.182.150"
        },
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "mysql",
        "version": "15.0.5.3",
        "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***"
        },
        "mail_smtpmode": "smtp",
        "mail_smtpauthtype": "LOGIN",
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "overwriteprotocol": "https",
        "loglevel": "2",
        "log_type": "file",
        "maintenance": false,
        "mail_smtpsecure": "ssl",
        "mail_smtpauth": 1,
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": "465",
        "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
        "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
        "twofactor_enforced": "false",
        "twofactor_enforced_groups": [
            "admin"
        ],
        "twofactor_enforced_excluded_groups": [],
        "ldapIgnoreNamingRules": false,
        "ldapProviderFactory": "OCA\\User_LDAP\\LDAPProviderFactory",
        "theme": "",
        "jpeg_quality": "60"
    }
}

HTTPd logs

[Tue Mar 26 12:43:47.003462 2019] [mpm_event:notice] [pid 882:tid 1995505904] AH00489: Apache/2.4.25 (Raspbian) OpenSSL/1.0.2r configured -- resuming normal operations
[Tue Mar 26 12:43:47.003621 2019] [core:notice] [pid 882:tid 1995505904] AH00094: Command line: '/usr/sbin/apache2'
[Tue Mar 26 13:00:18.921214 2019] [mpm_event:notice] [pid 882:tid 1995505904] AH00491: caught SIGTERM, shutting down
[Tue Mar 26 13:00:38.006404 2019] [ssl:warn] [pid 561:tid 1996427504] AH01909: localhost:4443:0 server certificate does NOT include an ID which matches the server name
[Tue Mar 26 13:00:39.055065 2019] [ssl:warn] [pid 925:tid 1996427504] AH01909: localhost:4443:0 server certificate does NOT include an ID which matches the server name
[Tue Mar 26 13:00:40.005823 2019] [mpm_event:notice] [pid 925:tid 1996427504] AH00489: Apache/2.4.25 (Raspbian) OpenSSL/1.0.2r configured -- resuming normal operations
[Tue Mar 26 13:00:40.006125 2019] [core:notice] [pid 925:tid 1996427504] AH00094: Command line: '/usr/sbin/apache2'
[Tue Mar 26 13:31:03.206458 2019] [mpm_event:notice] [pid 925:tid 1996427504] AH00491: caught SIGTERM, shutting down
[Tue Mar 26 13:31:17.441995 2019] [ssl:warn] [pid 578:tid 1996042480] AH01909: localhost:4443:0 server certificate does NOT include an ID which matches the server name
[Tue Mar 26 13:31:18.044827 2019] [ssl:warn] [pid 887:tid 1996042480] AH01909: localhost:4443:0 server certificate does NOT include an ID which matches the server name
[Tue Mar 26 13:31:19.003364 2019] [mpm_event:notice] [pid 887:tid 1996042480] AH00489: Apache/2.4.25 (Raspbian) OpenSSL/1.0.2r configured -- resuming normal operations
[Tue Mar 26 13:31:19.003545 2019] [core:notice] [pid 887:tid 1996042480] AH00094: Command line: '/usr/sbin/apache2'
[Tue Mar 26 13:39:07.151346 2019] [mpm_event:notice] [pid 887:tid 1996042480] AH00493: SIGUSR1 received.  Doing graceful restart
[Tue Mar 26 13:39:07.203221 2019] [ssl:warn] [pid 887:tid 1996042480] AH01909: localhost:4443:0 server certificate does NOT include an ID which matches the server name
[Tue Mar 26 13:39:08.001009 2019] [mpm_event:notice] [pid 887:tid 1996042480] AH00489: Apache/2.4.25 (Raspbian) OpenSSL/1.0.2r configured -- resuming normal operations
[Tue Mar 26 13:39:08.001080 2019] [core:notice] [pid 887:tid 1996042480] AH00094: Command line: '/usr/sbin/apache2'
[Tue Mar 26 13:40:01.716244 2019] [mpm_event:notice] [pid 887:tid 1996042480] AH00493: SIGUSR1 received.  Doing graceful restart
[Tue Mar 26 13:40:01.765882 2019] [ssl:warn] [pid 887:tid 1996042480] AH01909: localhost:4443:0 server certificate does NOT include an ID which matches the server name
[Tue Mar 26 13:40:02.000431 2019] [mpm_event:notice] [pid 887:tid 1996042480] AH00489: Apache/2.4.25 (Raspbian) OpenSSL/1.0.2r configured -- resuming normal operations
[Tue Mar 26 13:40:02.000510 2019] [core:notice] [pid 887:tid 1996042480] AH00094: Command line: '/usr/sbin/apache2'

Database logs

2019-03-26 13:31:05 1970533184 [Note] /usr/sbin/mysqld: Shutdown complete

2019-03-26 13:31:18 1996218160 [Note] InnoDB: Using mutexes to ref count buffer pool pages
2019-03-26 13:31:18 1996218160 [Note] InnoDB: The InnoDB memory heap is disabled
2019-03-26 13:31:18 1996218160 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2019-03-26 13:31:18 1996218160 [Note] InnoDB: GCC builtin __atomic_thread_fence() is used for memory barrier
2019-03-26 13:31:18 1996218160 [Note] InnoDB: Compressed tables use zlib 1.2.8
2019-03-26 13:31:18 1996218160 [Note] InnoDB: Using Linux native AIO
2019-03-26 13:31:18 1996218160 [Note] InnoDB: Using generic crc32 instructions
2019-03-26 13:31:18 1996218160 [Note] InnoDB: Initializing buffer pool, size = 370.0M
2019-03-26 13:31:18 1996218160 [Note] InnoDB: Completed initialization of buffer pool
2019-03-26 13:31:18 1996218160 [Note] InnoDB: Highest supported file format is Barracuda.
2019-03-26 13:31:19 1996218160 [Note] InnoDB: 128 rollback segment(s) are active.
2019-03-26 13:31:19 1996218160 [Note] InnoDB: Waiting for purge to start
2019-03-26 13:31:19 1996218160 [Note] InnoDB:  Percona XtraDB (http://www.percona.com) 5.6.41-84.1 started; log sequence number 2790472545
2019-03-26 13:31:19 1111487296 [Note] InnoDB: Dumping buffer pool(s) not yet started
2019-03-26 13:31:19 1996218160 [Note] Plugin 'FEEDBACK' is disabled.
2019-03-26 13:31:19 1996218160 [Note] Server socket created on IP: '127.0.0.1'.
2019-03-26 13:31:19 1996218160 [Note] /usr/sbin/mysqld: ready for connections.
Version: '10.1.37-MariaDB-0+deb9u1'  socket: '/var/run/mysqld/mysqld.sock'  port: 3306  Raspbian 9.0

Was my router. I updated firmware and there were some DNS settings that were fudging it up.

FIXED.