Errors in logs which may becausing performace issues

Edited formatting to make it easier to read 18 May 2025 22:38 UTC+10

The Basics

  • Nextcloud Server version (e.g., 29.x.x):
    • 30.0.11.1
  • Operating system and version (e.g., Ubuntu 24.04):
    • Unraid 7.1.2/Docker Compose image nextcloud:30.0
  • Web server and version (e.g, Apache 2.4.25):
    • Apache/2.4.62
  • Reverse proxy and version _(e.g. nginx 1.27.2)
    • swag 4.0.0
  • PHP version (e.g, 8.3):
    • 8.3.21
  • Is this the first time you’ve seen this error? (Yes / No):
    • yes
  • When did this problem seem to first start?
    • after upgrading to 30.x. I can't remember precisely as I am also dealing with Unraid becoming unresponisve
  • Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
    • Docker
  • Are you using CloudfIare, mod_security, or similar? (Yes / No)
    • No

Summary of the issue you are facing:

I run Nextcloud in an Unraid Docker container, using the official Nextcloud image. I am currently having issues with Unraid freezing up and becoming unresponsive, to the point where I need to power off the server. Next cloud is the first service to become unresponsive, so I’m trying to clean up the errors in the logs to see if that helps.

The errors I haven’t been able to resolve or workout what is causing them are:

Error 1

"url": "/ocs/v2.php/core/navigation/apps?absolute=true&format=json",
"message": "OC\\URLGenerator::getAbsoluteURL(): Argument #1 ($url) must be of type string, null given, called in /var/www/html/core/Controller/NavigationController.php on line 106 in file '/var/www/html/lib/private/URLGenerator.php' line 251",
    "

Error 2

"url": "/ocs/v2.php/apps/related_resources/related/account?itemId=doychi-a&resourceType=talk&limit=5&format=json",
"message": "Exception thrown: OCA\\RelatedResources\\Exceptions\\RelatedResourceProviderNotFound",

Steps to replicate it (hint: details matter!):

I do not know how Error 1. Error 2 is produced when switching to the contacts tab.

Log entries

Nextcloud

Please provide the log entries from your Nextcloud log that are generated during the time of problem (via the Copy raw option from Administration settings->Logging screen or from your nextcloud.log located in your data directory). Feel free to use a pastebin/gist service if necessary.

Error 1

{
    "reqId": "0Hw7P89e0SaLRv3kaZYb",
    "level": 3,
    "time": "2025-05-18T10:28:08+00:00",
    "remoteAddr": "192.168.3.174",
    "user": "doychi",
    "app": "no app in context",
    "method": "GET",
    "url": "/ocs/v2.php/core/navigation/apps?absolute=true&format=json",
    "message": "OC\\URLGenerator::getAbsoluteURL(): Argument #1 ($url) must be of type string, null given, called in /var/www/html/core/Controller/NavigationController.php on line 106 in file '/var/www/html/lib/private/URLGenerator.php' line 251",
    "userAgent": "Mozilla/5.0 (Windows) mirall/3.16.4 (build 20250428) (Nextcloud, windows-10.0.26100 ClientArchitecture: x86_64 OsArchitecture: x86_64)",
    "version": "30.0.11.1",
    "exception": {
        "Exception": "Exception",
        "Message": "OC\\URLGenerator::getAbsoluteURL(): Argument #1 ($url) must be of type string, null given, called in /var/www/html/core/Controller/NavigationController.php on line 106 in file '/var/www/html/lib/private/URLGenerator.php' line 251",
        "Code": 0,
        "Trace": [
            {
                "file": "/var/www/html/lib/private/AppFramework/App.php",
                "line": 161,
                "function": "dispatch",
                "class": "OC\\AppFramework\\Http\\Dispatcher",
                "type": "->",
                "args": [
                    {
                        "__class__": "OC\\Core\\Controller\\NavigationController"
                    },
                    "getAppsNavigation"
                ]
            },
            {
                "file": "/var/www/html/lib/private/Route/Router.php",
                "line": 303,
                "function": "main",
                "class": "OC\\AppFramework\\App",
                "type": "::",
                "args": [
                    "OC\\Core\\Controller\\NavigationController",
                    "getAppsNavigation",
                    {
                        "__class__": "OC\\AppFramework\\DependencyInjection\\DIContainer"
                    },
                    {
                        "_route": "ocs.core.navigation.getappsnavigation"
                    }
                ]
            },
            {
                "file": "/var/www/html/ocs/v1.php",
                "line": 44,
                "function": "match",
                "class": "OC\\Route\\Router",
                "type": "->",
                "args": [
                    "/ocsapp/core/navigation/apps"
                ]
            },
            {
                "file": "/var/www/html/ocs/v2.php",
                "line": 8,
                "args": [
                    "/var/www/html/ocs/v1.php"
                ],
                "function": "require_once"
            }
        ],
        "File": "/var/www/html/lib/private/AppFramework/Http/Dispatcher.php",
        "Line": 146,
        "Previous": {
            "Exception": "TypeError",
            "Message": "OC\\URLGenerator::getAbsoluteURL(): Argument #1 ($url) must be of type string, null given, called in /var/www/html/core/Controller/NavigationController.php on line 106",
            "Code": 0,
            "Trace": [
                {
                    "file": "/var/www/html/core/Controller/NavigationController.php",
                    "line": 106,
                    "function": "getAbsoluteURL",
                    "class": "OC\\URLGenerator",
                    "type": "->",
                    "args": [
                        null
                    ]
                },
                {
                    "file": "/var/www/html/core/Controller/NavigationController.php",
                    "line": 48,
                    "function": "rewriteToAbsoluteUrls",
                    "class": "OC\\Core\\Controller\\NavigationController",
                    "type": "->",
                    "args": [
                        {
                            "0": "And 8 more entries, set log level to debug to see all entries",
                            "dashboard": {
                                "0": "And 6 more entries, set log level to debug to see all entries",
                                "id": "dashboard",
                                "order": -1,
                                "href": "https://nextcloud.cbr.deutsch.id.au/apps/dashboard/",
                                "icon": "https://nextcloud.cbr.deutsch.id.au/apps/dashboard/img/dashboard.svg",
                                "type": "link"
                            },
                            "files": {
                                "0": "And 6 more entries, set log level to debug to see all entries",
                                "id": "files",
                                "order": 0,
                                "href": "https://nextcloud.cbr.deutsch.id.au/apps/files/",
                                "icon": "https://nextcloud.cbr.deutsch.id.au/apps/files/img/app.svg",
                                "type": "link"
                            },
                            "photos": {
                                "0": "And 6 more entries, set log level to debug to see all entries",
                                "id": "photos",
                                "order": 1,
                                "href": "https://nextcloud.cbr.deutsch.id.au/apps/photos/",
                                "icon": "https://nextcloud.cbr.deutsch.id.au/apps/photos/img/photos.svg",
                                "type": "link"
                            },
                            "activity": {
                                "0": "And 6 more entries, set log level to debug to see all entries",
                                "id": "activity",
                                "order": 1,
                                "href": "https://nextcloud.cbr.deutsch.id.au/apps/activity/",
                                "icon": "https://nextcloud.cbr.deutsch.id.au/apps/activity/img/activity.svg",
                                "type": "link"
                            },
                            "mail": {
                                "0": "And 6 more entries, set log level to debug to see all entries",
                                "id": "mail",
                                "order": 3,
                                "href": "https://nextcloud.cbr.deutsch.id.au/apps/mail/",
                                "icon": "https://nextcloud.cbr.deutsch.id.au/custom_apps/mail/img/mail.svg",
                                "type": "link"
                            }
                        }
                    ]
                },
                {
                    "file": "/var/www/html/lib/private/AppFramework/Http/Dispatcher.php",
                    "line": 208,
                    "function": "getAppsNavigation",
                    "class": "OC\\Core\\Controller\\NavigationController",
                    "type": "->",
                    "args": [
                        true
                    ]
                },
                {
                    "file": "/var/www/html/lib/private/AppFramework/Http/Dispatcher.php",
                    "line": 114,
                    "function": "executeController",
                    "class": "OC\\AppFramework\\Http\\Dispatcher",
                    "type": "->",
                    "args": [
                        {
                            "__class__": "OC\\Core\\Controller\\NavigationController"
                        },
                        "getAppsNavigation"
                    ]
                },
                {
                    "file": "/var/www/html/lib/private/AppFramework/App.php",
                    "line": 161,
                    "function": "dispatch",
                    "class": "OC\\AppFramework\\Http\\Dispatcher",
                    "type": "->",
                    "args": [
                        {
                            "__class__": "OC\\Core\\Controller\\NavigationController"
                        },
                        "getAppsNavigation"
                    ]
                },
                {
                    "file": "/var/www/html/lib/private/Route/Router.php",
                    "line": 303,
                    "function": "main",
                    "class": "OC\\AppFramework\\App",
                    "type": "::",
                    "args": [
                        "OC\\Core\\Controller\\NavigationController",
                        "getAppsNavigation",
                        {
                            "__class__": "OC\\AppFramework\\DependencyInjection\\DIContainer"
                        },
                        {
                            "_route": "ocs.core.navigation.getappsnavigation"
                        }
                    ]
                },
                {
                    "file": "/var/www/html/ocs/v1.php",
                    "line": 44,
                    "function": "match",
                    "class": "OC\\Route\\Router",
                    "type": "->",
                    "args": [
                        "/ocsapp/core/navigation/apps"
                    ]
                },
                {
                    "file": "/var/www/html/ocs/v2.php",
                    "line": 8,
                    "args": [
                        "/var/www/html/ocs/v1.php"
                    ],
                    "function": "require_once"
                }
            ],
            "File": "/var/www/html/lib/private/URLGenerator.php",
            "Line": 251
        },
        "message": "OC\\URLGenerator::getAbsoluteURL(): Argument #1 ($url) must be of type string, null given, called in /var/www/html/core/Controller/NavigationController.php on line 106 in file '/var/www/html/lib/private/URLGenerator.php' line 251",
        "exception": [],
        "CustomMessage": "OC\\URLGenerator::getAbsoluteURL(): Argument #1 ($url) must be of type string, null given, called in /var/www/html/core/Controller/NavigationController.php on line 106 in file '/var/www/html/lib/private/URLGenerator.php' line 251"
    },
    "id": "6829ba8684cd5"
}

