Could not boot cadviewer: Call to undefined method OC\\Server::getLogger()

The Basics

  • Nextcloud Server version (e.g., 29.x.x):
    • Nextcloud 31.0.6
  • Operating system and version (e.g., Ubuntu 24.04):
    • FreeBSD 14.2-RELEASE
  • Web server and version (e.g, Apache 2.4.25):
    • nginx/1.28.0
  • Reverse proxy and version _(e.g. nginx 1.27.2)
    • nginx/1.28.0
  • PHP version (e.g, 8.3):
    • PHP 8.4.10
  • Is this the first time you’ve seen this error? (Yes / No):
    • Yes
  • When did this problem seem to first start?
    • 04/08/2024 (DD/MM/YYYY)
  • Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
    • FreeBSD packages
  • Are you using CloudfIare, mod_security, or similar? (Yes / No)
    • No

Summary of the issue you are facing:

  • nexcloud was running without issue for months.
  • I’m the only user of the instance.
  • Today when trying to upload a PDF file, progress bar starts to do back an forth, then report an error : No file can be upload.
  • I disconnect, clear the browse cache and perform a loggin, but the login box doesn’t appear (see screenshot bellow)

I try to stop and restart the services, call maintenance:repair but nothing works

Log entries

{
   "app" : "no app in context",
   "exception" : {
      "Code" : 0,
      "CustomMessage" : "Could not boot cadviewer: Call to undefined method OC\\Server::getLogger()",
      "Exception" : "Error",
      "File" : "/usr/local/www/nextcloud/apps/cadviewer/lib/AppConfig.php",
      "Line" : 88,
      "Message" : "Call to undefined method OC\\Server::getLogger()",
      "Trace" : [
         {
            "args" : [
               "cadviewer"
            ],
            "class" : "OCA\\Cadviewer\\AppConfig",
            "file" : "/usr/local/www/nextcloud/apps/cadviewer/lib/AppInfo/Application.php",
            "function" : "__construct",
            "line" : 40,
            "type" : "->"
         },
         {
            "args" : [
               []
            ],
            "class" : "OCA\\Cadviewer\\AppInfo\\Application",
            "function" : "__construct",
            "type" : "->"
         },
         {
            "args" : [
               [
                  []
               ]
            ],
            "class" : "ReflectionClass",
            "file" : "/usr/local/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php",
            "function" : "newInstanceArgs",
            "line" : 61,
            "type" : "->"
         },
         {
            "args" : [
               {
                  "__class__" : "ReflectionClass",
                  "name" : "OCA\\Cadviewer\\AppInfo\\Application"
               }
            ],
            "class" : "OC\\AppFramework\\Utility\\SimpleContainer",
            "file" : "/usr/local/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php",
            "function" : "buildClass",
            "line" : 106,
            "type" : "->"
         },
         {
            "args" : [
               "OCA\\Cadviewer\\AppInfo\\Application"
            ],
            "class" : "OC\\AppFramework\\Utility\\SimpleContainer",
            "file" : "/usr/local/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php",
            "function" : "resolve",
            "line" : 124,
            "type" : "->"
         },
         {
            "args" : [
               "OCA\\Cadviewer\\AppInfo\\Application"
            ],
            "class" : "OC\\AppFramework\\Utility\\SimpleContainer",
            "file" : "/usr/local/www/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php",
            "function" : "query",
            "line" : 440,
            "type" : "->"
         },
         {
            "args" : [
               "OCA\\Cadviewer\\AppInfo\\Application"
            ],
            "class" : "OC\\AppFramework\\DependencyInjection\\DIContainer",
            "file" : "/usr/local/www/nextcloud/lib/private/ServerContainer.php",
            "function" : "queryNoFallback",
            "line" : 137,
            "type" : "->"
         },
         {
            "args" : [
               "OCA\\Cadviewer\\AppInfo\\Application"
            ],
            "class" : "OC\\ServerContainer",
            "file" : "/usr/local/www/nextcloud/lib/private/AppFramework/Bootstrap/Coordinator.php",
            "function" : "query",
            "line" : 153,
            "type" : "->"
         },
         {
            "args" : [
               "cadviewer"
            ],
            "class" : "OC\\AppFramework\\Bootstrap\\Coordinator",
            "file" : "/usr/local/www/nextcloud/lib/private/App/AppManager.php",
            "function" : "bootApp",
            "line" : 479,
            "type" : "->"
         },
         {
            "args" : [
               "cadviewer"
            ],
            "class" : "OC\\App\\AppManager",
            "file" : "/usr/local/www/nextcloud/lib/private/App/AppManager.php",
            "function" : "loadApp",
            "line" : 248,
            "type" : "->"
         },
         {
            "args" : [
               []
            ],
            "class" : "OC\\App\\AppManager",
            "file" : "/usr/local/www/nextcloud/lib/private/legacy/OC_App.php",
            "function" : "loadApps",
            "line" : 82,
            "type" : "->"
         },
         {
            "args" : [],
            "class" : "OC_App",
            "file" : "/usr/local/www/nextcloud/lib/base.php",
            "function" : "loadApps",
            "line" : 1038,
            "type" : "::"
         },
         {
            "args" : [],
            "class" : "OC",
            "file" : "/usr/local/www/nextcloud/index.php",
            "function" : "handleRequest",
            "line" : 24,
            "type" : "::"
         }
      ],
      "exception" : {},
      "message" : "Could not boot cadviewer: Call to undefined method OC\\Server::getLogger()"
   },
   "level" : 4,
   "message" : "Could not boot cadviewer: Call to undefined method OC\\Server::getLogger()",
   "method" : "GET",
   "remoteAddr" : "192.168.1.52",
   "reqId" : "2xhMciNSGpKch0LMZc5x",
   "time" : "2025-08-04T14:49:39+00:00",
   "url" : "/login",
   "user" : "--",
   "userAgent" : "Mozilla/5.0 (X11; Linux x86_64; rv:140.0) Gecko/20100101 Firefox/140.0",
   "version" : "31.0.6.2"
}

Web server / Reverse Proxy

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

192.168.1.52 - - [04/Aug/2025:17:18:42 +0200] "GET /login HTTP/1.0" 200 6368 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:140.0) Gecko/20100101 Firefox/140.0"

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": {
        "apps_paths": [
            {
                "path": "\/usr\/local\/www\/nextcloud\/apps",
                "url": "\/apps",
                "writable": true
            },
            {
                "path": "\/usr\/local\/www\/nextcloud\/apps-pkg",
                "url": "\/apps-pkg",
                "writable": false
            }
        ],
        "logfile": "\/var\/log\/nextcloud\/nextcloud.log",
        "memcache.local": "\\OC\\Memcache\\APCu",
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "192.168.1.32",
            "storage",
            "storage.home"
        ],
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "pgsql",
        "version": "31.0.6.2",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "oc_",
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "overwrite.cli.url": "https:\/\/storage.bebik.net",
        "overwritehost": "storage.bebik.net",
        "overwriteprotocol": "https",
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpmode": "smtp",
        "mail_sendmailmode": "smtp",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpauth": true,
        "mail_smtpport": "587",
        "mail_smtptimeout": 30,
        "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
        "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
        "app_install_overwrite": [
            "cadviewer"
        ],
        "theme": "",
        "loglevel": 2,
        "maintenance": false
    }
}

Apps

The output of occ app:list (if possible).

    "apps": {
        "app:list": []
    }
}

You appear to have the app cadviewer force enabled. This bypasses all compatibility checks.

Based on the app store listing for this app, it has not been released for Nextcloud Server v31.

You’ll need to disable the app and contact the maintainers of it.

I pushed over a PR that should address the deprecated ILogger usage + some other misc stuff.

However I’m not a Cadviewer app user myself (so untested), so community testers are probably necessary to nudge it along and help out the app maintainer with reviewing it for merger.

Hi,

removing the CADViewer app solves the warning.

The login issue was due to a lack of space in the device doing the reverse proxy.

The nginix device works properly but the nginix reverse wasn’t able to properly
relay all the request causing nexcloud UI issues, and no error was reported on the
logs due to the disk starvation. :man_facepalming:

The CADViewer was just a non critical issue hiding my disk space starvation issue.

Thanks for your help, on my side I consider this request solved.