The Basics
- Nextcloud Server version (e.g., 29.x.x):
- 31.0.5
- Operating system and version (e.g., Ubuntu 24.04):
- Debian 5.10.223-1 (2024-08-10) x86_64 GNU/Linux (Webhosting Platform)
- Web server and version (e.g, Apache 2.4.25):
- apache2-bin/now 2.4.62-1
- Reverse proxy and version _(e.g. nginx 1.27.2)
- nginx unkown Version
- PHP version (e.g, 8.3):
- 8.2
- Is this the first time you’ve seen this error? (Yes / No):
- couple of weeks ago
- When did this problem seem to first start?
- with nc v30+
- Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
- by webhoster/unkown ages ago (10 years back)
- Are you using CloudfIare, mod_security, or similar? (Yes / No)
- no
Summary of the issue you are facing:
If I create a link for external Users, no one is able to download and gets a Server 500 error back.
Debug Log shows following entries.
Steps to replicate it (hint: details matter!):
- Share a File/Folder with Password
- open Link in “private mode”
- click on a file.
- Server Error 500
Log entries
{"reqId":"aDb1uSwwQmVJPzfjKpTrAAAAAAI","level":0,"time":"2025-05-28T11:38:33+00:00","remoteAddr":"45.5.86.125","user":"--","app":"bruteForce","method":"GET","url":"/public.php/dav/files/XyTzixWy4fy3MWj","message":"The loading of lazy AppConfig values have been triggered by app \"bruteForce\"","userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:139.0) Gecko/20100101 Firefox/139.0","version":"31.0.5.1","exception":{"Exception":"RuntimeException","Message":"The loading of lazy AppConfig values have been triggered by app \"bruteForce\"","Code":0,"Trace":[{"file":"/home/www/nxtcl30/lib/private/AppConfig.php","line":1193,"function":"loadConfig","class":"OC\\AppConfig","type":"->","args":["bruteForce",null]},{"file":"/home/www/nxtcl30/lib/private/AppConfig.php","line":106,"function":"loadConfigAll","class":"OC\\AppConfig","type":"->","args":["bruteForce"]},{"file":"/home/www/nxtcl30/lib/private/Security/Ip/BruteforceAllowList.php","line":39,"function":"getKeys","class":"OC\\AppConfig","type":"->","args":["bruteForce"]},{"file":"/home/www/nxtcl30/lib/private/Security/Bruteforce/Throttler.php","line":86,"function":"isBypassListed","class":"OC\\Security\\Ip\\BruteforceAllowList","type":"->","args":["45.5.86.125"]},{"file":"/home/www/nxtcl30/lib/private/Security/Bruteforce/Throttler.php","line":112,"function":"isBypassListed","class":"OC\\Security\\Bruteforce\\Throttler","type":"->","args":["45.5.86.125"]},{"file":"/home/www/nxtcl30/lib/private/Security/Bruteforce/Throttler.php","line":129,"function":"getAttempts","class":"OC\\Security\\Bruteforce\\Throttler","type":"->","args":["45.5.86.125","public_dav_auth"]},{"file":"/home/www/nxtcl30/lib/private/Security/Bruteforce/Throttler.php","line":202,"function":"getDelay","class":"OC\\Security\\Bruteforce\\Throttler","type":"->","args":["45.5.86.125","public_dav_auth"]},{"file":"/home/www/nxtcl30/apps/dav/lib/Connector/Sabre/PublicAuth.php","line":63,"function":"sleepDelayOrThrowOnMax","class":"OC\\Security\\Bruteforce\\Throttler","type":"->","args":["45.5.86.125","public_dav_auth"]},{"file":"/home/www/nxtcl30/3rdparty/sabre/dav/lib/DAV/Auth/Plugin.php","line":179,"function":"check","class":"OCA\\DAV\\Connector\\Sabre\\PublicAuth","type":"->","args":[{"__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]},{"file":"/home/www/nxtcl30/3rdparty/sabre/dav/lib/DAV/Auth/Plugin.php","line":135,"function":"check","class":"Sabre\\DAV\\Auth\\Plugin","type":"->","args":[{"__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]},{"file":"/home/www/nxtcl30/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"beforeMethod","class":"Sabre\\DAV\\Auth\\Plugin","type":"->","args":[{"__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]},{"file":"/home/www/nxtcl30/3rdparty/sabre/dav/lib/DAV/Server.php","line":456,"function":"emit","class":"Sabre\\DAV\\Server","type":"->","args":["beforeMethod:GET",[{"__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]]},{"file":"/home/www/nxtcl30/apps/dav/lib/Connector/Sabre/Server.php","line":49,"function":"invokeMethod","class":"Sabre\\DAV\\Server","type":"->","args":[{"__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]},{"file":"/home/www/nxtcl30/apps/dav/appinfo/v2/publicremote.php","line":151,"function":"start","class":"OCA\\DAV\\Connector\\Sabre\\Server","type":"->","args":[]},{"file":"/home/www/nxtcl30/public.php","line":82,"args":["/home/www/nxtcl30/apps/dav/appinfo/v2/publicremote.php"],"function":"require_once"}],"File":"/home/www/nxtcl30/lib/private/AppConfig.php","Line":1208,"message":"The loading of lazy AppConfig values have been triggered by app \"bruteForce\"","exception":{},"CustomMessage":"The loading of lazy AppConfig values have been triggered by app \"bruteForce\""}}
{"reqId":"aDb1uSwwQmVJPzfjKpTrAAAAAAI","level":3,"time":"2025-05-28T11:38:33+00:00","remoteAddr":"45.5.86.125","user":"--","app":"encryption","method":"GET","url":"/public.php/dav/files/XyTzixWy4fy3MWj","message":"Cannot decrypt this file, probably this is a shared file. Please ask the file owner to reshare the file with you.","userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:139.0) Gecko/20100101 Firefox/139.0","version":"31.0.5.1","data":{"app":"encryption"}}
{"reqId":"aDb1uSwwQmVJPzfjKpTrAAAAAAI","level":3,"time":"2025-05-28T11:38:33+00:00","remoteAddr":"45.5.86.125","user":"--","app":"webdav","method":"GET","url":"/public.php/dav/files/XyTzixWy4fy3MWj","message":"Cannot decrypt this file, probably this is a shared file. Please ask the file owner to reshare the file with you.","userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:139.0) Gecko/20100101 Firefox/139.0","version":"31.0.5.1","exception":{"Exception":"OC\\Encryption\\Exceptions\\DecryptionFailedException","Message":"Cannot decrypt this file, probably this is a shared file. Please ask the file owner to reshare the file with you.","Code":0,"Trace":[{"file":"/home/www/nxtcl30/lib/private/Files/Stream/Encryption.php","line":461,"function":"decrypt","class":"OCA\\Encryption\\Crypto\\Encryption","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/home/www/nxtcl30/lib/private/Files/Stream/Encryption.php","line":260,"function":"readCache","class":"OC\\Files\\Stream\\Encryption","type":"->","args":[]},{"function":"stream_read","class":"OC\\Files\\Stream\\Encryption","type":"->","args":[2312]},{"file":"/home/www/nxtcl30/3rdparty/icewind/streams/src/Wrapper.php","line":55,"function":"fread","args":[null,8192]},{"file":"/home/www/nxtcl30/3rdparty/icewind/streams/src/CallbackWrapper.php","line":96,"function":"stream_read","class":"Icewind\\Streams\\Wrapper","type":"->","args":[8192]},{"function":"stream_read","class":"Icewind\\Streams\\CallbackWrapper","type":"->","args":[8192]},{"file":"/home/www/nxtcl30/3rdparty/sabre/http/lib/Sapi.php","line":108,"function":"stream_copy_to_stream","args":[null,null,2312]},{"file":"/home/www/nxtcl30/3rdparty/sabre/dav/lib/DAV/Server.php","line":490,"function":"sendResponse","class":"Sabre\\HTTP\\Sapi","type":"::","args":[{"__class__":"Sabre\\HTTP\\Response"}]},{"file":"/home/www/nxtcl30/apps/dav/lib/Connector/Sabre/Server.php","line":49,"function":"invokeMethod","class":"Sabre\\DAV\\Server","type":"->","args":[{"__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]},{"file":"/home/www/nxtcl30/apps/dav/appinfo/v2/publicremote.php","line":151,"function":"start","class":"OCA\\DAV\\Connector\\Sabre\\Server","type":"->","args":[]},{"file":"/home/www/nxtcl30/public.php","line":82,"args":["/home/www/nxtcl30/apps/dav/appinfo/v2/publicremote.php"],"function":"require_once"}],"File":"/home/www/nxtcl30/apps/encryption/lib/Crypto/Encryption.php","Line":315,"Hint":"Diese Datei kann nicht entschl\u00fcsselt werden, es handelt sich wahrscheinlich um eine geteilte Datei. Bitte kontaktieren Sie den Eigent\u00fcmer der Datei und bitten Sie darum, die Datei noch einmal mit Ihnen zu teilen.","message":"Cannot decrypt this file, probably this is a shared file. Please ask the file owner to reshare the file with you.","exception":{},"CustomMessage":"Cannot decrypt this file, probably this is a shared file. Please ask the file owner to reshare the file with you."}}
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.
none, not traceabe. opens new window in FF or straight to download in chromium
Web server / Reverse Proxy
no logs accessible at the moment
Configuration
Nextcloud
The output of occ config:list system
{
"system": {
"instanceid": "***REMOVED SENSITIVE VALUE***",
"passwordsalt": "***REMOVED SENSITIVE VALUE***",
"secret": "***REMOVED SENSITIVE VALUE***",
"trusted_domains": [
"www.nxtcl30.de",
"nxtcl30.de"
],
"datadirectory": "***REMOVED SENSITIVE VALUE***",
"overwrite.cli.url": "https:\/\/www.nxtcl30.de",
"dbtype": "mysql",
"version": "31.0.5.1",
"dbname": "***REMOVED SENSITIVE VALUE***",
"dbhost": "***REMOVED SENSITIVE VALUE***",
"dbport": "",
"dbtableprefix": "oc_",
"dbuser": "***REMOVED SENSITIVE VALUE***",
"dbpassword": "***REMOVED SENSITIVE VALUE***",
"logtimezone": "UTC",
"default_phone_region": "DE",
"installed": true,
"mail_from_address": "***REMOVED SENSITIVE VALUE***",
"mail_smtpmode": "smtp",
"mail_domain": "***REMOVED SENSITIVE VALUE***",
"maintenance": false,
"theme": "",
"loglevel": 1,
"mail_smtpsecure": "ssl",
"mail_smtpauthtype": "LOGIN",
"mail_smtpauth": 1,
"mail_smtphost": "***REMOVED SENSITIVE VALUE***",
"mail_smtpport": "465",
"mail_smtpname": "***REMOVED SENSITIVE VALUE***",
"mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
"mysql.utf8mb4": true,
"updater.release.channel": "stable",
"has_rebuilt_cache": true,
"app_install_overwrite": [
"contacts",
"ownnote",
"mindmap_app",
"news",
"files_texteditor",
"files_rightclick",
"ransomware_protection"
],
"encryption.legacy_format_support": false,
"encryption.key_storage_migrated": false,
"memcache.local": "\\OC\\Memcache\\APCu",
"maintenance_window_start": 100
}
}
Apps
nabled:
- activity: 4.0.0
- app_api: 5.0.2
- calendar: 5.2.4
- cloud_federation_api: 1.14.0
- comments: 1.21.0
- contacts: 7.1.1
- contactsinteraction: 1.12.0
- cookbook: 0.11.3
- dashboard: 7.11.0
- dav: 1.33.0
- encryption: 2.19.0
- federatedfilesharing: 1.21.0
- files: 2.3.1
- files_downloadlimit: 4.0.0
- files_pdfviewer: 4.0.0
- files_reminders: 1.4.0
- files_sharing: 1.23.1
- files_trashbin: 1.21.0
- files_versions: 1.24.0
- logreader: 4.0.0
- lookup_server_connector: 1.19.0
- news: 25.3.1
- nextcloud_announcements: 3.0.0
- notes: 4.12.0
- notifications: 4.0.0
- oauth2: 1.19.1
- password_policy: 3.0.0
- photos: 4.0.0-dev.1
- privacy: 3.0.0
- profile: 1.0.0
- provisioning_api: 1.21.0
- recommendations: 4.0.0
- related_resources: 2.0.0
- serverinfo: 3.0.0
- settings: 1.14.0
- sharebymail: 1.21.0
- spreed: 21.0.4
- systemtags: 1.21.1
- tasks: 0.16.1
- text: 5.0.0
- theming: 2.6.1
- twofactor_backupcodes: 1.20.0
- updatenotification: 1.21.0
- user_status: 1.11.0
- viewer: 4.0.0
- weather_status: 1.11.0
- workflowengine: 2.13.0
Disabled:
- admin_audit: 1.21.0
- bruteforcesettings: 4.0.0 (installed 1.6.0)
- circles: 31.0.0 (installed 29.0.0-dev)
- federation: 1.21.0 (installed 1.8.0)
- files_external: 1.23.0
- files_rightclick: 0.15.1 (installed 1.6.0)
- files_texteditor: 2.15.1 (installed 2.15.1)
- firstrunwizard: 4.0.0 (installed 2.0)
- ransomware_protection: 1.14.0 (installed 1.14.0)
- support: 3.0.0 (installed 1.11.0)
- survey_client: 3.0.0 (installed 2.0.0)
- suspicious_login: 9.0.1
- twofactor_nextcloud_notification: 5.0.0 (installed 3.9.0)
- twofactor_totp: 13.0.0-dev.0 (installed 6.1.0)
- user_ldap: 1.22.0
- webhook_listeners: 1.2.0 (installed 1.1.0-dev)
There is a corresponding encryptionkey with the same name in following structure …/files_encryption/keys/files/…
And the shared file was not moved nor renamed.
Me as the user can read, download and sync the file as normal.
Also I can share files to users on my nextcloud instance without an error.