Skip to content
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

Can not decrypt [OC\Encryption\Exceptions\DecryptionFailedException] #16

Closed
adamlove86 opened this issue Jan 20, 2017 · 8 comments
Closed
Assignees
Milestone

Comments

@adamlove86
Copy link

adamlove86 commented Jan 20, 2017

Hi there, have been trying to run preview:generate-all or preview:pre-generate and I receive this error:

root@snappy-nextcloud:/var/snap/nextcloud/current/nextcloud/extra-apps# nextcloud.occ preview:pre-generate
The process control (PCNTL) extensions are required in case you want to interrupt long running commands - see http://php.net/manual/en/book.pcntl.php

                                                                                                                   
  [OC\Encryption\Exceptions\DecryptionFailedException]                                                             
  Can not decrypt this file, probably this is a shared file. Please ask the file owner to reshare the file with y  
  ou.                                                                                                              
                                                                                                                   

preview:pre-generate

Let me know if there's any other info I can send you, and thanks for your help.

@adamlove86
Copy link
Author

Just had a bit of a look around, and it may be because the Snap folder is read only?
I'm running nextcloud snap 11.0, and current version of preview generator.

@rullzer
Copy link
Member

rullzer commented Jan 30, 2017

Mmmm nah it seems you are using encryption. I'll see if I can handle things a bit more gracefully.

@hanzei
Copy link

hanzei commented Mar 6, 2017

Same problem here with nextcloud 11.0.2 and encryption

@rullzer
Copy link
Member

rullzer commented Mar 8, 2017

Summoning @schiessle.
My bet is this app won't properly work with encryption. Since it runs from the cli. So there are no keys available right?

@schiessle
Copy link
Member

Yes, in order to access the files you need the users private key which again is encrypted with the users login password (if no master key is enabled).

My suggestion: check if encryption is enabled without the master key. If that's the case just do nothing or write a log message and disable the app again.

@rullzer
Copy link
Member

rullzer commented Mar 9, 2017

@schiessle yes that is what I was thinking. I'll take care. Thnx

@rullzer rullzer self-assigned this Mar 9, 2017
@rullzer rullzer added this to the 1.0.3 milestone Mar 9, 2017
@rullzer
Copy link
Member

rullzer commented Mar 14, 2017

@schiessle ok so new question. How do I actually check that :P?

@rullzer
Copy link
Member

rullzer commented Mar 14, 2017

You know what let me just get in the Encryption manager thingy and block all encryption stuff for now. Then I can later always relax the constraint

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants