No more http access (since 29.0.6 update ?)

Nextcloud version: 29.0.7
Operating system and version: Debian GNU/Linux 8 (jessie)
Apache or nginx version: 2.4.51
PHP version : 8.1

Hi there ! My Nextcloud can’t be accessed through a browser since a few weeks. I end up with an " Internal Server Error".
I didn’t realized it immediately as contacts, calendar and file sync are still working through phone apps & desktop software, and I don’t use the browser that much.
The Nextcloud is setup to upgrade automatically minor updates, so I’m not sure of when it did happen, I would say the more likely is since the 29.0.6. Might be from the 29.0.5 or even the 4. Might be unrelated to any upgrade actually, at this stage I’m considering every possibility.
I updated it to 29.0.7 since and it did not solve the problem.

I’ve been looking on the forum and GH issues but did not find anything helping me to fix this issue, even though some were similar.
I tried the following without any success :

  • change the PHP version to 8.2
  • occ:upgrade (already up-to-date)
  • occ maintenance:repair
  • occ maintenance:update:htaccess
  • occ integrity:check-core (returns “integrity:check-core can not be used on git checkouts”)

I’m now out of ideas on of to fix this. If you have some I’d glad to hear them out, as well as link to topics or issues that could be related.

Is this the first time you’ve seen this error?: Y

Steps to replicate it:

  1. Try to access https://marcha.me/

The output of your Nextcloud log in Admin > Logging:

N/A - No http access

The output of occ:config-list:

