Cannot login with correct password and no error message

Support intro

Sorry to hear you’re facing problems. :slightly_frowning_face:

The community help forum is for home and non-enterprise users. Support is provided by other community members on a best effort / “as available” basis. All of those responding are volunteering their time to help you.

The Basics

  • Nextcloud Server version (e.g., 29.x.x):
    • 32.0.8snap2
  • Operating system and version (e.g., Ubuntu 24.04):
    • Raspbian GNU/Linux 9
  • Web server and version (e.g, Apache 2.4.25):
    • n/a
  • Reverse proxy and version _(e.g. nginx 1.27.2)
    • nginx 1.10.3-1+deb9u7
  • PHP version (e.g, 8.3):
    • inside snap
  • Is this the first time you’ve seen this error? (Yes / No):
    • yes
  • When did this problem seem to first start?
    • today
  • Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
    • snap
  • Are you using CloudfIare, mod_security, or similar? (Yes / No)
    • no

Summary of the issue you are facing:

Entered admin name+password, saved in KeePass. Nextcloud installed. Login as admin worked. After say 1 hour, logoff, login was not possible. No message of wrong user or password. Similar to https://help.nextcloud.com/t/cannot-login-to-nextcloud-with-correct-admin-password-and-no-browser-errors/85892/10 which did not conclude with a solution. I installed Nextcloud both on a Ubuntu laptop, without nginx, starting locally on port 81, and on a Raspberry Pi server that can be connected to from the internet, using Nginx. The problem is on the RPi, not on the laptop.

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

  1. Login with correct user and password

  2. Screen blinks, then shows empty login screen. No error message

  3. With a known wrong password, no error message is shown

Log entries

Nextcloud

Please provide the log entries from your Nextcloud log that are generated during the time of problem (via the Copy raw option from Administration settings->Logging screen or from your nextcloud.log located in your data directory). Feel free to use a pastebin/gist service if necessary.

sudo tail -n 20 /var/snap/nextcloud/current/logs/nextcloud.log

