A user can no longer see their folders and files through the web interface after updating from Nextcloud 25 to Nextcloud 28.0.1

Bumping because I realized a month after taking a day to upgrade from 22.x to 28.0.1, I cannot share a folder to another user without the logs getting spammed with 500-response errors.

For the folder share, only one file in each folder successfully synced to the client PC with the remaining 19 (as part of that same share) errored out.

As with @siriwliw98, I have nothing to go on from here. I upgraded, then encyption/decryption only selectively works.

[PHP Modules] bcmath bz2 calendar Core ctype curl date dom exif FFI fileinfo filter ftp gd gettext gmp hash iconv igbinary intl json libxml mbstring memcache mysqli mysqlnd openssl pcntl pcre PDO pdo_mysql Phar posix random readline redis Reflection session shmop SimpleXML sockets sodium SPL standard sysvmsg sysvsem sysvshm tokenizer xml xmlreader xmlwriter xsl Zend OPcache zip zlib

root@wwweb:/var/www/nextcloud# cat /etc/debian_version
12.4
root@wwweb:/var/www/nextcloud# php -version
PHP 8.2.7 (cli) (built: Jun 9 2023 19:37:27) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.2.7, Copyright (c) Zend Technologies
with Zend OPcache v8.2.7, Copyright (c), by Zend Technologies
root@wwweb:/var/www/nextcloud# sudo -u www-data php /var/www/nextcloud/occ config:list – system
{
“system”: {
“updatechecker”: false,
“instanceid”: “REMOVED SENSITIVE VALUE”,
“passwordsalt”: “REMOVED SENSITIVE VALUE”,
“secret”: “REMOVED SENSITIVE VALUE”,
“trusted_domains”: [
“192.168.1.114:8081”,
“192.168.1.114:8443”,
REMOVED SENSITIVE VALUE”,
REMOVED SENSITIVE VALUE”,
REMOVED SENSITIVE VALUE
],
“datadirectory”: “REMOVED SENSITIVE VALUE”,
“overwrite.cli.url”: “http://192.168.1.114:8081”,
“dbtype”: “mysql”,
“version”: “28.0.1.1”,
“dbname”: “REMOVED SENSITIVE VALUE”,
“dbhost”: “REMOVED SENSITIVE VALUE”,
“dbtableprefix”: “oc_”,
“dbuser”: “REMOVED SENSITIVE VALUE”,
“dbpassword”: “REMOVED SENSITIVE VALUE”,
“logtimezone”: “UTC”,
“default_phone_region”: “CA”,
“installed”: true,
“minimum.supported.desktop.version”: “2.2.4”,
“theme”: “”,
“logfile”: “/var/www/nextcloud/data/nextcloud.log”,
“loglevel”: 0,
“filelocking.enabled”: true,
“memcache.local”: “\OC\Memcache\Redis”,
“memcache.distributed”: “\OC\Memcache\Redis”,
“memcache.locking”: “\OC\Memcache\Redis”,
“redis”: {
“host”: “REMOVED SENSITIVE VALUE”,
“port”: 0,
“timeout”: 0
},
“maintenance”: false,
“mysql.utf8mb4”: true,
“updater.release.channel”: “stable”,
“encryption.legacy_format_support”: false,
“encryption.key_storage_migrated”: false
}
}
root@wwweb:/var/www/nextcloud# sudo -u www-data php /var/www/nextcloud/occ app:list --shipped=false
Enabled:

  • bookmarks: 13.1.3
  • calendar: 4.6.4
  • contacts: 5.5.1
  • gpoddersync: 3.8.3
  • mail: 3.5.5
  • news: 24.0.0
  • notes: 4.9.2
  • tasks: 0.15.0
    Disabled:

