Nextcloud version (eg, 20.0.5): 21.0.0
Operating system and version (eg, Ubuntu 20.04): Debian 10.8.0
Apache or nginx version (eg, Apache 2.4.25): nginx 1.19.7
PHP version (eg, 7.4): 7.4.15
The issue you are facing:
Ever since I upgraded my NC from 20.0.7 to 21.0.0, I’m getting the shown entry in nextcloud.log, everytime a user goes to the root of their files overview (e.g. https://cloud.example.com/apps/files/?dir=/&fileid=6). As the NC is frequently used, this spams my logfile.
Is this the first time you’ve seen this error? (Y/N): Y
Steps to replicate it:
- Login as any user
- click on the ‘files’ tab in the main menu bar.
The output of your Nextcloud log in Admin > Logging:
Warning no app in context Invalid data provided to provideInitialState by files
The output of your config.php file in /var/www/nextcloud/config
(make sure you remove any identifiable information!):
<?php
$CONFIG = array (
'instanceid' => 'XXXXXXXXXX',
'passwordsalt' => 'XXXXXXXXXXXXX',
'secret' => 'XXXXXXXXXXXXXXXX',
'trusted_domains' =>
array (
0 => 'cloud.example.com',
1 => '123.456.789.123',
),
'datadirectory' => '/var/nc_data',
'dbtype' => 'mysql',
'version' => '21.0.0.18',
'overwrite.cli.url' => 'https://cloud.example.com',
'dbname' => 'XXXXXXXXX',
'dbhost' => 'localhost:/var/run/mysqld/mysqld.sock',
'dbport' => '',
'dbtableprefix' => 'oc_',
'mysql.utf8mb4' => true,
'dbuser' => 'XXXXXXXX',
'dbpassword' => 'XXXXXXXXXXXXXX',
'installed' => true,
'activity_expire_days' => 14,
'auth.bruteforce.protection.enabled' => true,
'blacklisted_files' =>
array (
0 => '.htaccess',
1 => 'Thumbs.db',
2 => 'thumbs.db',
),
'cron_log' => true,
'default_phone_region' => 'DE',
'enable_previews' => true,
'enabledPreviewProviders' =>
array (
0 => 'OC\\Preview\\PNG',
1 => 'OC\\Preview\\JPEG',
2 => 'OC\\Preview\\GIF',
3 => 'OC\\Preview\\BMP',
4 => 'OC\\Preview\\XBitmap',
5 => 'OC\\Preview\\Movie',
6 => 'OC\\Preview\\PDF',
7 => 'OC\\Preview\\MP3',
8 => 'OC\\Preview\\TXT',
9 => 'OC\\Preview\\MarkDown',
10 => 'OC\\Preview\\Movie',
11 => 'OC\\Preview\\MSOffice2007',
12 => 'OC\\Preview\\MKV',
13 => 'OC\\Preview\\AVI',
14 => 'OC\\Preview\\OpenDocument',
15 => 'OC\\Preview\\MSOffice2003',
16 => 'OC\\Preview\\MSOfficeDoc',
17 => 'OC\\Preview\\Image',
18 => 'OC\\Preview\\Photoshop',
19 => 'OC\\Preview\\TIFF',
20 => 'OC\\Preview\\SVG',
21 => 'OC\\Preview\\Font',
),
'filesystem_check_changes' => 0,
'filelocking.enabled' => 'true',
'htaccess.RewriteBase' => '/',
'integrity.check.disabled' => false,
'knowledgebaseenabled' => false,
'logfile' => '/var/nc_data/nextcloud.log',
'loglevel' => 2,
'logtimezone' => 'Europe/Berlin',
'log_rotate_size' => 104857600,
'maintenance' => false,
'memcache.local' => '\\OC\\Memcache\\APCu',
'memcache.locking' => '\\OC\\Memcache\\Redis',
'overwriteprotocol' => 'https',
'overwritehost' => 'cloud.example.com',
'preview_max_x' => 1024,
'preview_max_y' => 768,
'preview_max_scale_factor' => 1,
'redis' =>
array (
'host' => '/var/run/redis/redis-server.sock',
'port' => 0,
'timeout' => 0.0,
),
'quota_include_external_storage' => false,
'share_folder' => '/Shares',
'skeletondirectory' => '',
'theme' => '',
'trashbin_retention_obligation' => 'auto, 7',
'updater.release.channel' => 'stable',
'mail_from_address' => 'nextcloud',
'mail_smtpmode' => 'smtp',
'mail_sendmailmode' => 'smtp',
'mail_domain' => 'example.com',
'mail_smtphost' => 'mail.example.com',
'mail_smtpport' => '587',
'mail_smtpsecure' => 'tls',
'mail_smtpauth' => 1,
'mail_smtpname' => 'nextcloud',
'mail_smtppassword' => 'XXXXXXXXXXX',
'onlyoffice' =>
array (
'verify_peer_off' => true,
),
'encryption.legacy_format_support' => false,
'encryption.key_storage_migrated' => false,
'defaultapp' => 'files',
'app_install_overwrite' =>
array (
0 => 'dashboardcharts',
1 => 'twofactor_webauthn',
2 => 'groupfolders',
3 => 'onlyoffice',
4 => 'ransomware_protection',
5 => 'talk_simple_poll',
6 => 'files_trackdownloads',
7 => 'bruteforcesettings',
8 => 'twofactor_admin',
),
'allow_local_remote_servers' => true,
'data-fingerprint' => 'XXXXXXXXXXXXXXXXXXXXXXXXX',
);
domain name substituted with ‘example.com’