You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I had this problem too (Multiple primary key defined).
The problem here is that mysql does not allow to alter primary key of a table without deleting that key first.
I fixed this problem by going to phpmyadmin and manually deleting primary keys for tables like: locks, queuedtasks, vcategory, calendar* etc... and then refreshing my owncloud page. This restarted the update procedure and fixed the problem.
The long term fix would be to change the owncloud updater code to always add "ALTER TABLE tablename DROP PRIMARY KEY" before executing any primary key altering on mysql.
Activity
enoch85 commentedon Jul 16, 2013
Just wanted to say that it finally works for me without having to disable mainenance mode manually.
apt-get update
apt-get upgrade
With no errors.
tanatospl commentedon Jul 23, 2013
I had this problem too (Multiple primary key defined).
The problem here is that mysql does not allow to alter primary key of a table without deleting that key first.
I fixed this problem by going to phpmyadmin and manually deleting primary keys for tables like: locks, queuedtasks, vcategory, calendar* etc... and then refreshing my owncloud page. This restarted the update procedure and fixed the problem.
The long term fix would be to change the owncloud updater code to always add "ALTER TABLE tablename DROP PRIMARY KEY" before executing any primary key altering on mysql.
karlitschek commentedon Nov 29, 2013
is it possible that you manually migrated for sqlite to mysql?