Page tree
Skip to end of metadata
Go to start of metadata

Set you log_level to level 2 (err) or higher to see the relevant error messages.

Check the kopano-server log for the following error:

K-1216: Cannot update to schema v69, because the "names" table contains unexpected rows. Certain prior versions of the server erroneously allowed these duplicates to be added (KC-1108)."

FIX

  1. Create a backup (either using kopano-backup or creating a backup of the database only).

  2. Stop the kopano-server

    systemctl stop kopano-server
    OR
    /etc/init.d/kopano-server stop
  3. NB: The kopano-dbadm cleanup can take a while depending on your database size and hardware configuration.

  4. Run the kopano-dbadm tool

    /usr/sbin/kopano-dbadm k-1216
  5. Restart the kopano-server

    systemctl start kopano-server
    OR
    /etc/init.d/kopano-server start
  6. Done.




WORKAROUND

A quick temporary fix.

To get kopano-server running again without fixing the underlying issue, you can use the ignore-database-version-conflict flag:

/usr/sbin/kopano-server --ignore-database-version-conflict

Add any flags you would normally also use.

This is a temporary workaround and it does not fix the underlying issue.

When running with this flag the kopano-server will use the old database schema.

Data loss or corruption can therefore still occur.

K-1216: Cannot update to schema v69, because the "names" table contains unexpected rows. Certain prior versions of the server erroneously allowed these duplicates to be added (KC-1108)."