{
    "system": {
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "marcha.me",
            "cloud.aveias.fr",
            "d.aveias.fr"
        ],
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "mysql",
        "version": "29.0.7.1",
        "overwrite.cli.url": "http:\/\/cloud.aveias.fr",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "z5m9_",
        "mysql.utf8mb4": true,
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "theme": "",
        "loglevel": 2,
        "maintenance": false,
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpmode": "smtp",
        "mail_sendmailmode": "smtp",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpsecure": "tls",
        "mail_smtpauth": 1,
        "mail_smtpauthtype": "LOGIN",
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": "587",
        "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
        "mail_smtppassword": "***REMOVED SENSITIVE VALUE***"
    },
    "apps": {
        "activity": {
            "enabled": "yes",
            "installed_version": "2.21.1",
            "types": "filesystem"
        },
        "backgroundjob": {
            "lastjob": "2514"
        },
        "breezedark": {
            "enabled": "no",
            "installed_version": "29.0.0",
            "theme_enabled": "1",
            "theme_settings_version": "3",
            "types": ""
        },
        "bruteforcesettings": {
            "enabled": "yes",
            "installed_version": "2.9.0",
            "types": ""
        },
        "calendar": {
            "enabled": "yes",
            "installed_version": "4.7.16",
            "types": ""
        },
        "circles": {
            "enabled": "no",
            "installed_version": "29.0.0-dev",
            "loopback_tmp_scheme": "http",
            "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": "no",
            "installed_version": "1.10.0",
            "types": "logging"
        },
        "contacts": {
            "enabled": "yes",
            "installed_version": "6.0.0",
            "types": "dav"
        },
        "contactsinteraction": {
            "enabled": "yes",
            "installed_version": "1.10.0",
            "types": "dav"
        },
        "core": {
            "backgroundjobs_mode": "webcron",
            "default_encryption_module": "OC_DEFAULT_MODULE",
            "emailTestSuccessful": "1",
            "enterpriseLogoChecked": "yes",
            "files_metadata_installed": "1",
            "installed.bundles": "[\"CoreBundle\"]",
            "installedat": "1580920416.4648",
            "lastcron": 1726311608,
            "lastupdateResult": "[]",
            "lastupdatedat": 1726345582,
            "moveavatarsdone": "yes",
            "previewsCleanedUp": "1",
            "public_files": "files_sharing\/public.php",
            "public_webdav": "dav\/appinfo\/v1\/publicwebdav.php",
            "shareapi_allow_links_exclude_groups": "[\"6CAB\"]",
            "shareapi_default_expire_date": "no",
            "shareapi_default_internal_expire_date": "yes",
            "shareapi_enforce_expire_date": "no",
            "shareapi_enforce_internal_expire_date": "no",
            "shareapi_exclude_groups": "yes",
            "shareapi_exclude_groups_list": "[\"6CAB\"]",
            "shareapi_expire_after_n_days": "30",
            "shareapi_internal_enforce_expire_date": "yes",
            "shareapi_internal_expire_after_n_days": "90",
            "shareapi_only_share_with_group_members": "no",
            "theming.variables": "2235a21b0f174fcfd92c66017774a6c5",
            "updater.secret.created": "1608730332",
            "vendor": "nextcloud",
            "files_metadata": {
                "photos-original_date_time": {
                    "value": null,
                    "type": "int",
                    "etag": "",
                    "indexed": true,
                    "editPermission": 0
                },
                "photos-size": {
                    "value": null,
                    "type": "array",
                    "etag": "",
                    "indexed": false,
                    "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-gps": {
                    "value": null,
                    "type": "array",
                    "etag": "",
                    "indexed": false,
                    "editPermission": 0
                }
            },
            "oc.integritycheck.checker": "[]"
        },
        "cospend": {
            "enabled": "yes",
            "installed_version": "1.6.1",
            "types": ""
        },
        "dashboard": {
            "enabled": "yes",
            "installed_version": "7.9.0",
            "types": ""
        },
        "dav": {
            "buildCalendarReminderIndex": "yes",
            "buildCalendarSearchIndex": "yes",
            "chunks_migrated": "1",
            "enabled": "yes",
            "installed_version": "1.30.1",
            "regeneratedBirthdayCalendarsForYearFix": "yes",
            "sendEventRemindersPush": "yes",
            "types": "filesystem"
        },
        "deck": {
            "enabled": "no",
            "installed_version": "1.0.2",
            "types": "dav"
        },
        "encryption": {
            "enabled": "no",
            "installed_version": "2.8.1",
            "masterKeyId": "master_e46b0ae5",
            "publicShareKeyId": "pubShare_e46b0ae5",
            "recoveryKeyId": "recoveryKey_e46b0ae5",
            "types": "filesystem"
        },
        "federatedfilesharing": {
            "enabled": "yes",
            "installed_version": "1.19.0",
            "types": ""
        },
        "federation": {
            "autoAddServers": "1",
            "enabled": "yes",
            "installed_version": "1.19.0",
            "types": "authentication"
        },
        "files": {
            "cronjob_scan_files": "500",
            "enabled": "yes",
            "installed_version": "2.1.1",
            "mimetype_version": "29.0.6.1",
            "types": "filesystem"
        },
        "files_downloadlimit": {
            "enabled": "yes",
            "installed_version": "2.0.0",
            "types": ""
        },
        "files_external": {
            "enabled": "yes",
            "installed_version": "1.21.0",
            "types": "filesystem"
        },
        "files_pdfviewer": {
            "enabled": "yes",
            "installed_version": "2.10.0",
            "types": ""
        },
        "files_reminders": {
            "enabled": "yes",
            "installed_version": "1.2.0",
            "types": ""
        },
        "files_rightclick": {
            "enabled": "no",
            "installed_version": "1.6.0",
            "types": ""
        },
        "files_sharing": {
            "enabled": "yes",
            "incoming_server2server_group_share_enabled": "yes",
            "installed_version": "1.21.0",
            "lookupServerEnabled": "yes",
            "outgoing_server2server_group_share_enabled": "yes",
            "types": "filesystem"
        },
        "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": "no",
            "installed_version": "2.12.0",
            "types": "logging"
        },
        "integration_mastodon": {
            "enabled": "no",
            "installed_version": "1.0.0",
            "types": ""
        },
        "logreader": {
            "enabled": "yes",
            "installed_version": "2.14.0",
            "levels": "11111",
            "live": "1",
            "types": "logging"
        },
        "lookup_server_connector": {
            "enabled": "yes",
            "installed_version": "1.17.0",
            "types": "authentication"
        },
        "mail": {
            "enabled": "no",
            "installed_version": "1.7.2",
            "types": ""
        },
        "nextcloud_announcements": {
            "enabled": "no",
            "installed_version": "1.9.0",
            "pub_date": "Thu, 24 Oct 2019 00:00:00 +0200",
            "types": "logging"
        },
        "notes": {
            "enabled": "yes",
            "installed_version": "4.10.1",
            "types": ""
        },
        "notifications": {
            "enabled": "yes",
            "installed_version": "2.17.0",
            "types": "logging"
        },
        "oauth2": {
            "enabled": "yes",
            "installed_version": "1.17.1",
            "types": "authentication"
        },
        "ocsms": {
            "enabled": "no",
            "installed_version": "2.2.0",
            "types": ""
        },
        "officeonline": {
            "enabled": "no",
            "installed_version": "1.0.1",
            "types": "filesystem,dav,prevent_group_restriction"
        },
        "onlyoffice": {
            "StorageUrl": "",
            "demo": "{\"available\":true,\"enabled\":true,\"start\":{\"date\":\"2020-11-22 17:24:49.222489\",\"timezone_type\":3,\"timezone\":\"UTC\"}}",
            "enabled": "no",
            "installed_version": "6.1.0",
            "settings_error": "",
            "types": "filesystem"
        },
        "password_policy": {
            "enabled": "yes",
            "enforceHaveIBeenPwned": "1",
            "enforceNumericCharacters": "1",
            "enforceSpecialCharacters": "1",
            "enforceUpperLowerCase": "1",
            "installed_version": "1.19.0",
            "maximumLoginAttempts": "10",
            "minLength": "6",
            "types": "authentication"
        },
        "phonetrack": {
            "enabled": "yes",
            "installed_version": "0.8.1",
            "types": ""
        },
        "photos": {
            "enabled": "yes",
            "installed_version": "2.5.0",
            "lastPlaceMappedUser": "Test",
            "lastPlaceMappingDone": "true",
            "types": "dav,authentication"
        },
        "polls": {
            "enabled": "no",
            "installed_version": "7.2.2",
            "types": ""
        },
        "privacy": {
            "enabled": "yes",
            "installed_version": "1.13.0",
            "readableLocation": "ch",
            "types": ""
        },
        "provisioning_api": {
            "enabled": "yes",
            "installed_version": "1.19.0",
            "types": "prevent_group_restriction"
        },
        "recommendations": {
            "enabled": "yes",
            "installed_version": "2.1.0",
            "types": ""
        },
        "related_resources": {
            "enabled": "yes",
            "installed_version": "1.4.0",
            "types": ""
        },
        "serverinfo": {
            "cached_count_filecache": "38070",
            "cached_count_storages": "20",
            "enabled": "yes",
            "installed_version": "1.19.0",
            "types": ""
        },
        "settings": {
            "enabled": "yes",
            "installed_version": "1.12.0",
            "types": ""
        },
        "sharebymail": {
            "enabled": "yes",
            "installed_version": "1.19.0",
            "types": "filesystem"
        },
        "spreed": {
            "conversations_files": "0",
            "conversations_files_public_shares": "0",
            "enable_matterbridge": "1",
            "enabled": "no",
            "installed_version": "10.0.10",
            "matterbridge_binary": "\/home\/clients\/33657cb958eabe15c6bfe9903c821272\/nextcloud\/apps\/talk_matterbridge\/bin\/matterbridge-1.25.2-linux-64bit",
            "project_access_invalidated": "1",
            "signaling_ticket_secret": "***REMOVED SENSITIVE VALUE***",
            "stun_servers": "***REMOVED SENSITIVE VALUE***",
            "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",
            "types": ""
        },
        "systemtags": {
            "enabled": "no",
            "installed_version": "1.10.0",
            "types": "logging"
        },
        "talk_matterbridge": {
            "enabled": "no",
            "installed_version": "1.25.2",
            "types": "prevent_group_restriction"
        },
        "tasks": {
            "enabled": "yes",
            "installed_version": "0.16.1",
            "types": ""
        },
        "text": {
            "enabled": "yes",
            "installed_version": "3.10.1",
            "types": "dav"
        },
        "theming": {
            "backgroundMime": "image\/jpeg",
            "cachebuster": "25",
            "color": "#1871B1",
            "enabled": "yes",
            "installed_version": "2.4.0",
            "name": "Matt Marcha's Cloud",
            "slogan": "***REMOVED SENSITIVE VALUE***",
            "types": "logging",
            "url": "***REMOVED SENSITIVE VALUE***"
        },
        "timetracker": {
            "enabled": "no",
            "installed_version": "0.0.42",
            "types": ""
        },
        "twofactor_backupcodes": {
            "enabled": "yes",
            "installed_version": "1.18.0",
            "types": ""
        },
        "updatenotification": {
            "breezedark": "19.0.5",
            "bruteforcesettings": "1.6.0",
            "calendar": "4.6.5",
            "contacts": "5.5.2",
            "core": "28.0.2.5",
            "cospend": "1.0.5",
            "enabled": "yes",
            "installed_version": "1.19.1",
            "mail": "1.4.1",
            "notes": "4.8.0",
            "ocsms": "2.1.8",
            "polls": "5.3.2",
            "spreed": "9.0.4",
            "tasks": "0.13.3",
            "types": "",
            "update_check_errors": "0"
        },
        "user_status": {
            "enabled": "yes",
            "installed_version": "1.9.0",
            "types": ""
        },
        "viewer": {
            "enabled": "yes",
            "installed_version": "2.3.0",
            "types": ""
        },
        "weather_status": {
            "enabled": "no",
            "installed_version": "1.0.0",
            "types": ""
        },
        "workflowengine": {
            "enabled": "yes",
            "installed_version": "2.11.0",
            "types": "filesystem"
        }
    }
}

