Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Spurious "Failed to get an iterator for log entries" #45517

Closed
5 of 8 tasks
intelfx opened this issue May 26, 2024 · 1 comment
Closed
5 of 8 tasks

[Bug]: Spurious "Failed to get an iterator for log entries" #45517

intelfx opened this issue May 26, 2024 · 1 comment
Labels
0. Needs triage Pending check for reproducibility or if it fits our roadmap 29-feedback bug

Comments

@intelfx
Copy link

intelfx commented May 26, 2024

⚠️ 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:

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

  1. Install Nextcloud
  2. Install php-systemd
  3. Change config.php to use 'log_type' different from 'file' (e.g. 'systemd')
  4. 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?

None

What user-backends are you using?

  • Default user-backend (database)
  • LDAP/ Active Directory
  • SSO - SAML
  • Other

Configuration report

{
    "system": {
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "cloud.intelfx.name"
        ],
        "dbtype": "pgsql",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "apps_paths": [
            {
                "path": "\/usr\/share\/webapps\/nextcloud\/apps",
                "url": "\/apps",
                "writable": false
            },
            {
                "path": "\/var\/webapps\/nextcloud\/userapps",
                "url": "\/userapps",
                "writable": true
            }
        ],
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "version": "29.0.1.1",
        "overwrite.cli.url": "https:\/\/cloud.intelfx.name",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "oc_",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "log_type": "systemd",
        "syslog_tag": "nextcloud",
        "logfile": "\/dev\/null",
        "loglevel": 1,
        "log_query": false,
        "maintenance": false,
        "maintenance_window_start": 0,
        "theme": "",
        "filelocking.enabled": true,
        "memcache.local": "\\OC\\Memcache\\APCu",
        "memcache.distributed": "\\OC\\Memcache\\Redis",
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "redis": {
            "host": "***REMOVED SENSITIVE VALUE***",
            "port": 0,
            "timeout": 0,
            "user": "default",
            "password": "***REMOVED SENSITIVE VALUE***",
            "dbindex": "2"
        },
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpmode": "smtp",
        "mail_smtpauth": 1,
        "mail_sendmailmode": "smtp",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpsecure": "ssl",
        "mail_smtpauthtype": "LOGIN",
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": "465",
        "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
        "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
        "localstorage.allowsymlinks": true,
        "app_install_overwrite": [
            "previewgenerator",
            "files_rightclick"
        ],
        "default_phone_region": "RU",
        "trusted_proxies": "***REMOVED SENSITIVE VALUE***",
        "forwarded_for_headers": [
            "HTTP_X_FORWARDED",
            "HTTP_FORWARDED_FOR"
        ]
    }
}

List of activated Apps

Enabled:
  - activity: 2.21.1
  - circles: 29.0.0-dev
  - cloud_federation_api: 1.12.0
  - comments: 1.19.0
  - contactsinteraction: 1.10.0
  - dav: 1.30.1
  - federatedfilesharing: 1.19.0
  - federation: 1.19.0
  - files: 2.1.0
  - files_downloadlimit: 2.0.0
  - files_external: 1.21.0
  - files_pdfviewer: 2.10.0
  - files_reminders: 1.2.0
  - files_sharing: 1.21.0
  - firstrunwizard: 2.18.0
  - logreader: 2.14.0
  - lookup_server_connector: 1.17.0
  - nextcloud_announcements: 1.18.0
  - notifications: 2.17.0
  - oauth2: 1.17.0
  - password_policy: 1.19.0
  - photos: 2.5.0
  - previewgenerator: 5.5.0
  - privacy: 1.13.0
  - provisioning_api: 1.19.0
  - recommendations: 2.1.0
  - related_resources: 1.4.0
  - serverinfo: 1.19.0
  - settings: 1.12.0
  - sharebymail: 1.19.0
  - support: 1.12.0
  - survey_client: 1.17.0
  - systemtags: 1.19.0
  - text: 3.10.0
  - theming: 2.4.0
  - twofactor_backupcodes: 1.18.0
  - updatenotification: 1.19.1
  - user_status: 1.9.0
  - viewer: 2.3.0
  - weather_status: 1.9.0
  - workflowengine: 2.11.0
Disabled:
  - admin_audit: 1.19.0
  - bruteforcesettings: 2.9.0 (installed 2.4.0)
  - checksum: 1.2.4 (installed 1.2.4)
  - dashboard: 7.9.0 (installed 7.3.0)
  - encryption: 2.17.0
  - files_rightclick: 0.15.1 (installed 1.6.0)
  - files_trashbin: 1.19.0 (installed 1.18.0)
  - files_versions: 1.22.0 (installed 1.21.0)
  - gpxpod: 5.0.18 (installed 5.0.18)
  - suspicious_login: 7.0.0
  - twofactor_totp: 11.0.0-dev
  - user_ldap: 1.20.0

Nextcloud Signing status

No errors have been found.

Nextcloud Logs

{
  "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"
}

Additional info

No response

@intelfx intelfx added 0. Needs triage Pending check for reproducibility or if it fits our roadmap bug labels May 26, 2024
@kesselb
Copy link
Contributor

kesselb commented May 27, 2024

The warning is gone if you disable the logreader app.

@kesselb kesselb closed this as completed May 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0. Needs triage Pending check for reproducibility or if it fits our roadmap 29-feedback bug
Projects
None yet
Development

No branches or pull requests

3 participants