When Nextcloud is configured with 'log_type' different from 'file', the admin overview page at /settings/admin/overview reports an error entry:
Failed to get an iterator for log entries: Logreader application only supports "file" log_type
This error message is spurious (it is not an error to configure a log type different from "file", it is even documented how to change it) and there is no way to dismiss tis error.
Steps to reproduce
Install Nextcloud
Install php-systemd
Change config.php to use 'log_type' different from 'file' (e.g. 'systemd')
Navigate to /settings/admin/overview
Expected behavior
No error displayed for a well-formed configuration, or a way is provided to dismiss the error.
Installation method
Other Community project
Nextcloud Server version
29
Operating system
Other
PHP engine version
PHP 8.2
Web server
Nginx
Database engine version
PostgreSQL
Is this bug present after an update or on a fresh install?
Upgraded to a MAJOR version (ex. 22 to 23)
Are you using the Nextcloud Server Encryption module?
{
"reqId": "JRnNtHM2H27SngBjersF",
"level": 1,
"time": "2024-05-26T22:46:50+00:00",
"remoteAddr": "5.178.246.174",
"user": "intelfx",
"app": "no app in context",
"method": "GET",
"url": "/settings/ajax/checksetup",
"message": "{\"Exception\":\"Symfony\\\\Component\\\\Routing\\\\Exception\\\\RouteNotFoundException\",\"Message\":\"Unable to generate a URL for the named route \\\"heartbeat\\\" as such route does not exist.\",\"Code\":0,\"Trace\":[{\"file\":\"/usr/share/webapps/nextcloud/lib/private/Route/Router.php\",\"line\":410,\"function\":\"generate\",\"class\":\"Symfony\\\\Component\\\\Routing\\\\Generator\\\\UrlGenerator\",\"type\":\"->\"},{\"file\":\"/usr/share/webapps/nextcloud/lib/private/Route/CachingRouter.php\",\"line\":65,\"function\":\"generate\",\"class\":\"OC\\\\Route\\\\Router\",\"type\":\"->\"},{\"file\":\"/usr/share/webapps/nextcloud/lib/private/URLGenerator.php\",\"line\":103,\"function\":\"generate\",\"class\":\"OC\\\\Route\\\\CachingRouter\",\"type\":\"->\"},{\"file\":\"/usr/share/webapps/nextcloud/apps/settings/lib/SetupChecks/SecurityHeaders.php\",\"line\":60,\"function\":\"linkToRoute\",\"class\":\"OC\\\\URLGenerator\",\"type\":\"->\"},{\"file\":\"/usr/share/webapps/nextcloud/lib/private/SetupCheck/SetupCheckManager.php\",\"line\":51,\"function\":\"run\",\"class\":\"OCA\\\\Settings\\\\SetupChecks\\\\SecurityHeaders\",\"type\":\"->\"},{\"file\":\"/usr/share/webapps/nextcloud/apps/settings/lib/Controller/CheckSetupController.php\",\"line\":179,\"function\":\"runAll\",\"class\":\"OC\\\\SetupCheck\\\\SetupCheckManager\",\"type\":\"->\"},{\"file\":\"/usr/share/webapps/nextcloud/lib/private/AppFramework/Http/Dispatcher.php\",\"line\":232,\"function\":\"check\",\"class\":\"OCA\\\\Settings\\\\Controller\\\\CheckSetupController\",\"type\":\"->\"},{\"file\":\"/usr/share/webapps/nextcloud/lib/private/AppFramework/Http/Dispatcher.php\",\"line\":138,\"function\":\"executeController\",\"class\":\"OC\\\\AppFramework\\\\Http\\\\Dispatcher\",\"type\":\"->\"},{\"file\":\"/usr/share/webapps/nextcloud/lib/private/AppFramework/App.php\",\"line\":184,\"function\":\"dispatch\",\"class\":\"OC\\\\AppFramework\\\\Http\\\\Dispatcher\",\"type\":\"->\"},{\"file\":\"/usr/share/webapps/nextcloud/lib/private/Route/Router.php\",\"line\":338,\"function\":\"main\",\"class\":\"OC\\\\AppFramework\\\\App\",\"type\":\"::\"},{\"file\":\"/usr/share/webapps/nextcloud/lib/base.php\",\"line\":1050,\"function\":\"match\",\"class\":\"OC\\\\Route\\\\Router\",\"type\":\"->\"},{\"file\":\"/usr/share/webapps/nextcloud/index.php\",\"line\":49,\"function\":\"handleRequest\",\"class\":\"OC\",\"type\":\"::\"}],\"File\":\"/usr/share/webapps/nextcloud/3rdparty/symfony/routing/Generator/UrlGenerator.php\",\"Line\":144,\"message\":\"Unable to generate a URL for the named route \\\"heartbeat\\\" as such route does not exist.\",\"exception\":{},\"CustomMessage\":\"Unable to generate a URL for the named route \\\"heartbeat\\\" as such route does not exist.\"}",
"userAgent": "Mozilla/5.0 (X11; Linux x86_64; rv:126.0) Gecko/20100101 Firefox/126.0",
"version": "29.0.1.1"
}
⚠️ This issue respects the following points: ⚠️
Bug description
When Nextcloud is configured with
'log_type'
different from'file'
, the admin overview page at/settings/admin/overview
reports an error entry:This error message is spurious (it is not an error to configure a log type different from "file", it is even documented how to change it) and there is no way to dismiss tis error.
Steps to reproduce
config.php
to use'log_type'
different from'file'
(e.g.'systemd'
)/settings/admin/overview
Expected behavior
No error displayed for a well-formed configuration, or a way is provided to dismiss the error.
Installation method
Other Community project
Nextcloud Server version
29
Operating system
Other
PHP engine version
PHP 8.2
Web server
Nginx
Database engine version
PostgreSQL
Is this bug present after an update or on a fresh install?
Upgraded to a MAJOR version (ex. 22 to 23)
Are you using the Nextcloud Server Encryption module?
None
What user-backends are you using?
Configuration report
List of activated Apps
Nextcloud Signing status
Nextcloud Logs
Additional info
No response