Support intro
Sorry to hear you’re facing problems
help.nextcloud.com is for home/non-enterprise users. If you’re running a business, paid support can be accessed via portal.nextcloud.com where we can ensure your business keeps running smoothly.
In order to help you as quickly as possible, before clicking Create Topic please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:
example
Or for longer, use three backticks above and below the code snippet:
longer
example
here
Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can
Nextcloud version (eg, 20.0.5): 21.0.9.1
Operating system and version (eg, Ubuntu 20.04): Debian 10 (buster) / Raspbian (32bit)
Apache or nginx version (eg, Apache 2.4.25): Apache 2.4.38-3
PHP version (eg, 7.4): PHP 8.0.16-1
The issue you are facing:
Is this the first time you’ve seen this error? (Y/N): Y
Steps to replicate it:
-
Rename config.php to test1234
-
Wait until the background cron.php job runs once again or trigger it manually (it will crash):
root@germanicus:/var/www/nextcloud/config# sudo -u www-data php -f /var/www/nextcloud/cron.php --define apc.enable_cli=1
Exception: Not installed in /var/www/nextcloud/lib/base.php:276
Stack trace:
#0 /var/www/nextcloud/lib/base.php(643): OC::checkInstalled()
#1 /var/www/nextcloud/lib/base.php(1076): OC::init()
#2 /var/www/nextcloud/cron.php(43): require_once(’…’)
#3 {main} -
Browse to https://int.ern.al.ip from nextcloud
-
Error message appears: It looks like you are trying to reinstall Nextcloud. CAN_INSTALL file is missing to proceed
-
Rename test1234 to config.php once again
-
Error message persists
-
Reboot does not fix the issue
The output of your Nextcloud log in Admin > Logging:
Too much output to paste here, can check it later
The output of your config.php file in /path/to/nextcloud
(make sure you remove any identifiable information!):
<?php
$CONFIG = array (
'instanceid' => 'oceru6sviz2u',
'passwordsalt' => 'xxx',
'secret' => 'xxx',
'trusted_domains' =>
array (
0 => 'localhost',
1 => '192.168.200.4',
2 => 'foo.ddns.net',
),
'datadirectory' => '/opt/nextcloud/DATA',
'tempdirectory' => '/opt/nextcloud/DATA/TEMP_UPLOAD',
'dbtype' => 'mysql',
'version' => '21.0.9.1',
'overwrite.cli.url' => 'https://foo.ddns.net',
'overwriteprotocol' => 'https',
'dbname' => 'nextcloud',
'dbhost' => 'localhost',
'dbport' => '',
'dbtableprefix' => 'oc_',
'mysql.utf8mb4' => true,
'dbuser' => 'xxx',
'dbpassword' => 'xxx',
'installed' => 'true',
'maintenance' => false,
'ldapIgnoreNamingRules' => 'false',
'ldapProviderFactory' => 'OCA\\User_LDAP\\LDAPProviderFactory',
'theme' => '',
'loglevel' => 3,
'log_type' => 'file',
'logfile' => '/opt/nextcloud/DATA/nextcloud.log',
'default_phone_region' => 'DE',
'memcache.local' => '\\OC\\Memcache\\APCu',
'memcache.distributed' => '\\OC\\Memcache\\Redis',
'memcache.locking' => '\\OC\\Memcache\\Redis',
'redis' =>
array (
'host' => '/var/run/redis/redis.sock',
'port' => '0',
'timeout' => '0.0',
'password' => 'xxx',
),
'preview_max_x' => '2048',
'preview_max_y' => '2048',
'jpeg_quality' => '60',
'data-fingerprint' => 'xxx',
'defaultapp' => 'spreed,files',
'default_language' => 'de',
);
The output of your Apache/nginx/system log in /var/log/____
:
No logs related to this issue
How can I rewind this?
I checked the config.php file - the installed = true parameter is still there
there is also no CAN_INSTALL file in my config/config.php
There is also no other config.php on my system available
When you asked me why I did this:
I did it, because I had errors in webui admin overview regarding missing “default_phone_region” and missing memory caching, although the config.php delivers these information.
It did also not accept the settings when I manually tried to configure these “missing” information over command line.
For example, this did not change anything on nextcloud’s behaviour:
root@germanicus:/var/www/nextcloud# sudo -u www-data php occ config:system:set default_phone_region --value=“DE”
System config value default_phone_region set to string DE
root@germanicus:/var/www/nextcloud#
I thought this step is helpful for the nextcloud to finally recognize the specific settings.
The manual launch of cron.php is still working without any issue and error and I thought it should fix the status back to “normal”
The permissions for www-data on config.php is also good (640):
root@germanicus:/var/www/nextcloud# ls -lah config/config.php
-rw-r----- 1 www-data www-data 1,6K Feb 24 16:28 config/config.php
root@germanicus:/var/www/nextcloud#
What else needs to be done to make the nextcloud understand that it is installed?
Many thanks for any kind of help!