root@wwweb:/var/www/nextcloud# tail -2 /var/www/nextcloud/data/nextcloud.log
{“reqId”:“fdeKaUSnKM09Bd9BEwY2”,“level”:3,“time”:“2024-02-07T00:47:08+00:00”,“remoteAddr”:“”,“user”:“–”,“app”:“no app in context”,“method”:“”,“url”:“–”,“message”:“Cannot decrypt this file, probably this is a shared file. Please ask the file owner to reshare the file with you.”,“userAgent”:“–”,“version”:“28.0.1.1”,“data”:}
{“reqId”:“fdeKaUSnKM09Bd9BEwY2”,“level”:1,“time”:“2024-02-07T00:47:08+00:00”,“remoteAddr”:“”,“user”:“–”,“app”:“photos”,“method”:“”,“url”:“–”,“message”:“Failed to extract metadata for 920925”,“userAgent”:“–”,“version”:“28.0.1.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”:“/var/www/nextcloud/lib/private/Files/Stream/Encryption.php”,“line”:517,“function”:“decrypt”,“class”:“OCA\Encryption\Crypto\Encryption”,“type”:“->”,“args”:[“*** sensitive parameters replaced ***”]},{“file”:“/var/www/nextcloud/lib/private/Files/Stream/Encryption.php”,“line”:316,“function”:“readCache”,“class”:“OC\Files\Stream\Encryption”,“type”:“->”},{“function”:“stream_read”,“class”:“OC\Files\Stream\Encryption”,“type”:“->”},{“file”:“/var/www/nextcloud/apps/files_external/3rdparty/icewind/streams/src/Wrapper.php”,“line”:55,“function”:“fread”},{“file”:“/var/www/nextcloud/apps/files_external/3rdparty/icewind/streams/src/CallbackWrapper.php”,“line”:96,“function”:“stream_read”,“class”:“Icewind\Streams\Wrapper”,“type”:“->”},{“function”:“stream_read”,“class”:“Icewind\Streams\CallbackWrapper”,“type”:“->”},{“file”:“/var/www/nextcloud/apps/photos/lib/Listener/ExifMetadataProvider.php”,“line”:75,“function”:“exif_read_data”},{“file”:“/var/www/nextcloud/lib/private/EventDispatcher/ServiceEventListener.php”,“line”:86,“function”:“handle”,“class”:“OCA\Photos\Listener\ExifMetadataProvider”,“type”:“->”},{“file”:“/var/www/nextcloud/3rdparty/symfony/event-dispatcher/EventDispatcher.php”,“line”:230,“function”:“__invoke”,“class”:“OC\EventDispatcher\ServiceEventListener”,“type”:“->”},{“file”:“/var/www/nextcloud/3rdparty/symfony/event-dispatcher/EventDispatcher.php”,“line”:59,“function”:“callListeners”,“class”:“Symfony\Component\EventDispatcher\EventDispatcher”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/private/EventDispatcher/EventDispatcher.php”,“line”:94,“function”:“dispatch”,“class”:“Symfony\Component\EventDispatcher\EventDispatcher”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/private/EventDispatcher/EventDispatcher.php”,“line”:106,“function”:“dispatch”,“class”:“OC\EventDispatcher\EventDispatcher”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/private/FilesMetadata/FilesMetadataManager.php”,“line”:115,“function”:“dispatchTyped”,“class”:“OC\EventDispatcher\EventDispatcher”,“type”:“->”},{“file”:“/var/www/nextcloud/core/BackgroundJobs/GenerateMetadataJob.php”,“line”:108,“function”:“refreshMetadata”,“class”:“OC\FilesMetadata\FilesMetadataManager”,“type”:“->”},{“file”:“/var/www/nextcloud/core/BackgroundJobs/GenerateMetadataJob.php”,“line”:103,“function”:“scanFolder”,“class”:“OC\Core\BackgroundJobs\GenerateMetadataJob”,“type”:“->”},{“file”:“/var/www/nextcloud/core/BackgroundJobs/GenerateMetadataJob.php”,“line”:103,“function”:“scanFolder”,“class”:“OC\Core\BackgroundJobs\GenerateMetadataJob”,“type”:“->”},{“file”:“/var/www/nextcloud/core/BackgroundJobs/GenerateMetadataJob.php”,“line”:103,“function”:“scanFolder”,“class”:“OC\Core\BackgroundJobs\GenerateMetadataJob”,“type”:“->”},{“file”:“/var/www/nextcloud/core/BackgroundJobs/GenerateMetadataJob.php”,“line”:103,“function”:“scanFolder”,“class”:“OC\Core\BackgroundJobs\GenerateMetadataJob”,“type”:“->”},{“file”:“/var/www/nextcloud/core/BackgroundJobs/GenerateMetadataJob.php”,“line”:103,“function”:“scanFolder”,“class”:“OC\Core\BackgroundJobs\GenerateMetadataJob”,“type”:“->”},{“file”:“/var/www/nextcloud/core/BackgroundJobs/GenerateMetadataJob.php”,“line”:92,“function”:“scanFolder”,“class”:“OC\Core\BackgroundJobs\GenerateMetadataJob”,“type”:“->”},{“file”:“/var/www/nextcloud/core/BackgroundJobs/GenerateMetadataJob.php”,“line”:83,“function”:“scanFilesForUser”,“class”:“OC\Core\BackgroundJobs\GenerateMetadataJob”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/public/BackgroundJob/Job.php”,“line”:81,“function”:“run”,“class”:“OC\Core\BackgroundJobs\GenerateMetadataJob”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/public/BackgroundJob/TimedJob.php”,“line”:102,“function”:“start”,“class”:“OCP\BackgroundJob\Job”,“type”:“->”},{“file”:“/var/www/nextcloud/lib/public/BackgroundJob/TimedJob.php”,“line”:92,“function”:“start”,“class”:“OCP\BackgroundJob\TimedJob”,“type”:“->”},{“file”:“/var/www/nextcloud/cron.php”,“line”:152,“function”:“execute”,“class”:“OCP\BackgroundJob\TimedJob”,“type”:“->”}],“File”:“/var/www/nextcloud/apps/encryption/lib/Crypto/Encryption.php”,“Line”:352,“Hint”:“Cannot decrypt this file, probably this is a shared file. Please ask the file owner to reshare the file with you.”,“message”:“Failed to extract metadata for 920925”,“exception”:{},“CustomMessage”:“Failed to extract metadata for 920925”}}
root@wwweb:/var/www/nextcloud#

Actually, I’m also seeing the following. It has been talked about over on GitHub too, but for version 20. So what’d be using the deprecated method at this point? Would that be a cause?

{
“reqId”: “JFkXIv9tcr3tYK3mmZFP”,
“level”: 0,
“time”: “2024-02-07T01:08:33+00:00”,
“remoteAddr”: “192.168.1.250”,
“user”: “admin”,
“app”: “encryption”,
“method”: “GET”,
“url”: “/index.php/apps/logreader/api/poll?lastReqId=L9AEvpydxrgOYbX6n5xU”,
“message”: “/appinfo/app.php is deprecated, use \OCP\AppFramework\Bootstrap\IBootstrap on the application class instead.”,
“userAgent”: “Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36”,
“version”: “28.0.1.1”,
“data”: {
“app”: “encryption”
},
“id”: “65c2d81122cfb”
}

I had the same problem with 28.0.3.
My solution: The user disabled the Show folder description on the Files/Files settings page.

7 Likes

Thank you, this solved my issue.

Hi still facing with this issue. Ubuntu 22.0.4 & NC 28.0.3. Can anyone give a tip? Im lost. Thanks.

This worked for me too. Thank you!

Thank you! Solved my issue as well!

Great find and what a strange bug. Many thanks for the tip!

This fixed it thanks!!!

Hi :slight_smile:

Your tip sounds so promising but the setting doesn’t show on the affected device!
I’m on .0.3 atm (waiting for the .0.4 image to be released as a container) and everything works except for that one iphone that doesn’t show any files in the files app.
Problem is, the iphone in question also doesn’t show the “advanced settings” for the files app. Only the five basic ones and webdav…

kind regards!

I don’t have an iPhone, but a tip: try to change it on the web interface.

thanks for your reply!
the setting from the laptop didn’t seem to affect the phone…
but the container for 29.0.4 was released tonight and that works!