{"reqId":"Ta7bQs7lOrbLnjIYZRMP","level":3,"time":"2026-05-17T16:43:23+00:00","remoteAddr":"127.0.0.1","user":"--","app":"PHP","method":"GET","url":"/index.php/csrftoken","scriptName":"/index.php","message":"Invalid \"upload_max_filesize\" setting. Invalid quantity \"16G\": value is out of range, using overflow result for backwards compatibility at Unknown#0","userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:150.0) Gecko/20100101 Firefox/150.0","version":"32.0.8.2","data":{"app":"PHP"}}
{"reqId":"ANK8Mg3WnFrcf047A1Oe","level":3,"time":"2026-05-17T16:55:24+00:00","remoteAddr":"127.0.0.1","user":"--","app":"PHP","method":"GET","url":"/index.php/csrftoken","scriptName":"/index.php","message":"Invalid \"upload_max_filesize\" setting. Invalid quantity \"16G\": value is out of range, using overflow result for backwards compatibility at Unknown#0","userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:150.0) Gecko/20100101 Firefox/150.0","version":"32.0.8.2","data":{"app":"PHP"}}
{"reqId":"5uJAixn2UrhwmL32FkpD","level":3,"time":"2026-05-17T17:07:24+00:00","remoteAddr":"127.0.0.1","user":"--","app":"PHP","method":"GET","url":"/index.php/csrftoken","scriptName":"/index.php","message":"Invalid \"upload_max_filesize\" setting. Invalid quantity \"16G\": value is out of range, using overflow result for backwards compatibility at Unknown#0","userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:150.0) Gecko/20100101 Firefox/150.0","version":"32.0.8.2","data":{"app":"PHP"}}
{"reqId":"8j5zwns5GSrtuIGB0sVu","level":3,"time":"2026-05-17T17:19:24+00:00","remoteAddr":"127.0.0.1","user":"--","app":"PHP","method":"GET","url":"/index.php/csrftoken","scriptName":"/index.php","message":"Invalid \"upload_max_filesize\" setting. Invalid quantity \"16G\": value is out of range, using overflow result for backwards compatibility at Unknown#0","userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:150.0) Gecko/20100101 Firefox/150.0","version":"32.0.8.2","data":{"app":"PHP"}}
{"reqId":"23tiWtbshlBwXUF7ejWA","level":3,"time":"2026-05-17T17:31:24+00:00","remoteAddr":"127.0.0.1","user":"--","app":"PHP","method":"GET","url":"/index.php/csrftoken","scriptName":"/index.php","message":"Invalid \"upload_max_filesize\" setting. Invalid quantity \"16G\": value is out of range, using overflow result for backwards compatibility at Unknown#0","userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:150.0) Gecko/20100101 Firefox/150.0","version":"32.0.8.2","data":{"app":"PHP"}}
{"reqId":"ONvDJALAC1w2QhiwDlj5","level":3,"time":"2026-05-17T17:43:24+00:00","remoteAddr":"127.0.0.1","user":"--","app":"PHP","method":"GET","url":"/index.php/csrftoken","scriptName":"/index.php","message":"Invalid \"upload_max_filesize\" setting. Invalid quantity \"16G\": value is out of range, using overflow result for backwards compatibility at Unknown#0","userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:150.0) Gecko/20100101 Firefox/150.0","version":"32.0.8.2","data":{"app":"PHP"}}
{"reqId":"PckwJyO8auMU78F0gUsY","level":3,"time":"2026-05-17T17:55:24+00:00","remoteAddr":"127.0.0.1","user":"--","app":"PHP","method":"GET","url":"/index.php/csrftoken","scriptName":"/index.php","message":"Invalid \"upload_max_filesize\" setting. Invalid quantity \"16G\": value is out of range, using overflow result for backwards compatibility at Unknown#0","userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:150.0) Gecko/20100101 Firefox/150.0","version":"32.0.8.2","data":{"app":"PHP"}}
{"reqId":"bKVVPbxwohpBRNO7CiZF","level":3,"time":"2026-05-17T18:07:25+00:00","remoteAddr":"127.0.0.1","user":"--","app":"PHP","method":"GET","url":"/index.php/csrftoken","scriptName":"/index.php","message":"Invalid \"upload_max_filesize\" setting. Invalid quantity \"16G\": value is out of range, using overflow result for backwards compatibility at Unknown#0","userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:150.0) Gecko/20100101 Firefox/150.0","version":"32.0.8.2","data":{"app":"PHP"}}
{"reqId":"Urh6TBRxDuRwAD4K1a2N","level":3,"time":"2026-05-17T18:19:24+00:00","remoteAddr":"127.0.0.1","user":"--","app":"PHP","method":"GET","url":"/index.php/csrftoken","scriptName":"/index.php","message":"Invalid \"upload_max_filesize\" setting. Invalid quantity \"16G\": value is out of range, using overflow result for backwards compatibility at Unknown#0","userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:150.0) Gecko/20100101 Firefox/150.0","version":"32.0.8.2","data":{"app":"PHP"}}
{"reqId":"AYPcj0BRn2AAkIHzxtPq","level":3,"time":"2026-05-17T18:31:25+00:00","remoteAddr":"127.0.0.1","user":"--","app":"PHP","method":"GET","url":"/index.php/csrftoken","scriptName":"/index.php","message":"Invalid \"upload_max_filesize\" setting. Invalid quantity \"16G\": value is out of range, using overflow result for backwards compatibility at Unknown#0","userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:150.0) Gecko/20100101 Firefox/150.0","version":"32.0.8.2","data":{"app":"PHP"}}
{"reqId":"wEEyr9d4Pnjao13vTn49","level":3,"time":"2026-05-17T18:43:25+00:00","remoteAddr":"127.0.0.1","user":"--","app":"PHP","method":"GET","url":"/index.php/csrftoken","scriptName":"/index.php","message":"Invalid \"upload_max_filesize\" setting. Invalid quantity \"16G\": value is out of range, using overflow result for backwards compatibility at Unknown#0","userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:150.0) Gecko/20100101 Firefox/150.0","version":"32.0.8.2","data":{"app":"PHP"}}
{"reqId":"BpkZIewGTTDMzGEGKohE","level":3,"time":"2026-05-17T18:55:25+00:00","remoteAddr":"127.0.0.1","user":"--","app":"PHP","method":"GET","url":"/index.php/csrftoken","scriptName":"/index.php","message":"Invalid \"upload_max_filesize\" setting. Invalid quantity \"16G\": value is out of range, using overflow result for backwards compatibility at Unknown#0","userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:150.0) Gecko/20100101 Firefox/150.0","version":"32.0.8.2","data":{"app":"PHP"}}
{"reqId":"qGWEfoP7wmnifzNNCR4I","level":3,"time":"2026-05-17T19:07:25+00:00","remoteAddr":"127.0.0.1","user":"--","app":"PHP","method":"GET","url":"/index.php/csrftoken","scriptName":"/index.php","message":"Invalid \"upload_max_filesize\" setting. Invalid quantity \"16G\": value is out of range, using overflow result for backwards compatibility at Unknown#0","userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:150.0) Gecko/20100101 Firefox/150.0","version":"32.0.8.2","data":{"app":"PHP"}}
{"reqId":"lNQtn8rPvRTK1U00cAT0","level":3,"time":"2026-05-17T19:19:25+00:00","remoteAddr":"127.0.0.1","user":"--","app":"PHP","method":"GET","url":"/index.php/csrftoken","scriptName":"/index.php","message":"Invalid \"upload_max_filesize\" setting. Invalid quantity \"16G\": value is out of range, using overflow result for backwards compatibility at Unknown#0","userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:150.0) Gecko/20100101 Firefox/150.0","version":"32.0.8.2","data":{"app":"PHP"}}
{"reqId":"srFqNR23Xgm1ZIOD5DDT","level":3,"time":"2026-05-17T19:31:25+00:00","remoteAddr":"127.0.0.1","user":"--","app":"PHP","method":"GET","url":"/index.php/csrftoken","scriptName":"/index.php","message":"Invalid \"upload_max_filesize\" setting. Invalid quantity \"16G\": value is out of range, using overflow result for backwards compatibility at Unknown#0","userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:150.0) Gecko/20100101 Firefox/150.0","version":"32.0.8.2","data":{"app":"PHP"}}
{"reqId":"2bpAELtMSJ7YBI9MPecQ","level":3,"time":"2026-05-17T19:43:25+00:00","remoteAddr":"127.0.0.1","user":"--","app":"PHP","method":"GET","url":"/index.php/csrftoken","scriptName":"/index.php","message":"Invalid \"upload_max_filesize\" setting. Invalid quantity \"16G\": value is out of range, using overflow result for backwards compatibility at Unknown#0","userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:150.0) Gecko/20100101 Firefox/150.0","version":"32.0.8.2","data":{"app":"PHP"}}
{"reqId":"9WOZWOEypXhn3vsfbsM5","level":3,"time":"2026-05-17T19:55:25+00:00","remoteAddr":"127.0.0.1","user":"--","app":"PHP","method":"GET","url":"/index.php/csrftoken","scriptName":"/index.php","message":"Invalid \"upload_max_filesize\" setting. Invalid quantity \"16G\": value is out of range, using overflow result for backwards compatibility at Unknown#0","userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:150.0) Gecko/20100101 Firefox/150.0","version":"32.0.8.2","data":{"app":"PHP"}}
{"reqId":"zdVYaH71as4IF8xG3bs1","level":3,"time":"2026-05-17T20:07:26+00:00","remoteAddr":"127.0.0.1","user":"--","app":"PHP","method":"GET","url":"/index.php/csrftoken","scriptName":"/index.php","message":"Invalid \"upload_max_filesize\" setting. Invalid quantity \"16G\": value is out of range, using overflow result for backwards compatibility at Unknown#0","userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:150.0) Gecko/20100101 Firefox/150.0","version":"32.0.8.2","data":{"app":"PHP"}}
{"reqId":"Tm04Nrh7pOhA3f91LScO","level":3,"time":"2026-05-17T20:19:26+00:00","remoteAddr":"127.0.0.1","user":"--","app":"PHP","method":"GET","url":"/index.php/csrftoken","scriptName":"/index.php","message":"Invalid \"upload_max_filesize\" setting. Invalid quantity \"16G\": value is out of range, using overflow result for backwards compatibility at Unknown#0","userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:150.0) Gecko/20100101 Firefox/150.0","version":"32.0.8.2","data":{"app":"PHP"}}
{"reqId":"ZvLVq9MCGPKLV4Ou5xd9","level":3,"time":"2026-05-17T20:31:26+00:00","remoteAddr":"127.0.0.1","user":"--","app":"PHP","method":"GET","url":"/index.php/csrftoken","scriptName":"/index.php","message":"Invalid \"upload_max_filesize\" setting. Invalid quantity \"16G\": value is out of range, using overflow result for backwards compatibility at Unknown#0","userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:150.0) Gecko/20100101 Firefox/150.0","version":"32.0.8.2","data":{"app":"PHP"}}

