Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can.
The Basics
- Nextcloud Server version (e.g., 29.x.x):
- Just upgraded to 31.0.0
- Operating system and version (e.g., Ubuntu 24.04):
- Ubuntu 20.04.6 LTS
- Web server and version (e.g, Apache 2.4.25):
- 2.4.41
- Reverse proxy and version _(e.g. nginx 1.27.2)
- Nginx Proxy Manager
- PHP version (e.g, 8.3):
- 8.3.17
- Is this the first time you’ve seen this error? (Yes / No):
- Yes
- When did this problem seem to first start?
- After upgrade
- Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
- Bare metal
- Are you using CloudfIare, mod_security, or similar? (Yes / No)
- No
Summary of the issue you are facing:
I have been using NC for a long time and just upgraded to 31. I can create public shares with no issues, but I not longer see public share downloads listed under activity. It shows the share being created but nothing related to downloads.
I even have a share that came over from before the upgrade. I see download activity on that file from before the upgrade, but now when I access the public link nothing is logged.
In case it matters, when I upgrade, I got all kinds of “incorrect row format found in your database” errors. It is described in this post. I used that script and manually updated every row and the errors are gone. I have no idea if that matters, but I wanted to share.
I also found this GitHub issue which looks similar, but it relates to a different version. <–Update, this case is different because they still see activity if someone downloads a file. I see no activity other than “share” and “unshare”. I also posted the issue on GitHub.
Steps to replicate it (hint: details matter!):
- Create a shared file
- Open an incognito window
- Access shared file
- View activity either at the share level or at the nextcloud level - There is nothing listed
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.
Here is the one error. I don’t think that it is relevant.
{"reqId":"iqYqZ3QZsXElkuqMc852","level":3,"time":"2025-02-26T20:30:01+00:00","remoteAddr":"162.158.6.61","user":false,"app":"no app in context","method":"GET","url":"/.well-known/","message":"Could not decrypt or decode encrypted session data","userAgent":"--","version":"31.0.0.18","exception":{"Exception":"Exception","Message":"HMAC does not match.","Code":0,"Trace":[{"file":"/var/www/html/owncloud/lib/private/Security/Crypto.php","line":98,"function":"decryptWithoutSecret","class":"OC\\Security\\Crypto","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/owncloud/lib/private/Session/CryptoSessionData.php","line":70,"function":"decrypt","class":"OC\\Security\\Crypto","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/owncloud/lib/private/Session/CryptoSessionData.php","line":47,"function":"initializeSession","class":"OC\\Session\\CryptoSessionData","type":"->"},{"file":"/var/www/html/owncloud/lib/private/Session/CryptoWrapper.php","line":94,"function":"__construct","class":"OC\\Session\\CryptoSessionData","type":"->"},{"file":"/var/www/html/owncloud/lib/base.php","line":410,"function":"wrapSession","class":"OC\\Session\\CryptoWrapper","type":"->"},{"file":"/var/www/html/owncloud/lib/base.php","line":679,"function":"initSession","class":"OC","type":"::"},{"file":"/var/www/html/owncloud/lib/base.php","line":1149,"function":"init","class":"OC","type":"::"},{"file":"/var/www/html/owncloud/index.php","line":22,"args":["/var/www/html/owncloud/lib/base.php"],"function":"require_once"}],"File":"/var/www/html/owncloud/lib/private/Security/Crypto.php","Line":162,"message":"Could not decrypt or decode encrypted session data","exception":[],"CustomMessage":"Could not decrypt or decode encrypted session data"},"id":"67bf94c8beee9"}l
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!):
{
"system": {
"instanceid": "***REMOVED SENSITIVE VALUE***",
"passwordsalt": "***REMOVED SENSITIVE VALUE***",
"secret": "***REMOVED SENSITIVE VALUE***",
"trusted_proxies": "***REMOVED SENSITIVE VALUE***",
"overwritecondaddr": "<IP>",
"trusted_domains": {
"1": "<FQDN>",
"2": "<FQDN>",
"3": "<IP>",
"4": "<IP>"
},
"memcache.locking": "\\OC\\Memcache\\Redis",
"memcache.distributed": "\\OC\\Memcache\\Redis",
"memcache.local": "\\OC\\Memcache\\APCu",
"datadirectory": "***REMOVED SENSITIVE VALUE***",
"overwrite.cli.url": "<FQDN>",
"dbtype": "mysql",
"version": "31.0.0.18",
"dbname": "***REMOVED SENSITIVE VALUE***",
"dbhost": "***REMOVED SENSITIVE VALUE***",
"dbtableprefix": "oc_",
"dbuser": "***REMOVED SENSITIVE VALUE***",
"dbpassword": "***REMOVED SENSITIVE VALUE***",
"logtimezone": "UTC",
"installed": true,
"mail_smtpmode": "smtp",
"loglevel": 2,
"default_phone_region": "US",
"maintenance": false,
"htaccess.RewriteBase": "\/",
"theme": "",
"mail_smtpauthtype": "LOGIN",
"mail_from_address": "***REMOVED SENSITIVE VALUE***",
"mail_domain": "***REMOVED SENSITIVE VALUE***",
"mail_smtpauth": 1,
"mail_smtphost": "***REMOVED SENSITIVE VALUE***",
"mail_smtpport": "587",
"mail_smtpname": "***REMOVED SENSITIVE VALUE***",
"mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
"updater.release.channel": "stable",
"twofactor_enforced": "false",
"twofactor_enforced_groups": [],
"twofactor_enforced_excluded_groups": [],
"mail_sendmailmode": "smtp",
"mysql.utf8mb4": true,
"maintenance_window_start": 6
}
}
Apps
Enabled:
- activity: 4.0.0
- app_api: 5.0.2
- bruteforcesettings: 4.0.0
- circles: 31.0.0-dev.0
- cloud_federation_api: 1.14.0
- comments: 1.21.0
- contactsinteraction: 1.12.0
- dashboard: 7.11.0
- dav: 1.33.0
- federatedfilesharing: 1.21.0
- federation: 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
- firstrunwizard: 4.0.0
- logreader: 4.0.0
- lookup_server_connector: 1.19.0
- nextcloud_announcements: 3.0.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
- survey_client: 3.0.0
- suspicious_login: 9.0.1
- text: 5.0.0
- theming: 2.6.1
- twofactor_backupcodes: 1.20.0
- twofactor_totp: 13.0.0-dev.0
- updatenotification: 1.21.0
- viewer: 4.0.0
- weather_status: 1.11.0
- webhook_listeners: 1.2.0
- workflowengine: 2.13.0