Error 2

{
    "reqId": "k4N8XKIGLZNAr8DNy6GT",
    "level": 3,
    "time": "2025-05-18T11:19:49+00:00",
    "remoteAddr": "192.168.3.174",
    "user": "doychi",
    "app": "related_resources",
    "method": "GET",
    "url": "/ocs/v2.php/apps/related_resources/related/account?itemId=doychi-a&resourceType=talk&limit=5&format=json",
    "message": "Exception thrown: OCA\\RelatedResources\\Exceptions\\RelatedResourceProviderNotFound",
    "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:138.0) Gecko/20100101 Firefox/138.0",
    "version": "30.0.11.1",
    "exception": {
        "Exception": "OCA\\RelatedResources\\Exceptions\\RelatedResourceProviderNotFound",
        "Message": "",
        "Code": 0,
        "Trace": [
            {
                "file": "/var/www/html/apps/related_resources/lib/Service/RelatedService.php",
                "line": 153,
                "function": "getRelatedResourceProvider",
                "class": "OCA\\RelatedResources\\Service\\RelatedService",
                "type": "->",
                "args": [
                    "talk"
                ]
            },
            {
                "file": "/var/www/html/apps/related_resources/lib/Service/RelatedService.php",
                "line": 107,
                "function": "retrieveRelatedToItem",
                "class": "OCA\\RelatedResources\\Service\\RelatedService",
                "type": "->",
                "args": [
                    "account",
                    "doychi-a",
                    "talk"
                ]
            },
            {
                "file": "/var/www/html/apps/related_resources/lib/Controller/ApiController.php",
                "line": 87,
                "function": "getRelatedToItem",
                "class": "OCA\\RelatedResources\\Service\\RelatedService",
                "type": "->",
                "args": [
                    "account",
                    "doychi-a",
                    5,
                    "talk"
                ]
            },
            {
                "file": "/var/www/html/lib/private/AppFramework/Http/Dispatcher.php",
                "line": 208,
                "function": "getRelatedResources",
                "class": "OCA\\RelatedResources\\Controller\\ApiController",
                "type": "->",
                "args": [
                    "account",
                    "doychi-a",
                    5,
                    "talk"
                ]
            },
            {
                "file": "/var/www/html/lib/private/AppFramework/Http/Dispatcher.php",
                "line": 114,
                "function": "executeController",
                "class": "OC\\AppFramework\\Http\\Dispatcher",
                "type": "->",
                "args": [
                    {
                        "__class__": "OCA\\RelatedResources\\Controller\\ApiController"
                    },
                    "getRelatedResources"
                ]
            },
            {
                "file": "/var/www/html/lib/private/AppFramework/App.php",
                "line": 161,
                "function": "dispatch",
                "class": "OC\\AppFramework\\Http\\Dispatcher",
                "type": "->",
                "args": [
                    {
                        "__class__": "OCA\\RelatedResources\\Controller\\ApiController"
                    },
                    "getRelatedResources"
                ]
            },
            {
                "file": "/var/www/html/lib/private/Route/Router.php",
                "line": 303,
                "function": "main",
                "class": "OC\\AppFramework\\App",
                "type": "::",
                "args": [
                    "OCA\\RelatedResources\\Controller\\ApiController",
                    "getRelatedResources",
                    {
                        "__class__": "OC\\AppFramework\\DependencyInjection\\DIContainer"
                    },
                    {
                        "providerId": "account",
                        "_route": "ocs.related_resources.api.getrelatedresources"
                    }
                ]
            },
            {
                "file": "/var/www/html/ocs/v1.php",
                "line": 44,
                "function": "match",
                "class": "OC\\Route\\Router",
                "type": "->",
                "args": [
                    "/ocsapp/apps/related_resources/related/account"
                ]
            },
            {
                "file": "/var/www/html/ocs/v2.php",
                "line": 8,
                "args": [
                    "/var/www/html/ocs/v1.php"
                ],
                "function": "require_once"
            }
        ],
        "File": "/var/www/html/apps/related_resources/lib/Service/RelatedService.php",
        "Line": 585,
        "message": "",
        "exception": [],
        "CustomMessage": "Exception thrown: OCA\\RelatedResources\\Exceptions\\RelatedResourceProviderNotFound"
    },
    "id": "6829c25fc5cbc"
}