Summary:

"Invalid \"upload_max_filesize\" setting. Invalid quantity \"16G\": value is out of range, using overflow result for backwards compatibility at Unknown#0"

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.

no console errors

Web server / Reverse Proxy

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

nginx: no errors in log

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!):

nginx:

location / {
   proxy_pass  http://127.0.0.1:81;
}

nextcloud:

output of: sudo /snap/bin/nextcloud.occ config:list

ERROR: ld.so: object '/usr/lib/arm-linux-gnueabihf/libarmmem.so' from /etc/ld.so.preload cannot be preloaded (cannot open shared object file): ignored.

{
    "system": {
        "apps_paths": [
            {
                "path": "\/snap\/nextcloud\/current\/htdocs\/apps",
                "url": "\/apps",
                "writable": false
            },
            {
                "path": "\/var\/snap\/nextcloud\/current\/nextcloud\/extra-apps",
                "url": "\/extra-apps",
                "writable": true
            }
        ],
        "supportedDatabases": [
            "mysql"
        ],
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "memcache.local": "\\OC\\Memcache\\Redis",
        "redis": {
            "host": "***REMOVED SENSITIVE VALUE***",
            "port": 0
        },
        "log_type": "file",
        "logfile": "\/var\/snap\/nextcloud\/current\/logs\/nextcloud.log",
        "logfilemode": 416,
        "maintenance_window_start": 1,
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "127.0.0.1:81"
        ],
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "mysql",
        "version": "32.0.8.2",
        "overwrite.cli.url": "http:\/\/127.0.0.1:81",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbtableprefix": "oc_",
        "mysql.utf8mb4": true,
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true
    },
    "apps": {
        "activity": {
            "enabled": "yes",
            "installed_version": "5.0.0",
            "types": "filesystem"
        },
        "app_api": {
            "enabled": "yes",
            "installed_version": "32.0.0",
            "types": ""
        },
        "backgroundjob": {
            "lastjob": "16"
        },
        "bruteforcesettings": {
            "enabled": "yes",
            "installed_version": "5.0.0",
            "types": ""
        },
        "circles": {
            "enabled": "yes",
            "installed_version": "32.0.0",
            "loopback_tmp_scheme": "http",
            "maintenance_run": "0",
            "maintenance_update": "{\"3\":1779048916,\"2\":1779048916,\"1\":1779048916}",
            "types": "filesystem,dav"
        },
        "cloud_federation_api": {
            "enabled": "yes",
            "installed_version": "1.16.0",
            "types": "filesystem"
        },
        "comments": {
            "enabled": "yes",
            "installed_version": "1.22.0",
            "types": "logging"
        },
        "contactsinteraction": {
            "enabled": "yes",
            "installed_version": "1.13.1",
            "types": "dav"
        },
        "core": {
            "backgroundjobs_mode": "cron",
            "installedat": "1778979172.7227",
            "lastcron": 1779048918,
            "lastupdatedat": 1778979172,
            "metadataGenerationDone": true,
            "public_files": "files_sharing\/public.php",
            "vendor": "nextcloud",
            "files_metadata": {
                "photos-original_date_time": {
                    "value": null,
                    "type": "int",
                    "etag": "",
                    "indexed": true,
                    "editPermission": 0
                },
                "photos-size": {
                    "value": null,
                    "type": "array",
                    "etag": "",
                    "indexed": false,
                    "editPermission": 0
                },
                "photos-exif": {
                    "value": null,
                    "type": "array",
                    "etag": "",
                    "indexed": false,
                    "editPermission": 0
                },
                "photos-ifd0": {
                    "value": null,
                    "type": "array",
                    "etag": "",
                    "indexed": false,
                    "editPermission": 0
                },
                "blurhash": {
                    "value": null,
                    "type": "string",
                    "etag": "422c28e50145c90d5dd240853b25ef2e",
                    "indexed": false,
                    "editPermission": 0
                }
            },
            "oc.integritycheck.checker": []
        },
        "dashboard": {
            "enabled": "yes",
            "installed_version": "7.12.0",
            "types": ""
        },
        "dav": {
            "enabled": "yes",
            "hasCustomDefaultContact": false,
            "installed_version": "1.34.2",
            "types": "filesystem"
        },
        "federatedfilesharing": {
            "enabled": "yes",
            "installed_version": "1.22.0",
            "types": ""
        },
        "federation": {
            "enabled": "yes",
            "installed_version": "1.22.0",
            "types": "authentication"
        },
        "files": {
            "enabled": "yes",
            "installed_version": "2.4.0",
            "types": "filesystem"
        },
        "files_downloadlimit": {
            "enabled": "yes",
            "installed_version": "5.0.0",
            "types": ""
        },
        "files_pdfviewer": {
            "enabled": "yes",
            "installed_version": "5.0.0",
            "types": ""
        },
        "files_reminders": {
            "enabled": "yes",
            "installed_version": "1.5.0",
            "types": ""
        },
        "files_sharing": {
            "enabled": "yes",
            "installed_version": "1.24.1",
            "types": "filesystem"
        },
        "files_trashbin": {
            "enabled": "yes",
            "installed_version": "1.22.0",
            "types": "filesystem,dav"
        },
        "files_versions": {
            "enabled": "yes",
            "installed_version": "1.25.0",
            "types": "filesystem,dav"
        },
        "firstrunwizard": {
            "enabled": "yes",
            "installed_version": "5.0.0",
            "types": ""
        },
        "logreader": {
            "enabled": "yes",
            "installed_version": "5.0.0",
            "types": "logging"
        },
        "lookup_server_connector": {
            "enabled": "yes",
            "installed_version": "1.20.0",
            "types": "authentication"
        },
        "nextcloud_announcements": {
            "enabled": "yes",
            "installed_version": "4.0.0",
            "pub_date": "Thu, 24 Oct 2019 00:00:00 +0200",
            "types": "logging"
        },
        "notifications": {
            "enabled": "yes",
            "installed_version": "5.0.0",
            "types": "logging"
        },
        "oauth2": {
            "enabled": "yes",
            "installed_version": "1.20.0",
            "types": "authentication"
        },
        "password_policy": {
            "enabled": "yes",
            "installed_version": "4.0.0",
            "types": "authentication"
        },
        "photos": {
            "enabled": "yes",
            "installed_version": "5.0.0",
            "lastPlaceMappedUser": "AdminRoland",
            "lastPlaceMappingDone": "true",
            "types": "dav,authentication"
        },
        "privacy": {
            "enabled": "yes",
            "installed_version": "4.0.0",
            "types": ""
        },
        "profile": {
            "enabled": "yes",
            "installed_version": "1.1.0",
            "types": ""
        },
        "provisioning_api": {
            "enabled": "yes",
            "installed_version": "1.22.0",
            "types": "prevent_group_restriction"
        },
        "recommendations": {
            "enabled": "yes",
            "installed_version": "5.0.0",
            "types": ""
        },
        "related_resources": {
            "enabled": "yes",
            "installed_version": "3.0.0",
            "types": ""
        },
        "serverinfo": {
            "cached_count_appdata_files": 161,
            "cached_count_filecache": 235,
            "cached_count_storages": 4,
            "enabled": "yes",
            "installed_version": "4.0.0",
            "size_appdata_storage": 0,
            "types": ""
        },
        "settings": {
            "enabled": "yes",
            "installed_version": "1.15.1",
            "types": ""
        },
        "sharebymail": {
            "enabled": "yes",
            "installed_version": "1.22.0",
            "types": "filesystem"
        },
        "support": {
            "enabled": "yes",
            "installed_version": "4.0.0",
            "types": "session"
        },
        "survey_client": {
            "enabled": "yes",
            "installed_version": "4.0.0",
            "types": ""
        },
        "systemtags": {
            "enabled": "yes",
            "installed_version": "1.22.0",
            "types": "logging"
        },
        "text": {
            "enabled": "yes",
            "installed_version": "6.0.1",
            "types": "dav"
        },
        "theming": {
            "enabled": "yes",
            "installed_version": "2.7.0",
            "types": "logging"
        },
        "twofactor_backupcodes": {
            "enabled": "yes",
            "installed_version": "1.21.0",
            "types": ""
        },
        "user_status": {
            "enabled": "yes",
            "installed_version": "1.12.0",
            "types": ""
        },
        "viewer": {
            "enabled": "yes",
            "installed_version": "5.0.0",
            "types": ""
        },
        "weather_status": {
            "enabled": "yes",
            "installed_version": "1.12.0",
            "types": ""
        },
        "webhook_listeners": {
            "enabled": "yes",
            "installed_version": "1.3.0",
            "types": "filesystem"
        },
        "workflowengine": {
            "enabled": "yes",
            "installed_version": "2.14.0",
            "types": "filesystem"
        }
    }
}

Apps

The output of occ app:list (if possible) :

sudo /snap/bin/nextcloud.occ app:list 2>/dev/null
Enabled:
  - activity: 5.0.0
  - app_api: 32.0.0
  - bruteforcesettings: 5.0.0
  - circles: 32.0.0
  - cloud_federation_api: 1.16.0
  - comments: 1.22.0
  - contactsinteraction: 1.13.1
  - dashboard: 7.12.0
  - dav: 1.34.2
  - federatedfilesharing: 1.22.0
  - federation: 1.22.0
  - files: 2.4.0
  - files_downloadlimit: 5.0.0
  - files_pdfviewer: 5.0.0
  - files_reminders: 1.5.0
  - files_sharing: 1.24.1
  - files_trashbin: 1.22.0
  - files_versions: 1.25.0
  - firstrunwizard: 5.0.0
  - logreader: 5.0.0
  - lookup_server_connector: 1.20.0
  - nextcloud_announcements: 4.0.0
  - notifications: 5.0.0
  - oauth2: 1.20.0
  - password_policy: 4.0.0
  - photos: 5.0.0
  - privacy: 4.0.0
  - profile: 1.1.0
  - provisioning_api: 1.22.0
  - recommendations: 5.0.0
  - related_resources: 3.0.0
  - serverinfo: 4.0.0
  - settings: 1.15.1
  - sharebymail: 1.22.0
  - support: 4.0.0
  - survey_client: 4.0.0
  - systemtags: 1.22.0
  - text: 6.0.1
  - theming: 2.7.0
  - twofactor_backupcodes: 1.21.0
  - user_status: 1.12.0
  - viewer: 5.0.0
  - weather_status: 1.12.0
  - webhook_listeners: 1.3.0
  - workflowengine: 2.14.0
