Cannot save changed recovery password

If I hit “save”, the admin panel displays “saving” and nothing happens, log (ALL) shows nothing new.

I just tried it and I can’t reproduce it. So hard to say what is going wrong if you don’t have any further information. You could try to set 'debug' => true in your config.php and try again. Also keep an eye on the JavaScript console of your browser.

Hi,

there seems to be something missing:

jquery.min.js?v=7ebbdd5…:6 POST https://xxx/cloud/index.php/apps/encryption/ajax/changeRecoveryPassword 400 (Bad request)send @ jquery.min.js?v=7ebbdd5…:6ajax @ jquery.min.js?v=7ebbdd5…:6x.(anonymous function) @ jquery.min.js?v=7ebbdd5…:6(anonymous function) @ settings-admin.js?v=7ebbdd5…:64dispatch @ jquery.min.js?v=7ebbdd5…:5v.handle @ jquery.min.js?v=7ebbdd5…:5
jquery.min.js?v=7ebbdd5…:6 POST https://xxx/cloud/index.php/apps/encryption/ajax/changeRecoveryPassword 503 (Service Unavailable)

I dont have a directory “ajax” there, Chrome.

Firefox console:

SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data

settings-admin.js:75
x.Callbacks/c()
jquery.min.js:4
x.Callbacks/p.fireWith()
jquery.min.js:4
k()
jquery.min.js:6
.send/r()

/apps/encryption/js/settings-admin.js

$('#encryptHomeStorage').change(function() { $.post( OC.generateUrl('/apps/encryption/ajax/setEncryptHomeStorage'), { encryptHomeStorage: this.checked } ); });

It is OK that there is no “ajax” directory, that’s just route. The request should end up here: https://github.com/nextcloud/server/blob/master/apps/encryption/lib/Controller/RecoveryController.php#L114

Hi,

there is no file / folder “/apps/encryption/lib/Controller/RecoveryController.php”. Instead I found “/apps/encryption/controller/recoverycontroller.php”.

And I found a few errors in my apache log:

When opnening admin page:

'[Fri Jun 17 12:12:17.220526 2016] [:error] [pid 18210] [client xxxx] PHP Fatal error: Cannot redeclare class OCA\Encryption\Controller\StatusController in /var/www/vhosts/xxx.xxx.xxx/httpdocs/cloud/apps/encryption/lib/controller/statuscontroller.php on line 98

[Fri Jun 17 12:12:22.442043 2016] [:error] [pid 18387] [client xxxx] PHP Fatal error: Cannot redeclare class OCA\Encryption\Controller\StatusController in /var/www/vhosts/xxx.xxx.xxx/httpdocs/cloud/apps/encryption/lib/controller/statuscontroller.php on line 98

When saving (even wrong old password message is not displaxed, I tried “123” which is for sure wrong :wink: ):
`
PHP Fatal error: Cannot redeclare class OCA\Encryption\Controller\RecoveryController in /var/www/vhosts/x.x.x/httpdocs/cloud/apps/encryption/lib/controller/recoverycontroller.php on line 192

`

Ah, sorry… That’s OK. I copied the path from master.

Any update or does anybody have another idea what to try? Im desperate as I’d like to change the password…

Thanks
Stefan