mail-in-a-box / mailinabox

Mail-in-a-Box helps individuals take back control of their email by defining a one-click, easy-to-deploy SMTP+everything else server: a mail server in a box.
https://mailinabox.email/
Creative Commons Zero v1.0 Universal
13.98k stars 1.44k forks source link

v63 breaks the reason we have NextCloud #2291

Open alento-group opened 1 year ago

alento-group commented 1 year ago

https://discourse.mailinabox.email/t/minor-issues-with-v63-update-stepping-unique-constraint-failed/10682

Disabled incompatible app: accessibility Disabled incompatible app: calendar Disabled incompatible app: contacts Disabled incompatible app: files_videoplayer

Error: stepping, UNIQUE constraint failed: oc_users_external.uid, oc_users_external.backend (19)

kiekerjan commented 1 year ago

See https://github.com/mail-in-a-box/mailinabox/issues/2210 for the UNIQUE constraint error. It is normal that on upgrade apps might be disabled. The ones we care about are upgraded and enabled later in the process.

jvolkenant commented 1 year ago

The upgrade of nextcloud deletes the old folder at /usr/local/lib/owncloud then lands the new version including the user_external, contacts, calendar. It's likely the case that those messages you see about incompatible app are because the database version is old, while the app's are new. Needless to say they are updated later in the script https://github.com/mail-in-a-box/mailinabox/blob/e419b620347e7d3e4782466d540056a212d28ae1/setup/nextcloud.sh#L340-L343