Disabled:
  - admin_audit: 1.22.0
  - encryption: 2.20.0
  - files_external: 1.24.1
  - suspicious_login: 10.0.0
  - twofactor_nextcloud_notification: 6.0.0
  - twofactor_totp: 14.0.0
  - user_ldap: 1.23.0

Tips for increasing the likelihood of a response

  • Use the preformatted text formatting option in the editor for all log entries and configuration output.
  • If screenshots are useful, feel free to include them.
    • If possible, also include key error output in text form so it can be searched for.
  • Try to edit log output only minimally (if at all) so that it can be ran through analyzers / formatters by those trying to help you.

Hey @RolandKwee, welcome to the Nextcloud community and thanks for supporting Nextcloud snap :handshake:

Sorry to hear you are having issues with your Nextcloud snap installation. If you’ve come this far, you’re on the right track! There is a good chance someone in the community has had a similar issue and knows how to resolve it.

In order to help you we’ll need some Information to get an Idea of your setup, so complete the required support template and post the output of the following command allowing us to look at your redacted configuration file:

sudo nextcloud.occ config:list

Nextcloud logs are very verbose, thus your logs will certainly help resolve your issue. access your logs by following how to manage Nextcloud snap logs or you could run the debugging script and post the result here or paste the result of the following command:

