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
NC 20.0.0 - Index name "oc_reader_preferences"."reader_preferences_file_id_index" is too long. #22
Comments
I am experiencing the same problem on PostgreSQL. |
Same on NextCloud 18.0.10. The log output is:
|
Same on NC 19. |
Same for me on 20 InvalidArgumentException: Index name "oc_reader_preferences"."reader_preferences_file_id_index" is too long. OC\DB\MigrationService->ensureOracleIdentifierLengthLimit() /var/www/html/nextcloud/lib/private/DB/MigrationService.php - line 414: OC\DB\MigrationService->executeStep() /var/www/html/nextcloud/lib/private/Installer.php - line 157: OC\DB\MigrationService->migrate() /var/www/html/nextcloud/apps/settings/lib/Controller/AppSettingsController.php - line 448: OC\Installer->installApp() /var/www/html/nextcloud/lib/private/AppFramework/Http/Dispatcher.php - line 169: OCA\Settings\Controller\AppSettingsController->enableApps() /var/www/html/nextcloud/lib/private/AppFramework/Http/Dispatcher.php - line 100: OC\AppFramework\Http\Dispatcher->executeController() /var/www/html/nextcloud/lib/private/AppFramework/App.php - line 152: OC\AppFramework\Http\Dispatcher->dispatch() /var/www/html/nextcloud/lib/private/Route/Router.php - line 308: OC\AppFramework\App::main() /var/www/html/nextcloud/lib/base.php - line 1009: OC\Route\Router->match() /var/www/html/nextcloud/index.php - line 37: OC::handleRequest() |
Apparently the maximum length of index names that Nextcloud allows is 27 and I wonder how this limit came to be, since the supported database system with the lowest limit (Oracle) still apparently allows 30 characters. The upstream commit message that introduced this limit also don't give an explanation. Nevertheless, the length used by |
This currently causes our test to fail with the followivg error while enabling the app: Index name "oc_reader_preferences"."reader_preferences_file_id_index" is too long. The issue has been reported upstream[1] and I also added an assertion on the current version so that we can re-add the app to our upgrade test once a fixed upstream version is available. [1]: e-alfred/epubreader#22 Signed-off-by: aszlig <aszlig@nix.build>
Thanks for your report, but this is a duplicate of #18. Please add any additional information there. |
Hi,
I was trying to install the 1.4.3 version on the NC 20.0.0 but got the error message of:
Index name "oc_reader_preferences"."reader_preferences_file_id_index" is too long.
MySQL server: Server version: 10.5.6-MariaDB-1:10.5.6+maria~focal
Do you have any hints how to fix it?
Cheers,
Ferenc
The text was updated successfully, but these errors were encountered: