Hello, after months of my pi not working for various issues, i finally re-flashed my SD card and got ncp running again. However, a few hours later when i tried to login, i got this:
Internal Server Error
The server encountered an internal error and was unable to complete your request.
Please contact the server administrator if this error reappears multiple times, please include the technical details below in your report.
More details can be found in the server log.
I ran nc-report and got this:
<β! Paste this in GitHub report -->
NextCloudPi diagnostics
NextCloudPi version v0.66.4
NextCloudPi image NextCloudPi_11-22-18
distribution Raspbian GNU/Linux 9 \n \l
automount no
USB devices sda
datadir /media/USBdrive/ncdata (doesn't exist)
rootfs usage 2.0G/15G
swapfile /var/swap
dbdir /var/lib/mysql
Nextcloud check error
HTTPD service up
PHP service up
MariaDB service up
Redis service down
Postfix service up
internet check no
port check 80 closed
port check 443 closed
IP ***REMOVED SENSITIVE VALUE***
gateway ***REMOVED SENSITIVE VALUE***
interface eth0
certificates ***REMOVED SENSITIVE VALUE***
NAT loopback no
uptime 14:23
Nextcloud configuration
An unhandled exception has been thrown:
RedisException: Redis server went away in /var/www/nextcloud/lib/private/Memcache/Redis.php:54
Stack trace:
#0 /var/www/nextcloud/lib/private/Memcache/Redis.php(54): Redis->get('0dcb6b29ac64ac2...')
#1 /var/www/nextcloud/lib/private/App/InfoParser.php(57): OC\Memcache\Redis->get('/var/www/nextcl...')
#2 /var/www/nextcloud/lib/private/App/AppManager.php(380): OC\App\InfoParser->parse('/var/www/nextcl...')
#3 /var/www/nextcloud/lib/private/legacy/app.php(551): OC\App\AppManager->getAppInfo('files', false, NULL)
#4 /var/www/nextcloud/lib/private/AppFramework/App.php(65): OC_App::getAppInfo('files')
#5 /var/www/nextcloud/lib/private/legacy/app.php(236): OC\AppFramework\App::buildAppNamespace('files')
#6 /var/www/nextcloud/lib/private/legacy/app.php(119): OC_App::registerAutoloading('files', '/var/www/nextcl...')
#7 /var/www/nextcloud/lib/base.php(654): OC_App::loadApps(Array)
#8 /var/www/nextcloud/lib/base.php(1068): OC::init()
#9 /var/www/nextcloud/console.php(46): require_once('/var/www/nextcl...')
#10 /var/www/nextcloud/occ(11): require_once('/var/www/nextcl...')
#11 {main}
HTTPd logs
[Tue Apr 09 11:20:32.316587 2019] [authz_host:error] [pid 801:tid 1942570032] [client 192.168.178.61:61842] AH01753: access check of 'localhost' to /ncp-launcher.php failed, reason: unable to get the remote host name
[Tue Apr 09 11:20:32.321860 2019] [proxy_fcgi:error] [pid 801:tid 1942570032] [client 192.168.178.61:61842] AH01071: Got error 'PHP message: PHP Warning: fopen(ncp-web.cfg): failed to open stream: No such file or directory in /var/www/ncp-web/L10N.php on line 145\n'
[Tue Apr 09 11:21:04.630614 2019] [authz_host:error] [pid 801:tid 1942570032] [client 192.168.178.61:61842] AH01753: access check of 'localhost' to /ncp-launcher.php failed, reason: unable to get the remote host name
[Tue Apr 09 11:21:04.736082 2019] [proxy_fcgi:error] [pid 801:tid 1942570032] [client 192.168.178.61:61842] AH01071: Got error 'PHP message: PHP Warning: fopen(ncp-web.cfg): failed to open stream: No such file or directory in /var/www/ncp-web/L10N.php on line 145\n'
[Tue Apr 09 11:21:25.886781 2019] [authz_host:error] [pid 801:tid 1942570032] [client 192.168.178.61:61842] AH01753: access check of 'localhost' to /ncp-launcher.php failed, reason: unable to get the remote host name
[Tue Apr 09 11:21:25.892142 2019] [proxy_fcgi:error] [pid 801:tid 1942570032] [client 192.168.178.61:61842] AH01071: Got error 'PHP message: PHP Warning: fopen(ncp-web.cfg): failed to open stream: No such file or directory in /var/www/ncp-web/L10N.php on line 145\n'
[Tue Apr 09 11:21:42.703118 2019] [authz_host:error] [pid 801:tid 1942570032] [client 192.168.178.61:61842] AH01753: access check of 'localhost' to /ncp-launcher.php failed, reason: unable to get the remote host name
[Tue Apr 09 11:21:42.707239 2019] [proxy_fcgi:error] [pid 801:tid 1942570032] [client 192.168.178.61:61842] AH01071: Got error 'PHP message: PHP Warning: fopen(ncp-web.cfg): failed to open stream: No such file or directory in /var/www/ncp-web/L10N.php on line 145\n'
[Tue Apr 09 11:22:00.891672 2019] [authz_host:error] [pid 801:tid 1942570032] [client 192.168.178.61:61842] AH01753: access check of 'localhost' to /ncp-launcher.php failed, reason: unable to get the remote host name
[Tue Apr 09 11:22:00.899955 2019] [proxy_fcgi:error] [pid 801:tid 1942570032] [client 192.168.178.61:61842] AH01071: Got error 'PHP message: PHP Warning: fopen(ncp-web.cfg): failed to open stream: No such file or directory in /var/www/ncp-web/L10N.php on line 145\n'
[Tue Apr 09 11:22:02.494148 2019] [authz_host:error] [pid 801:tid 1942570032] [client 192.168.178.61:61842] AH01753: access check of 'localhost' to /ncp-launcher.php failed, reason: unable to get the remote host name
[Tue Apr 09 11:22:02.596432 2019] [proxy_fcgi:error] [pid 801:tid 1942570032] [client 192.168.178.61:61842] AH01071: Got error 'PHP message: PHP Warning: fopen(ncp-web.cfg): failed to open stream: No such file or directory in /var/www/ncp-web/L10N.php on line 145\n'
[Tue Apr 09 11:22:06.298214 2019] [authz_host:error] [pid 801:tid 1942570032] [client 192.168.178.61:61842] AH01753: access check of 'localhost' to /ncp-launcher.php failed, reason: unable to get the remote host name
[Tue Apr 09 11:22:06.306031 2019] [proxy_fcgi:error] [pid 801:tid 1942570032] [client 192.168.178.61:61842] AH01071: Got error 'PHP message: PHP Warning: fopen(ncp-web.cfg): failed to open stream: No such file or directory in /var/www/ncp-web/L10N.php on line 145\n'
[Tue Apr 09 11:22:23.349313 2019] [authz_host:error] [pid 801:tid 1942570032] [client 192.168.178.61:61842] AH01753: access check of 'localhost' to /ncp-launcher.php failed, reason: unable to get the remote host name
[Tue Apr 09 11:22:23.451278 2019] [proxy_fcgi:error] [pid 801:tid 1942570032] [client 192.168.178.61:61842] AH01071: Got error 'PHP message: PHP Warning: fopen(ncp-web.cfg): failed to open stream: No such file or directory in /var/www/ncp-web/L10N.php on line 145\n'
[Tue Apr 09 11:22:28.156561 2019] [authz_host:error] [pid 801:tid 1942570032] [client 192.168.178.61:61842] AH01753: access check of 'localhost' to /ncp-launcher.php failed, reason: unable to get the remote host name
[Tue Apr 09 11:22:28.161053 2019] [proxy_fcgi:error] [pid 801:tid 1942570032] [client 192.168.178.61:61842] AH01071: Got error 'PHP message: PHP Warning: fopen(ncp-web.cfg): failed to open stream: No such file or directory in /var/www/ncp-web/L10N.php on line 145\n'
[Tue Apr 09 11:22:28.957395 2019] [authz_host:error] [pid 801:tid 1942570032] [client 192.168.178.61:61842] AH01753: access check of 'localhost' to /ncp-launcher.php failed, reason: unable to get the remote host name
[Tue Apr 09 11:22:29.059848 2019] [proxy_fcgi:error] [pid 801:tid 1942570032] [client 192.168.178.61:61842] AH01071: Got error 'PHP message: PHP Warning: fopen(ncp-web.cfg): failed to open stream: No such file or directory in /var/www/ncp-web/L10N.php on line 145\n'
Database logs
2019-04-08 21:50:55 1988481024 [Note] InnoDB: innodb_empty_free_list_algorithm has been changed to legacy because of small buffer pool size. In order to use backoff, increase buffer pool at least up to 20MB.
2019-04-08 21:50:55 1988481024 [Note] InnoDB: Using mutexes to ref count buffer pool pages
2019-04-08 21:50:55 1988481024 [Note] InnoDB: The InnoDB memory heap is disabled
2019-04-08 21:50:55 1988481024 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2019-04-08 21:50:55 1988481024 [Note] InnoDB: GCC builtin __atomic_thread_fence() is used for memory barrier
2019-04-08 21:50:55 1988481024 [Note] InnoDB: Compressed tables use zlib 1.2.8
2019-04-08 21:50:55 1988481024 [Note] InnoDB: Using Linux native AIO
2019-04-08 21:50:55 1988481024 [Note] InnoDB: Using generic crc32 instructions
2019-04-08 21:50:55 1988481024 [Note] InnoDB: Initializing buffer pool, size = 128.0M
2019-04-08 21:50:55 1988481024 [Note] InnoDB: Completed initialization of buffer pool
2019-04-08 21:50:55 1988481024 [Note] InnoDB: Highest supported file format is Barracuda.
2019-04-08 21:50:55 1988481024 [Note] InnoDB: 128 rollback segment(s) are active.
2019-04-08 21:50:55 1988481024 [Note] InnoDB: Waiting for purge to start
2019-04-08 21:50:55 1988481024 [Note] InnoDB: Percona XtraDB (http://www.percona.com) 5.6.41-84.1 started; log sequence number 58358177
2019-04-08 21:50:55 1405088576 [Note] InnoDB: Dumping buffer pool(s) not yet started
2019-04-08 21:50:55 1988481024 [Note] Plugin 'FEEDBACK' is disabled.
2019-04-08 21:50:55 1988481024 [Note] Server socket created on IP: '127.0.0.1'.
2019-04-08 21:50:55 1988481024 [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
Nextcloud logs
tail: cannot open '/media/USBdrive/ncdata/nextcloud.log' for reading: No such file or directory
Running nc-datadir produces:
/usr/local/etc/library.sh: line 174: jq: command not found
/usr/local/etc/library.sh: line 175: jq: command not found
Running nc-datadir
Error reading data directory. Is NextCloud running and configured?