Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • DB migration failed after upgrade to 9.0.13

    Unsolved Support database migrations
    2
    1 Votes
    2 Posts
    7 Views
    nebulonN
    Changing the database schema manually is usually always a bad idea. It becomes very hard to apply the database migration scripts which have to be run one-after-the-other and with manual changes it is unknown at which schema state the database is and if subsequent migrations can work. Do you know exactly which SQL query you ran manually to update the schema? If so ideally revert that and run db migration script again. It probably will just show the same error as before, so we can work from that on. Duplicate entry '20647655-d757-412a-8a67-3b6ff3d224a3-oidc' for key 'oidcClients.PRIMARY' it seems like you have duplicate records in the oidcClients table. Can you run: mysql -uroot -ppassword box -e "SELECT * from oidcClients" Then find the duplicates and remove one of them. Then rerun the migration script again.