Apache logs :

 marcha.me [Sat Sep 14 20:57:44.723540 2024] [authz_core:error] [pid 4127:tid 140282649585408] [client ***:0] AH01630: client denied by server configuration: /home/***/nextcloud/.env
marcha.me [Sat Sep 14 20:57:44.722200 2024] [authz_core:error] [pid 4127:tid 140282649585408] [client ***:0] AH01630: client denied by server configuration: /home/***/nextcloud/.env
marcha.me [Sat Sep 14 12:48:07.313351 2024] [fastcgi:error] [pid 176715:tid 140282607621888] [client ***:0] FastCGI: incomplete headers (0 bytes) received from server "/home/***/.config/apache/marcha.me/.fpm/php5.external"
marcha.me [Sat Sep 14 12:48:07.313312 2024] [fastcgi:error] [pid 176715:tid 140282607621888] (104)Connection reset by peer: [client ***:0] FastCGI: comm with server "/home/***/.config/apache/marcha.me/.fpm/php5.external" aborted: read failed: "Connection reset by peer" 

Output of occ:logs-tail (log level=error)

 ------- ------- ------------------------------------------------ --------------------------- 
  Level   App     Message                                          Time                       
 ------- ------- ------------------------------------------------ --------------------------- 
  Error   index   ReflectionException: Class                       2024-09-14T19:42:39+00:00  
                  "OCA\Text\Controller\DirectSessionController"                               
                  does not exist at lib/private/Route/Router.php                              
                  line 479                                                                    
                                                                                              
                  0. .../Router.php line 479                                                  
                     ReflectionClass->__construct("OCA ... r")                                
                  1. .../Router.php line 439                                                  
                     OC\Route\Router->getAttributeRoutes(                                     
                       "te ... t"                                                             
                     )                                                                        
                  2. .../Router.php line 149                                                  
                     OC\Route\Router->loadAttributeRoutes(                                    
                       "t ... t"                                                              
                     )                                                                        
                  3. .../Router.php line 289                                                  
                     OC\Route\Router->loadRoutes(                                             
                                                                                              
                     )                                                                        
                  4. .../Router.php line 323                                                  
                     OC\Route\Router->findMatchingRoute(                                      
                       "\/ocm-provider\ ... /"                                                
                     )                                                                        
                  5. .../base.php line 1060                                                   
                     OC\Route\Router->match("\/ocm-pro ... /")                                
                  6. index.php line 49                                                        
                     OC::handleRequest(                                                       
                                                                                              
                     )                                                                        
                                                                                              
  Error   index   ReflectionException: Class                       2024-09-14T19:43:46+00:00  
                  "OCA\Text\Controller\DirectSessionController"                               
                  does not exist at lib/private/Route/Router.php                              
                  line 479                                                                    
                                                                                              
                  0. .../Router.php line 479                                                  
                     ReflectionClass->__construct("OCA ... r")                                
                  1. .../Router.php line 439                                                  
                     OC\Route\Router->getAttributeRoutes(                                     
                       "te ... t"                                                             
                     )                                                                        
                  2. .../Router.php line 149                                                  
                     OC\Route\Router->loadAttributeRoutes(                                    
                       "t ... t"                                                              
                     )                                                                        
                  3. .../Router.php line 289                                                  
                     OC\Route\Router->loadRoutes(                                             
                                                                                              
                     )                                                                        
                  4. .../Router.php line 323                                                  
                     OC\Route\Router->findMatchingRoute(                                      
                       "\/ocm-provider\ ... /"                                                
                     )                                                                        
                  5. .../base.php line 1060                                                   
                     OC\Route\Router->match("\/ocm-pro ... /")                                
                  6. index.php line 49                                                        
                     OC::handleRequest(                                                       
                                                                                              
                     )                                                                        
                                                                                              
  Error   index   ReflectionException: Class                       2024-09-14T19:44:49+00:00  
                  "OCA\Text\Controller\DirectSessionController"                               
                  does not exist at lib/private/Route/Router.php                              
                  line 479                                                                    
                                                                                              
                  0. .../Router.php line 479                                                  
                     ReflectionClass->__construct("OCA ... r")                                
                  1. .../Router.php line 439                                                  
                     OC\Route\Router->getAttributeRoutes(                                     
                       "te ... t"                                                             
                     )                                                                        
                  2. .../Router.php line 149                                                  
                     OC\Route\Router->loadAttributeRoutes(                                    
                       "t ... t"                                                              
                     )                                                                        
                  3. .../Router.php line 289                                                  
                     OC\Route\Router->loadRoutes(                                             
                                                                                              
                     )                                                                        
                  4. .../Router.php line 323                                                  
                     OC\Route\Router->findMatchingRoute(                                      
                       "\/ocm-provider\ ... /"                                                
                     )                                                                        
                  5. .../base.php line 1060                                                   
                     OC\Route\Router->match("\/ocm-pro ... /")                                
                  6. index.php line 49                                                        
                     OC::handleRequest(                                                       
                                                                                              
                     )                                                                        
                                                                                              
  Error   index   ReflectionException: Class                       2024-09-14T19:45:52+00:00  
                  "OCA\Text\Controller\DirectSessionController"                               
                  does not exist at lib/private/Route/Router.php                              
                  line 479                                                                    
                                                                                              
                  0. .../Router.php line 479                                                  
                     ReflectionClass->__construct("OCA ... r")                                
                  1. .../Router.php line 439                                                  
                     OC\Route\Router->getAttributeRoutes(                                     
                       "te ... t"                                                             
                     )                                                                        
                  2. .../Router.php line 149                                                  
                     OC\Route\Router->loadAttributeRoutes(                                    
                       "t ... t"                                                              
                     )                                                                        
                  3. .../Router.php line 289                                                  
                     OC\Route\Router->loadRoutes(                                             
                                                                                              
                     )                                                                        
                  4. .../Router.php line 323                                                  
                     OC\Route\Router->findMatchingRoute(                                      
                       "\/ocm-provider\ ... /"                                                
                     )                                                                        
                  5. .../base.php line 1060                                                   
                     OC\Route\Router->match("\/ocm-pro ... /")                                
                  6. index.php line 49                                                        
                     OC::handleRequest(                                                       
                                                                                              
                     )                                                                        
                                                                                              
  Error   index   ReflectionException: Class                       2024-09-14T19:46:50+00:00  
                  "OCA\Text\Controller\DirectSessionController"                               
                  does not exist at lib/private/Route/Router.php                              
                  line 479                                                                    
                                                                                              
                  0. .../Router.php line 479                                                  
                     ReflectionClass->__construct("OCA ... r")                                
                  1. .../Router.php line 439                                                  
                     OC\Route\Router->getAttributeRoutes(                                     
                       "te ... t"                                                             
                     )                                                                        
                  2. .../Router.php line 149                                                  
                     OC\Route\Router->loadAttributeRoutes(                                    
                       "t ... t"                                                              
                     )                                                                        
                  3. .../Router.php line 289                                                  
                     OC\Route\Router->loadRoutes(                                             
                                                                                              
                     )                                                                        
                  4. .../Router.php line 323                                                  
                     OC\Route\Router->findMatchingRoute(                                      
                       "\/ocm-provider\ ... /"                                                
                     )                                                                        
                  5. .../base.php line 1060                                                   
                     OC\Route\Router->match("\/ocm-pro ... /")                                
                  6. index.php line 49                                                        
                     OC::handleRequest(                                                       
                                                                                              
                     )                                                                        
                                                                                              
  Error   index   ReflectionException: Class                       2024-09-14T19:47:57+00:00  
                  "OCA\Text\Controller\DirectSessionController"                               
                  does not exist at lib/private/Route/Router.php                              
                  line 479                                                                    
                                                                                              
                  0. .../Router.php line 479                                                  
                     ReflectionClass->__construct("OCA ... r")                                
                  1. .../Router.php line 439                                                  
                     OC\Route\Router->getAttributeRoutes(                                     
                       "te ... t"                                                             
                     )                                                                        
                  2. .../Router.php line 149                                                  
                     OC\Route\Router->loadAttributeRoutes(                                    
                       "t ... t"                                                              
                     )                                                                        
                  3. .../Router.php line 289                                                  
                     OC\Route\Router->loadRoutes(                                             
                                                                                              
                     )                                                                        
                  4. .../Router.php line 323                                                  
                     OC\Route\Router->findMatchingRoute(                                      
                       "\/ocm-provider\ ... /"                                                
                     )                                                                        
                  5. .../base.php line 1060                                                   
                     OC\Route\Router->match("\/ocm-pro ... /")                                
                  6. index.php line 49                                                        
                     OC::handleRequest(                                                       
                                                                                              
                     )                                                                        
                                                                                              
  Error   index   ReflectionException: Class                       2024-09-14T19:48:56+00:00  
                  "OCA\Text\Controller\DirectSessionController"                               
                  does not exist at lib/private/Route/Router.php                              
                  line 479                                                                    
                                                                                              
                  0. .../Router.php line 479                                                  
                     ReflectionClass->__construct("OCA ... r")                                
                  1. .../Router.php line 439                                                  
                     OC\Route\Router->getAttributeRoutes(                                     
                       "te ... t"                                                             
                     )                                                                        
                  2. .../Router.php line 149                                                  
                     OC\Route\Router->loadAttributeRoutes(                                    
                       "t ... t"                                                              
                     )                                                                        
                  3. .../Router.php line 289                                                  
                     OC\Route\Router->loadRoutes(                                             
                                                                                              
                     )                                                                        
                  4. .../Router.php line 323                                                  
                     OC\Route\Router->findMatchingRoute(                                      
                       "\/ocm-provider\ ... /"                                                
                     )                                                                        
                  5. .../base.php line 1060                                                   
                     OC\Route\Router->match("\/ocm-pro ... /")                                
                  6. index.php line 49                                                        
                     OC::handleRequest(                                                       
                                                                                              
                     )                                                                        
                                                                                              
  Error   index   ReflectionException: Class                       2024-09-14T19:49:07+00:00  
                  "OCA\Text\Controller\DirectSessionController"                               
                  does not exist at lib/private/Route/Router.php                              
                  line 479                                                                    
                                                                                              
                  0. .../Router.php line 479                                                  
                     ReflectionClass->__construct("OCA ... r")                                
                  1. .../Router.php line 439                                                  
                     OC\Route\Router->getAttributeRoutes(                                     
                       "te ... t"                                                             
                     )                                                                        
                  2. .../Router.php line 149                                                  
                     OC\Route\Router->loadAttributeRoutes(                                    
                       "t ... t"                                                              
                     )                                                                        
                  3. .../Router.php line 289                                                  
                     OC\Route\Router->loadRoutes(                                             
                                                                                              
                     )                                                                        
                  4. .../Router.php line 323                                                  
                     OC\Route\Router->findMatchingRoute("")                                   
                  5. .../base.php line 1060                                                   
                     OC\Route\Router->match("")                                               
                  6. index.php line 49                                                        
                     OC::handleRequest(                                                       
                                                                                              
                     )                                                                        
                                                                                              
  Error   index   ReflectionException: Class                       2024-09-14T19:49:58+00:00  
                  "OCA\Text\Controller\DirectSessionController"                               
                  does not exist at lib/private/Route/Router.php                              
                  line 479                                                                    
                                                                                              
                  0. .../Router.php line 479                                                  
                     ReflectionClass->__construct("OCA ... r")                                
                  1. .../Router.php line 439                                                  
                     OC\Route\Router->getAttributeRoutes(                                     
                       "te ... t"                                                             
                     )                                                                        
                  2. .../Router.php line 149                                                  
                     OC\Route\Router->loadAttributeRoutes(                                    
                       "t ... t"                                                              
                     )                                                                        
                  3. .../Router.php line 289                                                  
                     OC\Route\Router->loadRoutes(                                             
                                                                                              
                     )                                                                        
                  4. .../Router.php line 323                                                  
                     OC\Route\Router->findMatchingRoute(                                      
                       "\/ocm-provider\ ... /"                                                
                     )                                                                        
                  5. .../base.php line 1060                                                   
                     OC\Route\Router->match("\/ocm-pro ... /")                                
                  6. index.php line 49                                                        
                     OC::handleRequest(                                                       
                                                                                              
                     )                                                                        
                                                                                              
  Error   index   ReflectionException: Class                       2024-09-14T19:51:03+00:00  
                  "OCA\Text\Controller\DirectSessionController"                               
                  does not exist at lib/private/Route/Router.php                              
                  line 479                                                                    
                                                                                              
                  0. .../Router.php line 479                                                  
                     ReflectionClass->__construct("OCA ... r")                                
                  1. .../Router.php line 439                                                  
                     OC\Route\Router->getAttributeRoutes(                                     
                       "te ... t"                                                             
                     )                                                                        
                  2. .../Router.php line 149                                                  
                     OC\Route\Router->loadAttributeRoutes(                                    
                       "t ... t"                                                              
                     )                                                                        
                  3. .../Router.php line 289                                                  
                     OC\Route\Router->loadRoutes(                                             
                                                                                              
                     )                                                                        
                  4. .../Router.php line 323                                                  
                     OC\Route\Router->findMatchingRoute(                                      
                       "\/ocm-provider\ ... /"                                                
                     )                                                                        
                  5. .../base.php line 1060                                                   
                     OC\Route\Router->match("\/ocm-pro ... /")                                
                  6. index.php line 49                                                        
                     OC::handleRequest(                                                       
                                                                                              
                     )                        

