-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Decryption failed with s3 #8299
Comments
Subfolder shows same behavior as #7420. Size is "pending" |
@schiessle could you look into this? I believe this could be encryption related. |
I'm having the same issue, and it happens when encryption is enable in external storage configuration. I noticed that if a small file is upload everething goes just fine (by small I mean Also, only small files are able to be downloaded, the followig errors occurs when trying to download bigger files (more than 1mb):
|
Same problem here. PHP 7.2.4 |
Definitely something to do with the encryption module. Files already on the s3 bucket can be accessed without problems. Nextcloud 13.0.2 |
A small text file (1KB) can indeed be opened on the web interface. But even a small image (16KB) will result in above mentioned errors. The preview app has issues with images in these folders, too. Name:
The log will always cut off the beginning a file name. Name:
@icewind1991 any news on this? |
I just wanted to try out Nextcloud and ran into this issue. Kind of a deal-breaker for me. I also deleted everything and re-tried with 12.0.7 with the same result. Uploading of files (photos in my case) works but downloading the file, I only get garbage. |
Same problem as @brennovich Interestingly enough if I retry the file several times it eventually works. Intermittent failure makes me think there's issues with s3 implementation rather than the encryption.
|
no issues when using server-side encryption with goofys |
I have same problem with S3 external storage. Preview is KO, and download say "File not found Firefox can’t find the file at https://fqdn/remote.php/webdav/mybuckets/chat.jpg?downloadStartSecret=krj1575u8uv. Have you a solution to migrate from "external storage S3" to a "local goofys" to recover all files in my bucket ? (all user key + masterkey + DB are OK, but nextcloud encryption module for external file doesn't works and locks all my files) |
Same problem here, issue with brand new setup with docker(-compose), tried even using latest image: 13.0.3RC2-apache External storage + Encryption = same problem as OP Without encryption no problem. Local storage + Encryption = no problem And yes, its not just a matter of previews, the file contents get mangled into junk. Interestingly, if you create a text file using web interface it doesnt have a problem with it. Perhaps it has something to do with anything that goes into more than one "block of bytes" in encrypted format? Just a wild guess |
I have this exact issue. Does anyone have some kind of a solution? Uploads directly to S3 are visible and downloadable perfectly fine. However anything uploaded via web interface from next cloud to S3 gets destroyed. Preview fails in console with: After upload there is no error log entry (/home/admin/web/hidden.domain/logs). Upon download through web interface it produces the following error:
Man, I havnt been able to get uploads working to external storage for weeks. Im slowly starting to give up :( I have tried so many solutions that work sometimes but each one brings me just another problem. EDIT: I can report that disabling encryption via occ commands fixed the issue. So it is definitely encryption related. |
Same issues here: using encrypted s3 external storage, files appear to be completely corrupted, and I cannot preview or open them in any nextcloud client. In my case, I first get this:
followed by this:
I guess I will be using unencrypted external storage for now :( |
Sounds like the same issue I fixed here: #10397 Maybe you can test the fix and report back if it works for you |
Seems not to work for me: #10455 (comment) |
@schiessle this issue still persists. Tested with NC 14 beta 3. External storage (s3) and default encryption module. #10455 and #10430 are solved though 😃
|
@TecJon the error message looks different, there is no longer the "bad signature" error. I just tried it but coudn't reproduce it. I used a Amazon S3 test account, mounted it as admin for all user to a folder called "s3" and could upload, download and delete files. What's your concrete setup? Did you configured the external storage as a system wide mount (for all users or just a specific set of users) or as a user mount in the personal settings? Did you tried it with new files, we probably can't fix the already broken files. What S3 storage do you use? Did you tried it without encryption, does the storage works reliable in this case? |
@schiessle I tried it on two independent test installations. One is a one-click install on a shared web space. The other is a installation on a virtual server with the zip from nextcloud.com. For both installations I installed NC 13 and switched to the beta channel. Both installations produce the same error when trying to download a file:
Some notes that apply for both test installations:
Not sure which information you could need. I configured two s3 buckets, one for each installations. One has default AES-256 encryption enabled, the other one hasn't. One is located in us east, the other in europe central. Let me know if any other info can be of help. |
@schiessle @TecJon Could you open a new ticket for this new issue? |
re-opened here: #10767 |
Steps to reproduce
Expected behaviour
The web interface should display the image. Download should be possible.
The folder should get deleted.
Actual behaviour
Open: "Error! Could not generate a preview for this file." screen stays black.
Download: File not found browser error
Delete: "Error deleting file test" (test is actually a folder)
Server configuration
Operating system:
Ubuntu 16.04
Web server:
nginx/1.10.3
Database:
mysql
PHP version:
7.0
Nextcloud version:
13.0.0.14
Updated from an older Nextcloud/ownCloud or fresh install:
update
Where did you install Nextcloud from:
updater
Signing status:
Signing status
List of activated apps:
App list
Nextcloud configuration:
Config report
Are you using external storage, if yes which one:
S3
Are you using encryption: yes/no
yes
Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/...
no
Client configuration
Browser:
Firefox 58
Operating system:
Win 10
Logs
Web server error log
Web server error log
Nextcloud log (data/nextcloud.log)
Nextcloud log
Browser log
Browser log
The text was updated successfully, but these errors were encountered: