Nextcloud suddenly stops working

NCP has been operating for months without problems but I have a big problem now. Before I went on vacation I activated the preview generator and while on vacation Nextcloud suddenly stopped working.
I still can login as pi from SSH console but:

  • MariaDB is down
  • Nextcloud is not installed
  • datadir does not exist

The storage seems to be full now, but I only used 6 GB before. How can I delete the generated preview files?

Iā€™m not experienced with Linux yet but and Iā€™m learning with NCP.
Is there a way to fix that or will I have to install an older backup and lose data?
What do you recommand?

Peter

pi@nextcloudpi:~ $ sudo ncp-config
Downloading updates
error: unable to write file ncp-web/wizard/bootstrap/css/bootstrap.css
error: unable to write file ncp-web/wizard/bootstrap/css/bootstrap.css.map
error: unable to write file ncp-web/wizard/bootstrap/css/bootstrap.min.css
fatal: cannot create directory at ā€˜ncp-web/wizard/bootstrap/fontsā€™: No space left on device
warning: Clone succeeded, but checkout failed.
You can inspect what was checked out with ā€˜git statusā€™
and retry the checkout with ā€˜git checkout -f HEADā€™

No internet connectivity
pi@nextcloudpi:~ $ git status
fatal: Not a git repository (or any of the parent directories): .git
pi@nextcloudpi:~ $ git checkout -f HEAD
fatal: Not a git repository (or any of the parent directories): .git
pi@nextcloudpi:~ $

pi@nextcloudpi:/tmp $ sudo ncp-report
NextCloudPi version v0.60.8
NextCloudPi image NextCloudPi_02-06-18
distribution Raspbian GNU/Linux 9 \n \l
automount Yes
USB devices sda
datadir (doesnā€™t exist)
rootfs usage 59G/59G
swapfile /var/swap
dbdir /var/lib/mysql
Nextcloud check ok
Nextcloud version 13.0.6.1
HTTPD service up
PHP service up
MariaDB service down
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 no
uptime 31min

Nextcloud is not installed - only a limited number of commands are available

[Symfony\Component\Console\Exception\CommandNotFoundException]
There are no commands defined in the ā€œconfigā€ namespace.

Mine has suddenly stopped working as well. See attached screenshot of what I get when I visit my nextcloud page.


Any ideas on how to get it back? Is there something missing? Iā€™m running nextcloudpi on debian.

A new SD card. They donā€™t live foreverā€¦

1 Like

try this fix

I just ran into the same issueā€¦ I was having about 100GB of free space before starting the preview generator.

Report:

NextCloudPi diagnostics