The output of occ setupchecks (errors only)

		✗ WebDAV endpoint: Your web server is not yet properly set up to allow file synchronization, because the WebDAV interface seems to be broken.
To allow this check to run you have to make sure that your webserver can connect to itself. Therefor it must be able to resolve and connect to at least one its `trusted_domains` or the `overwrite.cli.url`.

		✗ HTTP headers: An exception occured while running the setup check:
ReflectionException: Class "OCA\Text\Controller\DirectSessionController" does not exist in /home/***/***/nextcloud/lib/private/Route/Router.php:479
Stack trace:
#0 /home/***/***/nextcloud/lib/private/Route/Router.php(479): ReflectionClass->__construct('OCA\\Text\\Contro...')
#1 /home/***/***/nextcloud/lib/private/Route/Router.php(439): OC\Route\Router->getAttributeRoutes('text')
#2 /home/***/***/nextcloud/lib/private/Route/Router.php(149): OC\Route\Router->loadAttributeRoutes('text')
#3 /home/***/***/nextcloud/lib/private/Route/Router.php(401): OC\Route\Router->loadRoutes()
#4 /home/***/***/nextcloud/lib/private/URLGenerator.php(103): OC\Route\Router->generate('heartbeat', Array)
#5 /home/***/***/nextcloud/apps/settings/lib/SetupChecks/SecurityHeaders.php(60): OC\URLGenerator->linkToRoute('heartbeat')
#6 /home/***/***/nextcloud/lib/private/SetupCheck/SetupCheckManager.php(51): OCA\Settings\SetupChecks\SecurityHeaders->run()
#7 /home/***/***/nextcloud/core/Command/SetupChecks.php(72): OC\SetupCheck\SetupCheckManager->runAll()
#8 /home/***/***/nextcloud/3rdparty/symfony/console/Command/Command.php(298): OC\Core\Command\SetupChecks->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#9 /home/***/***/nextcloud/core/Command/Base.php(177): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#10 /home/***/***/nextcloud/3rdparty/symfony/console/Application.php(1040): OC\Core\Command\Base->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#11 /home/***/***/nextcloud/3rdparty/symfony/console/Application.php(301): Symfony\Component\Console\Application->doRunCommand(Object(OC\Core\Command\SetupChecks), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#12 /home/***/***/nextcloud/3rdparty/symfony/console/Application.php(171): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#13 /home/***/***/nextcloud/lib/private/Console/Application.php(213): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#14 /home/***/***/nextcloud/console.php(102): OC\Console\Application->run()
#15 /home/***/***/nextcloud/occ(11): require_once('/home/***/*...')
#16 {main}



		✗ Database missing indices: An exception occured while running the setup check:
