Upgrade 21 to 22 break webmail database

I am currently getting:

Unable to connect to the database!
Please contact your server-administrator.

How can I diagnose this? Am I the only one experiencing this issue?

Thanks.

I can confirm a clean install of tag V0.21 -> tag V0.22 (and master) does work. I do not get an error about connecting to the database.

You might try and remove the carddav plugin (Line 19) $config[‘plugins’] from your /usr/local/lib/roundcubemail/config/config.ini.php and see if that connects. Carddav will not be enabled, but you should be able to access mail again.

You can also try and re-run the setup ./setup/start.sh

Confirmed - this broke my install too :frowning:
The fix about removing the cardav plugin does let roundcube work again.

Same here @wuxmedia
Now working on this side. Lately each time I upgrade mailinabox, I have a problem. :frowning:

Bummer. This is my first upgrade.
I’m not migrating my users again :smile:

You can also check that you have a address book created in owncloud/nextcloud. If you upgraded from an early version of MiaB it may not have created one.

  1. Login into owncloud/nextcloud. ( https://yourdomain.com/cloud )
  2. Select the Contacts from top left menu
  3. Select “Settings” from the bottom left
  4. If you don’t see “Contacts” or any other names, create one.
  5. Try and login back into /mail with carddav enabled again.

Thanks Elser,
That also works nicely.
Good if one doesn’t fancy getting into editing config files.(I don’t care - it’s my day job :slight_smile: )
TBH I’d forgotten I have a cloudthing now!

Could someone make an issue for this at https://github.com/mail-in-a-box/mailinabox/issues? Thanks.

“You might try and remove the carddav plugin (Line 19) $config[‘plugins’] from your /usr/local/lib/roundcubemail/config/config.ini.php and see if that connects. Carddav will not be enabled, but you should be able to access mail again.”

Just ran into this problem. This let me get back into my email after upgrading.