How to use GitHub
- Please use the 👍 reaction to show that you are affected by the same issue.
- Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
- Subscribe to receive notifications on status change and new comments.
Steps to reproduce
- Run Nextcloud AIO with Nextcloud
30.0.4.1 / 30.0.4
- Keep
user_oidc enabled in Nextcloud
- Open the Nextcloud login page and use the OpenID Connect login button
- Observe that local admin login still works, but the OIDC login flow is broken
- Check
nextcloud.log
Expected behaviour
user_oidc should boot normally and the OpenID Connect login flow should redirect the user to the configured provider and allow successful authentication.
Actual behaviour
The user_oidc app fails during service registration / boot.
Observed errors:
Error during app service registration: Could not resolve OCP\ServerVersion! Class "OCP\ServerVersion" does not exist
Trace excerpt:
... OCA\UserOIDC\User\Backend ...
... /var/www/html/custom_apps/user_oidc/lib/AppInfo/Application.php line 55 ...
Could not boot user_oidc: Failed to create closure from callable: first array member is not a valid class name or object
Trace excerpt:
... /var/www/html/custom_apps/user_oidc/lib/AppInfo/Application.php line 76 ...
Closure::fromCallable([null,"injectSession"])
Additional notes:
- Local admin login still works
- Only the OpenID Connect login flow is broken
- Provider configuration is still present in the app settings
- Running grep inside the container did not find
class ServerVersion in the current Nextcloud codebase
Server configuration
Web server: Apache (Nextcloud AIO)
Database: PostgreSQL (Nextcloud AIO)
PHP version: 8.3.14
Nextcloud version: 30.0.4.1 (30.0.4)
List of activated apps
Enabled:
- activity: 3.0.0
- admin_audit: 1.20.0
- app_api: 4.0.3
- bruteforcesettings: 3.0.0
- calendar: 5.5.16
- circles: 30.0.0
- cloud_federation_api: 1.13.0
- comments: 1.20.1
- contacts: 7.3.17
- contactsinteraction: 1.11.0
- dashboard: 7.10.0
- dav: 1.31.1
- deck: 1.14.8
- drawio: 3.0.9
- federatedfilesharing: 1.20.0
- federation: 1.20.0
- files: 2.2.0
- files_downloadlimit: 3.0.0
- files_fulltextsearch: 31.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
- fulltextsearch: 30.0.2
- fulltextsearch_elasticsearch: 30.0.1
- logreader: 3.0.0
- lookup_server_connector: 1.18.0
- ncdownloader: 1.0.23
- nextcloud-aio: 0.7.0
- nextcloud_announcements: 2.0.0
- notes: 4.13.1
- notifications: 3.0.0
- notify_push: 1.3.1
- 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
- richdocuments: 8.5.14
- serverinfo: 2.0.0
- settings: 1.13.0
- sharebymail: 1.20.0
- spreed: 20.1.11
- support: 2.0.0
- survey_client: 2.0.0
- systemtags: 1.20.0
- tasks: 0.16.1
- text: 4.1.0
- theming: 2.5.0
- twofactor_backupcodes: 1.19.0
- twofactor_totp: 12.0.0-dev
- user_oidc: 8.8.0
- user_status: 1.10.0
- viewer: 3.0.0
- weather_status: 1.10.0
- webhook_listeners: 1.1.0-dev
- whiteboard: 1.5.7
- workflowengine: 2.12.0
Disabled:
- encryption: 2.18.0
- files_external: 1.22.0
- suspicious_login: 8.0.0
- twofactor_nextcloud_notification: 4.0.0
- user_ldap: 1.21.0
Nextcloud configuration
Deployment type: Docker / Nextcloud AIO
Nextcloud status:
- installed: true
- version: 30.0.4.1
- versionstring: 30.0.4
- edition:
- maintenance: false
- needsDbUpgrade: false
- productname: Nextcloud
- extendedSupport: false
Relevant notes:
- user_oidc provider configuration is still present in app config
- OIDC provider settings are visible in the admin UI
- I did not include full system config output because it may contain sensitive values
Browser
Browser name: Firefox
Browser version: 149.0
Operating system: Windows 10 (Windows_NT 10.0.22621)
Browser log
No browser-side debugging collected yet.
The main error is visible in Nextcloud server logs.
Additional debugging details
Command:
grep -R "class ServerVersion" /var/www/html/lib /var/www/html/apps /var/www/html/3rdparty 2>/dev/null
Result:
No matches found
How to use GitHub
Steps to reproduce
30.0.4.1/30.0.4user_oidcenabled in Nextcloudnextcloud.logExpected behaviour
user_oidcshould boot normally and the OpenID Connect login flow should redirect the user to the configured provider and allow successful authentication.Actual behaviour
The
user_oidcapp fails during service registration / boot.Observed errors:
Additional notes:
class ServerVersionin the current Nextcloud codebaseServer configuration
Web server: Apache (Nextcloud AIO)
Database: PostgreSQL (Nextcloud AIO)
PHP version:
8.3.14Nextcloud version:
30.0.4.1(30.0.4)List of activated apps
Nextcloud configuration
Browser
Browser name: Firefox
Browser version: 149.0
Operating system: Windows 10 (
Windows_NT 10.0.22621)Browser log
Additional debugging details