PDOException: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away in /home/***/***/nextcloud/3rdparty/doctrine/dbal/src/Driver/PDO/Connection.php:71
Stack trace:
#0 /home/***/***/nextcloud/3rdparty/doctrine/dbal/src/Driver/PDO/Connection.php(71): PDO->query('SELECT DATABASE...')
#1 /home/***/***/nextcloud/3rdparty/doctrine/dbal/src/Connection.php(1101): Doctrine\DBAL\Driver\PDO\Connection->query('SELECT DATABASE...')
#2 /home/***/***/nextcloud/lib/private/DB/Connection.php(333): Doctrine\DBAL\Connection->executeQuery('SELECT DATABASE...', Array, Array, NULL)
#3 /home/***/***/nextcloud/3rdparty/doctrine/dbal/src/Connection.php(622): OC\DB\Connection->executeQuery('SELECT DATABASE...', Array, Array)
#4 /home/***/***/nextcloud/3rdparty/doctrine/dbal/src/Connection.php(262): Doctrine\DBAL\Connection->fetchOne('SELECT DATABASE...')
#5 /home/***/***/nextcloud/3rdparty/doctrine/dbal/src/Schema/AbstractSchemaManager.php(1770): Doctrine\DBAL\Connection->getDatabase()
#6 /home/***/***/nextcloud/3rdparty/doctrine/dbal/src/Schema/AbstractSchemaManager.php(406): Doctrine\DBAL\Schema\AbstractSchemaManager->getDatabase('Doctrine\\DBAL\\S...')
#7 /home/***/***/nextcloud/3rdparty/doctrine/dbal/src/Schema/MySQLSchemaManager.php(66): Doctrine\DBAL\Schema\AbstractSchemaManager->doListTables()
#8 /home/***/***/nextcloud/3rdparty/doctrine/dbal/src/Schema/AbstractSchemaManager.php(1651): Doctrine\DBAL\Schema\MySQLSchemaManager->listTables()
#9 /home/***/***/nextcloud/3rdparty/doctrine/dbal/src/Schema/AbstractSchemaManager.php(1663): Doctrine\DBAL\Schema\AbstractSchemaManager->createSchema()
#10 /home/***/***/nextcloud/lib/private/DB/Migrator.php(97): Doctrine\DBAL\Schema\AbstractSchemaManager->introspectSchema()
#11 /home/***/***/nextcloud/lib/private/DB/Connection.php(687): OC\DB\Migrator->createSchema()
#12 /home/***/***/nextcloud/lib/private/DB/SchemaWrapper.php(43): OC\DB\Connection->createSchema()
#13 /home/***/***/nextcloud/apps/settings/lib/SetupChecks/DatabaseHasMissingIndices.php(62): OC\DB\SchemaWrapper->__construct(Object(OC\DB\Connection))
#14 /home/***/***/nextcloud/apps/settings/lib/SetupChecks/DatabaseHasMissingIndices.php(89): OCA\Settings\SetupChecks\DatabaseHasMissingIndices->getMissingIndices()
#15 /home/***/***/nextcloud/lib/private/SetupCheck/SetupCheckManager.php(51): OCA\Settings\SetupChecks\DatabaseHasMissingIndices->run()
#16 /home/***/***/nextcloud/core/Command/SetupChecks.php(72): OC\SetupCheck\SetupCheckManager->runAll()
#17 /home/***/***/nextcloud/3rdparty/symfony/console/Command/Command.php(298): OC\Core\Command\SetupChecks->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#18 /home/***/***/nextcloud/core/Command/Base.php(177): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#19 /home/***/***/nextcloud/3rdparty/symfony/console/Application.php(1040): OC\Core\Command\Base->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#20 /home/***/***/nextcloud/3rdparty/symfony/console/Application.php(301): Symfony\Component\Console\Application->doRunCommand(Object(OC\Core\Command\SetupChecks), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#21 /home/***/***/nextcloud/3rdparty/symfony/console/Application.php(171): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#22 /home/***/***/nextcloud/lib/private/Console/Application.php(213): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#23 /home/***/***/nextcloud/console.php(102): OC\Console\Application->run()
#24 /home/***/***/nextcloud/occ(11): require_once('/home/***/*...')
#25 {main}

Next Doctrine\DBAL\Driver\PDO\Exception: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away in /home/***/***/nextcloud/3rdparty/doctrine/dbal/src/Driver/PDO/Exception.php:28
Stack trace:
#0 /home/***/***/nextcloud/3rdparty/doctrine/dbal/src/Driver/PDO/Connection.php(76): Doctrine\DBAL\Driver\PDO\Exception::new(Object(PDOException))
#1 /home/***/***/nextcloud/3rdparty/doctrine/dbal/src/Connection.php(1101): Doctrine\DBAL\Driver\PDO\Connection->query('SELECT DATABASE...')
#2 /home/***/***/nextcloud/lib/private/DB/Connection.php(333): Doctrine\DBAL\Connection->executeQuery('SELECT DATABASE...', Array, Array, NULL)
#3 /home/***/***/nextcloud/3rdparty/doctrine/dbal/src/Connection.php(622): OC\DB\Connection->executeQuery('SELECT DATABASE...', Array, Array)
#4 /home/***/***/nextcloud/3rdparty/doctrine/dbal/src/Connection.php(262): Doctrine\DBAL\Connection->fetchOne('SELECT DATABASE...')
#5 /home/***/***/nextcloud/3rdparty/doctrine/dbal/src/Schema/AbstractSchemaManager.php(1770): Doctrine\DBAL\Connection->getDatabase()
#6 /home/***/***/nextcloud/3rdparty/doctrine/dbal/src/Schema/AbstractSchemaManager.php(406): Doctrine\DBAL\Schema\AbstractSchemaManager->getDatabase('Doctrine\\DBAL\\S...')
#7 /home/***/***/nextcloud/3rdparty/doctrine/dbal/src/Schema/MySQLSchemaManager.php(66): Doctrine\DBAL\Schema\AbstractSchemaManager->doListTables()
#8 /home/***/***/nextcloud/3rdparty/doctrine/dbal/src/Schema/AbstractSchemaManager.php(1651): Doctrine\DBAL\Schema\MySQLSchemaManager->listTables()
#9 /home/***/***/nextcloud/3rdparty/doctrine/dbal/src/Schema/AbstractSchemaManager.php(1663): Doctrine\DBAL\Schema\AbstractSchemaManager->createSchema()
#10 /home/***/***/nextcloud/lib/private/DB/Migrator.php(97): Doctrine\DBAL\Schema\AbstractSchemaManager->introspectSchema()
#11 /home/***/***/nextcloud/lib/private/DB/Connection.php(687): OC\DB\Migrator->createSchema()
#12 /home/***/***/nextcloud/lib/private/DB/SchemaWrapper.php(43): OC\DB\Connection->createSchema()
#13 /home/***/***/nextcloud/apps/settings/lib/SetupChecks/DatabaseHasMissingIndices.php(62): OC\DB\SchemaWrapper->__construct(Object(OC\DB\Connection))
#14 /home/***/***/nextcloud/apps/settings/lib/SetupChecks/DatabaseHasMissingIndices.php(89): OCA\Settings\SetupChecks\DatabaseHasMissingIndices->getMissingIndices()
#15 /home/***/***/nextcloud/lib/private/SetupCheck/SetupCheckManager.php(51): OCA\Settings\SetupChecks\DatabaseHasMissingIndices->run()
#16 /home/***/***/nextcloud/core/Command/SetupChecks.php(72): OC\SetupCheck\SetupCheckManager->runAll()
#17 /home/***/***/nextcloud/3rdparty/symfony/console/Command/Command.php(298): OC\Core\Command\SetupChecks->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#18 /home/***/***/nextcloud/core/Command/Base.php(177): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#19 /home/***/***/nextcloud/3rdparty/symfony/console/Application.php(1040): OC\Core\Command\Base->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#20 /home/***/***/nextcloud/3rdparty/symfony/console/Application.php(301): Symfony\Component\Console\Application->doRunCommand(Object(OC\Core\Command\SetupChecks), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#21 /home/***/***/nextcloud/3rdparty/symfony/console/Application.php(171): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#22 /home/***/***/nextcloud/lib/private/Console/Application.php(213): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#23 /home/***/***/nextcloud/console.php(102): OC\Console\Application->run()
#24 /home/***/***/nextcloud/occ(11): require_once('/home/***/*...')
#25 {main}