Web Browser

If the problem is related to the Web interface, open your browser inspector Console and Network tabs while refreshing (reloading) and reproducing the problem. Provide any relevant output/errors here that appear.

PASTE

Web server / Reverse Proxy

The output of your Apache/nginx/system log in /var/log/____:

I’m having some issues getting this from the container. I’ll try to get the logs shipping to syslog.

Configuration

Nextcloud

The output of occ config:list system or similar is best, but, if not possible, the contents of your config.php file from /path/to/nextcloud is fine (make sure to remove any identifiable information!):

{
    "system": {
        "config_is_read_only": false,
        "htaccess.RewriteBase": "\/",
        "memcache.local": "\\OC\\Memcache\\APCu",
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "filelocking.enabled": true,
        "redis": {
            "host": "***REMOVED SENSITIVE VALUE***",
            "port": 6379
        },
        "apps_paths": [
            {
                "path": "\/var\/www\/html\/apps",
                "url": "\/apps",
                "writable": false
            },
            {
                "path": "\/var\/www\/html\/custom_apps",
                "url": "\/custom_apps",
                "writable": true
            }
        ],
        "upgrade.disable-web": true,
        "maintenance_window_start": 1,
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "192.168.3.172:8666",
            "nextcloud.cbr.deutsch.id.au"
        ],
        "default_phone_region": "AU",
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "pgsql",
        "version": "30.0.11.1",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "oc_",
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "trusted_proxies": "***REMOVED SENSITIVE VALUE***",
        "overwrite.cli.url": "https:\/\/nextcloud.cbr.deutsch.id.au\/",
        "overwritehost": "nextcloud.cbr.deutsch.id.au",
        "overwriteprotocol": "https",
        "mail_smtpmode": "smtp",
        "mail_smtpsecure": "ssl",
        "mail_sendmailmode": "smtp",
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": "465",
        "twofactor_enforced": "true",
        "twofactor_enforced_groups": [],
        "twofactor_enforced_excluded_groups": [
            "admin"
        ],
        "memories.db.triggers.fcu": true,
        "memories.exiftool": "\/var\/www\/html\/custom_apps\/memories\/bin-ext\/exiftool-amd64-glibc",
        "memories.vod.path": "\/var\/www\/html\/custom_apps\/memories\/bin-ext\/go-vod-amd64",
        "preview_max_x": 512,
        "preview_max_y": 512,
        "enabledPreviewProviders": [
            "OC\\Preview\\Image",
            "OC\\Preview\\Movie",
            "OC\\Preview\\HEIC",
            "OC\\Preview\\TIFF"
        ],
        "memories.index.path.blacklist": "\\\/(@(Recycle|eaDir)\\\/|(private|backup)-[^\\\/]*$)",
        "memories.vod.disable": false,
        "memories.vod.ffmpeg": "\/usr\/bin\/ffmpeg",
        "memories.vod.ffprobe": "\/usr\/bin\/ffprobe",
        "app_install_overwrite": [
            "extract",
            "workflow_media_converter"
        ],
        "loglevel": 2,
        "maintenance": false,
        "mail_smtpauth": 1,
        "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
        "mail_smtppassword": "***REMOVED SENSITIVE VALUE***"
    }
}