NextCloudPi version  v0.62.6
NextCloudPi image    NextCloudPi_11-12-17
distribution         Raspbian GNU/Linux 9 \n \l
automount            no
USB devices          sda
datadir               (doesn't exist)
rootfs usage         344G/344G
swapfile             /dev/zram3
dbdir                /var/lib/mysql
Nextcloud check      ok
Nextcloud version    13.0.6.1
HTTPD service        up
PHP service          up
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               7:59

Nextcloud configuration

Nextcloud is not installed - only a limited number of commands are available


  [Symfony\Component\Console\Exception\CommandNotFoundException]
  There are no commands defined in the "config" namespace.



HTTPd logs

[Fri Oct 12 06:25:06.911582 2018] [ssl:warn] [pid 1077:tid 1992613888] AH01909: localhost:4443:0 server certificate does NOT include an ID which matches the server name
[Fri Oct 12 06:25:08.001367 2018] [mpm_event:notice] [pid 1077:tid 1992613888] AH00489: Apache/2.4.25 (Raspbian) OpenSSL/1.0.2l configured -- resuming normal operations
[Fri Oct 12 06:25:08.001542 2018] [core:notice] [pid 1077:tid 1992613888] AH00094: Command line: '/usr/sbin/apache2'
[Fri Oct 12 12:11:09.656072 2018] [mpm_event:notice] [pid 1077:tid 1992613888] AH00491: caught SIGTERM, shutting down
[Fri Oct 12 12:41:19.799435 2018] [ssl:warn] [pid 783:tid 1992003584] AH01909: localhost:4443:0 server certificate does NOT include an ID which matches the server name
[Fri Oct 12 12:41:20.101118 2018] [ssl:warn] [pid 1109:tid 1992003584] AH01909: localhost:4443:0 server certificate does NOT include an ID which matches the server name
[Fri Oct 12 12:41:21.005150 2018] [mpm_event:notice] [pid 1109:tid 1992003584] AH00489: Apache/2.4.25 (Raspbian) OpenSSL/1.0.2l configured -- resuming normal operations
[Fri Oct 12 12:41:21.005477 2018] [core:notice] [pid 1109:tid 1992003584] AH00094: Command line: '/usr/sbin/apache2'

Database logs


Nextcloud logs

tail: cannot open '/nextcloud.log' for reading: No such file or directory

The solution to get the NCP running again might be the same as to my problem when I ran out of space due to backup generation (NCP re-initialized itself).

@nachoparker, the fix you posted didnā€™t work for me, I get an error message:

pi@nextcloudpi:~ $ sudo su
root@nextcloudpi:/home/pi# apt-get purge -y php7.0* php7.2*
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.
root@nextcloudpi:/home/pi# exit
exit

I canā€™t check the size of preview folder because even after more than 5 hours I donā€™t get a result for sudo sudo du -msh /var/www/nextcloud/data/appdata_oclqkkiqcr6y/preview. Same goes for ls command.
Is it save to remove the preview folder in /var/www/nextcloud/data/appdata_oclqkkiqcr6y? Or are there other important files in this folder?

previews can take a TON of space for big collections.

So you ran out of space again?

We are improving the previews in NCP by limiting the size of the previews, that should help

Do the suggested command, and apt -f install

Yes, I ran out of space againā€¦
I deleted some video-files before running the command again, now it worked:

apt-get purge -y php7.0* php7.2*
pi@nextcloudpi:~ $ sudo su
root@nextcloudpi:/home/pi# apt-get purge -y php7.0* php7.2*
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'php7.0-apcu' for glob 'php7.0*'
Note, selecting 'php7.0-exif' for glob 'php7.0*'
Note, selecting 'php7.0-xmlrpc' for glob 'php7.0*'
Note, selecting 'php7.0-simplexml' for glob 'php7.0*'
Note, selecting 'php7.0-bz2' for glob 'php7.0*'
Note, selecting 'php7.0-cgi' for glob 'php7.0*'
Note, selecting 'php7.0-cli' for glob 'php7.0*'
Note, selecting 'php7.0-sockets' for glob 'php7.0*'
Note, selecting 'php7.0-igbinary' for glob 'php7.0*'
Note, selecting 'php7.0-dba' for glob 'php7.0*'
Note, selecting 'php7.0-dev' for glob 'php7.0*'
Note, selecting 'php7.0-dom' for glob 'php7.0*'
Note, selecting 'php7.0-sysvmsg' for glob 'php7.0*'
Note, selecting 'php7.0-remctl' for glob 'php7.0*'
Note, selecting 'php7.0-memcache' for glob 'php7.0*'
Note, selecting 'php7.0-fpm' for glob 'php7.0*'
Note, selecting 'php7.0-gd' for glob 'php7.0*'
Note, selecting 'php7.0-ftp' for glob 'php7.0*'
Note, selecting 'php7.0-ps' for glob 'php7.0*'
Note, selecting 'php7.0-gmp' for glob 'php7.0*'
Note, selecting 'php7.0-libsodium' for glob 'php7.0*'
Note, selecting 'php7.0-stomp' for glob 'php7.0*'
Note, selecting 'php7.0-opcache' for glob 'php7.0*'
Note, selecting 'php7.0-raphf' for glob 'php7.0*'
Note, selecting 'php7.0' for glob 'php7.0*'
Note, selecting 'php7.0-pspell' for glob 'php7.0*'
Note, selecting 'php7.0-sysvsem' for glob 'php7.0*'
Note, selecting 'php7.0-calendar' for glob 'php7.0*'
Note, selecting 'php7.0-sysvshm' for glob 'php7.0*'
Note, selecting 'php7.0-recode' for glob 'php7.0*'
Note, selecting 'php7.0-fileinfo' for glob 'php7.0*'
Note, selecting 'php7.0-propro' for glob 'php7.0*'
Note, selecting 'php7.0-gnupg' for glob 'php7.0*'
Note, selecting 'php7.0-common' for glob 'php7.0*'
Note, selecting 'php7.0-posix' for glob 'php7.0*'
Note, selecting 'php7.0-iconv' for glob 'php7.0*'
Note, selecting 'php7.0-pdo-firebird' for glob 'php7.0*'
Note, selecting 'php7.0-msgpack' for glob 'php7.0*'
Note, selecting 'php7.0-gearman' for glob 'php7.0*'
Note, selecting 'php7.0-bcmath' for glob 'php7.0*'
Note, selecting 'php7.0-sqlite3' for glob 'php7.0*'
Note, selecting 'php7.0-pdo' for glob 'php7.0*'
Note, selecting 'php7.0-uuid' for glob 'php7.0*'
Note, selecting 'php7.0-tidy' for glob 'php7.0*'
Note, selecting 'php7.0-xdebug' for glob 'php7.0*'
Note, selecting 'php7.0-rrd' for glob 'php7.0*'
Note, selecting 'php7.0-wddx' for glob 'php7.0*'
Note, selecting 'php7.0-pdo-pgsql' for glob 'php7.0*'
Note, selecting 'php7.0-smbclient' for glob 'php7.0*'
Note, selecting 'php7.0-memcached' for glob 'php7.0*'
Note, selecting 'php7.0-json' for glob 'php7.0*'
Note, selecting 'php7.0-mysqlnd' for glob 'php7.0*'
Note, selecting 'php7.0-phar' for glob 'php7.0*'
Note, selecting 'php7.0-mbstring' for glob 'php7.0*'
Note, selecting 'php7.0-readline' for glob 'php7.0*'
Note, selecting 'php7.0-xml' for glob 'php7.0*'
Note, selecting 'php7.0-xsl' for glob 'php7.0*'
Note, selecting 'php7.0-yac' for glob 'php7.0*'
Note, selecting 'php7.0-curl' for glob 'php7.0*'
Note, selecting 'php7.0-zip' for glob 'php7.0*'
Note, selecting 'php7.0-zmq' for glob 'php7.0*'
Note, selecting 'php7.0-mailparse' for glob 'php7.0*'
Note, selecting 'php7.0-ldap' for glob 'php7.0*'
Note, selecting 'php7.0-pgsql' for glob 'php7.0*'
Note, selecting 'php7.0-shmop' for glob 'php7.0*'
Note, selecting 'php7.0-mcrypt' for glob 'php7.0*'
Note, selecting 'php7.0-imap' for glob 'php7.0*'
Note, selecting 'php7.0-intl' for glob 'php7.0*'
Note, selecting 'php7.0-gmagick' for glob 'php7.0*'
Note, selecting 'php7.0-xmlwriter' for glob 'php7.0*'
Note, selecting 'php7.0-uploadprogress' for glob 'php7.0*'
Note, selecting 'php7.0-ctype' for glob 'php7.0*'
Note, selecting 'php7.0-pdo-sqlite' for glob 'php7.0*'
Note, selecting 'php7.0-enchant' for glob 'php7.0*'
Note, selecting 'php7.0-odbc' for glob 'php7.0*'
Note, selecting 'php7.0-gettext' for glob 'php7.0*'
Note, selecting 'php7.0-pdo-odbc' for glob 'php7.0*'
Note, selecting 'php7.0-geoip' for glob 'php7.0*'
Note, selecting 'php7.0-mysqli' for glob 'php7.0*'
Note, selecting 'php7.0-tideways' for glob 'php7.0*'
Note, selecting 'php7.0-yaml' for glob 'php7.0*'
Note, selecting 'php7.0-pdo-mysql' for glob 'php7.0*'
Note, selecting 'php7.0-snmp' for glob 'php7.0*'
Note, selecting 'php7.0-redis' for glob 'php7.0*'
Note, selecting 'php7.0-soap' for glob 'php7.0*'
Note, selecting 'php7.0-sybase' for glob 'php7.0*'
Note, selecting 'php7.0-solr' for glob 'php7.0*'
Note, selecting 'php7.0-xmlreader' for glob 'php7.0*'
Note, selecting 'php7.0-oauth' for glob 'php7.0*'
Note, selecting 'php7.0-phpdbg' for glob 'php7.0*'
Note, selecting 'php7.0-ssh2' for glob 'php7.0*'
Note, selecting 'php7.0-imagick' for glob 'php7.0*'
Note, selecting 'php7.0-pinba' for glob 'php7.0*'
Note, selecting 'php7.0-tokenizer' for glob 'php7.0*'
Note, selecting 'php7.0-radius' for glob 'php7.0*'
Note, selecting 'php7.0-mongodb' for glob 'php7.0*'
Note, selecting 'php7.0-pdo-dblib' for glob 'php7.0*'
Note, selecting 'php7.0-mysql' for glob 'php7.0*'
Note, selecting 'php7.0-interbase' for glob 'php7.0*'
Note, selecting 'php7.0-amqp' for glob 'php7.0*'
Note, selecting 'php-amqp' instead of 'php7.0-amqp'
Note, selecting 'php-apcu' instead of 'php7.0-apcu'
Note, selecting 'php-gearman' instead of 'php7.0-gearman'
Note, selecting 'php-geoip' instead of 'php7.0-geoip'
Note, selecting 'php-gmagick' instead of 'php7.0-gmagick'
Note, selecting 'php-gnupg' instead of 'php7.0-gnupg'
Note, selecting 'php-igbinary' instead of 'php7.0-igbinary'
Note, selecting 'php-imagick' instead of 'php7.0-imagick'
Note, selecting 'php-libsodium' instead of 'php7.0-libsodium'
Note, selecting 'php-mailparse' instead of 'php7.0-mailparse'
Note, selecting 'php-memcache' instead of 'php7.0-memcache'
Note, selecting 'php-memcached' instead of 'php7.0-memcached'
Note, selecting 'php-mongodb' instead of 'php7.0-mongodb'
Note, selecting 'php-msgpack' instead of 'php7.0-msgpack'
Note, selecting 'php-oauth' instead of 'php7.0-oauth'
Note, selecting 'php-pinba' instead of 'php7.0-pinba'
Note, selecting 'php-propro' instead of 'php7.0-propro'
Note, selecting 'php-ps' instead of 'php7.0-ps'
Note, selecting 'php-radius' instead of 'php7.0-radius'
Note, selecting 'php-raphf' instead of 'php7.0-raphf'
Note, selecting 'php-redis' instead of 'php7.0-redis'
Note, selecting 'php-remctl' instead of 'php7.0-remctl'
Note, selecting 'php-rrd' instead of 'php7.0-rrd'
Note, selecting 'php-smbclient' instead of 'php7.0-smbclient'
Note, selecting 'php-solr' instead of 'php7.0-solr'
Note, selecting 'php-ssh2' instead of 'php7.0-ssh2'
Note, selecting 'php-stomp' instead of 'php7.0-stomp'
Note, selecting 'php-tideways' instead of 'php7.0-tideways'
Note, selecting 'php-uploadprogress' instead of 'php7.0-uploadprogress'
Note, selecting 'php-uuid' instead of 'php7.0-uuid'
Note, selecting 'php-xdebug' instead of 'php7.0-xdebug'
Note, selecting 'php-yac' instead of 'php7.0-yac'
Note, selecting 'php-yaml' instead of 'php7.0-yaml'
Note, selecting 'php-zmq' instead of 'php7.0-zmq'
Note, selecting 'php7.0-common' instead of 'php7.0-calendar'
Note, selecting 'php7.0-common' instead of 'php7.0-ctype'
Note, selecting 'php7.0-common' instead of 'php7.0-exif'
Note, selecting 'php7.0-common' instead of 'php7.0-fileinfo'
Note, selecting 'php7.0-common' instead of 'php7.0-ftp'
Note, selecting 'php7.0-common' instead of 'php7.0-gettext'
Note, selecting 'php7.0-common' instead of 'php7.0-iconv'
Note, selecting 'php7.0-common' instead of 'php7.0-pdo'
Note, selecting 'php7.0-common' instead of 'php7.0-phar'
Note, selecting 'php7.0-common' instead of 'php7.0-posix'
Note, selecting 'php7.0-common' instead of 'php7.0-shmop'
Note, selecting 'php7.0-common' instead of 'php7.0-sockets'
Note, selecting 'php7.0-common' instead of 'php7.0-sysvmsg'
Note, selecting 'php7.0-common' instead of 'php7.0-sysvsem'
Note, selecting 'php7.0-common' instead of 'php7.0-sysvshm'
Note, selecting 'php7.0-common' instead of 'php7.0-tokenizer'
Note, selecting 'php7.0-interbase' instead of 'php7.0-pdo-firebird'
Note, selecting 'php7.0-mysql' instead of 'php7.0-mysqli'
Note, selecting 'php7.0-mysql' instead of 'php7.0-mysqlnd'
Note, selecting 'php7.0-mysql' instead of 'php7.0-pdo-mysql'
Note, selecting 'php7.0-odbc' instead of 'php7.0-pdo-odbc'
Note, selecting 'php7.0-pgsql' instead of 'php7.0-pdo-pgsql'
Note, selecting 'php7.0-sqlite3' instead of 'php7.0-pdo-sqlite'
Note, selecting 'php7.0-sybase' instead of 'php7.0-pdo-dblib'
Note, selecting 'php7.0-xml' instead of 'php7.0-dom'
Note, selecting 'php7.0-xml' instead of 'php7.0-simplexml'
Note, selecting 'php7.0-xml' instead of 'php7.0-wddx'
Note, selecting 'php7.0-xml' instead of 'php7.0-xmlreader'
Note, selecting 'php7.0-xml' instead of 'php7.0-xmlwriter'
Note, selecting 'php7.2-pdo-odbc' for glob 'php7.2*'
Note, selecting 'php7.2-imagick' for glob 'php7.2*'
Note, selecting 'php7.2-redis' for glob 'php7.2*'
Note, selecting 'php7.2-bz2' for glob 'php7.2*'
Note, selecting 'php7.2-mongodb' for glob 'php7.2*'
Note, selecting 'php7.2-common' for glob 'php7.2*'
Note, selecting 'php7.2-cgi' for glob 'php7.2*'
Note, selecting 'php7.2-cli' for glob 'php7.2*'
Note, selecting 'php7.2-dba' for glob 'php7.2*'
Note, selecting 'php7.2-dev' for glob 'php7.2*'
Note, selecting 'php7.2-smbclient' for glob 'php7.2*'
Note, selecting 'php7.2-dom' for glob 'php7.2*'
Note, selecting 'php7.2-bcmath' for glob 'php7.2*'
Note, selecting 'php7.2-oauth' for glob 'php7.2*'
Note, selecting 'php7.2-memcached' for glob 'php7.2*'
Note, selecting 'php7.2-pinba' for glob 'php7.2*'
Note, selecting 'php7.2-fpm' for glob 'php7.2*'
Note, selecting 'php7.2-ftp' for glob 'php7.2*'
Note, selecting 'php7.2-igbinary' for glob 'php7.2*'
Note, selecting 'php7.2-gmp' for glob 'php7.2*'
Note, selecting 'php7.2-sodium' for glob 'php7.2*'
Note, selecting 'php7.2-apcu-bc' for glob 'php7.2*'
Note, selecting 'php7.2-mysql' for glob 'php7.2*'
Note, selecting 'php7.2-memcache' for glob 'php7.2*'
Note, selecting 'php7.2-uuid' for glob 'php7.2*'
Note, selecting 'php7.2-sockets' for glob 'php7.2*'
Note, selecting 'php7.2-tidy' for glob 'php7.2*'
Note, selecting 'php7.2-mailparse' for glob 'php7.2*'
Note, selecting 'php7.2' for glob 'php7.2*'
Note, selecting 'php7.2-sysvmsg' for glob 'php7.2*'
Note, selecting 'php7.2-wddx' for glob 'php7.2*'
Note, selecting 'php7.2-sqlite3' for glob 'php7.2*'
Note, selecting 'php7.2-pdo-pgsql' for glob 'php7.2*'
Note, selecting 'php7.2-calendar' for glob 'php7.2*'
Note, selecting 'php7.2-fileinfo' for glob 'php7.2*'
Note, selecting 'php7.2-pdo' for glob 'php7.2*'
Note, selecting 'php7.2-xmlwriter' for glob 'php7.2*'
Note, selecting 'php7.2-json' for glob 'php7.2*'
Note, selecting 'php7.2-opcache' for glob 'php7.2*'
Note, selecting 'php7.2-mysqli' for glob 'php7.2*'
Note, selecting 'php7.2-sass' for glob 'php7.2*'
Note, selecting 'php7.2-sysvsem' for glob 'php7.2*'
Note, selecting 'php7.2-sysvshm' for glob 'php7.2*'
Note, selecting 'php7.2-phar' for glob 'php7.2*'
Note, selecting 'php7.2-rrd' for glob 'php7.2*'
Note, selecting 'php7.2-sybase' for glob 'php7.2*'
Note, selecting 'php7.2-curl' for glob 'php7.2*'
Note, selecting 'php7.2-stomp' for glob 'php7.2*'
Note, selecting 'php7.2-msgpack' for glob 'php7.2*'
Note, selecting 'php7.2-ldap' for glob 'php7.2*'
Note, selecting 'php7.2-raphf' for glob 'php7.2*'
Note, selecting 'php7.2-phpdbg' for glob 'php7.2*'
Note, selecting 'php7.2-xmlreader' for glob 'php7.2*'
Note, selecting 'php7.2-imap' for glob 'php7.2*'
Note, selecting 'php7.2-gnupg' for glob 'php7.2*'
Note, selecting 'php7.2-radius' for glob 'php7.2*'
Note, selecting 'php7.2-uploadprogress' for glob 'php7.2*'
Note, selecting 'php7.2-posix' for glob 'php7.2*'
Note, selecting 'php7.2-iconv' for glob 'php7.2*'
Note, selecting 'php7.2-xml' for glob 'php7.2*'
Note, selecting 'php7.2-xsl' for glob 'php7.2*'
Note, selecting 'php7.2-intl' for glob 'php7.2*'
Note, selecting 'php7.2-yac' for glob 'php7.2*'
Note, selecting 'php7.2-zip' for glob 'php7.2*'
Note, selecting 'php7.2-tokenizer' for glob 'php7.2*'
Note, selecting 'php7.2-odbc' for glob 'php7.2*'
Note, selecting 'php7.2-mbstring' for glob 'php7.2*'
Note, selecting 'php7.2-readline' for glob 'php7.2*'
Note, selecting 'php7.2-ds' for glob 'php7.2*'
Note, selecting 'php7.2-gd' for glob 'php7.2*'
Note, selecting 'php7.2-ps' for glob 'php7.2*'
Note, selecting 'php7.2-interbase' for glob 'php7.2*'
Note, selecting 'php7.2-snmp' for glob 'php7.2*'
Note, selecting 'php7.2-pdo-mysql' for glob 'php7.2*'
Note, selecting 'php7.2-mysqlnd' for glob 'php7.2*'
Note, selecting 'php7.2-xmlrpc' for glob 'php7.2*'
Note, selecting 'php7.2-soap' for glob 'php7.2*'
Note, selecting 'php7.2-solr' for glob 'php7.2*'
Note, selecting 'php7.2-simplexml' for glob 'php7.2*'
Note, selecting 'php7.2-ssh2' for glob 'php7.2*'
Note, selecting 'php7.2-pdo-sqlite' for glob 'php7.2*'
Note, selecting 'php7.2-pdo-dblib' for glob 'php7.2*'
Note, selecting 'php7.2-pspell' for glob 'php7.2*'
Note, selecting 'php7.2-amqp' for glob 'php7.2*'
Note, selecting 'php7.2-gmagick' for glob 'php7.2*'
Note, selecting 'php7.2-pgsql' for glob 'php7.2*'
Note, selecting 'php7.2-enchant' for glob 'php7.2*'
Note, selecting 'php7.2-recode' for glob 'php7.2*'
Note, selecting 'php7.2-tideways' for glob 'php7.2*'
Note, selecting 'php7.2-shmop' for glob 'php7.2*'
Note, selecting 'php7.2-propro' for glob 'php7.2*'
Note, selecting 'php7.2-gettext' for glob 'php7.2*'
Note, selecting 'php7.2-apcu' for glob 'php7.2*'
Note, selecting 'php7.2-pdo-firebird' for glob 'php7.2*'
Note, selecting 'php7.2-exif' for glob 'php7.2*'
Note, selecting 'php7.2-ctype' for glob 'php7.2*'
Note, selecting 'php7.2-http' for glob 'php7.2*'
Note, selecting 'php7.2-geoip' for glob 'php7.2*'
Note, selecting 'php7.2-xdebug' for glob 'php7.2*'
Note, selecting 'php-ds' instead of 'php7.2-ds'
Package 'php7.2-sodium' is not installed, so not removed
Note, selecting 'php7.2-common' instead of 'php7.2-calendar'
Note, selecting 'php7.2-common' instead of 'php7.2-ctype'
Note, selecting 'php7.2-common' instead of 'php7.2-exif'
Note, selecting 'php7.2-common' instead of 'php7.2-fileinfo'
Note, selecting 'php7.2-common' instead of 'php7.2-ftp'
Note, selecting 'php7.2-common' instead of 'php7.2-gettext'
Note, selecting 'php7.2-common' instead of 'php7.2-iconv'
Note, selecting 'php7.2-common' instead of 'php7.2-pdo'
Note, selecting 'php7.2-common' instead of 'php7.2-phar'
Note, selecting 'php7.2-common' instead of 'php7.2-posix'
Note, selecting 'php7.2-common' instead of 'php7.2-shmop'
Note, selecting 'php7.2-common' instead of 'php7.2-sockets'
Note, selecting 'php7.2-common' instead of 'php7.2-sysvmsg'
Note, selecting 'php7.2-common' instead of 'php7.2-sysvsem'
Note, selecting 'php7.2-common' instead of 'php7.2-sysvshm'
Note, selecting 'php7.2-common' instead of 'php7.2-tokenizer'
Note, selecting 'php7.2-interbase' instead of 'php7.2-pdo-firebird'
Note, selecting 'php7.2-mysql' instead of 'php7.2-mysqli'
Note, selecting 'php7.2-mysql' instead of 'php7.2-mysqlnd'
Note, selecting 'php7.2-mysql' instead of 'php7.2-pdo-mysql'
Note, selecting 'php7.2-odbc' instead of 'php7.2-pdo-odbc'
Note, selecting 'php7.2-pgsql' instead of 'php7.2-pdo-pgsql'
Note, selecting 'php7.2-sqlite3' instead of 'php7.2-pdo-sqlite'
Note, selecting 'php7.2-sybase' instead of 'php7.2-pdo-dblib'
Note, selecting 'php7.2-xml' instead of 'php7.2-dom'
Note, selecting 'php7.2-xml' instead of 'php7.2-simplexml'
Note, selecting 'php7.2-xml' instead of 'php7.2-wddx'
Note, selecting 'php7.2-xml' instead of 'php7.2-xmlreader'
Note, selecting 'php7.2-xml' instead of 'php7.2-xmlwriter'
Note, selecting 'php-sass' instead of 'php7.2-sass'
Package 'php7.0-bcmath' is not installed, so not removed
Package 'php7.0-bz2' is not installed, so not removed
Package 'php7.0-cgi' is not installed, so not removed
Package 'php7.0-dba' is not installed, so not removed
Package 'php7.0-dev' is not installed, so not removed
Package 'php7.0-enchant' is not installed, so not removed
Package 'php7.0-gmp' is not installed, so not removed
Package 'php7.0-imap' is not installed, so not removed
Package 'php7.0-interbase' is not installed, so not removed
Package 'php7.0-intl' is not installed, so not removed
Package 'php7.0-ldap' is not installed, so not removed
Package 'php7.0-odbc' is not installed, so not removed
Package 'php7.0-pgsql' is not installed, so not removed
Package 'php7.0-phpdbg' is not installed, so not removed
Package 'php7.0-pspell' is not installed, so not removed
Package 'php7.0-recode' is not installed, so not removed
Package 'php7.0-snmp' is not installed, so not removed
Package 'php7.0-soap' is not installed, so not removed
Package 'php7.0-sqlite3' is not installed, so not removed
Package 'php7.0-sybase' is not installed, so not removed
Package 'php7.0-tidy' is not installed, so not removed
Package 'php7.0-xmlrpc' is not installed, so not removed
Package 'php7.0-xsl' is not installed, so not removed
Package 'php7.2' is not installed, so not removed
Package 'php7.2-bcmath' is not installed, so not removed
Package 'php7.2-bz2' is not installed, so not removed
Package 'php7.2-cgi' is not installed, so not removed
Package 'php7.2-cli' is not installed, so not removed
Package 'php7.2-common' is not installed, so not removed
Package 'php7.2-curl' is not installed, so not removed
Package 'php7.2-dba' is not installed, so not removed
Package 'php7.2-dev' is not installed, so not removed
Package 'php7.2-enchant' is not installed, so not removed
Package 'php7.2-fpm' is not installed, so not removed
Package 'php7.2-gd' is not installed, so not removed
Package 'php7.2-gmp' is not installed, so not removed
Package 'php7.2-imap' is not installed, so not removed
Package 'php7.2-interbase' is not installed, so not removed
Package 'php7.2-intl' is not installed, so not removed
Package 'php7.2-json' is not installed, so not removed
Package 'php7.2-ldap' is not installed, so not removed
Package 'php7.2-mbstring' is not installed, so not removed
Package 'php7.2-mysql' is not installed, so not removed
Package 'php7.2-odbc' is not installed, so not removed
Package 'php7.2-opcache' is not installed, so not removed
Package 'php7.2-pgsql' is not installed, so not removed
Package 'php7.2-phpdbg' is not installed, so not removed
Package 'php7.2-pspell' is not installed, so not removed
Package 'php7.2-readline' is not installed, so not removed
Package 'php7.2-recode' is not installed, so not removed
Package 'php7.2-snmp' is not installed, so not removed
Package 'php7.2-soap' is not installed, so not removed
Package 'php7.2-sqlite3' is not installed, so not removed
Package 'php7.2-sybase' is not installed, so not removed
Package 'php7.2-tidy' is not installed, so not removed
Package 'php7.2-xml' is not installed, so not removed
Package 'php7.2-xmlrpc' is not installed, so not removed
Package 'php7.2-xsl' is not installed, so not removed
Package 'php7.2-zip' is not installed, so not removed
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 php-igbinary : Depends: phpapi-20151012
 php-imagick : Depends: phpapi-20151012
               Recommends: ghostscript but it is not going to be installed
               Recommends: ttf-dejavu-core but it is not going to be installed
 php-redis : Depends: phpapi-20151012
 php-smbclient : Depends: phpapi-20151012
 python2.7-dev : Depends: python2.7 (= 2.7.13-2+deb9u3) but 2.7.13-2+deb9u2 is to be installed
                 Depends: libpython2.7-dev (= 2.7.13-2+deb9u3) but 2.7.13-2+deb9u2 is to be installed
                 Depends: libpython2.7 (= 2.7.13-2+deb9u3) but 2.7.13-2+deb9u2 is to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
root@nextcloudpi:/home/pi#


root@nextcloudpi:/home/pi# apt --fix-broken install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
  libpython2.7 libpython2.7-dev libpython2.7-minimal libpython2.7-stdlib python2.7 python2.7-dev python2.7-minimal
Suggested packages:
  python2.7-doc binfmt-support
The following packages will be upgraded:
  libpython2.7 libpython2.7-dev libpython2.7-minimal libpython2.7-stdlib python2.7 python2.7-dev python2.7-minimal
7 upgraded, 0 newly installed, 0 to remove and 25 not upgraded.
1 not fully installed or removed.
Need to get 0 B/32.5 MB of archives.
After this operation, 48.1 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Reading changelogs... Done
(Reading database ... 43275 files and directories currently installed.)
Preparing to unpack .../0-python2.7-dev_2.7.13-2+deb9u3_armhf.deb ...
Unpacking python2.7-dev (2.7.13-2+deb9u3) over (2.7.13-2+deb9u2) ...
Preparing to unpack .../1-libpython2.7-dev_2.7.13-2+deb9u3_armhf.deb ...
Unpacking libpython2.7-dev:armhf (2.7.13-2+deb9u3) over (2.7.13-2+deb9u2) ...
Preparing to unpack .../2-libpython2.7_2.7.13-2+deb9u3_armhf.deb ...
Unpacking libpython2.7:armhf (2.7.13-2+deb9u3) over (2.7.13-2+deb9u2) ...
Preparing to unpack .../3-python2.7_2.7.13-2+deb9u3_armhf.deb ...
Unpacking python2.7 (2.7.13-2+deb9u3) over (2.7.13-2+deb9u2) ...
Preparing to unpack .../4-libpython2.7-stdlib_2.7.13-2+deb9u3_armhf.deb ...
Unpacking libpython2.7-stdlib:armhf (2.7.13-2+deb9u3) over (2.7.13-2+deb9u2) ...
Preparing to unpack .../5-python2.7-minimal_2.7.13-2+deb9u3_armhf.deb ...
Unpacking python2.7-minimal (2.7.13-2+deb9u3) over (2.7.13-2+deb9u2) ...
Preparing to unpack .../6-libpython2.7-minimal_2.7.13-2+deb9u3_armhf.deb ...
Unpacking libpython2.7-minimal:armhf (2.7.13-2+deb9u3) over (2.7.13-2+deb9u2) ...
Processing triggers for mime-support (3.60) ...
Processing triggers for libc-bin (2.24-11+deb9u3) ...
Processing triggers for man-db (2.7.6.1-2) ...
/usr/bin/mandb: can't write to /var/cache/man/15092: No space left on device
Setting up libpython2.7-minimal:armhf (2.7.13-2+deb9u3) ...
Setting up libpython2.7-stdlib:armhf (2.7.13-2+deb9u3) ...
Setting up python2.7-minimal (2.7.13-2+deb9u3) ...
Setting up python2.7 (2.7.13-2+deb9u3) ...
Setting up libpython2.7:armhf (2.7.13-2+deb9u3) ...
Setting up libpython2.7-dev:armhf (2.7.13-2+deb9u3) ...
Setting up python2.7-dev (2.7.13-2+deb9u3) ...
Processing triggers for libc-bin (2.24-11+deb9u3) ...
Scanning processes...
Scanning linux images...
Running kernel seems to be up-to-date.
No services need to be restarted.
No containers need to be restarted.
No user sessions are running outdated binaries.
root@nextcloudpi:/home/pi#

But what did that change? Here is the new report:

NextCloudPi diagnostics

NextCloudPi version  v0.62.6
NextCloudPi image    NextCloudPi_11-12-17
distribution         Raspbian GNU/Linux 9 \n \l
automount            no
USB devices          sda
datadir               (doesn't exist)
rootfs usage         341G/344G
swapfile             /dev/zram3
dbdir                /var/lib/mysql
Nextcloud check      ok
Nextcloud version    13.0.6.1
HTTPD service        up
PHP service          up
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               20:23

Nextcloud configuration

Nextcloud is not installed - only a limited number of commands are available


  [Symfony\Component\Console\Exception\CommandNotFoundException]
  There are no commands defined in the "config" namespace.



HTTPd logs

[Sat Oct 13 06:25:03.361510 2018] [ssl:warn] [pid 1109:tid 1992003584] AH01909: localhost:4443:0 server certificate does NOT include an ID which matches the server name
[Sat Oct 13 06:25:04.001044 2018] [mpm_event:notice] [pid 1109:tid 1992003584] AH00489: Apache/2.4.25 (Raspbian) OpenSSL/1.0.2l configured -- resuming normal operations
[Sat Oct 13 06:25:04.001190 2018] [core:notice] [pid 1109:tid 1992003584] AH00094: Command line: '/usr/sbin/apache2'
[Sat Oct 13 06:32:09.622672 2018] [log_config:warn] [pid 13220:tid 1656747056] (28)No space left on device: [client 92.38.46.186:58469] AH00646: Error writing to /var/log/apache2/other_vhosts_access.log
[Sat Oct 13 07:17:11.957547 2018] [log_config:warn] [pid 13219:tid 1614804016] (28)No space left on device: [client 115.178.101.2:48118] AH00646: Error writing to /var/log/apache2/other_vhosts_access.log
[Sat Oct 13 07:50:03.468472 2018] [log_config:warn] [pid 13220:tid 1572844592] (28)No space left on device: [client 188.173.133.11:55657] AH00646: Error writing to /var/log/apache2/other_vhosts_access.log
[Sat Oct 13 08:03:42.854596 2018] [log_config:warn] [pid 13220:tid 1539257392] (28)No space left on device: [client 177.105.238.20:54536] AH00646: Error writing to /var/log/apache2/other_vhosts_access.log
[Sat Oct 13 09:02:21.947846 2018] [authz_host:error] [pid 13219:tid 1683067952] [client 192.168.1.51:56987] AH01753: access check of 'localhost' to / failed, reason: unable to get the remote host name
[Sat Oct 13 09:02:22.007560 2018] [log_config:warn] [pid 13219:tid 1505670192] (28)No space left on device: [client 192.168.1.51:56987] AH00646: Error writing to /var/log/apache2/other_vhosts_access.log
[Sat Oct 13 09:02:24.157094 2018] [authz_host:error] [pid 13219:tid 1683067952] [client 192.168.1.51:56988] AH01753: access check of 'localhost' to /favicon.ico failed, reason: unable to get the remote host name
[Sat Oct 13 09:02:24.158642 2018] [log_config:warn] [pid 13219:tid 1497273392] (28)No space left on device: [client 192.168.1.51:56988] AH00646: Error writing to /var/log/apache2/other_vhosts_access.log
[Sat Oct 13 09:02:24.573955 2018] [authz_host:error] [pid 13219:tid 1683067952] [client 192.168.1.51:56988] AH01753: access check of 'localhost' to /favicon.ico failed, reason: unable to get the remote host name
[Sat Oct 13 09:02:24.575209 2018] [log_config:warn] [pid 13219:tid 1497273392] (28)No space left on device: [client 192.168.1.51:56988] AH00646: Error writing to /var/log/apache2/other_vhosts_access.log

Database logs


Nextcloud logs

tail: cannot open '/nextcloud.log' for reading: No such file or directory

I still only have a few GB of space available, so I think I have to delete the preview files. I only have about 20 GB of pictures stored in the NCP (and about 100 GB of videos). How can the preview generator need more than 100 GB of space??
Is it safe to delete the whole preview folder?

Your cloud is working now, right?

I think that you can delete the previews folder, and then do ncc files:scan-app-data

At the moment the cloud doesnā€™t work because I donā€™t have any free space. Therefore I wanted to delete the preview folder, but this doesnā€™t work.
First it starts to delete some files but stops after about 20 files.

pi@nextcloudpi:/var/www/nextcloud/data/appdata_oclqkkiqcr6y $ sudo rm -r -v preview
removed 'preview/18225/48-64.jpg'
removed 'preview/18225/64-64-crop.jpg'
removed 'preview/18225/64-85.jpg'
removed 'preview/18225/256-341.jpg'
removed 'preview/18225/96-128.jpg'
removed 'preview/18225/192-256.jpg'
removed 'preview/18225/128-171.jpg'
removed 'preview/18225/32-43.jpg'
removed 'preview/18225/1024-1365.jpg'
removed 'preview/18225/2048-2731.jpg'
removed 'preview/18225/512-512-crop.jpg'
removed 'preview/18225/384-512.jpg'
removed 'preview/18225/1024-1024-crop.jpg'
removed 'preview/18225/24-32.jpg'
removed 'preview/18225/32-32-crop.jpg'
removed 'preview/18225/768-1024.jpg'
removed 'preview/18225/128-128-crop.jpg'
removed 'preview/18225/256-256-crop.jpg'
removed 'preview/18225/1536-2048.jpg'
removed 'preview/18225/2048-2048-crop.jpg'
removed 'preview/18225/3072-4096-max.jpg'
removed 'preview/18225/512-683.jpg

I waited for a couple of hours and then restarted the command in a new window. This time no images where deleted.

pi@nextcloudpi:~ $ sudo rm -r -v /var/www/nextcloud/data/appdata_oclqkkiqcr6y/preview

I donā€™t now why the process stopped / didnā€™t continue. Any other way to delete the folder?

I restored the config.php, but the cloud doesnā€™t work anymore. The report shows some errors:

NextCloudPi diagnostics

NextCloudPi version  v0.62.6
NextCloudPi image    NextCloudPi_11-12-17
distribution         Raspbian GNU/Linux 9 \n \l
automount            no
USB devices          sda
datadir              /var/www/nextcloud/data
data in SD           yes
data filesystem      aufs
data disk usage      341G/344G
rootfs usage         341G/344G
swapfile             /dev/zram3
dbdir                /var/lib/mysql
Nextcloud check      error
HTTPD service        up
PHP service          up
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               4:29

Nextcloud configuration

An unhandled exception has been thrown:
Doctrine\DBAL\DBALException: Failed to connect to the database: An exception occured in driver: SQLSTATE[HY000] [2002] No such file or directory in /var/www/nextcloud/lib/private/DB/Connection.php:64
Stack trace:
#0 /var/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(429): OC\DB\Connection->connect()
#1 /var/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(389): Doctrine\DBAL\Connection->getDatabasePlatformVersion()
#2 /var/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(328): Doctrine\DBAL\Connection->detectDatabasePlatform()
#3 /var/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(623): Doctrine\DBAL\Connection->getDatabasePlatform()
#4 /var/www/nextcloud/lib/private/DB/Connection.php(151): Doctrine\DBAL\Connection->setTransactionIsolation(2)
#5 /var/www/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/DriverManager.php(172): OC\DB\Connection->__construct(Array, Object(Doctrine\DBAL\Driver\PDOMySql\Driver), Object(Doctrine\DBAL\Configuration), Object(Doctrine\Common\EventManager))
#6 /var/www/nextcloud/lib/private/DB/ConnectionFactory.php(152): Doctrine\DBAL\DriverManager::getConnection(Array, Object(Doctrine\DBAL\Configuration), Object(Doctrine\Common\EventManager))
#7 /var/www/nextcloud/lib/private/Server.php(628): OC\DB\ConnectionFactory->getConnection('mysql', Array)
#8 /var/www/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php(113): OC\Server->OC\{closure}(Object(OC\Server))
#9 /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(116): Pimple\Container->offsetGet('OCP\\IDBConnecti...')
#10 /var/www/nextcloud/lib/private/ServerContainer.php(132): OC\AppFramework\Utility\SimpleContainer->query('OCP\\IDBConnecti...')
#11 /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(164): OC\ServerContainer->query('OCP\\IDBConnecti...')
#12 /var/www/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php(109): OC\AppFramework\Utility\SimpleContainer->OC\AppFramework\Utility\{closure}(Object(OC\Server))
#13 /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(116): Pimple\Container->offsetGet('DatabaseConnect...')
#14 /var/www/nextcloud/lib/private/ServerContainer.php(132): OC\AppFramework\Utility\SimpleContainer->query('DatabaseConnect...')
#15 /var/www/nextcloud/lib/private/Server.php(1511): OC\ServerContainer->query('DatabaseConnect...')
#16 /var/www/nextcloud/lib/private/Server.php(332): OC\Server->getDatabaseConnection()
#17 /var/www/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php(113): OC\Server->OC\{closure}(Object(OC\Server))
#18 /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(116): Pimple\Container->offsetGet('OC\\Authenticati...')
#19 /var/www/nextcloud/lib/private/ServerContainer.php(132): OC\AppFramework\Utility\SimpleContainer->query('OC\\Authenticati...')
#20 /var/www/nextcloud/lib/private/Server.php(336): OC\ServerContainer->query('OC\\Authenticati...')
#21 /var/www/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php(113): OC\Server->OC\{closure}(Object(OC\Server))
#22 /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(116): Pimple\Container->offsetGet('OC\\Authenticati...')
#23 /var/www/nextcloud/lib/private/ServerContainer.php(132): OC\AppFramework\Utility\SimpleContainer->query('OC\\Authenticati...')
#24 /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(164): OC\ServerContainer->query('OC\\Authenticati...')
#25 /var/www/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php(109): OC\AppFramework\Utility\SimpleContainer->OC\AppFramework\Utility\{closure}(Object(OC\Server))
#26 /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(116): Pimple\Container->offsetGet('OC\\Authenticati...')
#27 /var/www/nextcloud/lib/private/ServerContainer.php(132): OC\AppFramework\Utility\SimpleContainer->query('OC\\Authenticati...')
#28 /var/www/nextcloud/lib/private/Server.php(352): OC\ServerContainer->query('OC\\Authenticati...')
#29 /var/www/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php(113): OC\Server->OC\{closure}(Object(OC\Server))
#30 /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(116): Pimple\Container->offsetGet('OCP\\IUserSessio...')
#31 /var/www/nextcloud/lib/private/ServerContainer.php(132): OC\AppFramework\Utility\SimpleContainer->query('OCP\\IUserSessio...')
#32 /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(164): OC\ServerContainer->query('OCP\\IUserSessio...')
#33 /var/www/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php(109): OC\AppFramework\Utility\SimpleContainer->OC\AppFramework\Utility\{closure}(Object(OC\Server))
#34 /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(116): Pimple\Container->offsetGet('UserSession')
#35 /var/www/nextcloud/lib/private/ServerContainer.php(132): OC\AppFramework\Utility\SimpleContainer->query('UserSession')
#36 /var/www/nextcloud/lib/private/Server.php(1387): OC\ServerContainer->query('UserSession')
#37 /var/www/nextcloud/lib/private/Server.php(1020): OC\Server->getSession()
#38 /var/www/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php(113): OC\Server->OC\{closure}(Object(OC\Server))
#39 /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(116): Pimple\Container->offsetGet('OC\\Security\\CSR...')
#40 /var/www/nextcloud/lib/private/ServerContainer.php(132): OC\AppFramework\Utility\SimpleContainer->query('OC\\Security\\CSR...')
#41 /var/www/nextcloud/lib/private/Server.php(1016): OC\ServerContainer->query('OC\\Security\\CSR...')
#42 /var/www/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php(113): OC\Server->OC\{closure}(Object(OC\Server))
#43 /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(116): Pimple\Container->offsetGet('CsrfTokenManage...')
#44 /var/www/nextcloud/lib/private/ServerContainer.php(132): OC\AppFramework\Utility\SimpleContainer->query('CsrfTokenManage...')
#45 /var/www/nextcloud/lib/private/Server.php(1859): OC\ServerContainer->query('CsrfTokenManage...')
#46 /var/www/nextcloud/lib/private/Server.php(820): OC\Server->getCsrfTokenManager()
#47 /var/www/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php(113): OC\Server->OC\{closure}(Object(OC\Server))
#48 /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(116): Pimple\Container->offsetGet('OCP\\IRequest')
#49 /var/www/nextcloud/lib/private/ServerContainer.php(132): OC\AppFramework\Utility\SimpleContainer->query('OCP\\IRequest')
#50 /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(164): OC\ServerContainer->query('OCP\\IRequest')
#51 /var/www/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php(109): OC\AppFramework\Utility\SimpleContainer->OC\AppFramework\Utility\{closure}(Object(OC\Server))
#52 /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(116): Pimple\Container->offsetGet('Request')
#53 /var/www/nextcloud/lib/private/ServerContainer.php(132): OC\AppFramework\Utility\SimpleContainer->query('Request')
#54 /var/www/nextcloud/lib/private/Server.php(1254): OC\ServerContainer->query('Request')
#55 /var/www/nextcloud/lib/private/Server.php(452): OC\Server->getRequest()
#56 /var/www/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php(113): OC\Server->OC\{closure}(Object(OC\Server))
#57 /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(116): Pimple\Container->offsetGet('OCP\\L10N\\IFacto...')
#58 /var/www/nextcloud/lib/private/ServerContainer.php(132): OC\AppFramework\Utility\SimpleContainer->query('OCP\\L10N\\IFacto...')
#59 /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(164): OC\ServerContainer->query('OCP\\L10N\\IFacto...')
#60 /var/www/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php(109): OC\AppFramework\Utility\SimpleContainer->OC\AppFramework\Utility\{closure}(Object(OC\Server))
#61 /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(116): Pimple\Container->offsetGet('L10NFactory')
#62 /var/www/nextcloud/lib/private/ServerContainer.php(132): OC\AppFramework\Utility\SimpleContainer->query('L10NFactory')
#63 /var/www/nextcloud/lib/private/Server.php(1440): OC\ServerContainer->query('L10NFactory')
#64 /var/www/nextcloud/lib/private/Server.php(1451): OC\Server->getL10NFactory()
#65 /var/www/nextcloud/lib/base.php(228): OC\Server->getL10N('lib')
#66 /var/www/nextcloud/lib/base.php(667): OC::checkConfig()
#67 /var/www/nextcloud/lib/base.php(1081): OC::init()
#68 /var/www/nextcloud/console.php(46): require_once('/var/www/nextcl...')
#69 /var/www/nextcloud/occ(11): require_once('/var/www/nextcl...')
#70 {main}
HTTPd logs

[Sun Oct 14 09:19:41.860889 2018] [log_config:warn] [pid 26390:tid 1581241392] (28)No space left on device: [client 121.42.144.51:19330] AH00646: Error writing to /var/log/apache2/other_vhosts_access.log
[Sun Oct 14 09:19:42.210154 2018] [log_config:warn] [pid 26390:tid 1572844592] (28)No space left on device: [client 121.42.144.51:19403] AH00646: Error writing to /var/log/apache2/other_vhosts_access.log
[Sun Oct 14 09:19:42.560263 2018] [log_config:warn] [pid 26391:tid 1472082992] (28)No space left on device: [client 121.42.144.51:19469] AH00646: Error writing to /var/log/apache2/other_vhosts_access.log
[Sun Oct 14 09:19:42.905767 2018] [log_config:warn] [pid 26390:tid 1564447792] (28)No space left on device: [client 121.42.144.51:19534] AH00646: Error writing to /var/log/apache2/other_vhosts_access.log
[Sun Oct 14 09:19:43.257288 2018] [log_config:warn] [pid 26390:tid 1639969840] (28)No space left on device: [client 121.42.144.51:19595] AH00646: Error writing to /var/log/apache2/other_vhosts_access.log
[Sun Oct 14 09:19:43.603752 2018] [log_config:warn] [pid 26391:tid 1463686192] (28)No space left on device: [client 121.42.144.51:19648] AH00646: Error writing to /var/log/apache2/other_vhosts_access.log
[Sun Oct 14 09:35:49.065829 2018] [log_config:warn] [pid 26390:tid 1547654192] (28)No space left on device: [client 71.6.202.198:38034] AH00646: Error writing to /var/log/apache2/other_vhosts_access.log
[Sun Oct 14 09:51:07.712890 2018] [log_config:warn] [pid 26391:tid 1556050992] (28)No space left on device: [client 89.0.105.182:38634] AH00646: Error writing to /var/lo[Sun Oct 14 12:22:43.034793 2018] [mpm_event:notice] [pid 1109:tid 1992003584] AH00491: caught SIGTERM, shutting down
[Sun Oct 14 12:52:56.661468 2018] [ssl:warn] [pid 756:tid 1992515584] AH01909: localhost:4443:0 server certificate does NOT include an ID which matches the server name
[Sun Oct 14 12:52:57.092339 2018] [ssl:warn] [pid 1080:tid 1992515584] AH01909: localhost:4443:0 server certificate does NOT include an ID which matches the server name
[Sun Oct 14 12:52:58.005269 2018] [mpm_event:notice] [pid 1080:tid 1992515584] AH00489: Apache/2.4.25 (Raspbian) OpenSSL/1.0.2l configured -- resuming normal operations
[Sun Oct 14 12:52:58.005537 2018] [core:notice] [pid 1080:tid 1992515584] AH00094: Command line: '/usr/sbin/apache2'
[Sun Oct 14 13:08:15.817079 2018] [log_config:warn] [pid 1091:tid 1614804016] (28)No space left on device: [client 93.206.180.244:43698] AH00646: Error writing to /var/log/apache2/other_vhosts_access.log
[Sun Oct 14 13:30:21.041220 2018] [log_config:warn] [pid 1092:tid 1648358448] (28)No space left on device: [client 138.118.84.229:55016] AH00646: Error writing to /var/log/apache2/other_vhosts_access.log
[Sun Oct 14 14:06:15.675816 2018] [log_config:warn] [pid 1091:tid 1639969840] (28)No space left on device: [client 191.113.70.61:41243] AH00646: Error writing to /var/log/apache2/other_vhosts_access.log
[Sun Oct 14 14:06:15.762191 2018] [log_config:warn] [pid 1091:tid 1564472368] (28)No space left on device: [client 191.113.70.61:41244] AH00646: Error writing to /var/log/apache2/other_vhosts_access.log
[Sun Oct 14 14:17:26.464098 2018] [log_config:warn] [pid 1091:tid 1539306544] (28)No space left on device: [client 41.38.40.26:49420] AH00646: Error writing to /var/log/apache2/other_vhosts_access.log
[Sun Oct 14 14:18:34.817309 2018] [log_config:warn] [pid 1092:tid 1606415408] (28)No space left on device: [client 186.208.27.210:13439] AH00646: Error writing to /var/log/apache2/other_vhosts_access.log
[Sun Oct 14 14:51:45.367448 2018] [log_config:warn] [pid 1091:tid 1648358448] (28)No space left on device: [client 117.111.6.199:21200] AH00646: Error writing to /var/log/apache2/other_vhosts_access.log
[Sun Oct 14 16:22:12.767241 2018] [log_config:warn] [pid 1092:tid 1589638192] (28)No space left on device: [client 62.31.89.89:35465] AH00646: Error writing to /var/log/apache2/other_vhosts_access.log

Database logs


Nextcloud logs

{"reqId":"xk4Xeo2Le2xD8IXcOMiM","level":3,"time":"2018-10-09T15:15:02+00:00","remoteAddr":"","user":"--","app":"cron","method":"--","url":"--","message":"Exception: {\"Exception\":\"Exception\",\"Message\":\"Not installed\",\"Code\":0,\"Trace\":\"#0 \\\/var\\\/www\\\/nextcloud\\\/lib\\\/base.php(668): OC::checkInstalled()\\n#1 \\\/var\\\/www\\\/nextcloud\\\/lib\\\/base.php(1081): OC::init()\\n#2 \\\/var\\\/www\\\/nextcloud\\\/cron.php(41): require_once('\\\/var\\\/www\\\/nextcl...')\\n#3 {main}\",\"File\":\"\\\/var\\\/www\\\/nextcloud\\\/lib\\\/base.php\",\"Line\":266}","userAgent":"--","version":""}
{"reqId":"jbGiWH6XqUpGwAqbvLDE","level":3,"time":"2018-10-09T15:30:02+00:00","remoteAddr":"","user":"--","app":"cron","method":"--","url":"--","message":"Exception: {\"Exception\":\"Exception\",\"Message\":\"Not installed\",\"Code\":0,\"Trace\":\"#0 \\\/var\\\/www\\\/nextcloud\\\/lib\\\/base.php(668): OC::checkInstalled()\\n#1 \\\/var\\\/www\\\/nextcloud\\\/lib\\\/base.php(1081): OC::init()\\n#2 \\\/var\\\/www\\\/nextcloud\\\/cron.php(41): require_once('\\\/var\\\/www\\\/nextcl...')\\n#3 {main}\",\"File\":\"\\\/var\\\/www\\\/nextcloud\\\/lib\\\/base.php\",\"Line\":266}","userAgent":"--","version":""}
{"reqId":"rTIiTo09UTNSGeHAISYn","level":3,"time":"2018-10-09T21:27:05+00:00","remoteAddr":"","user":"--","app":"PHP","method":"--","url":"--","message":"file_get_contents(\/var\/www\/nextcloud\/data\/admin\/files\/var\/www\/nextcloud\/data\/admin\/files\/Laptop\/Handy\/giphy.gif): failed to open stream: No such file or directory at \/var\/www\/nextcloud\/lib\/private\/Files\/Storage\/Local.php#214","userAgent":"--","version":"13.0.6.1"}
{"reqId":"rTIiTo09UTNSGeHAISYn","level":3,"time":"2018-10-09T21:27:05+00:00","remoteAddr":"","user":"--","app":"PHP","method":"--","url":"--","message":"imagecreatefromstring(): Empty string or invalid image at \/var\/www\/nextcloud\/lib\/private\/legacy\/image.php#634","userAgent":"--","version":"13.0.6.1"}
{"reqId":"W71KXn8AAQEAADnNE-UAAACT","level":2,"time":"2018-10-10T00:39:58+00:00","remoteAddr":"198.108.66.176","user":"--","app":"core","method":"GET","url":"\/","message":"Trusted domain error. \"198.108.66.176\" tried to access using \"77.12.171.194\" as host.","userAgent":"Mozilla\/5.0 zgrab\/0.x","version":"13.0.6.1"}
{"reqId":"W71MFn8AAQEAADnNE-gAAACQ","level":2,"time":"2018-10-10T00:47:18+00:00","remoteAddr":"107.170.203.225","user":"--","app":"core","method":"GET","url":"\/","message":"Trusted domain error. \"107.170.203.225\" tried to access using \"77.12.171.194\" as host.","userAgent":"Mozilla\/5.0 zgrab\/0.x","version":"13.0.6.1"}
{"reqId":"W71aUH8AAQEAADnOLEQAAADO","level":2,"time":"2018-10-10T01:48:00+00:00","remoteAddr":"60.191.38.77","user":"--","app":"core","method":"GET","url":"\/","message":"Trusted domain error. \"60.191.38.77\" tried to access using \"77.12.171.194\" as host.","userAgent":"Mozilla\/5.0 (Macintosh; Intel Mac OS X 10.11; rv:47.0) Gecko\/20100101 Firefox\/47.0","version":"13.0.6.1"}
{"reqId":"W71vW38AAQEAADnNFA8AAACQ","level":2,"time":"2018-10-10T03:17:47+00:00","remoteAddr":"87.251.81.82","user":"--","app":"core","method":"GET","url":"\/admin\/assets\/js\/views\/login.js","message":"Trusted domain error. \"87.251.81.82\" tried to access using \"77.176.195.22\" as host.","userAgent":"python-requests\/2.19.1","version":"13.0.6.1"}
{"reqId":"W71wAX8AAQEAADnOLGQAAADS","level":2,"time":"2018-10-10T03:20:33+00:00","remoteAddr":"87.251.81.82","user":"--","app":"core","method":"GET","url":"\/admin\/assets\/js\/views\/login.js","message":"Trusted domain error. \"87.251.81.82\" tried to access using \"77.176.195.22\" as host.","userAgent":"python-requests\/2.19.1","version":"13.0.6.1"}
{"reqId":"W72Sg38AAQEAADnNFCEAAACR","level":2,"time":"2018-10-10T05:47:48+00:00","remoteAddr":"60.191.38.77","user":"--","app":"core","method":"GET","url":"\/","message":"Trusted domain error. \"60.191.38.77\" tried to access using \"77.176.195.22\" as host.","userAgent":"Mozilla\/5.0 (Macintosh; Intel Mac OS X 10.11; rv:47.0) Gecko\/20100101 Firefox\/47.0","version":"13.0.6.1"}
{"reqId":"W72YU38AAQEAADnOLIkAAADJ","level":2,"time":"2018-10-10T06:12:35+00:00","remoteAddr":"123.186.219.70","user":"--","app":"core","method":"GET","url":"\/","message":"Trusted domain error. \"123.186.219.70\" tried to access using \"77.176.195.22\" as host.","userAgent":"Mozilla\/5.0 (Windows NT 6.1) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/38.0.2125.122 Safari\/537.36 SE 2.X MetaSr 1.0","version":"13.0.6.1"}
{"reqId":"W72YVX8AAQEAADnOLIoAAADN","level":2,"time":"2018-10-10T06:12:37+00:00","remoteAddr":"23.239.119.5","user":"--","app":"core","method":"GET","url":"\/","message":"Trusted domain error. \"23.239.119.5\" tried to access using \"77.176.195.22\" as host.","userAgent":"Mozilla\/5.0 (Windows NT 6.1) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/38.0.2125.122 Safari\/537.36 SE 2.X MetaSr 1.0","version":"13.0.6.1"}
{"reqId":"rTIiTo09UTNSGeHAISYn","level":3,"time":"2018-10-11T05:38:11+00:00","remoteAddr":"","user":"--","app":"PHP","method":"--","url":"--","message":"file_get_contents(\/var\/www\/nextcloud\/data\/admin\/files\/var\/www\/nextcloud\/data\/admin\/files\/Laptop\/SofortUpload\/Camera\/SAVE_20180619_121700.gif): failed to open stream: No such file or directory at \/var\/www\/nextcloud\/lib\/private\/Files\/Storage\/Local.php#214","userAgent":"--","version":"13.0.6.1"}
{"reqId":"rTIiTo09UTNSGeHAISYn","level":3,"time":"2018-10-11T05:38:11+00:00","remoteAddr":"","user":"--","app":"PHP","method":"--","url":"--","message":"imagecreatefromstring(): Empty string or invalid image at \/var\/www\/nextcloud\/lib\/private\/legacy\/image.php#634","userAgent":"--","version":"13.0.6.1"}
{"reqId":"rTIiTo09UTNSGeHAISYn","level":3,"time":"2018-10-11T14:03:34+00:00","remoteAddr":"","user":"--","app":"PHP","method":"--","url":"--","message":"file_get_contents(\/var\/www\/nextcloud\/data\/admin\/files\/var\/www\/nextcloud\/data\/admin\/files\/Laptop\/Unterwegs\/weiter.jpg): failed to open stream: No such file or directory at \/var\/www\/nextcloud\/lib\/private\/Files\/Storage\/Local.php#214","userAgent":"--","version":"13.0.6.1"}
{"reqId":"rTIiTo09UTNSGeHAISYn","level":3,"time":"2018-10-11T14:03:34+00:00","remoteAddr":"","user":"--","app":"PHP","method":"--","url":"--","message":"imagecreatefromstring(): Empty string or invalid image at \/var\/www\/nextcloud\/lib\/private\/legacy\/image.php#634","userAgent":"--","version":"13.0.6.1"}
{"reqId":"rTIiTo09UTNSGeHAISYn","level":3,"time":"2018-10-12T07:31:19+00:00","remoteAddr":"","user":"--","app":"PHP","method":"--","url":"--","message":"file_put_contents(): Only 0 of 7326 bytes written, possibly out of free disk space at \/var\/www\/nextcloud\/lib\/private\/Files\/Storage\/Local.php#218","userAgent":"--","version":"13.0.6.1"}
{"reqId":"rTIiTo09UTNSGeHAISYn","level":3,"time":"2018-10-12T07:31:26+00:00","remoteAddr":"","user":"--","app":"PHP","method":"--","url":"--","message":"file_put_contents(): Only 0 of 1396 bytes written, possibly out of free disk space at \/var\/www\/nextcloud\/lib\/private\/Files\/Storage\/Local.php#218","userAgent":"--","version":"13.0.6.1"}
{"reqId":"rTIiTo09UTNSGeHAISYn","level":3,"time":"2018-10-12T07:31:32+00:00","remoteAddr":"","user":"--","app":"PHP","method":"--","url":"--","message":"file_put_contents(): Only 0 of 1660 bytes written, possibly out of free disk space at \/var\/www\/nextcloud\/lib\/private\/Files\/Storage\/Local.php#218","userAgent":"--","version":"13.0.6.1"}
{"reqId":"rTIiTo09UTNSGeHAISYn","level":3,"time":"2018-10-12T07:31:37+00:0

Any idea, how to fix this?

Nope Sorry

You need to free up more space. You should be able to delete the previews, it doesnā€™t make sense that it fails.

1 Like

This time deleting the preview folder worked. I found new huge backup files so I disabled auto-backup for now because it is taking up too much space.
Now the cloud is up and running again (after restarting the database and exiting maintenance mode, as explained in the other thread).
I donā€™t know if the preview generation or the backup generation killed my cloud. I think I will not use either of those features in the future because to me they seem too dangerous to use. I will have to stick to manual backups. I would be good if both features would make sure, that there is at least 10% of the space left for normal usage of the cloud I think. This cannibalization process is hard to understand.
Thank you for all your help @nachoparker though. I hope my cloud now runs a bit more stable!

the backups feature does check that there is enough room, but it would be good to tweak it a bit to avoid this in the future.

I created this after our last conversation

1 Like