Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update 20.0.0.8 to 21.0.3 - Some users can't login - internal server error #28229

Closed
NiTRoeSE opened this issue Jul 29, 2021 · 10 comments · Fixed by #29923
Closed

Update 20.0.0.8 to 21.0.3 - Some users can't login - internal server error #28229

NiTRoeSE opened this issue Jul 29, 2021 · 10 comments · Fixed by #29923

Comments

@NiTRoeSE
Copy link

NiTRoeSE commented Jul 29, 2021

Steps to reproduce

  1. Use external smb storage with your nextcloud (smb configured with "global login information insert by user".)
  2. Use ldap user backend
  3. Make update a from 20.0.0.8 to a newer version

Expected behaviour

Users can login and no smb problems

Actual behaviour

Some of our users can't login anymore

Server configuration

Operating system:

Ubuntu 20.04.2 LTS (GNU/Linux 5.4.0-80-generic x86_64)

Web server:

nginx/1.18.0 (Ubuntu)

Database:
psql (PostgreSQL) 12.7 (Ubuntu 12.7-0ubuntu0.20.04.1)

PHP version:

PHP 7.4.3

Nextcloud version: (see Nextcloud admin page)

21.0.3

Updated from an older Nextcloud/ownCloud or fresh install:

20.0.0.8

Where did you install Nextcloud from:

Install / update from auto-updater.

Login as admin user into your Nextcloud and access 
http://example.com/index.php/settings/integrity/failed 
paste the results here.

No errors have been found.

List of activated apps:

App list
If you have access to your command line run e.g.:
sudo -u www-data php occ app:list

Enabled:
  - accessibility: 1.6.0
  - activity: 2.13.4
  - announcementcenter: 4.0.1
  - cloud_federation_api: 1.3.0
  - contactsinteraction: 1.1.0
  - dashboard: 7.0.0
  - dav: 1.16.2
  - deck: 1.2.8
  - drawio: 1.0.1
  - external: 3.7.3
  - federatedfilesharing: 1.10.2
  - federation: 1.10.1
  - files: 1.15.0
  - files_external: 1.11.1
  - files_mindmap: 0.0.24
  - files_pdfviewer: 2.0.1
  - files_rightclick: 0.17.0
  - files_sharing: 1.12.2
  - files_trashbin: 1.10.1
  - files_videoplayer: 1.9.0
  - integration_moodle: 1.0.0
  - logreader: 2.5.0
  - lookup_server_connector: 1.8.0
  - oauth2: 1.8.0
  - onlyoffice: 6.4.2
  - password_policy: 1.10.1
  - photos: 1.2.3
  - polls: 2.0.6
  - previewgenerator: 3.1.1
  - privacy: 1.4.0
  - provisioning_api: 1.10.0
  - quota_warning: 1.9.1
  - recommendations: 0.8.0
  - serverinfo: 1.10.0
  - settings: 1.2.0
  - text: 3.1.0
  - theming: 1.11.0
  - theming_customcss: 1.9.0
  - twofactor_backupcodes: 1.9.0
  - updatenotification: 1.10.0
  - user_ldap: 1.10.2
  - user_saml: 3.3.5
  - user_status: 1.0.1
  - viewer: 1.4.0
  - weather_status: 1.0.0
  - workflowengine: 2.2.0
Disabled:
  - admin_audit
  - bruteforcesettings
  - comments
  - encryption
  - files_versions
  - firstrunwizard
  - nextcloud_announcements
  - notifications
  - sharebymail
  - support
  - survey_client
  - systemtags

Nextcloud configuration:

