dashboard icon indicating copy to clipboard operation
dashboard copied to clipboard

Database error

Open crossbuilder opened this issue 7 years ago • 3 comments

A few months ago, I installed Dashboard app using the web interface, i.e. from the nextcloud store. I disabled and removed it, because it was not usable back then.

Now when installing/enabling Dashboard app, I get the following error message:

An exception occurred while executing 'INSERT INTO "oc_dashboard_settings"("id","key","value") VALUES(?,?,?)' with params [1, "show_activity", 1]: SQLSTATE[23505]: Unique violation: 7 ERROR: duplicate key value violates unique constraint "oc_dashboard_settings_pkey" DETAIL: Key (id)=(1) already exists.

Please note: I never cloned/downloaded anything manually. All installing/enabling/removing was done using the "Apps" section of the web interface.

crossbuilder avatar Aug 27 '18 06:08 crossbuilder

Hello,

please disable and enable the Dashboard-App once again to remove all old remaining database entries relating to dashboard. There didn't exist any functionality to clean up the database after uninstall in previous versions. Version 5.0.0 added such a feature.

tuxedo-rb avatar Aug 27 '18 10:08 tuxedo-rb

Unfortunately, I can't disable it because I can't enable it at all.

crossbuilder avatar Aug 27 '18 11:08 crossbuilder

Oh, i get it. Then clear table [prefix_]dashboard_settings manually from your nextcloud database. Connect to your nextcloud database and run following sql-query:

TRUNCATE TABLE `oc_dashboard_settings`;

tuxedo-rb avatar Aug 27 '18 13:08 tuxedo-rb