Nextcloud version (eg, 18.0.2): 19.0.2
Operating system and version (eg, Ubuntu 20.04): Ubuntu 20.04.1 LTS \n \l
Apache or nginx version (eg, Apache 2.4.25): Server version: Apache/2.4.41 (Ubuntu)
PHP version (eg, 7.1): PHP 7.4.3 (cli) (built: May 26 2020 12:24:22) ( NTS )
The issue you are facing:
When I go to http://sturtz.ml I get:
Is this the first time you’ve seen this error? (Y/N): Y
Steps to replicate it:
- Install with the occ command
- goto website
The output of your Nextcloud log in Admin > Logging:
{"reqId":"fLut6i6Jnlh80SZIL6hB","level":3,"time":"2020-09-09T22:05:07+00:00","remoteAddr":"","user":"admin","app":"core","method":"","url":"--","message":"Following symlinks is not allowed ('/home/sturtz/public_html/data/admin/.' -> '/data/admin/' not inside '/home/sturtz/public_html/data/admin/')","userAgent":"--","version":"19.0.2.2"}
The output of your config.php file in /path/to/nextcloud
(make sure you remove any identifiable information!):
<?php
$CONFIG = array (
'passwordsalt' => '***',
'secret' => '***',
'trusted_domains' =>
array (
0 => 'sturtz.ml',
),
'datadirectory' => '***',
'dbtype' => 'mysql',
'version' => '19.0.2.2',
'overwrite.cli.url' => 'http://sturtz.ml',
'dbname' => '***',
'dbhost' => 'localhost',
'dbport' => '',
'dbtableprefix' => 'oc_',
'mysql.utf8mb4' => true,
'dbuser' => '***',
'dbpassword' => '***',
'installed' => true,
);
The output of your Apache/nginx/system log in /var/log/____
: Here is the last 10 lines
[Wed Sep 09 18:32:33.922946 2020] [fcgid:warn] [pid 106053] [client 2604:99c0:8:2f96:24bd:f193:3e04:80c0:62734] mod_fcgid: stderr: {"reqId":"rlN4Pu9MitiiidWpPGXp","level":3,"time":"2020-09-09T23:32:33+00:00","remoteAddr":"2604:99c0:8:2f96:24bd:f193:3e04:80c0","user":"--","app":"PHP","method":"GET","url":"/","message":"chmod(): Operation not permitted at /home/sturtz/public_html/lib/private/Config.php#246","userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:74.0) Gecko/20100101 Firefox/74.0","version":""}
[Wed Sep 09 18:32:33.922961 2020] [fcgid:warn] [pid 106053] [client 2604:99c0:8:2f96:24bd:f193:3e04:80c0:62734] mod_fcgid: stderr: {"reqId":"rlN4Pu9MitiiidWpPGXp","level":3,"time":"2020-09-09T23:32:33+00:00","remoteAddr":"2604:99c0:8:2f96:24bd:f193:3e04:80c0","user":"--","app":"index","method":"GET","url":"/","message":{"Exception":"OC\\\\HintException","Message":"Can't write into config directory!","Code":0,"Trace":[{"file":"/home/sturtz/public_html/lib/private/Config.php","line":134,"function":"writeData","class":"OC\\\\Config","type":"->"},{"file":"/home/sturtz/public_html/lib/private/SystemConfig.php","line":111,"function":"setValue","class":"OC\\\\Config","type":"->"},{"file":"/home/sturtz/public_html/lib/private/legacy/OC_Util.php","line":1146,"function":"setValue","class":"OC\\\\SystemConfig","type":"->"},{"file":"/home/sturtz/public_html/lib/base.php","line":420,"function":"getInstanceId","class":"OC_Util","type":"::"},{"file":"/home/sturtz/public_html/lib/base.php","line":650,"function":"initSession","class":"OC","type":"::"},{"file":"/home/sturtz/public_html/lib/base.php","line":1095,"function":"init","class":"OC","type":"::"},{"file":"/home/sturtz/public_html/index.php","line":35,"args":["/home/sturtz/public_html/lib/base.php"],"function":"require_once"}],"File":"/home/sturtz/public_html/lib/private/Config.php","Line":250,"Hint":"This can usually be fixed by giving the webserver write access to the config directory.","CustomMessage":"--"},"userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:74.0) Gecko/20100101 Firefox/74.0","version":""}
[Wed Sep 09 18:32:33.922985 2020] [fcgid:warn] [pid 106053] [client 2604:99c0:8:2f96:24bd:f193:3e04:80c0:62734] mod_fcgid: stderr: {"reqId":"rlN4Pu9MitiiidWpPGXp","level":3,"time":"2020-09-09T23:32:33+00:00","remoteAddr":"2604:99c0:8:2f96:24bd:f193:3e04:80c0","user":"--","app":"index","method":"GET","url":"/","message":{"Exception":"Doctrine\\\\DBAL\\\\DBALException","Message":"Failed to connect to the database: An exception occurred in driver: could not find driver","Code":0,"Trace":[{"file":"/home/sturtz/public_html/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php","line":889,"function":"connect","class":"OC\\\\DB\\\\Connection","type":"->"},{"file":"/home/sturtz/public_html/lib/private/DB/Connection.php","line":194,"function":"executeQuery","class":"Doctrine\\\\DBAL\\\\Connection","type":"->"},{"file":"/home/sturtz/public_html/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Query/QueryBuilder.php","line":200,"function":"executeQuery","class":"OC\\\\DB\\\\Connection","type":"->"},{"file":"/home/sturtz/public_html/lib/private/DB/QueryBuilder/QueryBuilder.php","line":216,"function":"execute","class":"Doctrine\\\\DBAL\\\\Query\\\\QueryBuilder","type":"->"},{"file":"/home/sturtz/public_html/lib/private/AppConfig.php","line":331,"function":"execute","class":"OC\\\\DB\\\\QueryBuilder\\\\QueryBuilder","type":"->"},{"file":"/home/sturtz/public_html/lib/private/AppConfig.php","line":109,"function":"loadConfigValues","class":"OC\\\\AppConfig","type":"->"},{"file":"/home/sturtz/public_html/lib/private/AppConfig.php","line":287,"function":"getApps","class":"OC\\\\AppConfig","type":"->"},{"file":"/home/sturtz/public_html/lib/private/App/AppManager.php","line":136,"function":"getValues","class":"OC\\\\AppConfig","type":"->"},{"file":"/home/sturtz/public_html/lib/private/App/AppManager.php","line":225,"function":"getInstalledAppsValues","class":"OC\\\\App\\\\AppManager","type":"->"},{"file":"/home/sturtz/public_html/lib/private/legacy/OC_Template.php","line":286,"function":"isEnabledForUser","class":"OC\\\\App\\\\AppManager","type":"->"},{"file":"/home/sturtz/public_html/index.php","line":45,"function":"printErrorPage","class":"OC_Template","type":"::"}],"File":"/home/sturtz/public_html/lib/private/DB/Connection.php","Line":67,"CustomMessage":"--"},"userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:74.0) Gecko/20100101 Firefox/74.0","version":""}
[Wed Sep 09 18:32:33.923034 2020] [fcgid:warn] [pid 106053] [client 2604:99c0:8:2f96:24bd:f193:3e04:80c0:62734] mod_fcgid: stderr: {"reqId":"rlN4Pu9MitiiidWpPGXp","level":3,"time":"2020-09-09T23:32:33+00:00","remoteAddr":"2604:99c0:8:2f96:24bd:f193:3e04:80c0","user":"--","app":"PHP","method":"GET","url":"/","message":"fopen(/home/sturtz/public_html/data/nextcloud.log): failed to open stream: Permission denied at /home/sturtz/public_html/lib/private/Log/File.php#84","userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:74.0) Gecko/20100101 Firefox/74.0","version":""}
[Wed Sep 09 18:33:53.680373 2020] [fcgid:warn] [pid 106051] [client 2604:99c0:8:2f96:24bd:f193:3e04:80c0:62786] mod_fcgid: stderr: {"reqId":"3DwsuGXBOcTyo0RI7EHN","level":3,"time":"2020-09-09T23:33:53+00:00","remoteAddr":"2604:99c0:8:2f96:24bd:f193:3e04:80c0","user":"--","app":"PHP","method":"GET","url":"/","message":"touch(): Utime failed: Permission denied at /home/sturtz/public_html/lib/private/Config.php#242","userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:74.0) Gecko/20100101 Firefox/74.0","version":""}
[Wed Sep 09 18:33:53.680416 2020] [fcgid:warn] [pid 106051] [client 2604:99c0:8:2f96:24bd:f193:3e04:80c0:62786] mod_fcgid: stderr: {"reqId":"3DwsuGXBOcTyo0RI7EHN","level":3,"time":"2020-09-09T23:33:53+00:00","remoteAddr":"2604:99c0:8:2f96:24bd:f193:3e04:80c0","user":"--","app":"PHP","method":"GET","url":"/","message":"fopen(/home/sturtz/public_html/config/config.php): failed to open stream: Permission denied at /home/sturtz/public_html/lib/private/Config.php#243","userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:74.0) Gecko/20100101 Firefox/74.0","version":""}
[Wed Sep 09 18:33:53.680430 2020] [fcgid:warn] [pid 106051] [client 2604:99c0:8:2f96:24bd:f193:3e04:80c0:62786] mod_fcgid: stderr: {"reqId":"3DwsuGXBOcTyo0RI7EHN","level":3,"time":"2020-09-09T23:33:53+00:00","remoteAddr":"2604:99c0:8:2f96:24bd:f193:3e04:80c0","user":"--","app":"PHP","method":"GET","url":"/","message":"chmod(): Operation not permitted at /home/sturtz/public_html/lib/private/Config.php#246","userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:74.0) Gecko/20100101 Firefox/74.0","version":""}
[Wed Sep 09 18:33:53.680444 2020] [fcgid:warn] [pid 106051] [client 2604:99c0:8:2f96:24bd:f193:3e04:80c0:62786] mod_fcgid: stderr: {"reqId":"3DwsuGXBOcTyo0RI7EHN","level":3,"time":"2020-09-09T23:33:53+00:00","remoteAddr":"2604:99c0:8:2f96:24bd:f193:3e04:80c0","user":"--","app":"index","method":"GET","url":"/","message":{"Exception":"OC\\\\HintException","Message":"Can't write into config directory!","Code":0,"Trace":[{"file":"/home/sturtz/public_html/lib/private/Config.php","line":134,"function":"writeData","class":"OC\\\\Config","type":"->"},{"file":"/home/sturtz/public_html/lib/private/SystemConfig.php","line":111,"function":"setValue","class":"OC\\\\Config","type":"->"},{"file":"/home/sturtz/public_html/lib/private/legacy/OC_Util.php","line":1146,"function":"setValue","class":"OC\\\\SystemConfig","type":"->"},{"file":"/home/sturtz/public_html/lib/base.php","line":420,"function":"getInstanceId","class":"OC_Util","type":"::"},{"file":"/home/sturtz/public_html/lib/base.php","line":650,"function":"initSession","class":"OC","type":"::"},{"file":"/home/sturtz/public_html/lib/base.php","line":1095,"function":"init","class":"OC","type":"::"},{"file":"/home/sturtz/public_html/index.php","line":35,"args":["/home/sturtz/public_html/lib/base.php"],"function":"require_once"}],"File":"/home/sturtz/public_html/lib/private/Config.php","Line":250,"Hint":"This can usually be fixed by giving the webserver write access to the config directory.","CustomMessage":"--"},"userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:74.0) Gecko/20100101 Firefox/74.0","version":""}
[Wed Sep 09 18:33:53.680485 2020] [fcgid:warn] [pid 106051] [client 2604:99c0:8:2f96:24bd:f193:3e04:80c0:62786] mod_fcgid: stderr: {"reqId":"3DwsuGXBOcTyo0RI7EHN","level":3,"time":"2020-09-09T23:33:53+00:00","remoteAddr":"2604:99c0:8:2f96:24bd:f193:3e04:80c0","user":"--","app":"index","method":"GET","url":"/","message":{"Exception":"Doctrine\\\\DBAL\\\\DBALException","Message":"Failed to connect to the database: An exception occurred in driver: could not find driver","Code":0,"Trace":[{"file":"/home/sturtz/public_html/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php","line":889,"function":"connect","class":"OC\\\\DB\\\\Connection","type":"->"},{"file":"/home/sturtz/public_html/lib/private/DB/Connection.php","line":194,"function":"executeQuery","class":"Doctrine\\\\DBAL\\\\Connection","type":"->"},{"file":"/home/sturtz/public_html/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Query/QueryBuilder.php","line":200,"function":"executeQuery","class":"OC\\\\DB\\\\Connection","type":"->"},{"file":"/home/sturtz/public_html/lib/private/DB/QueryBuilder/QueryBuilder.php","line":216,"function":"execute","class":"Doctrine\\\\DBAL\\\\Query\\\\QueryBuilder","type":"->"},{"file":"/home/sturtz/public_html/lib/private/AppConfig.php","line":331,"function":"execute","class":"OC\\\\DB\\\\QueryBuilder\\\\QueryBuilder","type":"->"},{"file":"/home/sturtz/public_html/lib/private/AppConfig.php","line":109,"function":"loadConfigValues","class":"OC\\\\AppConfig","type":"->"},{"file":"/home/sturtz/public_html/lib/private/AppConfig.php","line":287,"function":"getApps","class":"OC\\\\AppConfig","type":"->"},{"file":"/home/sturtz/public_html/lib/private/App/AppManager.php","line":136,"function":"getValues","class":"OC\\\\AppConfig","type":"->"},{"file":"/home/sturtz/public_html/lib/private/App/AppManager.php","line":225,"function":"getInstalledAppsValues","class":"OC\\\\App\\\\AppManager","type":"->"},{"file":"/home/sturtz/public_html/lib/private/legacy/OC_Template.php","line":286,"function":"isEnabledForUser","class":"OC\\\\App\\\\AppManager","type":"->"},{"file":"/home/sturtz/public_html/index.php","line":45,"function":"printErrorPage","class":"OC_Template","type":"::"}],"File":"/home/sturtz/public_html/lib/private/DB/Connection.php","Line":67,"CustomMessage":"--"},"userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:74.0) Gecko/20100101 Firefox/74.0","version":""}
[Wed Sep 09 18:33:53.680520 2020] [fcgid:warn] [pid 106051] [client 2604:99c0:8:2f96:24bd:f193:3e04:80c0:62786] mod_fcgid: stderr: {"reqId":"3DwsuGXBOcTyo0RI7EHN","level":3,"time":"2020-09-09T23:33:53+00:00","remoteAddr":"2604:99c0:8:2f96:24bd:f193:3e04:80c0","user":"--","app":"PHP","method":"GET","url":"/","message":"fopen(/home/sturtz/public_html/data/nextcloud.log): failed to open stream: Permission denied at /home/sturtz/public_html/lib/private/Log/File.php#84","userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:74.0) Gecko/20100101 Firefox/74.0","version":""}
I am using virtualmin on webmin, any help will be apreacted thank you!