Config report
{
    "system": {
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "nextcloud.my.domain.de",
            "10.1.1.12"
        ],
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "pgsql",
        "version": "20.0.8.1",
        "overwrite.cli.url": "https:\/\/nextcloud.my.domain.de",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "oc_",
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "ldapIgnoreNamingRules": false,
        "ldapProviderFactory": "OCA\\User_LDAP\\LDAPProviderFactory",
        "memcache.local": "\\OC\\Memcache\\APCu",
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "redis": {
            "host": "***REMOVED SENSITIVE VALUE***",
            "port": 6379
        },
        "skeletondirectory": "\/opt\/nextcloud\/skeleton",
        "maintenance": false,
        "theme": "",
        "loglevel": 2,
        "default_language": "de",
        "default_locale": "de_DE",
        "mail_smtpmode": "smtp",
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_sendmailmode": "smtp",
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": "587",
        "mail_smtpauthtype": "LOGIN",
        "mail_smtpsecure": "tls",
        "mail_smtpauth": 1,
        "mail_smtpstreamoptions": {
            "ssl": {
                "allow_self_signed": true,
                "verify_peer": false,
                "verify_peer_name": false
            }
        },
        "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
        "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
        "activity_expire_days": 30
    },
    "apps": {
        "accessibility": {
            "types": "",
            "enabled": "yes",
            "installed_version": "1.6.0"
        },
        "activity": {
            "types": "filesystem",
            "enabled": "yes",
            "installed_version": "2.13.4",
            "notify_notification_group_settings": "1",
            "notify_notification_security": "1",
            "notify_notification_personal_settings": "0",
            "notify_notification_favorite": "0",
            "notify_email_favorite": "0",
            "notify_notification_file_changed": "0",
            "notify_email_file_changed": "0",
            "notify_notification_file_favorite_changed": "1",
            "notify_email_file_favorite_changed": "0",
            "notify_notification_announcementcenter": "1",
            "notify_email_announcementcenter": "1",
            "notify_notification_calendar": "0",
            "notify_email_calendar": "0",
            "notify_notification_calendar_event": "0",
            "notify_email_calendar_event": "0",
            "notify_notification_calendar_todo": "0",
            "notify_email_calendar_todo": "0",
            "notify_notification_shared": "0",
            "notify_email_shared": "0",
            "notify_notification_remote_share": "0",
            "notify_email_remote_share": "0",
            "notify_notification_public_links": "0",
            "notify_email_public_links": "0",
            "notify_setting_batchtime": "3600",
            "notify_setting_self": "0",
            "notify_setting_selfemail": "0"
        },
        "announcementcenter": {
            "types": "logging",
            "enabled": "yes",
            "installed_version": "4.0.1"
        },
        "backgroundjob": {
            "lastjob": "160537"
        },
        "bruteforcesettings": {
            "installed_version": "2.2.0",
            "types": "",
            "enabled": "no"
        },
        "cloud_federation_api": {
            "types": "filesystem",
            "enabled": "yes",
            "installed_version": "1.3.0"
        },
        "comments": {
            "installed_version": "1.9.0",
            "types": "logging",
            "enabled": "no"
        },
        "contactsinteraction": {
            "types": "dav",
            "enabled": "[\"lehrer-mz\",\"admin\"]",
            "installed_version": "1.1.0"
        },
        "core": {
            "installedat": "1594734439.8377",
            "vendor": "nextcloud",
            "public_webdav": "dav\/appinfo\/v1\/publicwebdav.php",
            "public_files": "files_sharing\/public.php",
            "installed.bundles": "[\"CoreBundle\"]",
            "backgroundjobs_mode": "cron",
            "updater.secret.created": "1615924864",
            "newUser.sendEmail": "no",
            "shareapi_enforce_links_password": "no",
            "shareapi_only_share_with_group_members": "no",
            "lastupdatedat": "1627547636",
            "shareapi_enable_link_password_by_default": "no",
            "shareapi_restrict_user_enumeration_to_group": "yes",
            "theming.variables": "d4b0171541ce290420c69c9e9cfa24cf",
            "shareapi_default_internal_expire_date": "no",
            "oc.integritycheck.checker": "[]",
            "moveavatarsdone": "yes",
            "previewsCleanedUp": "1",
            "lastupdateResult": "{\"version\":\"20.0.11.1\",\"versionstring\":\"Nextcloud 20.0.11\",\"url\":\"https:\\\/\\\/download.nextcloud.com\\\/server\\\/releases\\\/nextcloud-20.0.11.zip\",\"web\":\"https:\\\/\\\/docs.nextcloud.com\\\/server\\\/20\\\/admin_manual\\\/maintenance\\\/upgrade.html\",\"changes\":\"https:\\\/\\\/updates.nextcloud.com\\\/changelog_server\\\/?version=20.0.11\",\"autoupdater\":\"1\",\"eol\":\"0\"}",
            "shareapi_default_expire_date": "yes",
            "lastcron": "1627546190"
        },
        "dashboard": {
            "installed_version": "7.0.0",
            "types": "",
            "enabled": "[\"lehrer-mz\",\"admin\"]"
        },
        "dav": {
            "chunks_migrated": "1",
            "types": "filesystem",
            "enabled": "yes",
            "installed_version": "1.16.2",
            "regeneratedBirthdayCalendarsForYearFix": "yes",
            "buildCalendarSearchIndex": "yes",
            "buildCalendarReminderIndex": "yes"
        },
        "deck": {
            "installed_version": "1.2.8",
            "types": "dav",
            "enabled": "[\"lehrer-mz\",\"mitarbeiter-mz\",\"lehrer-s220\"]"
        },
        "documentserver_community": {
            "installed_version": "0.1.8",
            "types": "filesystem",
            "enabled": "no"
        },
        "drawio": {
            "installed_version": "1.0.1",
            "types": "filesystem",
            "enabled": "yes",
            "DrawioXml": "yes",
            "DrawioLang": "de",
            "DrawioAutosave": "yes",
            "DrawioTheme": "kennedy",
            "DrawioOffline": "no",
            "DrawioUrl": "https:\/\/draw.my.domain.de"
        },
        "external": {
            "sites": "***REMOVED SENSITIVE VALUE***",
            "types": "",
            "max_site": "1",
            "enabled": "yes",
            "installed_version": "3.7.3"
        },
        "federatedfilesharing": {
            "types": "",
            "enabled": "yes",
            "installed_version": "1.10.2"
        },
        "federation": {
            "types": "authentication",
            "enabled": "yes",
            "installed_version": "1.10.1"
        },
        "files": {
            "types": "filesystem",
            "enabled": "yes",
            "installed_version": "1.15.0",
            "default_quota": "10 MB",
            "cronjob_scan_files": "6500"
        },
        "files_external": {
            "installed_version": "1.11.1",
            "types": "filesystem",
            "enabled": "yes"
        },
        "files_mindmap": {
            "installed_version": "0.0.24",
            "types": "",
            "enabled": "[\"lehrer-mz\",\"mitarbeiter-mz\",\"lehrer-s220\"]"
        },
        "files_pdfviewer": {
            "types": "",
            "enabled": "yes",
            "installed_version": "2.0.1"
        },
        "files_rightclick": {
            "types": "",
            "enabled": "yes",
            "installed_version": "0.17.0"
        },
        "files_sharing": {
            "types": "filesystem",
            "enabled": "yes",
            "lookupServerUploadEnabled": "no",
            "installed_version": "1.12.2",
            "lookupServerEnabled": "no"
        },
        "files_trashbin": {
            "types": "filesystem,dav",
            "enabled": "yes",
            "installed_version": "1.10.1"
        },
        "files_versions": {
            "installed_version": "1.12.0",
            "types": "filesystem,dav",
            "enabled": "no"
        },
        "files_videoplayer": {
            "types": "",
            "enabled": "yes",
            "installed_version": "1.9.0"
        },
        "firstrunwizard": {
            "installed_version": "2.8.0",
            "types": "logging",
            "enabled": "no"
        },
        "integration_moodle": {
            "installed_version": "1.0.0",
            "types": "",
            "enabled": "yes",
            "search_disabled": "1"
        },
        "logreader": {
            "types": "",
            "enabled": "yes",
            "installed_version": "2.5.0",
            "levels": "11111"
        },
        "lookup_server_connector": {
            "types": "authentication",
            "enabled": "yes",
            "installed_version": "1.8.0"
        },
        "nextcloud_announcements": {
            "installed_version": "1.8.0",
            "types": "logging",
            "enabled": "no"
        },
        "notifications": {
            "installed_version": "2.7.0",
            "types": "logging",
            "enabled": "no"
        },
        "oauth2": {
            "types": "authentication",
            "enabled": "yes",
            "installed_version": "1.8.0"
        },
        "onlyoffice": {
            "editFormats": "{\"csv\":\"true\",\"odp\":\"true\",\"ods\":\"true\",\"odt\":\"true\",\"rtf\":\"true\",\"txt\":\"true\"}",
            "preview": "false",
            "groups": "[]",
            "sameTab": "true",
            "customizationChat": "false",
            "customizationCompactHeader": "true",
            "customizationFeedback": "false",
            "customizationForcesave": "false",
            "customizationHelp": "true",
            "customizationToolbarNoTabs": "true",
            "customizationReviewDisplay": "original",
            "DocumentServerUrl": "https:\/\/doc.my.domain.de\/",
            "types": "filesystem",
            "enabled": "yes",
            "DocumentServerInternalUrl": "",
            "StorageUrl": "",
            "demo": "{\"available\":false,\"enabled\":false,\"start\":{\"date\":\"2020-10-26 07:29:27.876553\",\"timezone_type\":3,\"timezone\":\"UTC\"}}",
            "jwt_secret": "ozlhejiocbxcp7iahKpkqzdag",
            "defFormats": "{\"csv\":\"false\",\"doc\":\"true\",\"docm\":\"false\",\"docx\":\"true\",\"dotx\":\"false\",\"epub\":\"false\",\"html\":\"false\",\"odp\":\"false\",\"ods\":\"false\",\"odt\":\"false\",\"otp\":\"false\",\"ots\":\"false\",\"ott\":\"false\",\"pdf\":\"false\",\"potm\":\"false\",\"potx\":\"false\",\"ppsm\":\"false\",\"ppsx\":\"false\",\"ppt\":\"true\",\"pptm\":\"false\",\"pptx\":\"true\",\"rtf\":\"false\",\"txt\":\"false\",\"xls\":\"true\",\"xlsm\":\"false\",\"xlsx\":\"true\",\"xltm\":\"false\",\"xltx\":\"false\"}",
            "installed_version": "6.4.2",
            "settings_error": "",
            "verify_peer_off": "false"
        },
        "password_policy": {
            "types": "authentication",
            "enabled": "yes",
            "installed_version": "1.10.1"
        },
        "photos": {
            "types": "",
            "enabled": "yes",
            "installed_version": "1.2.3"
        },
        "polls": {
            "installed_version": "2.0.6",
            "types": "",
            "enabled": "[\"lehrer-mz\",\"admin\",\"lehrer-s20\",\"mitarbeiter-mz\"]"
        },
        "previewgenerator": {
            "enabled": "yes",
            "types": "filesystem",
            "installed_version": "3.1.1"
        },
        "privacy": {
            "types": "",
            "enabled": "yes",
            "readableLocation": "de",
            "installed_version": "1.4.0"
        },
        "provisioning_api": {
            "types": "prevent_group_restriction",
            "enabled": "yes",
            "installed_version": "1.10.0"
        },
        "quota_warning": {
            "types": "filesystem",
            "installed_version": "1.9.1",
            "enabled": "yes"
        },
        "recommendations": {
            "types": "",
            "enabled": "yes",
            "installed_version": "0.8.0"
        },
        "richdocuments": {
            "installed_version": "3.7.5",
            "types": "filesystem,dav,prevent_group_restriction",
            "enabled": "no",
            "wopi_url": "https:\/\/nextcloud.my.domain.de\/apps\/richdocumentscode\/proxy.php?req=",
            "public_wopi_url": "https:\/\/nextcloud.my.domain.de\/apps\/richdocumentscode\/proxy.php?req=",
            "disable_certificate_verification": ""
        },
        "richdocumentscode": {
            "enabled": "no",
            "installed_version": "6.4.13",
            "types": ""
        },
        "serverinfo": {
            "types": "",
            "enabled": "yes",
            "installed_version": "1.10.0"
        },
        "settings": {
            "types": "",
            "enabled": "yes",
            "installed_version": "1.2.0"
        },
        "sharebymail": {
            "installed_version": "1.9.0",
            "types": "filesystem",
            "enabled": "no"
        },
        "support": {
            "installed_version": "1.2.1",
            "types": "session",
            "enabled": "no"
        },
        "survey_client": {
            "installed_version": "1.7.0",
            "types": "",
            "enabled": "no"
        },
        "systemtags": {
            "installed_version": "1.9.0",
            "types": "logging",
            "enabled": "no"
        },
        "text": {
            "types": "dav",
            "enabled": "yes",
            "installed_version": "3.1.0",
            "workspace_available": "0"
        },
        "theming": {
            "types": "logging",
            "enabled": "yes",
            "installed_version": "1.11.0",
            "faviconMime": "image\/jpeg",
            "name": "JSP Cloud",
            "url": "***REMOVED SENSITIVE VALUE***",
            "logoMime": "image\/png",
            "logoheaderMime": "image\/png",
            "cachebuster": "31",
            "color": "#7ED5F1",
            "backgroundMime": "image\/jpeg",
            "slogan": "***REMOVED SENSITIVE VALUE***"
        },
        "theming_customcss": {
            "installed_version": "1.9.0",
            "types": "",
            "enabled": "yes",
            "cachebuster": "1616052914574",
            "customcss": "\/* Disable subtitles and jumping icons *\/\n\n#appmenu li span {\n  display: none;\n}\n\n#appmenu li a.active span {\ndisplay: none;\n\n}\n\n#appmenu:hover li span,\n#appmenu li:hover a + span,\n#appmenu li a:focus + span, #appmenu li:hover span, #appmenu li:focus span,\n#appmenu li a:focus span {\n  display: none;\n}\n\n#appmenu:hover li svg,\n#appmenu:hover li .icon-more,\n#appmenu:hover li .icon-more-white,\n#appmenu:hover li .icon-loading-small,\n#appmenu:hover li .icon-loading-small-dark {\n  transform: none;\n}\n\n#appmenu li a:focus svg,\n#appmenu li a:focus .icon-more,\n#appmenu li a:focus .icon-more-white,\n#appmenu li a:focus .icon-loading-small,\n#appmenu li a:focus .icon-loading-small-dark {\n  transform: none;\n}\n\n\/* Disable triangle below icons *\/\n#appmenu li a.active::before, #appmenu li:hover a::before, #appmenu li:hover a.active::before, #appmenu li a:focus::before {\n display: none;\n}\n\n\/* Enable tooltips *\/\n#appmenu:hover li:hover span,\n#appmenu:hover li:focus span {\n    opacity: 1;\n    z-index: 5;\n    display: inline-block;\n    margin-bottom: -15px;\n    border-radius: 2px;\n    background-color: white;\n    color: #757575 !important;\n    font-size: 1em;\n    font-style: normal;\n    font-weight: normal;\n    line-height: 1.6em;\n    border-color:#7ED5F1;\n    border-width:0.1em;\n    border-style:solid;\n   \n}\n\n#appmenu:hover li .active + span {\n    opacity: 1;\n    background-color: #bcbcbc1a;\n\n}\n\n#appmenu li a.active {\n    opacity: 1;\n    background-color: #bcbcbc1a;\n    border-bottom: 2px black;\n    border-radius: 50%;\n}\n\n#appmenu:hover li:hover span.triangle--span,\n#appmenu:hover li:focus span.triangle--span {\n    width: 0;\n    height: 0;\n    border-left: 15px solid transparent;\n    border-right: 15px solid transparent;\n    border-bottom: 15px solid black;\n    z-index: 4;\n    bottom: 0;\n    margin-bottom: -3px;\n    content: '';\n    display: block;\n    position: absolute;\n    padding: 0;\n    background: none;\n}\n"
        },
        "twofactor_backupcodes": {
            "types": "",
            "enabled": "yes",
            "installed_version": "1.9.0"
        },
        "updatenotification": {
            "types": "",
            "enabled": "yes",
            "installed_version": "1.10.0",
            "polls": "2.0.6",
            "deck": "1.2.8",
            "update_check_errors": "0",
            "onlyoffice": "6.4.2",
            "user_saml": "3.3.5",
            "core": "20.0.11.1",
            "drawio": "1.0.1",
            "announcementcenter": "4.0.1",
            "external": "3.7.3",
            "integration_moodle": "1.0.0",
            "theming_customcss": "1.9.0"
        },
        "user_ldap": {
            "types": "authentication",
            "enabled": "yes",
            "s01ldap_backup_host": "",
            "s01ldap_backup_port": "",
            "s01ldap_override_main_server": "",
            "s01ldap_userfilter_groups": "",
            "s01ldap_login_filter_mode": "0",
            "s01ldap_loginfilter_email": "0",
            "s01ldap_loginfilter_username": "1",
            "s01ldap_group_filter_mode": "0",
            "s01ldap_groupfilter_groups": "",
            "s01ldap_gid_number": "gidNumber",
            "s01ldap_user_display_name_2": "",
            "s01ldap_group_display_name": "cn",
            "s01ldap_tls": "0",
            "s01ldap_quota_def": "",
            "s01ldap_quota_attr": "",
            "s01ldap_cache_ttl": "600",
            "s01home_folder_naming_rule": "",
            "s01ldap_turn_off_cert_check": "0",
            "s01ldap_attributes_for_user_search": "",
            "s01ldap_attributes_for_group_search": "",
            "s01ldap_expert_uuid_user_attr": "",
            "s01ldap_expert_uuid_group_attr": "",
            "s01use_memberof_to_detect_membership": "1",
            "s01last_jpegPhoto_lookup": "0",
            "s01ldap_nested_groups": "0",
            "s01ldap_paging_size": "500",
            "s01ldap_turn_on_pwd_change": "0",
            "s01ldap_experienced_admin": "0",
            "s01ldap_dynamic_group_member_url": "",
            "s01ldap_default_ppolicy_dn": "",
            "s01ldap_user_avatar_rule": "default",
            "s01ldap_ext_storage_home_attribute": "",
            "s01ldap_host": "ldap-master.jsp.intranet",
            "s01ldap_port": "7389",
            "s01ldap_dn": "uid=binduser,cn=users,dc=jsp,dc=intranet",
            "s01ldap_agent_password": "***REMOVED SENSITIVE VALUE***",
            "s01ldap_base": "dc=jsp,dc=intranet",
            "s01has_memberof_filter_support": "1",
            "s01ldap_configuration_active": "1",
            "s01ldap_email_attr": "mailPrimaryAddress",
            "s01ldap_display_name": "displayname",
            "s01ldap_groupfilter_objectclass": "univentionGroup",
            "s01ldap_group_filter": "(&(|(objectclass=univentionGroup)))",
            "s01ldap_expert_username_attr": "uid",
            "s01ldap_group_member_assoc_attribute": "gidNumber",
            "s01ldap_base_users": "dc=jsp,dc=intranet",
            "s01ldap_base_groups": "dc=jsp,dc=intranet",
            "s01ldap_userfilter_objectclass": "person",
            "s01ldap_userlist_filter": "(&(|(objectclass=person)))",
            "background_sync_prefix": "s01",
            "s01ldap_loginfilter_attributes": "uid",
            "s01ldap_login_filter": "(&(&(|(objectclass=person)))(|(cn=%uid)(|(uid=%uid))))",
            "s01ldap_user_filter_mode": "0",
            "installed_version": "1.10.2",
            "background_sync_interval": "4280",
            "s01_lastChange": "1627547650",
            "cleanUpJobOffset": "8850",
            "background_sync_offset": "0"
        },
        "user_saml": {
            "types": "authentication",
            "type": "saml",
            "general-require_provisioned_account": "1",
            "general-use_saml_auth_for_desktop": "1",
            "general-uid_mapping": "uid",
            "general-idp0_display_name": "SSO",
            "idp-entityId": "https:\/\/my.domain.de\/simplesamlphp\/saml2\/idp\/metadata.php",
            "idp-singleSignOnService.url": "https:\/\/my.domain.de\/simplesamlphp\/saml2\/idp\/SSOService.php",
            "idp-singleLogoutService.url": "https:\/\/my.domain.de\/simplesamlphp\/saml2\/idp\/SingleLogoutService.php",
            "enabled": "yes",
            "idp-x509cert": "MIIFPjCCBCagAwIBAgIBCzANBgkqhkiG9w0BAQsFADCBxzELMAkGA1UEBhMCREUxCzAJBgNVBAgTAkRFMQswCQYDVQQHEwJERTEbMBkGA1UEChMSTWVkaWVuemVudHJ1bSBKZW5hMSQwIgYDVQQLExtVbml2ZW50aW9uIENvcnBvcmF0ZSBTZXJ2ZXIxOjA4BgNVBAMTMVVuaXZlbnRpb24gQ29ycG9yYXRlIFNlcnZlciBSb290IENBIChJRD1qTlNmZ2ZFeikxHzAdBgkqhkiG9w0BCQEWEHNzbEBqc3AuaW50cmFuZXQwHhcNMjAwNzEzMTU1NjIxWhcNMjUwNzEyMTU1NjIxWjCBoTELMAkGA1UEBhMCREUxCzAJBgNVBAgTAkRFMQswCQYDVQQHEwJERTEbMBkGA1UEChMSTWVkaWVuemVudHJ1bSBKZW5hMSQwIgYDVQQLExtVbml2ZW50aW9uIENvcnBvcmF0ZSBTZXJ2ZXIxFDASBgNVBAPMTP\/mGPVuHjwqg8Pegrr\/a5x\/KpXLYbV29qFxq25mOe4kMvrALF4h9TcFFqPO75x+LZb38qL79mggTtQIDAQABo4IBVzCCAVMwCQYDVR0TBAIwADAdBgNVHQ4EFgQUfli6DE7OvJurtjgude98+Xeu9y0wgfwGA1UdIwSB9DCB8YAUuEJ0RXbB8cVw1TZKdMtg3z\/zQQIEwJERTELMAkGA1UEBxMCREUxGzAZBgNVBAoTEk1lZGllbnplbnRydW0gSmVuYTEkMCIGA1UECxMbVW5pdmVudGlvbiBDb3Jwb3JhdGUgU2VydmVyMTowOAYDVQQDEzFVbml2ZW50aW9uIENvcnBvcmF0ZSBTZXJ2ZXIgUm9vdCBDQSAoSUQ9ak5TZmdmRXopMR8wHQYJKoZIhvcNAQkBFhBzc2xAanNwLmludHJhbmV0ggkA2kTdw8x\/B7YwCwYDVR0PBAQDAgXgMBsGA1UdEQQUMBKCC2pzcC5qZW5hLmRlggNqc3AwDQYJKoZIhvcNAQELBQADggEBAJxffDZHNEQMLvUumj\/VVtfJVbbgP\/dHwSSqyeJxELTTFOPEhUAb9sZDGNe\/9NJ34s7LF3cZpVvtpCFVrmDuUt6u\/V+61YM2ZMAeI9zrhhdXe\/WVCV3dXFkdae9fnDqw8I83MrtMIV\/iS4sZCuxesR1\/vzMt\/w5jVuX3+RZAwn10Br7\/hB8eUs1IxUGO2aCZGzbx++a5Bb9r7XIEhu8FXPU0GCTQinwo89Qhxo5emGNE2A4o0wpizXFTCvNfCNyqMpiIkh7+mgQn8x0O7ancKu+h151w0FHyuIrZHjbP+FaNe",
            "installed_version": "3.3.5"
        },
        "user_status": {
            "installed_version": "1.0.1",
            "types": "",
            "enabled": "yes"
        },
        "viewer": {
            "types": "",
            "enabled": "yes",
            "installed_version": "1.4.0"
        },
        "weather_status": {
            "installed_version": "1.0.0",
            "types": "",
            "enabled": "yes"
        },
        "workflowengine": {
            "types": "filesystem",
            "enabled": "yes",
            "installed_version": "2.2.0"
        }
    }
}

