Open leuedaniel opened 2 years ago
I'm having the same problem. My external storage is broken. Cant access the shares or the configuration page
Same problem here. I have 2 servers, only on one it's a problem. I can access the users-external settings page, but not the admin-external storage-settings
Same problem here. After digging around in every single directory. Uninstalling, re-installing. Nothing has worked. I can also access external settings through users but the admin external shares settings creates internal server errror.
I'm running into the same problem after updating to NC 24.0.5. From my understanding the root cause of the problem seems to be an unset or changed 'secret'
value in the configuration which has an impact on how passwords are stored. If the parameter value is changed somehow new passwords need to be created or at least stored again. This works fine e.g. for application passwords, but the external storage dialogs (personal and system) runs into an exception independently if all mounts have previously been deleted or not. I haven't found a solution how to clean-up the external storage settings in the database yet, so that the Gordian gets cut. Any hints are appreciated.
Same problem here with Nextcloud 25.0.2. User external shares settings are accessible, but admin external shares settings creates internal server error:
[index] Fehler: Exception: HMAC does not match. at <<closure>>
0. /var/www/nextcloud/lib/private/Security/Crypto.php line 134
OC\Security\Crypto->decryptWithoutSecret("*** sensitive parameters replaced ***")
1. /var/www/nextcloud/lib/private/Security/CredentialsManager.php line 104
OC\Security\Crypto->decrypt("*** sensitive parameters replaced ***")
2. /var/www/nextcloud/apps/files_external/lib/Lib/Auth/Password/GlobalAuth.php line 55
OC\Security\CredentialsManager->retrieve()
3. /var/www/nextcloud/apps/files_external/lib/Settings/Personal.php line 79
OCA\Files_External\Lib\Auth\Password\GlobalAuth->getAuth()
4. /var/www/nextcloud/apps/settings/lib/Controller/CommonSettingsTrait.php line 129
OCA\Files_External\Settings\Personal->getForm()
5. /var/www/nextcloud/apps/settings/lib/Controller/PersonalSettingsController.php line 73
OCA\Settings\Controller\PersonalSettingsController->formatSettings()
6. /var/www/nextcloud/apps/settings/lib/Controller/CommonSettingsTrait.php line 149
OCA\Settings\Controller\PersonalSettingsController->getSettings()
7. /var/www/nextcloud/apps/settings/lib/Controller/PersonalSettingsController.php line 64
OCA\Settings\Controller\PersonalSettingsController->getIndexResponse()
8. /var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php line 225
OCA\Settings\Controller\PersonalSettingsController->index()
9. /var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php line 133
OC\AppFramework\Http\Dispatcher->executeController()
10. /var/www/nextcloud/lib/private/AppFramework/App.php line 172
OC\AppFramework\Http\Dispatcher->dispatch()
11. /var/www/nextcloud/lib/private/Route/Router.php line 298
OC\AppFramework\App::main()
12. /var/www/nextcloud/lib/base.php line 1047
OC\Route\Router->match()
13. /var/www/nextcloud/index.php line 36
OC::handleRequest()
GET /nextcloud/settings/user/externalstorages
from xxx.xxx.xxx.xxx by admin at 2022-12-11T09:40:34+00:00
Please could you schedule work on this bug. I have spent a ton of time trying to solve it.
`
Exception: HMAC does not match. --
[index] Error: Exception: hash_hkdf(): Argument #2 ($key) cannot be empty in file '/var/www/nextcloud/lib/private/Security/Crypto.php' line 160 at <
Caused by:
ValueError: hash_hkdf(): Argument #2 ($key) cannot be empty at <
GET /settings/user/externalstorages from xxxxxxxxxxxxxx by james at 2023-08-07T17:52:09+08:00`
Same problem here after migrating database and data to a new machine, i get Internal server error if i try to configure my external storages.
This is the result of https://docs.nextcloud.com/server/latest/admin_manual/maintenance/restore.html#restore-folders
I have exactly same issue. After upgrade accessing with admin user external storage causes internal server error. With a fresh user this doesn't happen.
Issue still exists with 28.0.2. External storage is completely unusable
Hi ! I confirm the issue still exists (29.0.1)
Have any of you done anything that would have caused your secret
value in your config.php
to be changed (e.g. lost/replaced after a reinstall) at some point in the history of your instance?
This error indicates the secret
in your config.php
has been changed at some point.
e.g.
config.php
from the old instance?config.php
from backup?secret
in its config.php
from your production oneIf not, I'm not sure what's going on.
If so, this is expected behavior.
@joshtrichards you are right. I have the same issue and unfortunately i have no backup of old config and the 'secret". i deleted all mount-points via occ, but the error with "internal Server error" in Nextcloud still exist. is it possible to "reset" the files_external app and mount the external drives from the scratch ? many thx.
⚠️ This issue respects the following points: ⚠️
Bug description
After updating to Nextcloud 24.0.0, an error message appears when opening External Storgae Support.
Steps to reproduce
Expected behavior
External storage parameters should appear
Installation method
Manual installation
Operating system
Debian/Ubuntu
PHP engine version
PHP 8.0
Web server
Nginx
Database engine version
MariaDB
Is this bug present after an update or on a fresh install?
Updated to a major version (ex. 22.2.3 to 23.0.1)
Are you using the Nextcloud Server Encryption module?
Encryption is Disabled
What user-backends are you using?
Configuration report
List of activated Apps
Nextcloud Signing status
Nextcloud Logs
Additional info
No response