Next Doctrine\DBAL\Exception\ConnectionLost: An exception occurred while executing a query: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away in /home/***/***/nextcloud/3rdparty/doctrine/dbal/src/Driver/API/MySQL/ExceptionConverter.php:104
Stack trace:
#0 /home/***/***/nextcloud/3rdparty/doctrine/dbal/src/Connection.php(1943): Doctrine\DBAL\Driver\API\MySQL\ExceptionConverter->convert(Object(Doctrine\DBAL\Driver\PDO\Exception), Object(Doctrine\DBAL\Query))
#1 /home/***/***/nextcloud/3rdparty/doctrine/dbal/src/Connection.php(1885): Doctrine\DBAL\Connection->handleDriverException(Object(Doctrine\DBAL\Driver\PDO\Exception), Object(Doctrine\DBAL\Query))
#2 /home/***/***/nextcloud/3rdparty/doctrine/dbal/src/Connection.php(1106): Doctrine\DBAL\Connection->convertExceptionDuringQuery(Object(Doctrine\DBAL\Driver\PDO\Exception), 'SELECT DATABASE...', Array, Array)
#3 /home/***/***/nextcloud/lib/private/DB/Connection.php(333): Doctrine\DBAL\Connection->executeQuery('SELECT DATABASE...', Array, Array, NULL)
#4 /home/***/***/nextcloud/3rdparty/doctrine/dbal/src/Connection.php(622): OC\DB\Connection->executeQuery('SELECT DATABASE...', Array, Array)
#5 /home/***/***/nextcloud/3rdparty/doctrine/dbal/src/Connection.php(262): Doctrine\DBAL\Connection->fetchOne('SELECT DATABASE...')
#6 /home/***/***/nextcloud/3rdparty/doctrine/dbal/src/Schema/AbstractSchemaManager.php(1770): Doctrine\DBAL\Connection->getDatabase()
#7 /home/***/***/nextcloud/3rdparty/doctrine/dbal/src/Schema/AbstractSchemaManager.php(406): Doctrine\DBAL\Schema\AbstractSchemaManager->getDatabase('Doctrine\\DBAL\\S...')
#8 /home/***/***/nextcloud/3rdparty/doctrine/dbal/src/Schema/MySQLSchemaManager.php(66): Doctrine\DBAL\Schema\AbstractSchemaManager->doListTables()
#9 /home/***/***/nextcloud/3rdparty/doctrine/dbal/src/Schema/AbstractSchemaManager.php(1651): Doctrine\DBAL\Schema\MySQLSchemaManager->listTables()
#10 /home/***/***/nextcloud/3rdparty/doctrine/dbal/src/Schema/AbstractSchemaManager.php(1663): Doctrine\DBAL\Schema\AbstractSchemaManager->createSchema()
#11 /home/***/***/nextcloud/lib/private/DB/Migrator.php(97): Doctrine\DBAL\Schema\AbstractSchemaManager->introspectSchema()
#12 /home/***/***/nextcloud/lib/private/DB/Connection.php(687): OC\DB\Migrator->createSchema()
#13 /home/***/***/nextcloud/lib/private/DB/SchemaWrapper.php(43): OC\DB\Connection->createSchema()
#14 /home/***/***/nextcloud/apps/settings/lib/SetupChecks/DatabaseHasMissingIndices.php(62): OC\DB\SchemaWrapper->__construct(Object(OC\DB\Connection))
#15 /home/***/***/nextcloud/apps/settings/lib/SetupChecks/DatabaseHasMissingIndices.php(89): OCA\Settings\SetupChecks\DatabaseHasMissingIndices->getMissingIndices()
#16 /home/***/***/nextcloud/lib/private/SetupCheck/SetupCheckManager.php(51): OCA\Settings\SetupChecks\DatabaseHasMissingIndices->run()
#17 /home/***/***/nextcloud/core/Command/SetupChecks.php(72): OC\SetupCheck\SetupCheckManager->runAll()
#18 /home/***/***/nextcloud/3rdparty/symfony/console/Command/Command.php(298): OC\Core\Command\SetupChecks->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#19 /home/***/***/nextcloud/core/Command/Base.php(177): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#20 /home/***/***/nextcloud/3rdparty/symfony/console/Application.php(1040): OC\Core\Command\Base->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#21 /home/***/***/nextcloud/3rdparty/symfony/console/Application.php(301): Symfony\Component\Console\Application->doRunCommand(Object(OC\Core\Command\SetupChecks), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#22 /home/***/***/nextcloud/3rdparty/symfony/console/Application.php(171): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#23 /home/***/***/nextcloud/lib/private/Console/Application.php(213): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#24 /home/***/***/nextcloud/console.php(102): OC\Console\Application->run()
#25 /home/***/***/nextcloud/occ(11): require_once('/home/***/*...')
#26 {main}

1 Like

This file hasn’t existed in the Text app for two years.

How precisely are you upgrading your Nextcloud? You mentioned something about it being automated?

1 Like

Thank you ! :tada: I totally missed that it was in the Text app (mostly because of a lack of understanding of the namespace, which is now also solved :slightly_smiling_face:).

The Text app has indeed several old files that should not be there:

$ ls -la apps/text/lib
total 52
drwxr-xr-x 16 * * 4096 Sep 14 03:16 .
drwxr-xr-x 10 * * 4096 Sep 14 03:16 ..
drwxr-xr-x  2 * *   36 Sep 14 03:16 AppInfo
drwxr-xr-x  2 * *   38 Sep 14 03:16 Command
drwxr-xr-x  2 * * 4096 Sep 14 03:16 Controller
drwxr-xr-x  2 * *   32 Sep 14 03:16 Cron
drwxr-xr-x  2 * *   40 Sep 14 03:16 DAV
drwxr-xr-x  2 * *  156 Sep 14 03:16 Db
drwxr-xr-x  2 * *   75 Sep 14 03:16 DirectEditing
-rw-r--r--  1 * *  937 Jan 17  2023 DocumentHasUnsavedChangesException.php
-rw-r--r--  1 * *  933 Jan 17  2023 DocumentSaveConflictException.php
drwxr-xr-x  2 * *   35 Sep 14 03:16 Event
drwxr-xr-x  2 * * 4096 Sep 14 03:16 Exception
drwxr-xr-x  2 * * 4096 Sep 14 03:16 Listeners
drwxr-xr-x  3 * *   62 Sep 14 03:16 Middleware
drwxr-xr-x  2 * * 4096 Sep 14 03:16 Migration
drwxr-xr-x  2 * *   33 Sep 14 03:16 Notification
drwxr-xr-x  2 * * 4096 Sep 14 03:16 Service
-rw-r--r--  1 * * 2423 Sep 12 12:30 TextFile.php
-rw-r--r--  1 * *  929 Jan 17  2023 UploadException.php
-rw-r--r--  1 * * 1033 Jan 17  2023 VersionMismatchException.php
-rw-r--r--  1 * * 2540 Sep 12 12:30 YjsMessage.php

$ ls -la apps/text/lib/Controller
total 84
drwxr-xr-x  2 * *  4096 Sep 14 03:16 .
drwxr-xr-x 16 * *  4096 Sep 14 03:16 ..
-rw-r--r--  1 * * 10225 Sep 12 12:30 AttachmentController.php
-rw-r--r--  1 * *  4850 Mar 23  2023 DirectSessionController.php
-rw-r--r--  1 * *   502 Sep 12 12:30 ISessionAwareController.php
-rw-r--r--  1 * *  8403 Jan 17  2023 ImageController.php
-rw-r--r--  1 * *  1275 Sep 12 12:30 NavigationController.php
-rw-r--r--  1 * *  4237 Sep 12 12:30 PublicSessionController.php
-rw-r--r--  1 * *  4545 Sep 12 12:30 SessionController.php
-rw-r--r--  1 * *  2001 Sep 12 12:30 SettingsController.php
-rw-r--r--  1 * *  1494 Sep 12 12:30 TSessionAwareController.php
-rw-r--r--  1 * *  1964 Sep 12 12:30 UserApiController.php
-rw-r--r--  1 * *  7671 Sep 12 12:30 WorkspaceController.php

I double-check with the repo and deleted the files from 2023 :

$ rm apps/text/lib/Controller/DirectSessionController.php 
$ rm apps/text/lib/Controller/ImageController.php         
$ rm apps/text/lib/DocumentHasUnsavedChangesException.php 
$ rm apps/text/lib/DocumentSaveConflictException.php      
$ rm apps/text/lib/UploadException.php               
$ rm apps/text/lib/VersionMismatchException.php

Problem solved ! :white_check_mark:


Regarding the upgrade system, I’m doing it through the interface of my hosting service on a shared hosting (NC installed from the interface as well). I have absolutely no idea of how it’s working, I’m basically just clicking a button and let the magic happens. :sunglasses:
I turned on the auto-update quite recently, the old files might be leftovers from updates I skipped when I was still updating manually (like x.0.3 >> x.1.2 ) ? I know I had a similar issue with appinfo/app.php in files_external and files_sharing, and AjaxController.php in files.

Now, I wish I could prevent future similar issues. If I run integrity:check-app text, it returns many (MANY) EXTRA_FILES. Same for other apps like files. Is there any way to remove them all, without having to deal with each manually ?
I thought first to delete the app and install it again, but I’m afraid it would imply some data loss.

1 Like

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.