Open cpm1 opened 1 year ago
I don't see a richdocuments relation, transferring back
Might still be fixed already with https://github.com/nextcloud/server/pull/39447 but would only affect new files or reuploaded ones.
Hi @cpm1 - The error message you're receiving:
Cannot decrypt this file, probably this is a shared file. Please ask the file owner to reshare the file with you.
...comes up when the File key file for the associated file isn't found.
occ encryption:scan:legacy-format
? Sorry for not replying earlier ..
- Are you using a master key or per-user keys?
master key
- Was the parent folder (or any of the images themselves) originally shared with the account experiencing this problem?
Exactly. I created that folder back in 2019, shared it via link with several people and recently realised that nobody can download the images anymore. Yet they show just fine in the in-line image viewer of nextcloud.
- Can you run [
occ encryption:scan:legacy-format
]
Sure, here's the output:
# sudo -u www-data php ./occ encryption:scan:legacy-format
Scanning all files for legacy encryption
Scanning all files for cpm1
All scanned files are properly encrypted. You can disable the legacy compatibility mode.
In case you need more details for reproducing this issue I am going to describe a scenario that I encountered recently.
Few months ago (at that time the Nextcloud server version was probably 25.0.5):
folder_A
├─folder_AA
│ ├─folder_AAA
│ │ └─<old_files_1>
│ └─folder_AAB
│ └─<old_files_2>
└─<old_files_3>
About a week ago (meanwhile the server was updated to 27.1.5):
folder_A
├─folder_AA
│ ├─folder_AAA
│ │ └─<old_files_1>
│ └─folder_AAB
│ └─<old_files_2+new_file>
├─folder_AB
│ └─<old_files_3>
└─folder_AC
└─<new_files>
Now:
Connection closed (Cannot decrypt this file, probably this is a shared file. Please ask the file owner to reshare the file with you.)
Error Cannot download file Cannot decrypt this file, probably this is a shared file. Please ask the file owner to reshare the file with you.
/path/
.jpeg.part could not be saved, because the source file could not be read. Try again later, or contact the server administrator.
Tried some things (to see what happens) but nothing changed concerning the download:
Possibly relevant: #45669
Indeed, seems like the issue is fixed in v27.1.11. Thank you @come-nc
For the record, while testing the fix for #46196 I've noticed that the Cannot decrypt this file, probably this is a shared file. Please ask the file owner to reshare the file with you.
error is being logged together with the issue while running UpdateSingleMetadata
warning for 'no app in context' on a fresh 29.0.3 server instance, without any shares created.
⚠️ This issue respects the following points: ⚠️
Bug description
server side encryption is enabled.
I have some images stored since 2019. Displaying them within Nextcloud works as expected, but downloading them results in a file which is correctly named, but contains the description of a 500 server error. The Nextcloud desktop client reports additionally
Cannot decrypt this file, probably this is a shared file. Please ask the file owner to reshare the file with you.
during sync operation.
Note that this does not happen with newly added images, just with older ones. Also, it might be related to https://github.com/nextcloud/richdocuments/issues/2996 .. the symptoms sound similar.
With this bug, it is not possible to download any older images, which is quite a major issue. I can't say when exactly it started, as I didn't try to access those images in a while, but I seem to remember it working in v26.
Steps to reproduce
Expected behavior
Selected photo is downloaded correctly.
Installation method
Community Manual installation with Archive
Nextcloud Server version
27
Operating system
Debian/Ubuntu
PHP engine version
PHP 8.2
Web server
Apache (supported)
Database engine version
MariaDB
Is this bug present after an update or on a fresh install?
Upgraded to a MAJOR version (ex. 22 to 23)
Are you using the Nextcloud Server Encryption module?
Encryption is Enabled
What user-backends are you using?
Configuration report
List of activated Apps
Nextcloud Signing status
Nextcloud Logs
Additional info
nextcloud.log output repeats for every tried/failed image. IPs and usernames removed.