Are you using external storage, if yes which one: local/smb/sftp/...

smb

Are you using encryption: yes/no

no

Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/...

LDAP

LDAP configuration (delete this part if not used)

LDAP config
+-------------------------------+--------------------------------------------------------+
| Configuration                 | s01                                                    |
+-------------------------------+--------------------------------------------------------+
| hasMemberOfFilterSupport      | 1                                                      |
| homeFolderNamingRule          |                                                        |
| lastJpegPhotoLookup           | 0                                                      |
| ldapAgentName                 | uid=binduser,cn=users,dc=jsp,dc=intranet               |
| ldapAgentPassword             | ***                                                    |
| ldapAttributesForGroupSearch  |                                                        |
| ldapAttributesForUserSearch   |                                                        |
| ldapBackupHost                |                                                        |
| ldapBackupPort                |                                                        |
| ldapBase                      | dc=jsp,dc=intranet                                     |
| ldapBaseGroups                | dc=jsp,dc=intranet                                     |
| ldapBaseUsers                 | dc=jsp,dc=intranet                                     |
| ldapCacheTTL                  | 600                                                    |
| ldapConfigurationActive       | 1                                                      |
| ldapDefaultPPolicyDN          |                                                        |
| ldapDynamicGroupMemberURL     |                                                        |
| ldapEmailAttribute            | mailPrimaryAddress                                     |
| ldapExperiencedAdmin          | 0                                                      |
| ldapExpertUUIDGroupAttr       |                                                        |
| ldapExpertUUIDUserAttr        |                                                        |
| ldapExpertUsernameAttr        | uid                                                    |
| ldapExtStorageHomeAttribute   |                                                        |
| ldapGidNumber                 | gidNumber                                              |
| ldapGroupDisplayName          | cn                                                     |
| ldapGroupFilter               | (&(|(objectclass=univentionGroup)))                    |
| ldapGroupFilterGroups         |                                                        |
| ldapGroupFilterMode           | 0                                                      |
| ldapGroupFilterObjectclass    | univentionGroup                                        |
| ldapGroupMemberAssocAttr      | gidNumber                                              |
| ldapHost                      | ldap-master.jsp.intranet                                |
| ldapIgnoreNamingRules         |                                                        |
| ldapLoginFilter               | (&(&(|(objectclass=person)))(|(cn=%uid)(|(uid=%uid)))) |
| ldapLoginFilterAttributes     | uid                                                    |
| ldapLoginFilterEmail          | 0                                                      |
| ldapLoginFilterMode           | 0                                                      |
| ldapLoginFilterUsername       | 1                                                      |
| ldapMatchingRuleInChainState  | unknown                                                |
| ldapNestedGroups              | 0                                                      |
| ldapOverrideMainServer        |                                                        |
| ldapPagingSize                | 500                                                    |
| ldapPort                      | 7389                                                   |
| ldapQuotaAttribute            |                                                        |
| ldapQuotaDefault              |                                                        |
| ldapTLS                       | 0                                                      |
| ldapUserAvatarRule            | default                                                |
| ldapUserDisplayName           | displayname                                            |
| ldapUserDisplayName2          |                                                        |
| ldapUserFilter                | (&(|(objectclass=person)))                             |
| ldapUserFilterGroups          |                                                        |
| ldapUserFilterMode            | 0                                                      |
| ldapUserFilterObjectclass     | person                                                 |
| ldapUuidGroupAttribute        | auto                                                   |
| ldapUuidUserAttribute         | auto                                                   |
| turnOffCertCheck              | 0                                                      |
| turnOnPasswordChange          | 0                                                      |
| useMemberOfToDetectMembership | 1                                                      |
+-------------------------------+--------------------------------------------------------+