sudo tail -n 20 /var/snap/nextcloud/current/logs/nextcloud.log

Below are some links to how-to’s answering frequently asked questions and may help you help yourself;

pay special attention to https://github.com/nextcloud-snap/nextcloud-snap/wiki/Putting-the-snap-behind-a-reverse-proxy

you’ll find that NGINX reverse proxy, especially NGINX Reverse Proxy Manager (NPM) reserves port 80 and port 81 for itself… thus your snap and NPM will be trying to use port 81 in your case.

it may help to expose the snap on another port like port 82 see HTTP/HTTPS port configuration see also NGINX proxy manager · nextcloud-snap/nextcloud-snap Wiki · GitHub

Thanks. I added Nextcloud config and app list as you requested.

@RolandKwee what are your findings here?

Thanks for the suggestion. I tried to use port 82, but the login problem stayed the same. Too bad :frowning:

Here are my steps:

Stop the snap:

$ sudo snap stop nextcloud

Change to new port nr:

sudo snap set nextcloud ports.http=82

Restart the snap:

$ sudo snap start nextcloud

Change Nginx config:

Location / {
    proxy_pass  http://127.0.0.1:82;
}

Restart Nginx:

sudo nginx -t
sudo nginx -s reload

Try to log in. Same error.

sudo tail /var/snap/nextcloud/current/logs/nextcloud.log

