When TYPO3 9 throws this error, a possible reason could be that there is no password set in the Installtool. So open the LocalConfiguration.php and check if there is an entry for
$GLOBALS[‘TYPO3_CONF_VARS’][‘BE’][‘installToolPassword’]Thanks to this Twitter entry