Client configuration

Browser:

Safari Version 14.1.1
Firefox 89.0.2
Brave Version 1.26.77

Operating system:

MacOS BigSur 11.4

Logs

Web server error log

Web server error log
no errors in log

Nextcloud log (data/nextcloud.log)

Nextcloud log

{„reqId":"RhIWqj40vdiYmXk3ii5D","level":3,"time":"2021-07-28T14:07:21+00:00","remoteAddr":"10.1.1.3","user":"schuele.s251","app":"index","method":"GET","url":"/apps/files/","message":{"Exception":"Exception","Message":"Argument 1 passed to Icewind\\SMB\\BasicAuth::__construct() must be of the type string, null given, called in /var/www/nextcloud/apps/files_external/lib/Lib/Backend/SMB.php on line 82","Code":0,"Trace":[{"file":"/var/www/nextcloud/lib/private/AppFramework/App.php","line":157,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\Files\\Controller\\ViewController"},"index"]},{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":302,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OCA\\Files\\Controller\\ViewController","index",{"__class__":"OC\\AppFramework\\DependencyInjection\\DIContainer"},{"_route":"files.view.index"}]},{"file":"/var/www/nextcloud/lib/base.php","line":993,"function":"match","class":"OC\\Route\\Router","type":"->","args":["/apps/files/"]},{"file":"/var/www/nextcloud/index.php","line":37,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","Line":159,"Previous":{"Exception":"TypeError","Message":"Argument 1 passed to Icewind\\SMB\\BasicAuth::__construct() must be of the type string, null given, called in /var/www/nextcloud/apps/files_external/lib/Lib/Backend/SMB.php on line 82","Code":0,"Trace":[{"file":"/var/www/nextcloud/apps/files_external/lib/Lib/Backend/SMB.php","line":82,"function":"__construct","class":"Icewind\\SMB\\BasicAuth","type":"->","args":[null,"jsp.jena.de",null]},{"file":"/var/www/nextcloud/apps/files_external/lib/Config/ConfigAdapter.php","line":95,"function":"manipulateStorageConfig","class":"OCA\\Files_External\\Lib\\Backend\\SMB","type":"->","args":["*** sensitive parameter replaced ***",{"__class__":"OC\\User\\User"}]},{"file":"/var/www/nextcloud/apps/files_external/lib/Config/ConfigAdapter.php","line":132,"function":"prepareStorageConfig","class":"OCA\\Files_External\\Config\\ConfigAdapter","type":"->","args":["*** sensitive parameter replaced ***",{"__class__":"OC\\User\\User"}]},{"function":"OCA\\Files_External\\Config\\{closure}","class":"OCA\\Files_External\\Config\\ConfigAdapter","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/apps/files_external/lib/Config/ConfigAdapter.php","line":130,"function":"array_map","args":[{"__class__":"Closure"},{"32":{"__class__":"OCA\\Files_External\\Lib\\StorageConfig"},"33":{"__class__":"OCA\\Files_External\\Lib\\StorageConfig"}}]},{"file":"/var/www/nextcloud/lib/private/Files/Config/MountProviderCollection.php","line":109,"function":"getMountsForUser","class":"OCA\\Files_External\\Config\\ConfigAdapter","type":"->","args":[{"__class__":"OC\\User\\User"},{"__class__":"OC\\Files\\Storage\\StorageFactory"}]},{"file":"/var/www/nextcloud/lib/private/Files/Filesystem.php","line":452,"function":"addMountForUser","class":"OC\\Files\\Config\\MountProviderCollection","type":"->","args":[{"__class__":"OC\\User\\User"},{"__class__":"OC\\Files\\Mount\\Manager"}]},{"file":"/var/www/nextcloud/lib/private/Files/Filesystem.php","line":377,"function":"initMountPoints","class":"OC\\Files\\Filesystem","type":"::","args":["schuele.s251"]},{"file":"/var/www/nextcloud/lib/private/legacy/OC_Util.php","line":324,"function":"init","class":"OC\\Files\\Filesystem","type":"::","args":["schuele.s251","/schuele.s251/files"]},{"file":"/var/www/nextcloud/apps/files/lib/Controller/ViewController.php","line":145,"function":"setupFS","class":"OC_Util","type":"::","args":[]},{"file":"/var/www/nextcloud/apps/files/lib/Controller/ViewController.php","line":197,"function":"getStorageInfo","class":"OCA\\Files\\Controller\\ViewController","type":"->","args":[]},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":218,"function":"index","class":"OCA\\Files\\Controller\\ViewController","type":"->","args":["","",null,false]},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":127,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\Files\\Controller\\ViewController"},"index"]},{"file":"/var/www/nextcloud/lib/private/AppFramework/App.php","line":157,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\Files\\Controller\\ViewController"},"index"]},{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":302,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OCA\\Files\\Controller\\ViewController","index",{"__class__":"OC\\AppFramework\\DependencyInjection\\DIContainer"},{"_route":"files.view.index"}]},{"file":"/var/www/nextcloud/lib/base.php","line":993,"function":"match","class":"OC\\Route\\Router","type":"->","args":["/apps/files/"]},{"file":"/var/www/nextcloud/index.php","line":37,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/var/www/nextcloud/apps/files_external/3rdparty/icewind/smb/src/BasicAuth.php","Line":32},"CustomMessage":"--"},"userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.1.1 Safari/605.1.15","version":"21.0.3.1"}

