I went through the migration process from v57a on Ubuntu 18.04 to v62 on Ubuntu 22.04.
Everything seems to work, except at the last step in Mail-in-a-Box Maintenance Guide
sudo mailinabox
I get this nasty error (see 4th last line).
Updating system packages...
Installing system packages...
Initializing system random number generator...
Firewall is active and enabled on system startup
Synchronizing state of fail2ban.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable fail2ban
Installing nsd (DNS server)...
Installing Postfix (SMTP server)...
Installing Dovecot (IMAP server)...
Installing OpenDKIM/OpenDMARC...
Installing SpamAssassin...
Installing Nginx (web server)...
Installing Roundcube (webmail)...
wal
Installing Nextcloud (contacts/calendar)...
Upgrading Nextcloud --- backing up existing installation, configuration, and database to directory to /home/user-data/owncloud-backup/2023-05-20-22:09:30...
Upgrading to Nextcloud version 21.0.7
Nextcloud or one of the apps require upgrade - only a limited number of commands are available
You may use your browser or the occ upgrade command to do the upgrade
Setting log level to debug
Doctrine\DBAL\Exception\NotNullConstraintViolationException: An exception occurred while executing a query: SQLSTATE[23000]: Integrity constraint violation: 19 NOT NULL constraint failed: oc_calendar_appt_configs.visibility
Update failed
Maintenance mode is kept active
Resetting log level
Right now, the admin panel is working, but mail, contacts and calendar web interfaces are not working with a “502 Bad Gateway nginx” error.
Have repeated the steps twice and both times got the same outcome. Any ideas?