Blank screen after update
PROBLEMS
If you are running into problems, please fill out the following information. For questions or feature requests you don't have to
Keep in mind that many problems come from faulty power sources and corrupted SD cards, so make sure this is not the case for you before reporting. -->
What version of NextCloudPi are you using? ( eg: v0.17.2 )
v0.34.6
What is the base image that you installed on the SD card? ( eg: NextCloudPi_07-21-17 )
Old one, 'untagged'
Potential issue on Redis ?
When doing 'fix permission' PHP Warning: Redis::connect(): connect() failed: No such file or directory in /var/www/nextcloud/lib/private/RedisFactory.php on line 82 PHP Fatal error: Uncaught RedisException: Redis server went away in /var/www/nextcloud/lib/private/Memcache/Redis.php:52 Stack trace: #0 /var/www/nextcloud/lib/private/Memcache/Redis.php(52): Redis->get('9307c17f1ed15a3...') #1 /var/www/nextcloud/lib/autoloader.php(146): OC\Memcache\Redis->get('OC_User') #2 [internal function]: OC\Autoloader->load('OC_User') #3 /var/www/nextcloud/lib/private/Log/File.php(101): spl_autoload_call('OC_User') #4 [internal function]: OC\Log\File::write('PHP', 'Redis::connect(...', 3) #5 /var/www/nextcloud/lib/private/Log.php(301): call_user_func(Array, 'PHP', 'Redis::connect(...', 3) #6 /var/www/nextcloud/lib/private/Log.php(159): OC\Log->log(3, 'Redis::connect(...', Array) #7 /var/www/nextcloud/lib/private/Log/ErrorHandler.php(68): OC\Log->critical('Redis::connect(...', Array) #8 [internal function]: OC\Log\ErrorHandler::onShutdown() #9 {main} thrown in /var/www/nextcloud/lib/private/Memcache/Redis.php on line 52When launching sudo nextcloudpi-config PHP Warning: Redis::connect(): connect() failed: No such file or directory in /var/www/nextcloud/lib/private/RedisFactory.php on line 82 PHP Fatal error: Uncaught RedisException: Redis server went away in /var/www/nextcloud/lib/private/Memcache/Redis.php:52 Stack trace: #0 /var/www/nextcloud/lib/private/Memcache/Redis.php(52): Redis->get('9307c17f1ed15a3...') #1 /var/www/nextcloud/lib/autoloader.php(146): OC\Memcache\Redis->get('OC_User') #2 [internal function]: OC\Autoloader->load('OC_User') #3 /var/www/nextcloud/lib/private/Log/File.php(101): spl_autoload_call('OC_User') #4 [internal function]: OC\Log\File::write('PHP', 'Redis::connect(...', 3) #5 /var/www/nextcloud/lib/private/Log.php(301): call_user_func(Array, 'PHP', 'Redis::connect(...', 3) #6 /var/www/nextcloud/lib/private/Log.php(159): OC\Log->log(3, 'Redis::connect(...', Array) #7 /var/www/nextcloud/lib/private/Log/ErrorHandler.php(68): OC\Log->critical('Redis::connect(...', Array) #8 [internal function]: OC\Log\ErrorHandler::onShutdown() #9 {main} thrown in /var/www/nextcloud/lib/private/Memcache/Redis.php on line 52
Media folder
I had some issues in the past. So I've ended creating the links per belowdrwxr-xr-x 4 root root 4096 Nov 11 16:24 . drwxr-xr-x 22 root root 4096 Sep 17 12:34 .. drwxr-xr-x 5 root root 4096 Oct 13 15:42 myCloudDrive drwxrwxr-- 5 root nasgrp 4096 Nov 1 18:52 nas lrwxrwxrwx 1 root root 12 Nov 11 16:24 USBdrive -> myCloudDrive lrwxrwxrwx 1 root root 12 Nov 11 16:24 USBdrive1 -> myCloudDrive lrwxrwxrwx 1 root root 12 Nov 11 16:24 USBdrive2 -> myCloudDrive
Nextcloud logs
Can't loginIf you don't have access to the web interface, open a terminal session and paste the last 100 lines of /var/www/nextcloud/data/nextcloud.log -> Not relevant, old log from August
Apache logs
Paste the output of systemctl status apache2
sudo systemctl status apache2
● apache2.service - The Apache HTTP Server
Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled)
Active: active (running) since Sat 2017-11-11 16:26:35 UTC; 56min ago
Main PID: 886 (apache2)
CGroup: /system.slice/apache2.service
├─886 /usr/sbin/apache2 -k start
├─943 /usr/sbin/apache2 -k start
└─944 /usr/sbin/apache2 -k start
Nov 11 16:26:32 yolo systemd[1]: Starting The Apache HTTP Server... Nov 11 16:26:34 yolo apachectl[581]: AH00557: apache2: apr_sockaddr_info_get() failed for yolo Nov 11 16:26:34 yolo apachectl[581]: AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1. Set the Nov 11 16:26:35 yolo systemd[1]: Started The Apache HTTP Server.
Paste the output of tail -n 100 /var/log/apache2/*.log
No issue... examples:
[11/Nov/2017:17:02:29 +0000] "POST /ncp-launcher.php HTTP/2.0" 200 124 "-" "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:56.0) Gecko/20100101 Firefox/56.0"
[11/Nov/2017:16:26:38 +0000] "GET /ncp-output.php HTTP/2.0" 200 4194304 "-" "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:56.0) Gecko/20100101 Firefox/56.0"
mariaDB logs
Paste the output of systemctl status mysqld
sudo systemctl status mysqld
● mariadb.service - MariaDB database server
Loaded: loaded (/lib/systemd/system/mariadb.service; enabled; vendor preset: enabled)
Active: active (running) since Sat 2017-11-11 17:17:45 UTC; 7min ago
Process: 3112 ExecStartPost=/bin/sh -c systemctl unset-environment _WSREP_START_POSITION (code=exited, status=0/SUCCESS)
Process: 3108 ExecStartPost=/etc/mysql/debian-start (code=exited, status=0/SUCCESS)
Process: 3078 ExecStartPre=/bin/sleep 10 (code=exited, status=0/SUCCESS)
Process: 2980 ExecStartPre=/bin/sh -c [ ! -e /usr/bin/galera_recovery ] && VAR= || VAR=/usr/bin/galera_recovery; [ $? -eq 0 ] && systemctl set
Process: 2976 ExecStartPre=/bin/sh -c systemctl unset-environment _WSREP_START_POSITION (code=exited, status=0/SUCCESS)
Process: 2973 ExecStartPre=/usr/bin/install -m 755 -o mysql -g root -d /var/run/mysqld (code=exited, status=0/SUCCESS)
Main PID: 3081 (mysqld)
Status: "Taking your SQL requests now..."
CGroup: /system.slice/mariadb.service
└─3081 /usr/sbin/mysqld
Nov 11 17:17:31 yolo systemd[1]: Starting MariaDB database server... Nov 11 17:17:43 yolo mysqld[3081]: 2017-11-11 17:17:43 1988739072 [Note] /usr/sbin/mysqld (mysqld 10.1.23-MariaDB-9+deb9u1) starting as process 3081 . Nov 11 17:17:45 yolo systemd[1]: Started MariaDB database server.
Paste the output of tail -n 100 /var/log/mysql/*.log
2017-11-11 11:15:01 1989074944 [Note] InnoDB: Using mutexes to ref count buffer pool pages 2017-11-11 11:15:01 1989074944 [Note] InnoDB: The InnoDB memory heap is disabled 2017-11-11 11:15:01 1989074944 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins 2017-11-11 11:15:01 1989074944 [Note] InnoDB: GCC builtin __atomic_thread_fence() is used for memory barrier 2017-11-11 11:15:01 1989074944 [Note] InnoDB: Compressed tables use zlib 1.2.8 2017-11-11 11:15:01 1989074944 [Note] InnoDB: Using Linux native AIO 2017-11-11 11:15:01 1989074944 [Note] InnoDB: Using generic crc32 instructions 2017-11-11 11:15:01 1989074944 [Note] InnoDB: Initializing buffer pool, size = 128.0M 2017-11-11 11:15:01 1989074944 [Note] InnoDB: Completed initialization of buffer pool 2017-11-11 11:15:02 1989074944 [Note] InnoDB: Highest supported file format is Barracuda. 2017-11-11 11:15:02 1989074944 [Note] InnoDB: 128 rollback segment(s) are active. 2017-11-11 11:15:02 1989074944 [Note] InnoDB: Waiting for purge to start 2017-11-11 11:15:02 1989074944 [Note] InnoDB: Percona XtraDB (http://www.percona.com) 5.6.35-80.0 started; log sequence number 562429109 2017-11-11 11:15:03 1447031616 [Note] InnoDB: Dumping buffer pool(s) not yet started 2017-11-11 11:15:03 1989074944 [Note] Plugin 'FEEDBACK' is disabled. 2017-11-11 11:15:03 1989074944 [Note] Server socket created on IP: '127.0.0.1'. 2017-11-11 11:15:03 1989074944 [Note] /usr/sbin/mysqld: ready for connections. Version: '10.1.23-MariaDB-9+deb9u1' socket: '/var/run/mysqld/mysqld.sock' port: 3306 Raspbian 9.0 2017-11-11 13:45:24 1639035712 [Note] /usr/sbin/mysqld: Normal shutdown
2017-11-11 13:45:24 1639035712 [Note] Event Scheduler: Purging the queue. 0 events 2017-11-11 13:45:24 1426060096 [Note] InnoDB: FTS optimize thread exiting. 2017-11-11 13:45:24 1639035712 [Note] InnoDB: Starting shutdown... 2017-11-11 13:45:25 1639035712 [Note] InnoDB: Waiting for page_cleaner to finish flushing of buffer pool 2017-11-11 13:45:27 1639035712 [Note] InnoDB: Shutdown completed; log sequence number 563465158 2017-11-11 13:45:27 1639035712 [Note] /usr/sbin/mysqld: Shutdown complete
2017-11-11 16:25:02 1988452352 [Note] InnoDB: Using mutexes to ref count buffer pool pages 2017-11-11 16:25:02 1988452352 [Note] InnoDB: The InnoDB memory heap is disabled 2017-11-11 16:25:02 1988452352 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins 2017-11-11 16:25:02 1988452352 [Note] InnoDB: GCC builtin __atomic_thread_fence() is used for memory barrier 2017-11-11 16:25:02 1988452352 [Note] InnoDB: Compressed tables use zlib 1.2.8 2017-11-11 16:25:02 1988452352 [Note] InnoDB: Using Linux native AIO 2017-11-11 16:25:02 1988452352 [Note] InnoDB: Using generic crc32 instructions 2017-11-11 16:25:02 1988452352 [Note] InnoDB: Initializing buffer pool, size = 128.0M 2017-11-11 16:25:02 1988452352 [Note] InnoDB: Completed initialization of buffer pool 2017-11-11 16:25:03 1988452352 [Note] InnoDB: Highest supported file format is Barracuda. 2017-11-11 16:25:03 1988452352 [Note] InnoDB: 128 rollback segment(s) are active. 2017-11-11 16:25:03 1988452352 [Note] InnoDB: Waiting for purge to start 2017-11-11 16:25:04 1988452352 [Note] InnoDB: Percona XtraDB (http://www.percona.com) 5.6.35-80.0 started; log sequence number 563465158 2017-11-11 16:25:04 1442837312 [Note] InnoDB: Dumping buffer pool(s) not yet started 2017-11-11 16:25:04 1988452352 [Note] Plugin 'FEEDBACK' is disabled. 2017-11-11 16:25:04 1988452352 [Note] Server socket created on IP: '127.0.0.1'. 2017-11-11 16:25:04 1988452352 [Note] /usr/sbin/mysqld: ready for connections. Version: '10.1.23-MariaDB-9+deb9u1' socket: '/var/run/mysqld/mysqld.sock' port: 3306 Raspbian 9.0 2017-11-11 16:26:21 1978766144 [Note] /usr/sbin/mysqld: Normal shutdown
2017-11-11 16:26:21 1978766144 [Note] Event Scheduler: Purging the queue. 0 events 2017-11-11 16:26:21 1421865792 [Note] InnoDB: FTS optimize thread exiting. 2017-11-11 16:26:21 1978766144 [Note] InnoDB: Starting shutdown... 2017-11-11 16:26:22 1978766144 [Note] InnoDB: Waiting for page_cleaner to finish flushing of buffer pool 2017-11-11 16:26:23 1978766144 [Note] InnoDB: Shutdown completed; log sequence number 563465168 2017-11-11 16:26:23 1978766144 [Note] /usr/sbin/mysqld: Shutdown complete
2017-11-11 16:26:45 1988943872 [Note] InnoDB: Using mutexes to ref count buffer pool pages 2017-11-11 16:26:45 1988943872 [Note] InnoDB: The InnoDB memory heap is disabled 2017-11-11 16:26:45 1988943872 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins 2017-11-11 16:26:45 1988943872 [Note] InnoDB: GCC builtin __atomic_thread_fence() is used for memory barrier 2017-11-11 16:26:45 1988943872 [Note] InnoDB: Compressed tables use zlib 1.2.8 2017-11-11 16:26:45 1988943872 [Note] InnoDB: Using Linux native AIO 2017-11-11 16:26:45 1988943872 [Note] InnoDB: Using generic crc32 instructions 2017-11-11 16:26:45 1988943872 [Note] InnoDB: Initializing buffer pool, size = 128.0M 2017-11-11 16:26:45 1988943872 [Note] InnoDB: Completed initialization of buffer pool 2017-11-11 16:26:45 1988943872 [Note] InnoDB: Highest supported file format is Barracuda. 2017-11-11 16:26:46 1988943872 [Note] InnoDB: 128 rollback segment(s) are active. 2017-11-11 16:26:46 1988943872 [Note] InnoDB: Waiting for purge to start 2017-11-11 16:26:46 1988943872 [Note] InnoDB: Percona XtraDB (http://www.percona.com) 5.6.35-80.0 started; log sequence number 563465168 2017-11-11 16:26:46 1447031616 [Note] InnoDB: Dumping buffer pool(s) not yet started 2017-11-11 16:26:46 1988943872 [Note] Plugin 'FEEDBACK' is disabled. 2017-11-11 16:26:46 1988943872 [Note] Server socket created on IP: '127.0.0.1'. 2017-11-11 16:26:46 1988943872 [Note] /usr/sbin/mysqld: ready for connections. Version: '10.1.23-MariaDB-9+deb9u1' socket: '/var/run/mysqld/mysqld.sock' port: 3306 Raspbian 9.0 2017-11-11 17:17:15 1639236416 [Note] /usr/sbin/mysqld: Normal shutdown
2017-11-11 17:17:15 1639236416 [Note] Event Scheduler: Purging the queue. 0 events 2017-11-11 17:17:15 1426060096 [Note] InnoDB: FTS optimize thread exiting. 2017-11-11 17:17:15 1639236416 [Note] InnoDB: Starting shutdown... 2017-11-11 17:17:16 1639236416 [Note] InnoDB: Waiting for page_cleaner to finish flushing of buffer pool 2017-11-11 17:17:18 1639236416 [Note] InnoDB: Shutdown completed; log sequence number 563465178 2017-11-11 17:17:18 1639236416 [Note] /usr/sbin/mysqld: Shutdown complete
2017-11-11 17:17:43 1988739072 [Note] InnoDB: Using mutexes to ref count buffer pool pages 2017-11-11 17:17:43 1988739072 [Note] InnoDB: The InnoDB memory heap is disabled 2017-11-11 17:17:43 1988739072 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins 2017-11-11 17:17:43 1988739072 [Note] InnoDB: GCC builtin __atomic_thread_fence() is used for memory barrier 2017-11-11 17:17:43 1988739072 [Note] InnoDB: Compressed tables use zlib 1.2.8 2017-11-11 17:17:43 1988739072 [Note] InnoDB: Using Linux native AIO 2017-11-11 17:17:43 1988739072 [Note] InnoDB: Using generic crc32 instructions 2017-11-11 17:17:43 1988739072 [Note] InnoDB: Initializing buffer pool, size = 128.0M 2017-11-11 17:17:43 1988739072 [Note] InnoDB: Completed initialization of buffer pool 2017-11-11 17:17:43 1988739072 [Note] InnoDB: Highest supported file format is Barracuda. 2017-11-11 17:17:44 1988739072 [Note] InnoDB: 128 rollback segment(s) are active. 2017-11-11 17:17:44 1988739072 [Note] InnoDB: Waiting for purge to start 2017-11-11 17:17:44 1988739072 [Note] InnoDB: Percona XtraDB (http://www.percona.com) 5.6.35-80.0 started; log sequence number 563465178 2017-11-11 17:17:44 1447031616 [Note] InnoDB: Dumping buffer pool(s) not yet started 2017-11-11 17:17:44 1988739072 [Note] Plugin 'FEEDBACK' is disabled. 2017-11-11 17:17:44 1988739072 [Note] Server socket created on IP: '127.0.0.1'. 2017-11-11 17:17:44 1988739072 [Note] /usr/sbin/mysqld: ready for connections. Version: '10.1.23-MariaDB-9+deb9u1' socket: '/var/run/mysqld/mysqld.sock' port: 3306 Raspbian 9.0
I'm facing the same problem after 0.34.6
Can't access cloud from anywhere. in Firefox the page is blank. any solution?
Same here after update to 0.34.6.
When running sudo ncp-update, it says:
Downloading updates
Performing updates
vm.overcommit_memory = 1
sed: can't read /etc/redis/redis.conf: No such file or directory
grep: /etc/redis/redis.conf: No such file or directory
./update.sh: line 282: /etc/redis/redis.conf: No such file or directory
NextCloudPi updated to version v0.34.6
same problem here. Update 0.34.6 caused failure to login from remote site. Tried a restore to previous version but that caused errors and also fails to login from remote site.
Same here after the update. SSH seems to work though, but the Web GUI fails to load. I can set various options using the TUI (nextcloudpi-config). However, in browser, it just shows a blank page.
same problem after update. get an http error 500
Access to NCP Web is ok. Looking at the version notes at https://github.com/nextcloud/nextcloudpi/blob/master/changelog.md shows...
v0.34.6 (2017-11-11) redis: fix socket permissions
An SSL test shows a 500 error. Though, the test comes out ok.
Since the version is about SSL, the issues tell me it's a problem with the update, or SSL, or who knows?
I'm waiting for the next version release to see if a fix is deployed... and works.
My testing of the update went fine. Looking into this now
Somehow this slipped through my testing. I think I tested the update on the wrong image >_<
It should be fixed now. Please update to v0.34.7 and confirm
Sorry for that
Still not fixed, exact same issue remains. When updating, it says:
Downloading updates
Performing updates
vm.overcommit_memory = 1
sed: can't read /etc/redis/redis.conf: No such file or directory
grep: /etc/redis/redis.conf: No such file or directory
grep: /etc/redis/redis.conf: No such file or directory
./update.sh: line 289: /etc/redis/redis.conf: No such file or directory
NextCloudPi updated to version v0.34.7
None of the clients want to connect, web server returns HTTP ERROR 503.
@YarmoM you don't seem to have redis installed? your issue is different from OP
what's the output of
grep APCu /var/www/nextcloud/config/config.php
and
systemctl status redis
Ow, my bad, I thought it was the same issue, since this error came up after the same update... I have never needed redis before 0.34.6, but if installing it solves the issue, I'll install it right away.
grep APCu /var/www/nextcloud/config/config.php returns nothing.
systemctl status redis returns Unit redis.service could not be found.
Sorry for the hijacking, my mistake...
no problem!
weird, maybe the installation of redis failed for you. Yesterday I couldn't build the new image at all because the raspbian mirrors were down all day, could be the cause.
Let's make sure,
sudo -u www-data /var/www/nextcloud/occ config:list system
I got another blank page with the version v0.31.25 when I tried to access the admin page. then I disabled the nc-webui and I had a normal login page again. Maybe it is related with these interface.
@cfsancas did you get problems updating to v0.34.6 too? probably on v0.31.25 an apache restart was needed, and that would be unrelated, as today's problems are related to redis.
Ok, I ran sudo -u www-data /var/www/nextcloud/occ config:list system, it gave me:
{
"system": {
"passwordsalt": "***REMOVED SENSITIVE VALUE***",
"secret": "***REMOVED SENSITIVE VALUE***",
"trusted_domains": {
"0": "localhost",
"5": "nextcloudpi.local",
"1": "192.168.2.2",
},
"datadirectory": "\/media\/xxx\/ncdata",
"overwrite.cli.url": "http:\/\/localhost",
"dbtype": "mysql",
"version": "12.0.3.3",
"dbname": "nextcloud",
"dbhost": "localhost",
"dbport": "",
"dbtableprefix": "oc_",
"mysql.utf8mb4": true,
"dbuser": "***REMOVED SENSITIVE VALUE***",
"dbpassword": "***REMOVED SENSITIVE VALUE***",
"installed": true,
"instanceid": "***REMOVED SENSITIVE VALUE***",
"mail_smtpmode": "php",
"mail_smtpauthtype": "LOGIN",
"mail_from_address": "admin",
"mail_domain": "ownyourbits.com",
"overwriteprotocol": "https",
"maintenance": false,
"memcache.local": "\\OC\\Memcache\\Redis",
"memcache.locking": "\\OC\\Memcache\\Redis",
"redis": {
"host": "\/var\/run\/redis\/redis.sock",
"port": 0,
"timeout": 0
}
}
}
Indeed, I'm struggling with installing redis right now, what's the preferred method? From source or apt?
Redis is now working and active. However, the web client still gives a 503 error... Any logs I should check?
Indeed, I'm struggling with installing redis right now, what's the preferred method? From source or apt?
Paste this code ( just @YarmoM , the rest of the people are in a different situation and should just ncp-update )
sudo su
REDIS_CONF=/etc/redis/redis.conf
sysctl vm.overcommit_memory=1
apt-get update
apt-get purge -y redis-server php7.0-redis
apt-get install -y --no-install-recommends redis-server php7.0-redis
REDIS_MEM=3gb
sed -i "s|# unixsocket .*|unixsocket /var/run/redis/redis.sock|" $REDIS_CONF
sed -i "s|# unixsocketperm .*|unixsocketperm 770|" $REDIS_CONF
sed -i "s|port.*|port 0|" $REDIS_CONF
echo "maxmemory ${REDIS_MEM}" >> $REDIS_CONF
echo 'vm.overcommit_memory = 1' >> /etc/sysctl.conf
sudo usermod -a -G redis www-data
systemctl restart redis-server
systemctl enable redis-server
systemctl stop php7.0-fpm
systemctl stop mysqld
systemctl start php7.0-fpm
systemctl start mysqld
Holy cow, that fixed it! Everything is up! Thanks so much for the support!
Great!
In the future, I will have to account for the possibility of raspbian mirrordirector being down in my code >_<