Summery / Error Description

We use nextcloud with external smb storage (users home folder ) and ldap users.
The smb storage is authenticated from the corresponding user -->smb configured with "global login information insert by user".
With Nextcloud 20.0.0.8 this works well.
After Upgrade to any version higher than 20.0.0.8 we have the problem that around 30 % of our users can't login anymore and only gets message "internal server error".
For all other users nextcloud is working as expected.
There is no difference between the users.. same groups, same permissions etc.

Nginx and php error logs are empty. Only information which is logged when this error occurs is in nextcloud.log
Maybe it has something to do with the error report #26697 ?

@NiTRoeSE NiTRoeSE added 0. Needs triage Pending check for reproducibility or if it fits our roadmap bug labels Jul 29, 2021
@lainwir3d
Copy link

lainwir3d commented Jul 30, 2021

Got the same here, ldap user and external smb storage, updated from 20.0.8 to 20.0.11 to 21.0.3 .

My database / especially oc_filecache table size seems to have exploded from ~7GB to the ~30GB and has filled my filesystem, thus provoking the errors.

Currently investigating the size "explosion" but unfortunately I have completely deleted oc_filecache table without intending to (still have nightly backup for the last 7 days).

@szaimen
Copy link
Contributor

szaimen commented Aug 8, 2021

I suppose this is still happening on NC21.0.4?

@lainwir3d
Copy link

I don't know for my part, removed the smb external storage for the moment to confirm it's not happening without it and indeed, no problems since 11 days ago.

I'll need to re-enable it at the start of september I'll try to keep in touch.

@politas
Copy link

politas commented Aug 18, 2021

I'm having the same issue, apart from my users getting a 504 Gateway Timeout from nginx rather than an "internal server error" after almost exactly a minute of spinning wheel after entering password. Sometimes, one of my user accounts will pop up a TFA prompt after the one minute delay, but not always.

Nextcloud version : 21.0.4, 21.0.4.1
Operating system and version : Ubuntu 20.04
Apache or nginx version : nginx/1.20.1
PHP version : 7.4.22 and 8.0.9 tried, same issue.

Interestingly, the account on my system which has several SMB external storage folders set up is more likely to be able to log in than the one that has none.

@szaimen szaimen added 1. to develop Accepted and waiting to be taken care of feature: authentication feature: external storage and removed needs info 0. Needs triage Pending check for reproducibility or if it fits our roadmap labels Sep 15, 2021
@politas
Copy link

politas commented Sep 29, 2021

So interestingly, I had a period where I was able to log in after a PHP update. Sorry, I didn't capture the details here. But my PHP has just updated to PHP 8.0.11, and I'm back to getting login failures (504 Gateway Timeout). So maybe looking at what changed between PHP 8.0.9 -> 8.0.10 -> 8.0.11 may be helpful?