Same error, which seems to have no clue on the login problem:

{"reqId":"f2PsO8OpWn8ikSMwT6nJ","level":3,"time":"2026-05-18T16:06:27+00:00","remoteAddr":"127.0.0.1","user":"--","app":"PHP","method":"POST","url":"/index.php/login","scriptName":"/index.php","message":"Invalid \"upload_max_filesize\" setting. Invalid quantity \"16G\": value is out of range, using overflow result for backwards compatibility at Unknown#0","userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:150.0) Gecko/20100101 Firefox/150.0","version":"32.0.8.2","data":{"app":"PHP"}}

BTW I tried to find file index.php to change the 16G setting, but could not find that file (yet).

this doesn’t look right… but I’m no reverse proxy guru → prefer to use the host IP.

you cannot change index.php! see PHP configuration options

I am also worried about my Nginx setup, as I configured Nginx myself just for the port number, while the official instructions are quite a long story:

This is my Nginx config:

server {
    server_name <redacted>; # managed by Certbot

    root /home/<redacted>;
    index index.html;
    location / {
        # Forward the GET request to the Nextcloud web server on port 81
        # NB: Nginx handles SSL so the request goes unencrypted to Nextcloud
        # NB: Only connect Nextcloud to the outside Web AFTER setting your custom admin password in Nextcloud!!
        proxy_pass  http://127.0.0.1:82;

        # Installation of Nextcloud takes long and RPi is slow.
        # Increase timeout to prevent installation error due to Gateway Timeout
        proxy_connect_timeout       1000;
        proxy_send_timeout          1000;
        proxy_read_timeout          1000;
        send_timeout                1000;
    }

    listen [::]:443 ssl ipv6only=on; # managed by Certbot
    listen *:443 ssl; # managed by Certbot
    ssl_certificate /etc/letsencrypt/live/<redacted>/fullchain.pem; # managed by Certbot
    ssl_certificate_key /etc/letsencrypt/live/<redacted>/privkey.pem; # managed by Certbot
    include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
    ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot

    # temporary blocking outside access until setting your custom admin password in Nextcloud!!
    allow <redacted>;
    allow <redacted>;
    deny all;
}

This actually worked. I could enter admin name and password, click install, login as admin, create two users. Only then started the login problem. Now I cannot login as admin, neither as a normal user, while Nextcloud as a web server seems to work; it shows its login page just fine. That’s why I assume the problem is not in my Nginx coding, but INSIDE nextcloud itself.

that is possible and probable see nextcloud/server#60068

Perhaps problem is in the Nginx setup.

I installed nextcloud on a fresh install of Ubuntu Server on a small AMD pc system, not Raspberry Pi. Creating Nextcloud admin user and regular users worked, log off, log in worked from my laptop, all on the local LAN.

Then I installed Nginx with my simple config. Created Letsencrypt certificate with Certbot. Managed to create access from outside internet with https.

Got Nextcloud working over https with port 82, but with the login problem.

My plan now is to do the official Nginx setup for Nextcloud. This might take me a while, because of a scheduled vacation of a few days. Thanks so far for standing by me.

By careful reading and re-reading I am understanding that I don’t have to use Nginx for Nextcloud Snap. Overkill. I already have Nginx for some small websites on the same Raspberry Pi, but even then I do not need Nginx for Nextcloud Snap. Just have Nginx not respond to requests for my new ‘cloud’ domain name, so that Nextcloud Snap Apache can do that.

So I reversed the port 82 setting of Nextcloud back to the original ports 80+443, and follow instructions from: Managing HTTP encryption (HTTPS) · nextcloud-snap/nextcloud-snap Wiki · GitHub

I am getting a problem there too, but thats not the topic of this question. I guess this topic can be closed. I posted the new problem as: Unexpected error DistributionNotFound: The zope.interface