Could not connect to web UI

The Basics

  • Nextcloud Server version (e.g., 29.x.x):
    • 30.0.2.2
  • Operating system and version (e.g., Ubuntu 24.04):
    • Don’t know (infomaniak hosting)
  • Web server and version (e.g, Apache 2.4.25):
    • Don’t know
  • Reverse proxy and version _(e.g. nginx 1.27.2)
    • None
  • PHP version (e.g, 8.3):
    • 8.2
  • Is this the first time you’ve seen this error? (Yes / No):
    • yes
  • When did this problem seem to first start?
    • Not sure
  • Installation method (e.g. AIO, NCP, Bare Metal/Archive, etc.)
    • Infomaniak automated app installtion
  • Are you using Cloudflare, mod_security, or similar? (Yes / No)
    • No

Summary of the issue you are facing:

When connected to the web UI, I’m getting a “internal server error” and could not access the UI.
The Nextcloud Windows Client app works fine.

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

Log entries

Nextcloud

{"reqId":"Z0eOgrAOc0wrtuHVxnw6ugAAAVA","level":3,"time":"2024-11-27T21:26:26+00:00","remoteAddr":"2a01:cb15:546:9900:fd05:a0e2:d6d4:7c72","user":"steph","app":"index","method":"GET","url":"/","message":"Class \"OCA\\Files\\Controller\\AjaxController\" does not exist","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:133.0) Gecko/20100101 Firefox/133.0","version":"30.0.2.2","exception":{"Exception":"ReflectionException","Message":"Class \"OCA\\Files\\Controller\\AjaxController\" does not exist","Code":-1,"Trace":[{"file":"/home/clients/2abd043bdf1cac41ff8d0737a697984c/sites/garage.arcadia-labs.com/lib/private/Route/Router.php","line":450,"function":"__construct","class":"ReflectionClass","type":"->","args":["OCA\\Files\\Controller\\AjaxController"]},{"file":"/home/clients/2abd043bdf1cac41ff8d0737a697984c/sites/garage.arcadia-labs.com/lib/private/Route/Router.php","line":410,"function":"getAttributeRoutes","class":"OC\\Route\\Router","type":"->","args":["files"]},{"file":"/home/clients/2abd043bdf1cac41ff8d0737a697984c/sites/garage.arcadia-labs.com/lib/private/Route/Router.php","line":120,"function":"loadAttributeRoutes","class":"OC\\Route\\Router","type":"->","args":["files"]},{"file":"/home/clients/2abd043bdf1cac41ff8d0737a697984c/sites/garage.arcadia-labs.com/lib/private/Route/Router.php","line":260,"function":"loadRoutes","class":"OC\\Route\\Router","type":"->","args":[]},{"file":"/home/clients/2abd043bdf1cac41ff8d0737a697984c/sites/garage.arcadia-labs.com/lib/private/Route/Router.php","line":294,"function":"findMatchingRoute","class":"OC\\Route\\Router","type":"->","args":[""]},{"file":"/home/clients/2abd043bdf1cac41ff8d0737a697984c/sites/garage.arcadia-labs.com/lib/base.php","line":1003,"function":"match","class":"OC\\Route\\Router","type":"->","args":[""]},{"file":"/home/clients/2abd043bdf1cac41ff8d0737a697984c/sites/garage.arcadia-labs.com/index.php","line":24,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/home/clients/2abd043bdf1cac41ff8d0737a697984c/sites/garage.arcadia-labs.com/lib/private/Route/Router.php","Line":450,"message":"Class \"OCA\\Files\\Controller\\AjaxController\" does not exist","exception":{},"CustomMessage":"Class \"OCA\\Files\\Controller\\AjaxController\" does not exist"}}

Web Browser

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

Network :

No error

Console :

Content-Security-Policy : Les paramètres de la page ont empêché l’exécution d’un script intégré (script-src-elem) car il enfreint la directive suivante : « script-src 'self' 'nonce-B0dP+crELj1xuHlKjTIihAOMEo5krBiuLDbwGxt4Z3A=' »

Web server / Reverse Proxy

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

FastCGI: server "/home/clients/2abd043bdf1cac41ff8d0737a697984c/.config/apache/garage.arcadia-labs.com/.fpm/php5.external" stderr: #4 /home/cli...s/2abd043bdf1cac41ff8d0737a697984c/sites/garage.arcadia-labs.com/3rdparty/pimple/pimple/src/Pimple/Container.php(122): OC\\AppFramework\\Utility\\SimpleContainer->OC\\AppFramework\\Utility\\{closure}(Object(Pimple\\Container)) 
FastCGI: server "/home/clients/2abd043bdf1cac41ff8d0737a697984c/.config/apache/garage.arcadia-labs.com/.fpm/php5.external" stderr: #3 /home/clients/2abd043bdf1cac41ff8d0737a697984c/sites/garage.arcadia-labs.com/lib/private/AppFramework/Utility/SimpleContainer.php(120): Pimple\\Container->offsetGet('OC\\\\DB\\\\Connectio...') 
FastCGI: server "/home/clients/2abd043bdf1cac41ff8d0737a697984c/.config/apache/garage.arcadia-labs.com/.fpm/php5.external" stderr: #2 /home/clients/2abd043bdf1cac41ff8d0737a697984c/sites/garage.arcadia-labs.com/3rdparty/pimple/pimple/src/Pimple/Container.php(122): OC\\AppFramework\\Utility\\SimpleContainer->OC\\AppFramework\\Utility\\{closure}(Object(Pimple\\Container)) 
FastCGI: server "/home/clients/2abd043bdf1cac41ff8d0737a697984c/.config/apache/garage.arcadia-labs.com/.fpm/php5.external" stderr: #1 /home/clients/2abd043bdf1cac41ff8d0737a697984c/sites/garage.arcadia-labs.com/lib/private/AppFramework/Utility/SimpleContainer.php(153): OC\\Server->OC\\{closure}(Object(OC\\Server)) 
FastCGI: server "/home/clients/2abd043bdf1cac41ff8d0737a697984c/.config/apache/garage.arcadia-labs.com/.fpm/php5.external" stderr: #0 /home/clients/2abd043bdf1cac41ff8d0737a697984c/sites/garage.arcadia-labs.com/lib/private/Server.php(820): OC\\DB\\ConnectionFactory->getConnection('mysql', Array) 
FastCGI: server "/home/clients/2abd043bdf1cac41ff8d0737a697984c/.config/apache/garage.arcadia-labs.com/.fpm/php5.external" stderr: 1cac41ff8d0737a697984c/sites/garage.arcadia-labs.com/3rdparty/pear/pear-core-minimal/src:/home/clients/2abd043bdf1cac41ff8d0737a697984c/sites/garage.arcadia-labs.com/3rdparty/pear/pear_exception:/home/clients/2abd043bdf1cac41ff8d0737a697984c/sites/garage.arcadia-labs.com/apps') in /home/clients/2abd043bdf1cac41ff8d0737a697984c/sites/garage.arcadia-labs.com/lib/composer/composer/ClassLoader.php on line 576; PHP message: PHP Fatal error: Uncaught Error: Class "Doctrine\\Common\\EventManager" not found in /home/clients/2abd043bdf1cac41ff8d0737a697984c/sites/garage.arcadia-labs.com/lib/private/DB/ConnectionFactory.php:109 

Configuration

Nextcloud

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

{
    "system": {
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "3n0lraroxk.preview.infomaniak.website",
            "garage.arcadia-labs.com"
        ],
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "mysql",
        "version": "30.0.2.2",
        "overwrite.cli.url": "http:\/\/3n0lraroxk.preview.infomaniak.website",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "vvmj_",
        "mysql.utf8mb4": true,
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpmode": "smtp",
        "mail_sendmailmode": "smtp",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": "465",
        "mail_smtpauthtype": "LOGIN",
        "mail_smtpauth": 1,
        "mail_smtpsecure": "ssl",
        "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
        "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
        "loglevel": 2,
        "maintenance": false,
        "filelocking.enabled": true,
        "theme": ""
    }
}

Apps

Enabled:
  - activity: 3.0.0
  - app_api: 4.0.0
  - bruteforcesettings: 3.0.0
  - circles: 30.0.0
  - cloud_federation_api: 1.13.0
  - comments: 1.20.1
  - contactsinteraction: 1.11.0
  - dashboard: 7.10.0
  - dav: 1.31.1
  - federatedfilesharing: 1.20.0
  - federation: 1.20.0
  - files: 2.2.0
  - files_downloadlimit: 3.0.0
  - files_pdfviewer: 3.0.0
  - files_reminders: 1.3.0
  - files_sharing: 1.22.0
  - files_trashbin: 1.20.1
  - files_versions: 1.23.0
  - firstrunwizard: 3.0.0
  - logreader: 3.0.0
  - lookup_server_connector: 1.18.0
  - nextcloud_announcements: 2.0.0
  - notifications: 3.0.0
  - oauth2: 1.18.1
  - password_policy: 2.0.0
  - photos: 3.0.2
  - privacy: 2.0.0
  - provisioning_api: 1.20.0
  - recommendations: 3.0.0
  - related_resources: 1.5.0
  - serverinfo: 2.0.0
  - settings: 1.13.0
  - sharebymail: 1.20.0
  - support: 2.0.0
  - survey_client: 2.0.0
  - systemtags: 1.20.0
  - text: 4.1.0
  - theming: 2.5.0
  - twofactor_backupcodes: 1.19.0
  - updatenotification: 1.20.0
  - user_status: 1.10.0
  - viewer: 3.0.0
  - weather_status: 1.10.0
  - webhook_listeners: 1.1.0-dev
  - workflowengine: 2.12.0
Disabled:
  - accessibility: 1.10.0
  - admin_audit: 1.20.0
  - cookbook: 0.11.2 (installed 0.11.2)
  - encryption: 2.18.0
  - files_external: 1.22.0
  - files_rightclick: 1.6.0 (installed 1.6.0)
  - files_videoplayer: 1.13.0
  - suspicious_login: 8.0.0
  - twofactor_nextcloud_notification: 4.0.0
  - twofactor_totp: 12.0.0-dev
  - user_ldap: 1.21.0