Issue Bug Closed

#102322setup cli command failes when no database is available on the database host

Stefan Bürk 11/06/23, 10:29 updated 07/09/24, 15:19

Description

Using the `setup` command in interactive mode to setup
a instance fails if the database host do not contains
any databases for the provided credentials:

image.png

Exception trace:
  at /app/vendor/symfony/console/Question/ChoiceQuestion.php:36
 Symfony\Component\Console\Question\ChoiceQuestion->__construct() at /app/vendor/typo3/cms-install/Classes/Command/SetupCommand.php:310
 TYPO3\CMS\Install\Command\SetupCommand->selectAndImportDatabase() at /app/vendor/typo3/cms-install/Classes/Command/SetupCommand.php:239
 TYPO3\CMS\Install\Command\SetupCommand->execute() at /app/vendor/symfony/console/Command/Command.php:326
 Symfony\Component\Console\Command\Command->run() at /app/vendor/symfony/console/Application.php:1081
 Symfony\Component\Console\Application->doRunCommand() at /app/vendor/symfony/console/Application.php:320
 Symfony\Component\Console\Application->doRun() at /app/vendor/symfony/console/Application.php:174
 Symfony\Component\Console\Application->run() at /app/vendor/typo3/cms-core/Classes/Console/CommandApplication.php:112
 TYPO3\CMS\Core\Console\CommandApplication->run() at /app/vendor/typo3/cms-cli/typo3:23
 {closure}() at /app/vendor/typo3/cms-cli/typo3:24
 include() at /app/vendor/bin/typo3:119

Reviews 2