I have problem with logging, which previously worked in NC 13.
[/details]
Nextcloud version: 14.0.3
Operating system and version: CentOS Linux release 7.5.1804 (Core)
Apache or nginx version: httpd-2.4.6-80.el7.centos.1.x86_64
PHP version: PHP 7.2.11 (cli)
Issue:
When I open log reader, with debug logs enabled (set in config.php - ‘loglevel’ => ‘0’,) I constantly see logs like this example:
“No cache entry found for /appdata_/theming/images/background (storage: local::/data/ncdata/, internalPath: appdata_/theming/images/background)”
Problem is that now in debug logs I can not see when file is created, shared, changed or deleted. This worked in NC 13 and it showed information regarding file creation, modification, including user that did this. After upgrade to NC 14 and installation of php-intl package (i received error when this is not installed), for every file creation, modification and share I now receive logs like in example above.
This is the first time I see this error, but I cannot manage to resolve it
Steps to replicate it:
- Enable debug loging (in config.php file add line ‘loglevel’ => 0,)
- Enable Auditing and Loging app and log reader app on nextcloud web
- Open nextcloud as admin, go to settings, log reader and observe logs when you create, modify or share files.
- Instead of expected information for these actions, I receive “No cache entry found for /appdata_…”
The output of my Nextcloud log in Admin > Logging:
|Debug|share|Share notification not send to test01 because email address is not set.|a few seconds ago|
| --- | --- | --- | --- |
|Debug|no app in context|No cache entry found for /appdata_ocw609gm308p/avatar/test01/avatar.jpg (storage: local::/data/ncdata/, internalPath: appdata_ocw609gm308p/avatar/test01/avatar.jpg)|a few seconds ago|
|Debug|no app in context|No cache entry found for /appdata_ocw609gm308p/theming/images/background (storage: local::/data/ncdata/, internalPath: appdata_ocw609gm308p/theming/images/background)|a few seconds ago|
|Debug|no app in context|No cache entry found for /appdata_ocw609gm308p/avatar/sokod/avatar.jpg (storage: local::/data/ncdata/, internalPath: appdata_ocw609gm308p/avatar/sokod/avatar.jpg)|a few seconds ago|
|Debug|no app in context|No cache entry found for /appdata_ocw609gm308p/theming/images/background (storage: local::/data/ncdata/, internalPath: appdata_ocw609gm308p/theming/images/background)|a minute ago|
|Debug|no app in context|No cache entry found for /appdata_ocw609gm308p/avatar/sokod/avatar.jpg (storage: local::/data/ncdata/, internalPath: appdata_ocw609gm308p/avatar/sokod/avatar.jpg)|a minute ago|
|Debug|no app in context|No cache entry found for /appdata_ocw609gm308p/theming/images/background (storage: local::/data/ncdata/, internalPath: appdata_ocw609gm308p/theming/images/background)|"
The output of my config.php file in /path/to/nextcloud
:
'instanceid' => 'xxx',
'passwordsalt' => 'xxx',
'secret' => 'xxx',
'trusted_domains' =>
array (
0 => 'xxx,
1 => 'xxx',
2 => 'xxx',
),
'datadirectory' => '/data/ncdata',
'dbtype' => 'mysql',
'version' => '14.0.3.0',
'dbname' => 'nextcloud',
'dbhost' => 'localhost',
'dbport' => '',
'dbtableprefix' => 'oc_',
'dbuser' => 'nextcloud',
'dbpassword' => 'xxx',
'installed' => true,
'ldapIgnoreNamingRules' => false,
'ldapProviderFactory' => 'OCA\\User_LDAP\\LDAPProviderFactory',
'proxy' => 'xxx:8080',
'memcache.local' => '\\OC\\Memcache\\APCu',
'memcache.locking' => '\\OC\\Memcache\\Redis',
'redis' =>
array (
'host' => 'localhost',
'port' => 6379,
'dbindex' => 0,
'password' => 'secret',
'timeout' => 1.5,
),
'session_lifetime' => 600,
'session_keepalive' => false,
'skeletondirectory' => '',
'overwrite.cli.url' => 'https://xxx/',
'htaccess.RewriteBase' => '/',
'updatechecker' => false,
'check_for_working_wellknown_setup' => false,
'mail_from_address' => 'cloud',
'mail_smtpmode' => 'smtp',
'mail_domain' => 'xxx',
'mail_smtphost' => 'xxx',
'mail_smtpport' => '25',
'mail_smtptimeout' => 30,
#'log_type' => 'syslog',
#'syslog_tag' => 'nextcloud',
#'logfile' => '/var/log/nextcloud',
'loglevel' => '0',