Icinga Web setup fails with PDOException

I just went through icinga setup yet again, trying to finally finish it, yet it fails this time after setting up the command transport with this error message:

Successfully connected to existing database “icingadb”…
Creating database schema…
Failed to fully setup the database. An error occured:
ERROR: PDOException in /usr/share/icingaweb2/modules/setup/library/Setup/Utils/DbTool.php:477 with message: SQLSTATE[42710]: Duplicate object: 7 ERROR: Type »boolenum« already exists

Module “monitoring” has been successfully enabled.

There aren’t any entries in the icingaweb2 logs.

Give as much information as you can, e.g.

  • Icinga Web 2 version: 2.12.1-1+debian12
  • Used modules and their versions (System - About): -
  • Web browser used: Chrome 125.0.6382.3
  • Icinga 2 version used (icinga2 --version): r2.14.2-1
  • PHP version used (php --version): 8.2.7
  • Server operating system and version: Debian 12.5