[details=“Support intro”]
Nextcloud version: 18,0,4,2
Operating system and version (eg, Ubuntu 20.04) : Linux
Apache or nginx version: Apache
PHP version: 7.4.30
The issue you are facing:
Access my nextcloud, this message appear “Your data directory is invalid Ensure there is a file called “.ocdata” in the root of the data directory.”
I try to access my nextcloud files using FTP , all my /data folder is empty Please help
Is this the first time you’ve seen this error? (Y/N): Y
Steps to replicate it:
- Access my nextcloud, this message appear “Your data directory is invalid Ensure there is a file called “.ocdata” in the root of the data directory.”
- Try to access my nextcloud android mobile application, this message appear “Server is in maintanance mode”
- I Try to access my /data folder using FTP, this folder is empty. All my data not there
The output of your Nextcloud log in Admin > Logging:
Cannot access to my nextcloud
The output of your config.php file in /path/to/nextcloud
(make sure you remove any identifiable information!):
<?php
$CONFIG = array (
'instanceid' => xxxxxx-remove-xxxxxx',
'passwordsalt' => xxxxxx-remove-xxxxxxx',
'secret' => 'xxxxxx-remove-xxxxxxxx',
'trusted_domains' =>
array (
0 => 'www.abc.com',
),
'datadirectory' => '/home/xxxx/yyyyyyyy/data',
'dbtype' => 'mysql',
'version' => '18.0.4.2',
'overwrite.cli.url' => 'http://www.abc.com',
'dbname' => '-remove-',
'dbhost' => '-remove-',
'dbport' => '',
'dbtableprefix' => 'oc_',
'mysql.utf8mb4' => true,
'dbuser' => '-remove-',
'dbpassword' => '-remove-',
'installed' => true,
'maintenance' => false,
);