Switching to back to PHP 7.4.24 makes no difference. I'll also note that other websites I run that run on PHP and use LDAP authentication work perfectly, without even any delay in logging in. I don't appear to have any LDAP issues anywhere else. Clearly, something that Nextcloud is doing when accessing the LDAP server is messing up.

Disabling SMB external storage does not allow my accounts to login.

Nextcloud version now: 21.0.4
PHP: 8.0.11
Openldap: 2.4.49
nginx: 1.20.1

This is a really annoying thing to be getting no dev feedback on. I've now lost the ability to sync my calendars to my phone, because I tried clearing and resetting my DAVx5 connection after failures to sync new calendars/task lists.

None of my user accounts can log on, so we're relying on already connected sessions. Can someone give me some idea of what I can do to get this working, at least?

@politas
Copy link

politas commented Oct 2, 2021

Upgrading to Nextcloud 21.0.5.1 has me able to log in again, though strangely, the notification-based TFA seems to not be working, only TOTP (of the options I have enabled). I couldn't see anything in the release notes mentioning LDAP or other authentication issues, though.

@NiTRoeSE
Copy link
Author

Upgrading to Nextcloud 21.0.5.1 has me able to log in again, though strangely, the notification-based TFA seems to not be working, only TOTP (of the options I have enabled). I couldn't see anything in the release notes mentioning LDAP or other authentication issues, though.

Can anybody confirm that it is fixed with NC 21.0.5.1 ?
We still waiting for a fix..

@NiTRoeSE
Copy link
Author

So i tried my luck.. and its the same on all new Nextcloud versions. ( 20.0.13, 21.0.5, 22.02 )
I always can't login with various users and the craziest thing about it .. from update to update another users can't login and users which couldn't login before can suddenly login. -.-

The error messages are always the same:

{"reqId":"1TmChXCH6USdAVoGmng2","level":3,"time":"2021-10-28T10:19:10+00:00","remoteAddr":"10.1.1.3","user":"schuele.s251","app":"index","method":"GET","url":"/","message":"Argument 1 passed to Icewind\\SMB\\BasicAuth::__construct() must be of the type string, null given, called in /var/www/nextcloud/apps/files_external/lib/Lib/Backend/SMB.php on line 82","userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.1 Safari/605.1.15","version":"22.2.0.2","exception":{"Exception":"TypeError","Message":"Argument 1 passed to Icewind\\SMB\\BasicAuth::__construct() must be of the type string, null given, called in /var/www/nextcloud/apps/files_external/lib/Lib/Backend/SMB.php on line 82","Code":0,"Trace":[{"file":"/var/www/nextcloud/apps/files_external/lib/Lib/Backend/SMB.php","line":82,"function":"__construct","class":"Icewind\\SMB\\BasicAuth","type":"->","args":[null,"my.domain.de",null]},{"file":"/var/www/nextcloud/apps/files_external/lib/Config/ConfigAdapter.php","line":95,"function":"manipulateStorageConfig","class":"OCA\\Files_External\\Lib\\Backend\\SMB","type":"->","args":["*** sensitive parameter replaced ***",{"__class__":"OC\\User\\User"}]},{"file":"/var/www/nextcloud/apps/files_external/lib/Config/ConfigAdapter.php","line":132,"function":"prepareStorageConfig","class":"OCA\\Files_External\\Config\\ConfigAdapter","type":"->","args":["*** sensitive parameter replaced ***",{"__class__":"OC\\User\\User"}]},{"function":"OCA\\Files_External\\Config\\{closure}","class":"OCA\\Files_External\\Config\\ConfigAdapter","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/apps/files_external/lib/Config/ConfigAdapter.php","line":130,"function":"array_map","args":[{"__class__":"Closure"},{"32":{"__class__":"OCA\\Files_External\\Lib\\StorageConfig"},"33":{"__class__":"OCA\\Files_External\\Lib\\StorageConfig"}}]},{"file":"/var/www/nextcloud/lib/private/Files/Config/MountProviderCollection.php","line":108,"function":"getMountsForUser","class":"OCA\\Files_External\\Config\\ConfigAdapter","type":"->","args":[{"__class__":"OC\\User\\User"},{"__class__":"OC\\Files\\Storage\\StorageFactory"}]},{"file":"/var/www/nextcloud/lib/private/Files/Filesystem.php","line":429,"function":"addMountForUser","class":"OC\\Files\\Config\\MountProviderCollection","type":"->","args":[{"__class__":"OC\\User\\User"},{"__class__":"OC\\Files\\Mount\\Manager"}]},{"file":"/var/www/nextcloud/lib/private/Files/Filesystem.php","line":354,"function":"initMountPoints","class":"OC\\Files\\Filesystem","type":"::","args":["schuele.s251"]},{"file":"/var/www/nextcloud/lib/private/legacy/OC_Util.php","line":325,"function":"init","class":"OC\\Files\\Filesystem","type":"::","args":["schuele.s251","/schuele.s251/files"]},{"file":"/var/www/nextcloud/lib/private/legacy/OC_User.php","line":177,"function":"setupFS","class":"OC_Util","type":"::","args":["schuele.s251"]},{"file":"/var/www/nextcloud/lib/private/legacy/OC_User.php","line":225,"function":"loginWithApache","class":"OC_User","type":"::","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/lib/base.php","line":1041,"function":"handleApacheAuth","class":"OC_User","type":"::","args":[]},{"file":"/var/www/nextcloud/lib/base.php","line":990,"function":"handleLogin","class":"OC","type":"::","args":[{"__class__":"OC\\AppFramework\\Http\\Request"}]},{"file":"/var/www/nextcloud/index.php","line":36,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/var/www/nextcloud/apps/files_external/3rdparty/icewind/smb/src/BasicAuth.php","Line":32,"CustomMessage":"--"}}

Any help would be great!
Thanks in advanced.

@NiTRoeSE
Copy link
Author

I don't know for my part, removed the smb external storage for the moment to confirm it's not happening without it and indeed, no problems since 11 days ago.

I'll need to re-enable it at the start of september I'll try to keep in touch.

any news ?

@NiTRoeSE
Copy link
Author

I suppose this is still happening on NC21.0.4?

I can confirm its happening in 20.0.13, 21.05 and 22.0.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants