nextcloud / user_saml

:lock: App for authenticating Nextcloud users using SAML https://apps.nextcloud.com/apps/user_saml
https://portal.nextcloud.com/article/configuring-single-sign-on-10.html
GNU Affero General Public License v3.0
95 stars 75 forks source link

Failed to setup quota to invalid value rodude123 when logging in #731

Closed rodude123 closed 1 year ago

rodude123 commented 1 year ago

Steps to reproduce

  1. On an instance of nextcloud, install SSO
  2. Setup SSO with JumCloud
  3. Try to login via JumpCloud, and get said error: Failed to setup quota to invalid value rodude123

Expected behaviour

The expected behaviour is login to nextcloud

Actual behaviour

Got this error on the browser: Internal Server Error
Got this error in the logs: Failed to setup quota to invalid value rodude123

Server configuration

Operating system: Ubuntu 22.04 LTS

Web server: Apache2

Database: mariadb Ver 15.1 Distrib 10.6.12-MariaDB, for debian-linux-gnu (x86_64) using EditLine wrapper

PHP version:

PHP 8.1.2-1ubuntu2.11 (cli) (built: Feb 22 2023 22:56:18) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.1.2, Copyright (c) Zend Technologies
    with Zend OPcache v8.1.2-1ubuntu2.11, Copyright (c), by Zend Technologies

Nextcloud version: (see Nextcloud admin page) NC 26.0.2

Where did you install Nextcloud from: Installed via community PHP script on a barebones LAMP stack

List of activated apps:

Enabled:
  - activity: 2.18.0
  - admin_audit: 1.16.0
  - bruteforcesettings: 2.6.0
  - calendar: 4.3.4
  - carnet: 0.24.6
  - circles: 26.0.0
  - cloud_federation_api: 1.9.0
  - comments: 1.16.0
  - contacts: 5.2.0
  - contactsinteraction: 1.7.0
  - cookbook: 0.10.2
  - dashboard: 7.6.0
  - dav: 1.25.0
  - deck: 1.9.2
  - drawio: 2.1.1
  - electronicsignatures: 2.0.4
  - event_update_notification: 2.2.0
  - external: 5.1.0
  - extract: 1.3.5
  - federatedfilesharing: 1.16.0
  - federation: 1.16.0
  - files: 1.21.1
  - files_3d: 0.5.0
  - files_3dmodelviewer: 0.0.8
  - files_archive: 1.1.3-rc1
  - files_external: 1.18.0
  - files_fulltextsearch: 26.0.0
  - files_pdfviewer: 2.7.0
  - files_rightclick: 1.5.0
  - files_sharing: 1.18.0
  - files_trashbin: 1.16.0
  - files_versions: 1.19.1
  - files_zip: 1.4.0
  - fileslibreofficeedit: 1.1.0
  - firstrunwizard: 2.15.0
  - flowupload: 1.1.3
  - forms: 3.3.0
  - fulltextsearch: 26.0.0
  - fulltextsearch_elasticsearch: 26.0.0
  - integration_github: 2.0.4
  - integration_mastodon: 2.0.2
  - integration_moodle: 1.0.2
  - integration_openai: 1.0.9
  - integration_reddit: 2.0.0
  - integration_replicate: 1.0.6
  - integration_tmdb: 1.0.2
  - integration_youtube: 0.1.4
  - libresign: 7.1.1
  - logreader: 2.11.0
  - lookup_server_connector: 1.14.0
  - maps: 1.0.2
  - music: 1.8.3
  - ncdownloader: 1.0.7
  - nextcloud_announcements: 1.15.0
  - notes: 4.7.2
  - notifications: 2.14.0
  - oauth2: 1.14.0
  - password_policy: 1.16.0
  - passwords: 2023.5.30
  - photos: 2.2.0
  - polls: 5.0.5
  - privacy: 1.10.0
  - provisioning_api: 1.16.0
  - recognize: 4.1.0
  - recommendations: 1.5.0
  - related_resources: 1.1.0-alpha1
  - richdocuments: 8.0.2
  - serverinfo: 1.16.0
  - settings: 1.8.0
  - sharebymail: 1.16.0
  - support: 1.9.0
  - survey_client: 1.14.0
  - suspicious_login: 4.4.0
  - systemtags: 1.16.0
  - tasks: 0.15.0
  - text: 3.7.2
  - theming: 2.1.1
  - twofactor_backupcodes: 1.15.0
  - twofactor_nextcloud_notification: 3.7.0
  - twofactor_totp: 8.0.0
  - twofactor_webauthn: 1.2.0
  - unsplash: 2.2.0
  - updatenotification: 1.16.0
  - user_saml: 5.2.0
  - user_status: 1.6.0
  - video_converter: 1.0.5
  - viewer: 1.10.0
  - weather_status: 1.6.0
  - workflow_kitinerary: 1.2.0
  - workflow_media_converter: 1.8.4
  - workflowengine: 2.8.0

Nextcloud configuration:

{
    "system": {
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "cloud.rohitpai.co.uk",
            "paicloud.co.uk",
            "192.168.0.130"
        ],
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "mysql",
        "version": "26.0.2.1",
        "overwrite.cli.url": "https:\/\/cloud.rohitpai.co.uk",
        "overwriteprotocol": "https",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "oc_",
        "mysql.utf8mb4": true,
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "maintenance": false,
        "data-fingerprint": "3361592c38e6d88dfcb13b87631cc569",
        "ncd_rpctoken": "paicloudisthebest",
        "has_rebuilt_cache": true,
        "mail_smtpmode": "sendmail",
        "mail_smtpsecure": "ssl",
        "mail_sendmailmode": "smtp",
        "mail_smtpauthtype": "PLAIN",
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": "465",
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "loglevel": 0,
        "theme": "",
        "default_phone_region": "GB",
        "app_install_overwrite": [
            "files_3d",
            "documentserver_community",
            "facerecognition",
            "flowupload",
            "workflow_media_converter",
            "tasks",
            "passwords",
            "cookbook",
            "carnet",
            "drawio",
            "libresign",
            "electronicsignatures",
            "event_update_notification",
            "extract",
            "unsplash",
            "video_converter",
            "ncdownloader",
            "onlyoffice",
            "passman",
            "integration_moodle",
            "files_archive",
            "workflow_kitinerary"
        ],
        "versions_retention_obligation": "60, auto",
        "twofactor_enforced": "false",
        "twofactor_enforced_groups": [
            "General",
            "admin"
        ],
        "twofactor_enforced_excluded_groups": [],
        "updater.release.channel": "stable"
    }
}

Client configuration

Browser: Firefox 113.0.2/Chromium 114

Operating system: Arch Linux

Logs

Not sure what logs to provide here

Nextcloud log (data/owncloud.log)

https://pastebin.com/tCRdhqQz (didn't want to paste in a long log

Browser log

N/A Nothing important was found here

Edit 1:

here is my SSO config, the URL has been hidden for security reasons I can comment the URL if necessary image

blizzz commented 1 year ago

As the error message suggests, there is an invalid mapping, that tries to assign a username to the quota. Closing as config issue.