Strange Error: Class OCA ThemingController does not exist

Since an automatic update from Watchtower, my Nextcloud Instance somehow crashed.

I get the following error, when accessing via browser:

Logs says:

www-data@8399b17c9a3b:~/html$ grep REwFbEOGdUaTg1hnZA69 data/nextcloud.log
{"reqId":"REwFbEOGdUaTg1hnZA69","level":3,"time":"2024-06-28T23:17:03+00:00","remoteAddr":"10.255.2.18","user":"nextcadmin","app":"index","method":"GET","url":"/apps/files/","message":"Class \"OCA\\Theming\\Controller\\ThemingController\" does not exist","userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.5 Safari/605.1.15","version":"29.0.3.4","exception":{"Exception":"ReflectionException","Message":"Class \"OCA\\Theming\\Controller\\ThemingController\" does not exist","Code":-1,"Trace":[{"file":"/var/www/html/lib/private/Route/Router.php","line":469,"function":"__construct","class":"ReflectionClass","type":"->","args":["OCA\\Theming\\Controller\\ThemingController"]},{"file":"/var/www/html/lib/private/Route/Router.php","line":161,"function":"getAttributeRoutes","class":"OC\\Route\\Router","type":"->","args":["theming"]},{"file":"/var/www/html/lib/private/Route/Router.php","line":400,"function":"loadRoutes","class":"OC\\Route\\Router","type":"->","args":["theming"]},{"file":"/var/www/html/lib/private/Route/CachingRouter.php","line":65,"function":"generate","class":"OC\\Route\\Router","type":"->","args":["theming.theming.getthemestylesheet",["default",true,"37dbc2e7"],false]},{"file":"/var/www/html/lib/private/URLGenerator.php","line":103,"function":"generate","class":"OC\\Route\\CachingRouter","type":"->","args":["theming.Theming.getThemeStylesheet",["default",true,"37dbc2e7"]]},{"file":"/var/www/html/apps/theming/lib/Service/ThemeInjectionService.php","line":97,"function":"linkToRoute","class":"OC\\URLGenerator","type":"->","args":["theming.Theming.getThemeStylesheet",["default",true,"37dbc2e7"]]},{"file":"/var/www/html/apps/theming/lib/Service/ThemeInjectionService.php","line":69,"function":"addThemeHeaders","class":"OCA\\Theming\\Service\\ThemeInjectionService","type":"->","args":[["OCA\\Theming\\Themes\\DefaultTheme",["OCA\\Theming\\Util"],["OCA\\Theming\\ThemingDefaults"],["OC\\User\\Session"],["OC\\URLGenerator",["OC\\User\\Session"]],["OCA\\Theming\\ImageManager"],["OC\\AllConfig"],["OC\\L10N\\LazyL10N"],["OC\\App\\AppManager"],"#0082c9","#00679e"]]},{"file":"/var/www/html/apps/theming/lib/Listener/BeforeTemplateRenderedListener.php","line":82,"function":"injectHeaders","class":"OCA\\Theming\\Service\\ThemeInjectionService","type":"->","args":[]},{"file":"/var/www/html/lib/private/EventDispatcher/ServiceEventListener.php","line":86,"function":"handle","class":"OCA\\Theming\\Listener\\BeforeTemplateRenderedListener","type":"->","args":[["OCP\\AppFramework\\Http\\Events\\BeforeTemplateRenderedEvent"]]},{"file":"/var/www/html/3rdparty/symfony/event-dispatcher/EventDispatcher.php","line":230,"function":"__invoke","class":"OC\\EventDispatcher\\ServiceEventListener","type":"->","args":[["OCP\\AppFramework\\Http\\Events\\BeforeTemplateRenderedEvent"],"OCP\\AppFramework\\Http\\Events\\BeforeTemplateRenderedEvent",["Symfony\\Component\\EventDispatcher\\EventDispatcher"]]},{"file":"/var/www/html/3rdparty/symfony/event-dispatcher/EventDispatcher.php","line":59,"function":"callListeners","class":"Symfony\\Component\\EventDispatcher\\EventDispatcher","type":"->","args":[[["Closure"],["Closure"],["Closure"],["Closure"]],"OCP\\AppFramework\\Http\\Events\\BeforeTemplateRenderedEvent",["OCP\\AppFramework\\Http\\Events\\BeforeTemplateRenderedEvent"]]},{"file":"/var/www/html/lib/private/EventDispatcher/EventDispatcher.php","line":86,"function":"dispatch","class":"Symfony\\Component\\EventDispatcher\\EventDispatcher","type":"->","args":[["OCP\\AppFramework\\Http\\Events\\BeforeTemplateRenderedEvent"],"OCP\\AppFramework\\Http\\Events\\BeforeTemplateRenderedEvent"]},{"file":"/var/www/html/lib/private/EventDispatcher/EventDispatcher.php","line":98,"function":"dispatch","class":"OC\\EventDispatcher\\EventDispatcher","type":"->","args":["OCP\\AppFramework\\Http\\Events\\BeforeTemplateRenderedEvent",["OCP\\AppFramework\\Http\\Events\\BeforeTemplateRenderedEvent"]]},{"file":"/var/www/html/lib/private/AppFramework/Middleware/AdditionalScriptsMiddleware.php","line":53,"function":"dispatchTyped","class":"OC\\EventDispatcher\\EventDispatcher","type":"->","args":[["OCP\\AppFramework\\Http\\Events\\BeforeTemplateRenderedEvent"]]},{"file":"/var/www/html/lib/private/AppFramework/Middleware/MiddlewareDispatcher.php","line":142,"function":"afterController","class":"OC\\AppFramework\\Middleware\\AdditionalScriptsMiddleware","type":"->","args":[["OCA\\Files\\Controller\\ViewController"],"index",["OCP\\AppFramework\\Http\\TemplateResponse"]]},{"file":"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php","line":175,"function":"afterController","class":"OC\\AppFramework\\Middleware\\MiddlewareDispatcher","type":"->","args":[["OCA\\Files\\Controller\\ViewController"],"index",["OCP\\AppFramework\\Http\\TemplateResponse"]]},{"file":"/var/www/html/lib/private/AppFramework/App.php","line":184,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[["OCA\\Files\\Controller\\ViewController"],"index"]},{"file":"/var/www/html/lib/private/Route/Router.php","line":338,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OCA\\Files\\Controller\\ViewController","index",["OC\\AppFramework\\DependencyInjection\\DIContainer"],["files.view.index"]]},{"file":"/var/www/html/lib/base.php","line":1050,"function":"match","class":"OC\\Route\\Router","type":"->","args":["/apps/files/"]},{"file":"/var/www/html/index.php","line":49,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/var/www/html/lib/private/Route/Router.php","Line":469,"message":"Class \"OCA\\Theming\\Controller\\ThemingController\" does not exist","exception":{},"CustomMessage":"Class \"OCA\\Theming\\Controller\\ThemingController\" does not exist"}}
www-data@8399b17c9a3b:~/html$

I tried already switching off add ons, one by one. But now, there is not one left to disable but having still the same issue.

Any Ideas how I get Nextcloud back running again?

Thanks in advance.

Jens

Please post your Compose file.

Also, what version did you upgrade from?

hi @d33pjs welcome to the forum :handshake:

you are missing the required support template. Please fill this form out and edit into your post. This will give us the technical info and logs needed to help you in case the machine in question in spitting out errors! Since you’ve provided zero technical details it is impossible to help you as-is. Thanks.

Please use the search - lot of issues have been discussed already

If there are specific issues or error please describe what you tried so far and which problems you hit!

Using auto-update with containers is a bad habit and will likely brake your system at some point. Please review and follow Docker upgrade procedure

Compose file was not changed since I use Nextcloud, but if that helps:

services:
  nextclouddb:
    image: mariadb:10.6
    container_name: nextcloud_db
    restart: unless-stopped
    command: --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci --transaction-isolation=READ-COMMITTED --log-bin=binlog --binlog-format=ROW
    volumes:
      - /mnt/data/nextcloud_db:/var/lib/mysql
    environment:
      - MYSQL_ROOT_PASSWORD=pw
      - MYSQL_PASSWORD=pw
      - MYSQL_DATABASE=dbname
      - MYSQL_USER=dbuser

  nextcloud:
    image: nextcloud
    container_name: nextcloud
    restart: unless-stopped
    volumes:
      - /mnt/data/nextcloud:/var/www/html
      - /mnt/nobackup/nextcloud:/mnt/nobackup
    environment:
      - APACHE_DISABLE_REWRITE_IP=1
      - TRUSTED_PROXIES=ip
      - MYSQL_PASSWORD=pw
      - MYSQL_DATABASE=dbname
      - MYSQL_USER=dbuser
      - MYSQL_HOST=dbhost

Don’t know the old version where I upgraded from. I could give you the SHA Hash of that Image, if that helps?

Not seeing, what support templated I missed if I search through other questions.

Also not seeing, which topics I missed where exactly this error is covered.

As I said: I tried (multiple) restarts of the docker container and turning off (all, one-by-one) add-ons. I have attached the log file…

I’m shocked by you guys saying this is a bad habit. From a security point of view this the best way - maybe the only way. And yeah: of course with disadvantages breaking software that was not tested correctly.

Perhaps this is issue is better placed elsewhere.

I assume you have the standard Docker base config with two apps_path configured (one being writable - apps and the other not - custom_apps)?

Is the file /var/www/html/apps/theming/lib/Controller/ThemingController.php missing somehow from your container?

Are you using your own theme?

Can you also confirm that of the apps in your custom_apps folder you do not have a theming folder?

I’m shocked by you guys saying this is a bad habit. From a security point of view this the best way - maybe the only way.

If you’re going to auto-update (or even if not), I highly suggest you at least pin your image to a particular major version (e.g. 29 or 28) so that Watchtower doesn’t blindly upgrade you to a new a major version (which may have breaking changes) or upgrade you to a new major version simply because one get released prior to the next maintenance release for the major you’re then currently on.

That said, that’s just some general advice. You should obviously do updates in whatever way works for you.

And yeah: of course with disadvantages breaking software that was not tested correctly.

If you’re interested in using the most robust/ field test releases, please check here. You may want to run one major series back at all times (which we spend a lot of time maintaining and back porting all critical bug fixes too).

The higher numbered major is by definition the least field tested. That’s the nature of things. Though that may have nothing to do with whatever this is that you’re experiencing (not sure). I haven’t run across it in any of my various Docker-based instances so far, but anything is possible.

1 Like

Haven’t made changes here. If that’s the default, it probably still is like this.

docker exec -it --user www-data nextcloud php ./occ config:list:

{
    "system": {
        "htaccess.RewriteBase": "\/",
        "memcache.local": "\\OC\\Memcache\\APCu",
        "default_language": "de",
        "auth.bruteforce.protection.enabled": true,
        "overwritehost": "***REMOVED SENSITIVE VALUE***",
        "overwriteprotocol": "https",
        "apps_paths": [
            {
                "path": "\/var\/www\/html\/apps",
                "url": "\/apps",
                "writable": false
            },
            {
                "path": "\/var\/www\/html\/custom_apps",
                "url": "\/custom_apps",
                "writable": true
            }
        ],
        "mail_smtpmode": "smtp",
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": "587",
        "mail_smtpauth": 1,
        "mail_smtpauthtype": "LOGIN",
        "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
        "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "skeletondirectory": "",
        "trusted_domains": [
            "***REMOVED SENSITIVE VALUE***",
            "***REMOVED SENSITIVE VALUE***",
            "***REMOVED SENSITIVE VALUE***",
            "***REMOVED SENSITIVE VALUE***",
            "***REMOVED SENSITIVE VALUE***"
        ],
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "mysql",
        "version": "29.0.3.4",
        "overwrite.cli.url": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "mail_sendmailmode": "smtp",
        "mail_smtpsecure": "tls",
        "app_install_overwrite": [
            "keeweb",
            "files_external_ipfs",
            "bookmarks",
            "files_mindmap",
            "cookbook",
            "files_downloadactivity",
            "gpxmotion",
            "drawio",
            "gpxedit",
            "afterlogic",
            "mail_roundcube",
            "news",
            "checksum",
            "riotchat",
            "files_markdown",
            "files_readmemd"
        ],
        "trusted_proxies": "***REMOVED SENSITIVE VALUE***",
        "maintenance": false,
        "loglevel": 0,
        "theme": "",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "mysql.utf8mb4": true
    },
    "apps": {
        "activity": {
            "enabled": "yes",
            "installed_version": "2.21.1",
            "types": "filesystem"
        },
        "admin_audit": {
            "enabled": "yes",
            "installed_version": "1.19.0",
            "types": "logging"
        },
        "afterlogic": {
            "enabled": "no",
            "installed_version": "2.0.5",
            "types": ""
        },
        "backgroundjob": {
            "lastjob": "5113"
        },
        "bookmarks": {
            "enabled": "yes",
            "installed_version": "14.2.2",
            "performance.maxBookmarksperAccount": "",
            "previews.pageres.env": "",
            "previews.screenly.token": "",
            "previews.screenly.url": "",
            "previews.screenshotmachine.key": "",
            "previews.webshot.url": "",
            "privacy.enableScraping": "true",
            "types": ""
        },
        "bruteforcesettings": {
            "enabled": "yes",
            "installed_version": "2.9.0",
            "types": ""
        },
        "calendar": {
            "enabled": "yes",
            "installed_version": "4.7.8",
            "types": ""
        },
        "checksum": {
            "enabled": "yes",
            "installed_version": "1.2.4",
            "types": "filesystem"
        },
        "circles": {
            "enabled": "yes",
            "installed_version": "29.0.0-dev",
            "loopback_tmp_scheme": "http",
            "maintenance_run": "0",
            "maintenance_update": "{\"maximum\":3,\"3\":1719539403,\"2\":1719541503,\"1\":1719541504}",
            "migration_22": "1",
            "migration_22_1": "1",
            "migration_run": "0",
            "types": "filesystem,dav"
        },
        "cloud_federation_api": {
            "enabled": "yes",
            "installed_version": "1.12.0",
            "types": "filesystem"
        },
        "comments": {
            "enabled": "yes",
            "installed_version": "1.19.0",
            "types": "logging"
        },
        "contacts": {
            "enabled": "yes",
            "installed_version": "6.0.0",
            "types": "dav"
        },
        "contactsinteraction": {
            "enabled": "yes",
            "installed_version": "1.10.0",
            "types": "dav"
        },
        "cookbook": {
            "enabled": "no",
            "installed_version": "0.11.1",
            "types": ""
        },
        "core": {
            "backgroundjobs_mode": "cron",
            "default_encryption_module": "OC_DEFAULT_MODULE",
            "files_metadata_installed": "1",
            "installed.bundles": "[\"CoreBundle\"]",
            "installedat": "1598861397.7465",
            "lastcron": 1719541516,
            "lastupdateResult": "[]",
            "lastupdatedat": 1719783339,
            "moveavatarsdone": "yes",
            "previewsCleanedUp": "1",
            "public_files": "files_sharing\/public.php",
            "public_webdav": "dav\/appinfo\/v1\/publicwebdav.php",
            "shareapi_default_expire_date": "no",
            "shareapi_default_internal_expire_date": "no",
            "shareapi_enable_link_password_by_default": "no",
            "shareapi_enforce_internal_expire_date": "no",
            "shareapi_enforce_links_password": "no",
            "theming.variables": "41545bc493ea402b7a9b19b640ab406b",
            "updater.secret.created": "1603888848",
            "vendor": "nextcloud",
            "files_metadata": {
                "photos-original_date_time": {
                    "value": null,
                    "type": "int",
                    "etag": "",
                    "indexed": true,
                    "editPermission": 0
                },
                "photos-exif": {
                    "value": null,
                    "type": "array",
                    "etag": "",
                    "indexed": false,
                    "editPermission": 0
                },
                "photos-ifd0": {
                    "value": null,
                    "type": "array",
                    "etag": "",
                    "indexed": false,
                    "editPermission": 0
                },
                "photos-size": {
                    "value": null,
                    "type": "array",
                    "etag": "",
                    "indexed": false,
                    "editPermission": 0
                },
                "photos-gps": {
                    "value": null,
                    "type": "array",
                    "etag": "",
                    "indexed": false,
                    "editPermission": 0
                },
                "photos-place": {
                    "value": null,
                    "type": "string",
                    "etag": "",
                    "indexed": true,
                    "editPermission": 0
                },
                "files-live-photo": {
                    "value": null,
                    "type": "string",
                    "etag": "",
                    "indexed": false,
                    "editPermission": 1
                },
                "blurhash": {
                    "value": null,
                    "type": "string",
                    "etag": "63a56054868ce3662b5eba59ef1e5601",
                    "indexed": false,
                    "editPermission": 0
                }
            },
            "oc.integritycheck.checker": []
        },
        "dashboard": {
            "enabled": "yes",
            "installed_version": "7.9.0",
            "types": ""
        },
        "dav": {
            "buildCalendarReminderIndex": "yes",
            "buildCalendarSearchIndex": "yes",
            "builtSocialSearchIndex": "yes",
            "chunks_migrated": "1",
            "enabled": "yes",
            "installed_version": "1.30.1",
            "regeneratedBirthdayCalendarsForYearFix": "yes",
            "types": "filesystem"
        },
        "deck": {
            "enabled": "yes",
            "installed_version": "1.13.1",
            "types": "dav"
        },
        "drawio": {
            "DrawioAutosave": "yes",
            "DrawioConfig": "{}",
            "DrawioDarkMode": "auto",
            "DrawioLang": "auto",
            "DrawioLibraries": "no",
            "DrawioOffline": "no",
            "DrawioPreviews": "yes",
            "DrawioTheme": "simple",
            "DrawioUrl": "https:\/\/embed.diagrams.net",
            "enabled": "yes",
            "installed_version": "3.0.2",
            "types": "filesystem"
        },
        "encryption": {
            "enabled": "no",
            "installed_version": "2.17.0",
            "masterKeyId": "master_fdf351e9",
            "publicShareKeyId": "pubShare_fdf351e9",
            "recoveryKeyId": "recoveryKey_fdf351e9",
            "types": "filesystem"
        },
        "end_to_end_encryption": {
            "enabled": "yes",
            "installed_version": "1.15.2",
            "types": "filesystem,dav"
        },
        "federatedfilesharing": {
            "enabled": "yes",
            "installed_version": "1.19.0",
            "types": ""
        },
        "federation": {
            "enabled": "yes",
            "installed_version": "1.19.0",
            "types": "authentication"
        },
        "files": {
            "cronjob_scan_files": "500",
            "enabled": "yes",
            "installed_version": "2.1.0",
            "mimetype_version": "29.0.2.2",
            "types": "filesystem"
        },
        "files_downloadactivity": {
            "enabled": "no",
            "installed_version": "1.16.0",
            "types": "filesystem"
        },
        "files_downloadlimit": {
            "enabled": "yes",
            "installed_version": "2.0.0",
            "types": ""
        },
        "files_external": {
            "allow_user_mounting": "no",
            "enabled": "yes",
            "installed_version": "1.21.0",
            "types": "filesystem",
            "user_mounting_backends": "ftp,dav,owncloud,sftp,amazons3,swift,\\OC\\Files\\Storage\\SFTP_Key"
        },
        "files_markdown": {
            "enabled": "yes",
            "installed_version": "2.4.1",
            "types": ""
        },
        "files_mindmap": {
            "enabled": "yes",
            "installed_version": "0.0.30",
            "types": ""
        },
        "files_pdfviewer": {
            "enabled": "yes",
            "installed_version": "2.10.0",
            "types": ""
        },
        "files_readmemd": {
            "enabled": "no",
            "installed_version": "2.0.1",
            "types": "filesystem"
        },
        "files_reminders": {
            "enabled": "yes",
            "installed_version": "1.2.0",
            "types": ""
        },
        "files_rightclick": {
            "enabled": "no",
            "installed_version": "1.6.0",
            "types": ""
        },
        "files_sharing": {
            "enabled": "yes",
            "installed_version": "1.21.0",
            "types": "filesystem"
        },
        "files_texteditor": {
            "enabled": "no",
            "installed_version": "2.15.1",
            "types": ""
        },
        "files_trashbin": {
            "enabled": "yes",
            "installed_version": "1.19.0",
            "types": "filesystem,dav"
        },
        "files_versions": {
            "enabled": "yes",
            "installed_version": "1.22.0",
            "types": "filesystem,dav"
        },
        "firstrunwizard": {
            "enabled": "yes",
            "installed_version": "2.18.0",
            "types": "logging"
        },
        "forms": {
            "enabled": "yes",
            "installed_version": "4.2.4",
            "types": ""
        },
        "gpxedit": {
            "enabled": "no",
            "installed_version": "0.0.14",
            "types": ""
        },
        "gpxmotion": {
            "enabled": "no",
            "installed_version": "0.1.0",
            "types": ""
        },
        "gpxpod": {
            "enabled": "no",
            "installed_version": "5.0.18",
            "reset304": "1",
            "resetPics404": "1",
            "types": ""
        },
        "integration_github": {
            "enabled": "yes",
            "installed_version": "2.0.7",
            "types": ""
        },
        "integration_homeassistant": {
            "base_url": "***REMOVED SENSITIVE VALUE***",
            "enabled": "yes",
            "installed_version": "0.0.5",
            "long_lived_access_token": "***REMOVED SENSITIVE VALUE***",
            "types": ""
        },
        "integration_reddit": {
            "enabled": "yes",
            "installed_version": "2.0.3",
            "types": ""
        },
        "keeweb": {
            "enabled": "no",
            "installed_version": "0.6.18",
            "types": ""
        },
        "logreader": {
            "enabled": "yes",
            "installed_version": "2.14.0",
            "relativedates": "1",
            "types": "logging"
        },
        "lookup_server_connector": {
            "enabled": "yes",
            "installed_version": "1.17.0",
            "types": "authentication"
        },
        "mail": {
            "enabled": "no",
            "installed_version": "3.7.2",
            "types": ""
        },
        "mail_roundcube": {
            "enabled": "no",
            "installed_version": "1.0.2",
            "types": ""
        },
        "news": {
            "enabled": "no",
            "installed_version": "24.0.0",
            "types": ""
        },
        "nextcloud_announcements": {
            "enabled": "yes",
            "installed_version": "1.18.0",
            "pub_date": "Thu, 24 Oct 2019 00:00:00 +0200",
            "types": "logging"
        },
        "notes": {
            "enabled": "yes",
            "installed_version": "4.10.0",
            "types": ""
        },
        "notifications": {
            "enabled": "yes",
            "installed_version": "2.17.0",
            "types": "logging"
        },
        "oauth2": {
            "enabled": "yes",
            "installed_version": "1.17.0",
            "types": "authentication"
        },
        "onlyoffice": {
            "enabled": "no",
            "installed_version": "7.2.1",
            "types": "prevent_group_restriction"
        },
        "password_policy": {
            "enabled": "yes",
            "installed_version": "1.19.0",
            "types": "authentication"
        },
        "photos": {
            "enabled": "yes",
            "installed_version": "2.5.0",
            "lastPlaceMappedUser": "***REMOVED SENSITIVE VALUE***",
            "lastPlaceMappingDone": "true",
            "types": "dav,authentication"
        },
        "polls": {
            "enabled": "yes",
            "installed_version": "7.1.2",
            "types": ""
        },
        "privacy": {
            "enabled": "yes",
            "installed_version": "1.13.0",
            "readableLocation": "de",
            "types": ""
        },
        "provisioning_api": {
            "enabled": "yes",
            "installed_version": "1.19.0",
            "types": "prevent_group_restriction"
        },
        "recommendations": {
            "enabled": "no",
            "installed_version": "2.1.0",
            "types": ""
        },
        "related_resources": {
            "enabled": "yes",
            "installed_version": "1.4.0",
            "types": ""
        },
        "richdocuments": {
            "canonical_webroot": "",
            "disable_certificate_verification": "yes",
            "doc_format": "ooxml",
            "enabled": "yes",
            "external_apps": "",
            "installed_version": "8.4.3",
            "public_wopi_url": "https:\/\/cc.actinoide.de\/custom_apps\/richdocumentscode\/proxy.php?req=",
            "types": "prevent_group_restriction",
            "wopi_url": "http:\/\/einsteinium.internal\/custom_apps\/richdocumentscode\/proxy.php?req="
        },
        "richdocumentscode": {
            "enabled": "yes",
            "installed_version": "24.4.402",
            "types": ""
        },
        "riotchat": {
            "enabled": "no",
            "installed_version": "0.17.4",
            "types": ""
        },
        "serverinfo": {
            "cached_count_filecache": "49510",
            "cached_count_storages": "16",
            "enabled": "yes",
            "installed_version": "1.19.0",
            "token": "***REMOVED SENSITIVE VALUE***",
            "types": ""
        },
        "settings": {
            "enabled": "yes",
            "installed_version": "1.12.0",
            "types": ""
        },
        "sharebymail": {
            "enabled": "yes",
            "installed_version": "1.19.0",
            "types": "filesystem"
        },
        "socialsharing_email": {
            "enabled": "no",
            "installed_version": "2.5.0",
            "types": ""
        },
        "spreed": {
            "allowed_groups": "[]",
            "enabled": "yes",
            "has_reference_id": "yes",
            "installed_version": "19.0.4",
            "project_access_invalidated": "1",
            "signaling_token_privkey_es256": "***REMOVED SENSITIVE VALUE***",
            "signaling_token_pubkey_es256": "***REMOVED SENSITIVE VALUE***",
            "sip_bridge_groups": "[]",
            "start_conversations": "[]",
            "types": "dav,prevent_group_restriction"
        },
        "support": {
            "SwitchUpdaterServerHasRun": "yes",
            "enabled": "yes",
            "installed_version": "1.12.0",
            "types": "session"
        },
        "survey_client": {
            "enabled": "yes",
            "installed_version": "1.17.0",
            "last_report": "{\"id\":\"ocx8c8igg5sa\",\"items\":[[\"server\",\"version\",\"27.0.2.1\"],[\"server\",\"code\",\"other\"],[\"server\",\"enable_avatars\",\"yes\"],[\"server\",\"enable_previews\",\"yes\"],[\"server\",\"memcache.local\",\"\\\\OC\\\\Memcache\\\\APCu\"],[\"server\",\"memcache.distributed\",\"none\"],[\"server\",\"asset-pipeline.enabled\",\"no\"],[\"server\",\"filelocking.enabled\",\"yes\"],[\"server\",\"memcache.locking\",\"none\"],[\"server\",\"debug\",\"no\"],[\"server\",\"cron\",\"ajax\"],[\"php\",\"version\",\"8.2.9\"],[\"php\",\"memory_limit\",536870912],[\"php\",\"max_execution_time\",3600],[\"php\",\"upload_max_filesize\",536870912],[\"database\",\"type\",\"mysql\"],[\"database\",\"version\",\"10.6.15\"],[\"database\",\"size\",65978368],[\"apps\",\"activity\",\"2.19.0\"],[\"apps\",\"afterlogic\",\"disabled\"],[\"apps\",\"bookmarks\",\"13.0.1\"],[\"apps\",\"bruteforcesettings\",\"disabled\"],[\"apps\",\"calendar\",\"4.4.4\"],[\"apps\",\"checksum\",\"disabled\"],[\"apps\",\"circles\",\"27.0.1\"],[\"apps\",\"cloud_federation_api\",\"1.10.0\"],[\"apps\",\"comments\",\"1.17.0\"],[\"apps\",\"contacts\",\"5.3.2\"],[\"apps\",\"contactsinteraction\",\"1.8.0\"],[\"apps\",\"cookbook\",\"0.10.2\"],[\"apps\",\"dashboard\",\"7.7.0\"],[\"apps\",\"dav\",\"1.27.0\"],[\"apps\",\"deck\",\"1.10.0\"],[\"apps\",\"drawio\",\"disabled\"],[\"apps\",\"end_to_end_encryption\",\"1.13.1\"],[\"apps\",\"federatedfilesharing\",\"1.17.0\"],[\"apps\",\"federation\",\"1.17.0\"],[\"apps\",\"files\",\"1.22.0\"],[\"apps\",\"files_downloadactivity\",\"1.16.0\"],[\"apps\",\"files_markdown\",\"2.4.1\"],[\"apps\",\"files_mindmap\",\"disabled\"],[\"apps\",\"files_pdfviewer\",\"2.8.0\"],[\"apps\",\"files_rightclick\",\"1.6.0\"],[\"apps\",\"files_sharing\",\"1.19.0\"],[\"apps\",\"files_texteditor\",\"disabled\"],[\"apps\",\"files_trashbin\",\"1.17.0\"],[\"apps\",\"files_versions\",\"1.20.0\"],[\"apps\",\"firstrunwizard\",\"2.16.0\"],[\"apps\",\"forms\",\"3.3.1\"],[\"apps\",\"gpxedit\",\"disabled\"],[\"apps\",\"gpxmotion\",\"disabled\"],[\"apps\",\"gpxpod\",\"disabled\"],[\"apps\",\"integration_reddit\",\"2.0.1\"],[\"apps\",\"keeweb\",\"disabled\"],[\"apps\",\"logreader\",\"2.12.0\"],[\"apps\",\"lookup_server_connector\",\"1.15.0\"],[\"apps\",\"mail\",\"3.2.6\"],[\"apps\",\"mail_roundcube\",\"disabled\"],[\"apps\",\"news\",\"disabled\"],[\"apps\",\"nextcloud_announcements\",\"1.16.0\"],[\"apps\",\"notes\",\"4.8.1\"],[\"apps\",\"notifications\",\"2.15.0\"],[\"apps\",\"oauth2\",\"1.15.1\"],[\"apps\",\"onlyoffice\",\"disabled\"],[\"apps\",\"password_policy\",\"1.17.0\"],[\"apps\",\"photos\",\"2.3.0\"],[\"apps\",\"polls\",\"5.2.0\"],[\"apps\",\"privacy\",\"1.11.0\"],[\"apps\",\"provisioning_api\",\"1.17.0\"],[\"apps\",\"recommendations\",\"1.6.0\"],[\"apps\",\"related_resources\",\"1.2.0\"],[\"apps\",\"richdocuments\",\"8.1.1\"],[\"apps\",\"richdocumentscode\",\"23.5.202\"],[\"apps\",\"riotchat\",\"disabled\"],[\"apps\",\"serverinfo\",\"1.17.0\"],[\"apps\",\"settings\",\"1.9.0\"],[\"apps\",\"sharebymail\",\"1.17.0\"],[\"apps\",\"socialsharing_email\",\"disabled\"],[\"apps\",\"spreed\",\"17.0.3\"],[\"apps\",\"support\",\"1.10.0\"],[\"apps\",\"survey_client\",\"1.15.0\"],[\"apps\",\"suspicious_login\",\"3.2.1\"],[\"apps\",\"systemtags\",\"1.17.0\"],[\"apps\",\"tables\",\"disabled\"],[\"apps\",\"text\",\"3.8.0\"],[\"apps\",\"theming\",\"2.2.0\"],[\"apps\",\"twofactor_backupcodes\",\"1.16.0\"],[\"apps\",\"updatenotification\",\"1.17.0\"],[\"apps\",\"user_status\",\"1.7.0\"],[\"apps\",\"viewer\",\"2.1.0\"],[\"apps\",\"weather_status\",\"1.7.0\"],[\"apps\",\"workflowengine\",\"2.9.0\"],[\"stats\",\"num_files\",29385],[\"stats\",\"num_users\",7],[\"stats\",\"num_storages\",8],[\"stats\",\"num_storages_local\",1],[\"stats\",\"num_storages_home\",7],[\"stats\",\"num_storages_other\",0],[\"stats\",\"num_comments\",382],[\"stats\",\"num_comment_markers\",0],[\"stats\",\"num_systemtags\",0],[\"stats\",\"num_systemtags_mappings\",0],[\"files_sharing\",\"num_shares\",113],[\"files_sharing\",\"num_shares_user\",4],[\"files_sharing\",\"num_shares_groups\",0],[\"files_sharing\",\"num_shares_link\",109],[\"files_sharing\",\"num_shares_link_no_password\",109],[\"files_sharing\",\"num_fed_shares_sent\",0],[\"files_sharing\",\"num_fed_shares_received\",0],[\"files_sharing\",\"permissions_0_7\",1],[\"files_sharing\",\"permissions_3_17\",107],[\"files_sharing\",\"permissions_0_19\",1],[\"files_sharing\",\"permissions_3_19\",2],[\"files_sharing\",\"permissions_0_31\",2],[\"encryption\",\"enabled\",\"no\"],[\"encryption\",\"default_module\",\"yes\"]]}",
            "last_sent": "1693079796",
            "types": ""
        },
        "suspicious_login": {
            "enabled": "yes",
            "installed_version": "7.0.0",
            "types": "authentication"
        },
        "systemtags": {
            "enabled": "yes",
            "installed_version": "1.19.0",
            "types": "logging"
        },
        "tables": {
            "enabled": "yes",
            "installed_version": "0.7.3",
            "legacyRowTransferRunComplete": "true",
            "sequenceRepairComplete": "true",
            "types": ""
        },
        "text": {
            "enabled": "yes",
            "installed_version": "3.10.1",
            "rich_editing_enabled": "0",
            "types": "dav",
            "workspace_available": "0"
        },
        "theming": {
            "cachebuster": "2",
            "enabled": "yes",
            "installed_version": "2.4.0",
            "name": "Actinoide",
            "types": "logging",
            "url": "***REMOVED SENSITIVE VALUE***"
        },
        "twofactor_backupcodes": {
            "enabled": "yes",
            "installed_version": "1.18.0",
            "types": ""
        },
        "twofactor_totp": {
            "enabled": "yes",
            "installed_version": "11.0.0-dev",
            "types": ""
        },
        "updatenotification": {
            "bookmarks": "13.1.1",
            "calendar": "4.6.7",
            "checksum": "1.2.3",
            "contacts": "5.5.3",
            "cookbook": "0.9.6",
            "core": "29.0.3.4",
            "deck": "1.12.2",
            "enabled": "yes",
            "files_downloadactivity": "1.11.1",
            "files_mindmap": "0.0.26",
            "forms": "4.1.1",
            "gpxpod": "4.2.8",
            "installed_version": "1.19.1",
            "integration_github": "2.0.7",
            "integration_homeassistant": "0.0.4",
            "integration_reddit": "2.0.3",
            "keeweb": "0.6.6",
            "mail": "3.5.7",
            "notes": "4.9.4",
            "polls": "7.0.0",
            "richdocuments": "8.3.3",
            "richdocumentscode": "23.5.1001",
            "riotchat": "0.17.0",
            "spreed": "18.0.5",
            "types": "",
            "update_check_errors": "0"
        },
        "user_ldap": {
            "enabled": "no",
            "installed_version": "1.20.0",
            "types": "authentication"
        },
        "user_oidc": {
            "allow_multiple_user_backends": "0",
            "enabled": "yes",
            "installed_version": "5.0.3",
            "provider-1-bearerProvisioning": "0",
            "provider-1-checkBearer": "0",
            "provider-1-extraClaims": "",
            "provider-1-groupProvisioning": "1",
            "provider-1-jwksCache": "{\"keys\": [{\"kid\": \"e90e4605ef2a84c2b3948da8a6587007\", \"kty\": \"RSA\", \"alg\": \"RS256\", \"use\": \"sig\", \"n\": \"***REMOVED SENSITIVE VALUE***\", \"e\": \"AQAB\", \"x5c\": [\"***REMOVED SENSITIVE VALUE***\"], \"x5t\": \"FaC1DH8x8NVSo10x3gfOdUi0hhM\", \"x5t#S256\": \"3YXA5no07PcvMRWtoM8S2XEA3nqF63o52VXivWh6zVc\"}]}",
            "provider-1-jwksCacheTimestamp": "1719784252",
            "provider-1-mappingAddress": "",
            "provider-1-mappingAvatar": "",
            "provider-1-mappingBiography": "",
            "provider-1-mappingCountry": "",
            "provider-1-mappingDisplayName": "name",
            "provider-1-mappingEmail": "email",
            "provider-1-mappingFediverse": "",
            "provider-1-mappingGender": "",
            "provider-1-mappingGroups": "groups",
            "provider-1-mappingHeadline": "",
            "provider-1-mappingLocality": "",
            "provider-1-mappingOrganisation": "",
            "provider-1-mappingPhonenumber": "",
            "provider-1-mappingPostalcode": "",
            "provider-1-mappingQuota": "quota",
            "provider-1-mappingRegion": "",
            "provider-1-mappingRole": "",
            "provider-1-mappingStreetaddress": "",
            "provider-1-mappingTwitter": "",
            "provider-1-mappingUid": "sub",
            "provider-1-mappingWebsite": "",
            "provider-1-providerBasedId": "0",
            "provider-1-sendIdTokenHint": "1",
            "provider-1-uniqueUid": "0",
            "types": "authentication"
        },
        "user_status": {
            "enabled": "yes",
            "installed_version": "1.9.0",
            "types": ""
        },
        "viewer": {
            "enabled": "yes",
            "installed_version": "2.3.0",
            "types": ""
        },
        "weather_status": {
            "enabled": "yes",
            "installed_version": "1.9.0",
            "types": ""
        },
        "workflowengine": {
            "enabled": "yes",
            "installed_version": "2.11.0",
            "types": "filesystem"
        }
    }
}

Thank you. This file is broken:


Will try to switch to a Version from github and see if this is all or if there are other corrupted files.

No.

Yes, I can:

www-data@8399b17c9a3b:~/html/custom_apps$ ls -l | grep theme
www-data@8399b17c9a3b:~/html/custom_apps$

Thank you. I think you’re right for a more critical instance than mine. This is a privat instance only, with like a couple of people accessing it. It’s bad, when it crashes, but I’m aware that this things could happen. And when such things happen, I just need to fix it (this is, why I’m here). This is, maybe the first time, I had an issue in 5 years of using Nextcloud (with autoupdate). And honestly, a corrupt theme file doesn’t look like a Problem with the last update (which, by the way, I wasn’t saying - “since” doesn’t mean, it was the root cause).

Thank you. That was the Problem. I switched to a Version from Github and my Nextcloud instance is working again. I really appreciate your help.

1 Like

Looks like I have multiple corrupted files… :thinking:

I’m not sure where the corrupted files come from, because I re-pulled the image.

www-data@8399b17c9a3b:~/html$ find . -name "*.php" -exec file  {} \; | grep "data$"
./apps/provisioning_api/composer/composer/ClassLoader.php: data
./apps/comments/composer/composer/autoload_namespaces.php: data
./apps/comments/composer/composer/autoload_psr4.php: data
./apps/oauth2/lib/Settings/Admin.php: data
./apps/oauth2/lib/Migration/SetTokenExpiration.php: data
./apps/oauth2/lib/Migration/Version010401Date20181207190718.php: data
./cron.php: data
www-data@8399b17c9a3b:~/html$

Still trying a little bit around today.

Weird. Yeah, the bigger mystery is how that happened now. :thinking:

Those files are copied from /usr/src/nextcloud within each image at container start-up time (if the image contains a newer version of Nextcloud Server than the existing container’s /var/www/html volume). So /usr/src/nextcloud in the container/image should be a good place to diff from against your /var/www/html rather than having to go to GH for everything.

I presume it’s only your local copy that is messed up for some reason. They’re fine in the distributed image.

It’s just an rsync that does that replication into your container’s local volume. You can see it in the entrypoint here if curious: docker/docker-entrypoint.sh at 747a3f8414e3fad96c44df47b4539d2131523cc9 · nextcloud/docker · GitHub

occ integrity:check-core might also be insightful to help turn up any other types of corruption.

What’s the underlying filesystem on the host?

Thank you, @jtr . You’re pointing out some interesting ideas.

Checking the integrity of core files just showed some more problems in my installation.

www-data@7d9695662ddb:~/html$ php ./occ integrity:check-core
  - INVALID_HASH:
    - core/js/mimetypelist.js:
      - expected: 5b121122c0bec0580402c04605700056ee06eb553a4692bfc085ad3fc17aa49af43ca7795e98cbd22383020bfa9809bf3cc824b1673595f461479afb602bcec4
      - current: 3780abf2631567308dea2792113a813b71ed713c53769f4197a5e6205a4c2f1f6f6d84c8d58037e0a49b5148caf3be55276bf23f5e215e0e4d27cc8102c45b09
    - cron.php:
      - expected: d4ccb4ebb37b346dc227ca4f816f52c0b03922450b35dfe9fccaefd8543c209c6c600ad4fc3b9d5a5c48a93ce1c51628fff6bde66356a1f4393a84b412c09900
      - current: bcc0f70ed146fc5a52ab272f675d46ffdf3ef4db0c303367e008a45a3027dd7d0cbeece1007d2a9f6f876188ca88264e48c9f3f63c5190b7853c9800ba016db9
    - dist/core-files_client.js.map:
      - expected: cb9ab2ffb8e82f38249e1ab3a8c7957173360d9f4975218564d503e42dbeee9aaef3747d6d77ea10ab8bafd97f31e46dfda26711b7a324b8e977b7b98a9a6529
      - current: b8b7194779bd0155e08598d313b190dd0c684b79c5ebd63d4b772c2b4195f2a95ac48d1925d78fef79b31511a14e7befbbb35b5b9c92579c58d2d2d77621c6be
    - dist/core-install.js.LICENSE.txt:
      - expected: 8d2fc58735aa95c97f86c6e0128883f4f08a048bd16318cddab6f87f30f0753cdf477a691bc198674532eba3df1fce4512fff215a0c3ac618484562da29dfbb4
      - current: 5887a08a740eb3363a7e8e0a95962dbc14d7d3944e184bac63d45bd71e582263a8da2887c0da968cb0dc716b7be19e46ce7b2cd84816148a9085febf0be32893
    - dist/core-profile.js.map:
      - expected: c075acf517fd874d0e90383f0d0d4e1105fe17ab82ecf67759761ee1ecbe35f219b07d4debad75269ae5f467980e2ae149c9457bab40f5b335093f3aac7f506a
      - current: 9dc9654c17effe418770f4d3be3bdfb7062eb01678aa7ff88103eb6e512089bbd255f3ebfb16939883a93b01e2204968df86bea02275fed6b8d253f418d1f429
    - dist/oauth2-oauth2.js:
      - expected: bf225a75f8faac04499cdad7cd5092bbef1c4330c1edebe1117da28a00b149b8751658a980625119a0803332027e107b999da8694a59db5730b885f7e6f52b1e
      - current: a719d146de8b2141b300ad9cee16bec590f052ae9e0a6506f4680e8030142fbb028256aea1bf5d1f1048446095c56e6cc2aada203e9d890c7f7083763de35a62
    - dist/settings-vue-settings-admin-basic-settings.js:
      - expected: 40ee9b3a3fe2d108be13dd7c0b66174971d570bc7c618e16ad3e70cf6a598598008dda8c6f8d719fc8ec36c0edede33ed7cb064a720dfa75a7553d3e42a2bb7c
      - current: ed7b8953739afa20fcfd0552991e51a27edaf7b7832997dd1f262540c109de78ccb41e972ca567ac50d60993dca07089b2ff2df473752685e5c63d7db8a6aff8
    - dist/settings-vue-settings-personal-password.js:
      - expected: 1b74c7d89ae424694d4d15c77e0f995f4e6d0649741de5fafb8b53ae9dc47fc1e44d3d5f15914b6b79265a673919e52a7887e71768fcf0c860562b993273dce5
      - current: e14bc2819e23fc1825080733fd75b6c438e3026c3421acd10ec610704ddfc397ad4369be43317ec445e5ec942e7500e18115a166d489ece8801d596c2e231c80
    - dist/settings-vue-settings-personal-password.js.LICENSE.txt:
      - expected: 2adc1c73d0d80c442a29be1b0ea19e8761de6492abcb151b20ea92e21698dd5a2a3156b228e56a7486f1f115df671a320dc4ea2ab88bc5009fcc4eff072c1804
      - current: 7b7aa17404de3fc52dfac52d1f2bb4d25847e823f6b87493596801dfb61c71370420ccf16ffe7ae655f9a4e38b4bc76276630431739b3084919a76b6727805d6
    - dist/settings-vue-settings-personal-security.js.LICENSE.txt:
      - expected: f819e8bad1a6f69a6187625432a9b074b2ac5f32cb922955ee3bf1c930e6da364d437768db8ca3abe21aeb19e5298cb43d890321966fff34bb358ba6b57e0afd
      - current: beccd0aebadd63a9a0f6686e2c934bbbf1e89404718a848afdd34e349c55934d85e95b0ae4ab3a8c0e15c186e6bdcb84f3340c8a3efb532b271a5d230ed48570
    - dist/sharebymail-vue-settings-admin-sharebymail.js:
      - expected: 4849116f62c380189f351143580dce9b0d131825dc0fa46e54c1a5e3e53891146eca42710ad17b0cf7e33eb0d4d63c8a9b2736df28f5e7ac36ab8a5d7666354a
      - current: cec9923071cfde83cd23e5b82e53c8ab34fe2524450ca2755e527640c96d5ee32fd821d8a7f6c237ccdccc483de1f45823cb9d4e1b72b82526e5e06fe1141aa7
    - dist/systemtags-init.js.LICENSE.txt:
      - expected: 7854bbd32c67f07404b821a31cd9a69afc607e6284355462609d4db155703f94606e1556949d88fa19c52182ddef2e379dd8b923887f8b737c642795b8b3848b
      - current: 9be52f42e0467d33657c41321ba4b089d2c5ea7cefafdf249b21cbc2f8bdccfd8f19b5405ace1d0e79cfd331f58d4159535f9fc002c4b3b3aeff185b6b6b8958
    - dist/theming-admin-theming.js.LICENSE.txt:
      - expected: cbcdd390745872852f4da961933debcb5f36d4311935bacf2872513d6c4bb1cee4fe8c22c0d257c4a655d5a519889224541ee09231790043bfb6e7826f21fadd
      - current: 531949d208d575ab79929435b270d8bbc57e5ec3cd8fb194036942cc3cb275a4a1b27cbe6513685c4c302abc36aee88a99e677e755cca2c5aa220de37c66cfc9
    - dist/theming-personal-theming.js.LICENSE.txt:
      - expected: 7aa18509c2f6b0367960817e06be4766840e7f26a91df6acf8a6c3764eaad25220c58e03fa207b95c6370d5fd4877eadca2aa7f9de3d4e10ae736c3c99c058d3
      - current: fdc09a2b74fc3ab35e3e82539e74f4efa9ad49a9b6f3c9c36abac12f1169e8c71803b76a8db00e75570b79ec0cbffdaff4b956fc59335bb513bcc6ef4e4fe419
    - dist/updatenotification-init.js:
      - expected: 4cc6b2b6717a08fa0b6ed7ffb993f623e612298a3961678e79ae8fe32c955b5b625f15cbf2f51ef897997e2db784fb65a1aa61f3650ad6546c5e24dbdc90f071
      - current: b5075503239c0382f2745ce4b110303be46f616fdedfc1706a3faf7998465623af41090fd3efa47590464ceb9e2144299f2eb06b700b603b788810d97a8e0ff8
    - dist/updatenotification-updatenotification.js.LICENSE.txt:
      - expected: bed9a168344ad939286707471f4a53b5f61d67846909bf5379a253d5c8700246f36fa9fb0525e8df2157e8f2483b8a5d59d0b47a4ff216eb900fc034f7d517dd
      - current: 0c710daa6faf145eca0360e89b0d80c1c9f2f67a5f78530cd50673dc7f9db7e5198699c1cad9d75a506687f8e33b90a6332f375fd7daaa7d78f39b09d8634b20
    - dist/updatenotification-view-changelog-page.js:
      - expected: 633bfeba6ced378a162b6b4f576e8bde26a8eed6d0acc587827be792e46d9d25107436d8348b47a7d95d8f05cf8313872776e266a94efdffb403416e79ecf451
      - current: 6371854873c0bd8f373586b9288b3aac23a659cbd86748b1d6a8246bd7f5c25433751adde536a3d701bb51ab51e69799d4064a89071051055c9dce6594efe898
    - index.html:
      - expected: 2789086dee14a175b3c2b1ccdc1e201d44d37f5ae850522872bd34d2d6bb740531d510b4cd90c2af5b9599633d1b8c91b681291442ac4fd3c656a5b472274370
      - current: 6a12fd54e550fa1fdc8cffb331262f2613d9a31bf257e888e2127a1919ba05b7ea61a84b14ad28ba8b5335b1cae1ad5993395cf81a5a976347a7e76173ace157
    - dist/systemtags-admin.js.LICENSE.txt:
      - expected: 57486298ce2ed65956da352fcb30eab836d3928f389774a26495f4d2d659651384edc2f3aa4b9aca85c9a655c3462935cf762545a272082f317d037f9d140d5b
      - current: 9601e65c710274a565b5c2f2881e80c14a9ed1e87ef2642c19f90cf55331fc8a85bccdb65288dd7b53ec1497fb5a19050d70c795e69e0e11e8e9f71e7721a292
  - EXTRA_FILE:
    - core/img/filetypes/dwb.svg:
      - expected:
      - current: 43731dd5f17a048112ea5109b40b02ec019b3ee2324385a0f448e3bd2264cb13dc160ab018d893f92f8e2f168fd09009b51578c8c6b97a02a1617c67ac087701
    - core/img/filetypes/drawio.svg:
      - expected:
      - current: 92e0974cf869bf8ab969c3442dc2b80d55fde36441d22924db74916a06b407520aa2a9dc39336f9157195ebede697ffac0e639360879255ab91932d406e1897d
www-data@7d9695662ddb:~/html$

Is there an hidden command (after check-core) to repair this kind of errors? On first sight, even on other check-core related threads, it doesn’t look like there is an easy way of fixing those identified files.

ext4 - but I had an unexpected power-outage where even my UPS couldn’t handle the outage. Still trying to figure out…

Nothing built-in. Ideally you can grab good copies of each of those files from the contents of /usr/src/nextcloud within your container (which comes with the image). If those are messed up too, I’d personally use the Archive file drawn on by the image at build time and referenced in its Dockerfile here. (You can use the zip rather than the bz2 though if preferred).

Still having this issues every now and then (3 time in a row now). Probably after Watchtower updated the Container. At least, last time, 3 Minutes after Watchtower updated Nextcloud…

Date: Fri, 06 Sep 2024 04:31:23 +0000
Found new nextcloud:latest image (d87b10170d75)
Stopping /nextcloud (a6d05baf07f1) with SIGTERM
Creating /nextcloud

… Uptime Kuma got an error:

(GMT vs. CEST)

Im fixing this issue (because even occ doesn’t work), with this little workaround script:

#!/bin/bash

# define directories
SOURCE_DIR="/usr/src/nextcloud"
TARGET_DIR="/var/www/html"

# search for corrupted php files...
find "$TARGET_DIR" -type f -name "*.php" -exec file {} \; | grep "data$" | while read -r line; do
  # extract path from corrupted files
  corrupted_file=$(echo "$line" | cut -d: -f1)
  
  # path to correct files
  correct_file="$SOURCE_DIR${corrupted_file#$TARGET_DIR}"

  # check if correct file exists...
  if [ -f "$correct_file" ]; then
    echo "replace $corrupted_file with $correct_file"
    cp "$correct_file" "$corrupted_file"
  else
    echo "Error: couldn't find $corrupted_file ."
  fi
done

Just pasting it into the shell (without #!/bin/bash). Maybe someone else has the same problem and maybe this script helps.

Update: After running php ./occ integrity:check-core it seems like there are still some other corrupted files. Most of them are .js files. I just ran the same script as above but with ".js" files in find.*