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

This is provided from your hoster?

And it fails from the start, or does it work first and creates this error later, when you 
 (install a certain app, share a file, 
)?

In case it is “dead on arrival”, I’d directly contact your provider, perhaps you forgot to enable something or their installation process has a problem.

Hi, thanks for your answer.

Yes, this is Nexcloud Hub, provided from my hoster. It is a “one click install”, with automated updates and backups.

It was working fine from 2022, when I installed it. I don’t use the web gui on a daily basis, but I use the sync app on several desktops. The other day I noticed the web gui was not working anymore, and I assume it was working until the 30.0.2 update in november. The sync app is still working fine though. I did not make any changes or installed any apps since a very long time, so it must be something else.

Today I tried to backup my installation and data, and then copied the last version files (from the archive provided by Nextcloud) over it. I still get the same error, and the same “Class "OCA\Files\Controller\AjaxController" does not exist” errors in Nextcloud logs.

Then I created a ticket to my hoster, I’m currently waiting for an answer from them.

Interested by the answer you will get. I just upgraded from 28.0.12 to 29.0.10 on Infomaniak, and have the same kind of error, and no access to the app.

Interesting. So it’s perhaps an issue in Infomaniak backend ? To be honnest I’ve started suspecting that.
On a side note, I also have an old 17.0.3 Nextcloud (not Hub), also on Infomaniak, which is working fine. It’s still on php 7.3.

Might be yes. I hope they will be able to fix it, we’re a team using it daily.

I opened a thread here: https://help.nextcloud.com/t/app-no-longer-running-after-29-0-10-upgrade-on-infomaniak-one-click-upgrade/212093

Did u try to upgrade the php version used by the web hosting ? you can change it easily in Infomariak web manager panel :wink:

Just did :

  • Downgraded from php 8.2 to 8.1 : no change
  • Downgraded to 7.3 : This version of Nextcloud requires at least PHP 8.1 You are currently running 7.3.33. Please update your PHP version.

I’m back to 8.2

Not downgrade but upgrade as you need at least PHP 8.2 ou 8.3 for these versions of NC !

That is a terrible idea and for sure the best way to destroy your NC way beyond possible recovery !

Not downgrade but upgrade as you need at least PHP 8.2 ou 8.3 for these versions of NC !

I was on 8.2 already, and it is the most up to date version I could use right now on this hoster. I believe I could migrate to their new infrastructure to use php 8.3, but I’m afraid I could not go back. I may try that once I get an answer from the hoster support team.

That is a terrible idea and for sure the best way to destroy your NC way beyond possible recovery !

I made sure I had a backup before trying that. Since then I restored the backup to the state it was just before replacing the files (I’ve been using the hoster automated backup, and also I backuped the files by hand locally) .

Don’t forget also that you need to backup db in same to keep it with same files version or you will end up with a system unrecoverable :confused:

Yes, i restored the whole files and db to the state it was before trying the copy over

In such a case, it is probably the best to wait for the hoster’s response. Trying too many things, you can easily break things.

Don’t use such old software on publicly available servers.

I will wait for sure. I don’t want to break things as this cloud is daily used by a whole team. We need it up and running.

After insisting a bit, I got an answer from Infomaniak support :

En principe nous ne fournissons pas de support pour Nextcloud. Quoi qu’il en soit, nous avons rĂ©solu le problĂšme en supprimant un fichier qui semble ne plus ĂȘtre pris en charge sur la nouvelle version.

In principle, we do not provide support for Nextcloud. That being said, we resolved the issue by deleting a file that appears to no longer be supported in the new version.

I don’t know which file they deleted as my ticket has been automatically closed. However, my Nextcloud is now working again.

1 Like

Thanks.
I’m still waiting for an answer. I insisted too, I hope I’ll get a fix too.

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