Skip to content

Exception: Argument 1 passed to OCA\External\AppInfo\Application::OCA\External\AppInfo\{closure}() must be an instance of Symfony\Component\EventDispatcher\GenericEvent #179

@jurgenhaas

Description

@jurgenhaas

Steps to reproduce

I have 6 identical instances on a root server, all installed via Ansible, so the code base is exactly the same. All 6 instances got upgraded from latest version 17 to version 18 and 5 of those instances work OK, just one has an issue in the files app. After logging in, an internal server error is indicated and looking into the log shows this stack trace 3 times for each request:

  Error    index              Exception: Argument 1 passed to OCA\External\AppInfo\Application::OCA\External\AppInfo\{closure}() must be an instance of Symfony\Component\EventDispatcher\GenericEvent, instance of OCP\EventDispatcher\GenericEvent   2020-02-01T11:49:02+00:00 
                              given, called in /var/www/nextcloud/tcg/3rdparty/symfony/event-dispatcher/EventDispatcher.php on line 247 at lib/private/AppFramework/Http/Dispatcher.php line 109                                                                                 
                                                                                                                                                                                                                                                                                 
                              0. lib/private/AppFramework/App.php line 125                                                                                                                                                                                                       
                                 OC\AppFramework\Http\Dispatcher->dispatch(OCA\Files\Controller\ViewController {}, "index")                                                                                                                                                      
                              1. lib/private/AppFramework/Routing/RouteActionHandler.php line 47                                                                                                                                                                                 
                                 OC\AppFramework\App::main("OCA\\Files\\Controller\\ViewController", "index", OC\AppFramework\DependencyInjection\DIContainer {}, {_route:"files.view.index"})                                                                                   
                              2. <<closure>>                                                                                                                                                                                                                                     
                                 OC\AppFramework\Routing\RouteActionHandler->__invoke({_route:"files.view.index"})                                                                                                                                                               
                              3. lib/private/Route/Router.php line 299                                                                                                                                                                                                           
                                 call_user_func(OC\AppFramework\Routing\RouteActionHandler {}, {_route:"files.view.index"})                                                                                                                                                      
                              4. lib/base.php line 1008                                                                                                                                                                                                                          
                                 OC\Route\Router->match("\/apps\/files\/")                                                                                                                                                                                                       
                              5. index.php line 38                                                                                                                                                                                                                               
                                 OC::handleRequest(                                                                                                                                                                                                                              
                                                                                                                                                                                                                                                                                 
                                 ) 

Yes, I have completely wiped the installation and started from scratch, not success. And what's interesting, both the desktop client and the Android app can show the files correctly.

When going to a different app, i.e. calendar or deck, the instance works just fine. This only happens on the files app.

I also rescanned all files and group_folders from the console with occ, no change either.

So I guess something with the database must be causing this issue and maybe the class declaration of one of the PHP files is not quite as accurate as it should be for PHP 7.2

Server configuration

Operating system: Ubuntu 18.04 LTS

Web server: Apache 2.4.29

Database: MySQL 5.7

PHP version: 7.2.24

Nextcloud version: (see Nextcloud admin page) 18.0.0.10

Updated from an older Nextcloud/ownCloud or fresh install: Upgraded from latest version 17 but also fresh install of the code base. DB of course is carried forward from 17.

Where did you install Nextcloud from: Source

Signing status:

Signing status
Array
(
    [core] => Array
        (
            [INVALID_HASH] => Array
                (
                    [.htaccess] => Array
                        (
                            [expected] => c98ec6c839cd1c86e69900c8dbc2fe457b6fd7d6ae626cfa6247b1774dfac1444b2d9cfbc0060af2a891c10d74bc0acfbf8b70f341db05429825eabf2a406bff
                            [current] => 372f7c8567856161bf4bdc4a116f4722efe230440ba676db11fb46d0313f77cbe13ada013f36d69abbddf7ee995776e6d0bdde6c9f2973de9757270d6c2e7f2d
                        )

                )

        )

)

List of activated apps:

App list
Enabled:
  - accessibility: 1.4.0
  - activity: 2.11.0
  - admin_audit: 1.8.0
  - announcementcenter: 3.7.0
  - apporder: 0.9.0
  - audioplayer: 2.9.0
  - bookmarks: 2.3.4
  - bruteforcesettings: 1.5.0
  - calendar: 2.0.1
  - circles: 0.18.1
  - cloud_federation_api: 1.1.0
  - comments: 1.8.0
  - contacts: 3.1.8
  - cookbook: 0.5.7
  - dav: 1.14.0
  - deck: 0.8.0
  - external: 3.5.0
  - federatedfilesharing: 1.8.0
  - federation: 1.8.0
  - files: 1.13.1
  - files_automatedtagging: 1.8.0
  - files_downloadactivity: 1.7.0
  - files_fulltextsearch: 1.4.1
  - files_fulltextsearch_tesseract: 1.4.0
  - files_pdfviewer: 1.7.0
  - files_rightclick: 0.15.2
  - files_sharing: 1.10.1
  - files_trashbin: 1.8.0
  - files_versions: 1.11.0
  - files_videoplayer: 1.7.0
  - firstrunwizard: 2.7.0
  - flowupload: 0.1.8
  - fulltextsearch: 1.4.1
  - fulltextsearch_elasticsearch: 1.5.0
  - gpxpod: 4.1.1
  - group_everyone: 0.1.4
  - groupfolders: 6.0.1
  - guests: 1.4.0
  - impersonate: 1.5.0
  - keeweb: 0.6.1
  - logreader: 2.3.0
  - lookup_server_connector: 1.6.0
  - mail: 1.1.2
  - maps: 0.1.4
  - metadata: 0.11.1
  - news: 14.1.2
  - nextcloud_announcements: 1.7.0
  - notes: 3.1.1
  - notifications: 2.6.0
  - oauth2: 1.6.0
  - password_policy: 1.8.0
  - phonetrack: 0.6.1
  - photos: 1.0.0
  - polls: 1.1.6
  - previewgenerator: 2.2.0
  - privacy: 1.2.0
  - provisioning_api: 1.8.0
  - ransomware_protection: 1.6.0
  - recommendations: 0.6.0
  - registration: 0.4.7
  - richdocuments: 3.5.1
  - serverinfo: 1.8.0
  - settings: 1.0.0
  - sharebymail: 1.8.0
  - spreed: 8.0.1
  - support: 1.1.0
  - survey_client: 1.6.0
  - systemtags: 1.8.0
  - tasks: 0.11.3
  - text: 2.0.0
  - theming: 1.9.0
  - twofactor_backupcodes: 1.7.0
  - twofactor_totp: 4.1.2
  - updatenotification: 1.8.0
  - user_saml: 3.0.0
  - viewer: 1.2.0
  - workflowengine: 2.0.0
Disabled:
  - encryption
  - files_external
  - user_ldap

Nextcloud configuration:

Config report
{
    "system": {
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "cloud.tc-gottmadingen.de"
        ],
        "trusted_proxies": "***REMOVED SENSITIVE VALUE***",
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "mysql",
        "version": "18.0.0.10",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "oc_",
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "forcessl": true,
        "mail_smtpmode": "smtp",
        "mail_smtpsecure": "ssl",
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpauthtype": "LOGIN",
        "mail_smtpauth": "true",
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": "465",
        "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
        "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
        "loglevel": 3,
        "logfile": "\/var\/log\/nextcloud\/tcg.log",
        "theme": "",
        "maintenance": false,
        "redis": {
            "host": "***REMOVED SENSITIVE VALUE***",
            "port": 6379,
            "timeout": 0,
            "dbindex": 2
        },
        "appstore.experimental.enabled": true,
        "trashbin_retention_obligation": "auto",
        "overwrite.cli.url": "https:\/\/cloud.tc-gottmadingen.de",
        "overwriteprotocol": "https",
        "logtimezone": "UTC",
        "htaccess.RewriteBase": "\/",
        "memcache.local": "\\OC\\Memcache\\Redis",
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "mysql.utf8mb4": true
    }
}

Are you using external storage, if yes which one: no

Are you using encryption: no

Are you using an external user-backend, if yes which one: no

Client configuration

Browser: Firefox, Chrome, Brave

Operating system: Ubuntu 18.04 LTS

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions