Can't create New Target

When I try to create a New Target, I get this error:

Failed to find port_list '33d0cd82-57c6-11e1-8ed1-406186ea4fc5'

Any ideas? The setup is running on Docker and is newly configured

I have the same issue on Kali Linux, i don’t know if it works for docker but i will tell you wath i do for solve it
My error was Failed to find port_list '4a717fe-57d2-11e1-9a26-406186ea4fc5w”

So we need to find the real UID, to do that put this command
sudo -u _gvm gvmd --get-users --verbose | grep admin | awk '{print $2}'
it will give you the NewUID
Replace the UID with this command
sudo -u _gvm gvmd --modify-setting 78eceaec-3385-11ea-b237-28d24461215b –value NewUID

Let me know if it works for you

I managed to get it working, but when I tried to setup another one, it’s failing on the postgres section:

report-formats-1       | Copying report formats... 
pg-gvm-1               | psql: error: could not connect to server: No such file or directory
pg-gvm-1               |        Is the server running locally and accepting
pg-gvm-1               |        connections on Unix domain socket "/tmp/.s.PGSQL.5432"?
report-formats-1       | changed user permissions to 1001
report-formats-1       | changed group permissions to 1001
report-formats-1       | files copied.
configure-openvas-1 exited with code 0
pg-gvm-1               | psql: error: could not connect to server: No such file or directory
pg-gvm-1               |        Is the server running locally and accepting
pg-gvm-1               |        connections on Unix domain socket "/tmp/.s.PGSQL.5432"?
pg-gvm-1               | psql: error: could not connect to server: No such file or directory
pg-gvm-1               |        Is the server running locally and accepting
pg-gvm-1               |        connections on Unix domain socket "/tmp/.s.PGSQL.5432"?
pg-gvm-1               | psql: error: could not connect to server: No such file or directory
pg-gvm-1               |        Is the server running locally and accepting
pg-gvm-1               |        connections on Unix domain socket "/tmp/.s.PGSQL.5432"?
pg-gvm-1               | psql: error: could not connect to server: No such file or directory
pg-gvm-1               |        Is the server running locally and accepting
pg-gvm-1               |        connections on Unix domain socket "/tmp/.s.PGSQL.5432"?
dfn-cert-data-1 exited with code 0
report-formats-1 exited with code 0
pg-gvm-1               | psql: error: could not connect to server: No such file or directory
pg-gvm-1               |        Is the server running locally and accepting
pg-gvm-1               |        connections on Unix domain socket "/tmp/.s.PGSQL.5432"?
pg-gvm-1               | psql: error: could not connect to server: No such file or directory
pg-gvm-1               |        Is the server running locally and accepting
pg-gvm-1               |        connections on Unix domain socket "/tmp/.s.PGSQL.5432"?
pg-gvm-1               | Error: /var/lib/postgresql/13/main is not accessible or does not exist
pg-gvm-1               | Error: /var/lib/postgresql/13/main is not accessible or does not exist
pg-gvm-1               | Deleted verification file.
pg-gvm-1 exited with code 0

I tried to create a new post, but it’s in pending state

Wath is your greenbone version ?

Mine greenbone version use postgresql 17, maybe there is a problem of conectivity to your sql database