Apps

Enabled:

  • activity: 3.0.0
  • admin_audit: 1.20.0
  • announcementcenter: 7.1.2
  • app_api: 4.0.6
  • bruteforcesettings: 3.0.0
  • checksum: 1.2.6
  • circles: 30.0.0
  • cloud_federation_api: 1.13.0
  • cloud_py_api: 0.2.0
  • comments: 1.20.1
  • contacts: 7.1.0
  • contactsinteraction: 1.11.0
  • dashboard: 7.10.0
  • dav: 1.31.1
  • duplicatefinder: 1.7.1
  • federatedfilesharing: 1.20.0
  • federation: 1.20.0
  • files: 2.2.0
  • files_accesscontrol: 1.20.1
  • files_antivirus: 5.6.3
  • files_automatedtagging: 1.20.0
  • files_confidential: 3.2.0
  • files_downloadlimit: 3.0.0
  • files_pdfviewer: 3.0.0
  • files_reminders: 1.3.0
  • files_sharing: 1.22.0
  • files_trashbin: 1.20.1
  • files_versions: 1.23.0
  • fileslibreofficeedit: 2.0.1
  • firstrunwizard: 3.0.0
  • groupfolders: 18.1.2
  • impersonate: 1.17.1
  • logcleaner: 1.1.1
  • logreader: 3.0.0
  • lookup_server_connector: 1.18.0
  • mail: 5.0.7
  • maps: 1.5.0
  • mediadc: 0.4.0
  • memories: 7.5.2
  • nextcloud_announcements: 2.0.0
  • notifications: 3.0.0
  • oauth2: 1.18.1
  • password_policy: 2.0.0
  • photos: 3.0.2
  • previewgenerator: 5.8.0
  • privacy: 2.0.0
  • provisioning_api: 1.20.0
  • qownnotesapi: 25.2.0
  • related_resources: 1.5.0
  • richdocuments: 8.5.7
  • richdocumentscode: 24.4.1303
  • serverinfo: 2.0.0
  • settings: 1.13.0
  • sharebymail: 1.20.0
  • support: 2.0.0
  • survey_client: 2.0.0
  • suspicious_login: 8.0.0
  • systemtags: 1.20.0
  • text: 4.1.0
  • theming: 2.6.0
  • thesearchpage: 1.2.11
  • twofactor_backupcodes: 1.19.0
  • twofactor_totp: 12.0.0-dev
  • updatenotification: 1.20.0
  • user_status: 1.10.0
  • viewer: 3.0.0
  • weather_status: 1.10.0
  • webhook_listeners: 1.1.0-dev
  • whiteboard: 1.0.5
  • workflowengine: 2.12.0

Disabled:

  • encryption: 2.18.0 (installed 2.17.0)
  • files_external: 1.22.0
  • files_fulltextsearch: 31.0.0 (installed 31.0.0)
  • fulltextsearch: 30.0.1 (installed 30.0.1)
  • fulltextsearch_elasticsearch: 30.0.1 (installed 30.0.1)
  • recognize: 8.2.0 (installed 8.2.0)
  • recommendations: 3.0.0 (installed 2.1.0)
  • twofactor_admin: 4.8.0 (installed 4.8.0)
  • twofactor_nextcloud_notification: 4.0.0
  • user_ldap: 1.21.0
  • workflow_media_converter: 1.13.5 (installed 1.13.5)
          "line": 48,
          "function": "rewriteToAbsoluteUrls",
          "class": "OC\\Core\\Controller\\NavigationController",
          "type": "->",
          "args": [
            {
              "0": "And 8 more entries, set log level to debug to see all entries",

One of your apps / navigation items is generating an empty route / href. If you can generate this log entry while your log level is set to 0 (debug), it should appear in the list in the stack trace. Then we can look deeper to see what the underlying cause is.

EDIT: In looking more at this, I’d expect this to be a more widespread problem ever since Allow settings navigation items with no route entry by Pytal · Pull Request #36508 · nextcloud/server · GitHub since there’s no handling for this in rewriteToAbsoluteUrls() from what I can tell.

Hi JTR,

Thanks for the info. Does that mean I need to try and track down the app and ping the developer for a fix?

Now that I’m actively looking for a fix for the error I can’t generate it (typical). I’ll keep trying as I get some time.