Nextcloud version : 12.0
Operating system and version : Raspbian Jessie
Apache or nginx version : Apache/2.4.10 (Raspbian)
PHP version (eg, 5.6): PHP Version 5.6.30-0+deb8u1
The issue you are facing:
It’s been two days that, out of nowhere, my nextcloud instalattion stopped working. If I try to access it on the web, the page is blank. My sync apps (android and windows) throw an “internal server error” message. I tried to look at the apache log file and, from what I understand, it’s a problem with permissions.
It have a lot of lines like that, just changing the time of the error at the beggining:
[Thu Dec 21 13:25:31.397924 2017] [:error] [pid 31073] [client 177.102.1.128:1024] PHP Fatal error: Uncaught exception ‘Doctrine\DBAL\DBALException’ with message ‘Failed to connect to the database: An exception occured in driver: SQLSTATE[HY000] [14] unable to open database file’ in /var/www/html/nextcloud/lib/private/DB/Connection.php:61\nStack trace:\n#0 /var/www/html/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(992): OC\DB\Connection->connect()\n#1 /var/www/html/nextcloud/lib/private/DB/Connection.php(213): Doctrine\DBAL\Connection->executeUpdate(‘PRAGMA read_unc…’, Array, Array)\n#2 /var/www/html/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(623): OC\DB\Connection->executeUpdate(‘PRAGMA read_unc…’)\n#3 /var/www/html/nextcloud/lib/private/DB/Connection.php(148): Doctrine\DBAL\Connection->setTransactionIsolation(2)\n#4 /var/www/html/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/DriverManager.php(172): OC\DB\Connection->__construct(Array, Object(Doctrine\DBAL\Driver\PDOSqlite\Driver), Object(Doctrine\DBAL\Configuration), Object(Doctrine\Common\EventManager))\n#5 / in /var/www/html/nextcloud/lib/private/DB/Connection.php on line 61
The output of your Nextcloud log in Admin > Logging:
Can’t access the web interface
The output of your config.php file in /path/to/nextcloud
(make sure you remove any identifiable information!):
<?php
$CONFIG = array (
'instanceid' => 'xxxxxxxxxxx',
'passwordsalt' => 'xxxxxxxxxxxxxxx',
'secret' => 'xxxxxx',
'trusted_domains' =>
array (
0 => 'myip',
1 => 'mydomain',
),
'datadirectory' => '/my/external/HD/nextcloud/data',
'overwrite.cli.url' => 'http://myip:8443/nextcloud',
'dbtype' => 'sqlite3',
'version' => '12.0.0.29',
'installed' => true,
'memcache.local' => '\\OC\\Memcache\\APCu',
'mail_smtpmode' => 'smtp',
'mail_smtpauthtype' => 'LOGIN',
'mail_smtpauth' => 1,
'mail_smtphost' => 'smtp.gmail.com',
'mail_smtpsecure' => 'ssl',
'mail_from_address' => 'myemail',
'mail_domain' => 'gmail.com',
'mail_smtpport' => '465',
'mail_smtpname' => 'myemail@gmail.com',
'mail_smtppassword' => 'xxxxx',
);
So, my main question is: what is wrong? I didn’t update anything, didn’t restart anything… I don’t understand how my install broke just like that… I’ve tried using chown and chmod 777 on all my nextcloud directory just to see if I managed to get something working again, but no use… I use the SQLite database, and dunno how to check if it is broken as the initial install is all automatic on that point. Never touched anything on that department.
Keep in mind I am not very familiar with linux file locations and all that. So if you ask me to check some file or anything like that, please point me on where is it too =D thanks in advance ^^