Encryption, decryption and sharing mess

Steps to reproduce

  1. re-enable encryption on webinterface as admin if not anabled
  2. go to cli and run: sudo -u apache php occ encryption:decrypt-all --all

Expected behaviour

decrypt all previously encrypted files

Actual behaviour

runs some time, than new lines are pasted on the shell for every file tried to decrypt. The App is no longer being displayed as active on the webinterface. Some files have been decrypted others remain encrypted

Server configuration

Operating system:
centos 7

Web server:
nginx 1.11

Database:
mysql 5.7

PHP version:
PHP 5.6.21, php-fpm

ownCloud version: (see ownCloud admin page)
9.0.4

Updated from an older ownCloud or fresh install:
fresh install

list of activated apps
Enabled:
- activity: 2.2.1
- comments: 0.2
- dav: 0.1.6
- encryption: 1.2.0
- federatedfilesharing: 0.1.0
- federation: 0.0.4
- files: 1.4.4
- files_pdfviewer: 0.8.1
- files_sharing: 0.9.1
- files_texteditor: 2.1
- files_trashbin: 0.8.0
- files_versions: 1.2.0
- files_videoplayer: 0.9.8
- firstrunwizard: 1.1
- gallery: 14.5.0
- provisioning_api: 0.4.1
- systemtags: 0.2
- templateeditor: 0.1
- updatenotification: 0.1.0
- user_ldap: 0.8.0