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

"occ encryption:decrypt-all" fails with obscure error message when not connected to an interactive terminal #9894

Closed
zerodogg opened this issue Jun 18, 2018 · 3 comments
Labels
3. to review Waiting for reviews enhancement feature: encryption (server-side) good first issue Small tasks with clear documentation about how and in which place you need to fix things in. papercut Annoying recurring issue with possibly simple fix.
Milestone

Comments

@zerodogg
Copy link

Steps to reproduce

  1. Run occ encryption:decrypt-all without an interactive terminal, ie. using docker (docker exec --user www-data nextcloud php occ encryption:decrypt-all xx)

Expected behaviour

Should tell me that it needs an interactive terminal, not just say "aborted".

Actual behaviour

Outputs:

Disable server side encryption... done.


You are about to start to decrypt all files stored in xx's account.
It will depend on the encryption module and your setup if this is possible.
Depending on the number and size of your files this can take some time
Please make sure that no user access his files during this process!

Enable server side encryption... done.
aborted

In the docker case, it works when providing -it to docker (ie. docker exec -it --user www-data nextcloud php occ encryption:decrypt-all xx)

Server configuration

Operating system: official docker image (up to date as of 2018-06-18) running on Debian x86_64 9.4

Database: MariaDB

PHP version: 7.1.18

Updated from an older Nextcloud/ownCloud or fresh install: Update

Where did you install Nextcloud from: Docker

@MorrisJobke
Copy link
Member

cc @nextcloud/encryption

@MorrisJobke MorrisJobke added enhancement feature: encryption (server-side) papercut Annoying recurring issue with possibly simple fix. good first issue Small tasks with clear documentation about how and in which place you need to fix things in. labels Jul 3, 2018
@eugulixes
Copy link
Contributor

Would be happy to contribute to NC. I'll take this one.

@ChristophWurst
Copy link
Member

-> PR at #10439.

Thank you, @eugulixes ✌️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews enhancement feature: encryption (server-side) good first issue Small tasks with clear documentation about how and in which place you need to fix things in. papercut Annoying recurring issue with possibly simple fix.
Projects
None yet
Development

No branches or pull requests

5 participants