Installation throught CLI fails due to too many arguments (Debian Buster, remote PostgreSQL 11 DB)

Hi everyone!
So the situation is as follows:
I have two servers. One is running as webserver, the other holds databases. DB-Server’s ports are open, listening and accepting connections from webserver. I tested it with another app.
EDIT: nextcloud version is 17

I tried to install nextcloud through CLI:

sudo -u www-data php /usr/share/nextcloud/occ maintenance:install --database “pgsql” --database-name “nextcloud” --database-host “db-server-ip” --database-port “db-server-port” --database-user “nextcloud” --database-pass “database-user-pass” --verbose 3

occ throws me this error:

In ArgvInput.php line 183:
[Symfony\Component\Console\Exception\RuntimeException]
Too many arguments, expected arguments “command”.
Exception trace:
() at /usr/share/nextcloud/3rdparty/symfony/console/Input/ArgvInput.php:183
Symfony\Component\Console\Input\ArgvInput->parseArgument() at /usr/share/nextcloud/3rdparty/symfony/console/Input/ArgvInput.php:86
Symfony\Component\Console\Input\ArgvInput->parse() at /usr/share/nextcloud/3rdparty/symfony/console/Input/Input.php:55
Symfony\Component\Console\Input\Input->bind() at /usr/share/nextcloud/3rdparty/symfony/console/Command/Command.php:214
Symfony\Component\Console\Command\Command->run() at /usr/share/nextcloud/3rdparty/symfony/console/Application.php:908
Symfony\Component\Console\Application->doRunCommand() at /usr/share/nextcloud/3rdparty/symfony/console/Application.php:269
Symfony\Component\Console\Application->doRun() at /usr/share/nextcloud/3rdparty/symfony/console/Application.php:145
Symfony\Component\Console\Application->run() at /usr/share/nextcloud/lib/private/Console/Application.php:213
OC\Console\Application->run() at /usr/share/nextcloud/console.php:97
require_once() at /usr/share/nextcloud/occ:11

This doesn’t happen if I choose mysql as database type even though there is no mysql database.
I’m pretty much lost at this point. My next try is to search through nextclouds files, but maybe somebody had this before and can point me in the right direction.

thanks for your help!

best regards
reallyatypo

Stupid me, forgot to install and activate php-pgsql modul :roll_eyes:
this pointed me in the right direction:
https://help.nextcloud.com/t/postgresql-nextcloud/1083/3