Cannot login to Web UI on Debian 10


#1

Greetings,

Sorry if this is the wrong category.

I installed OpenVAS on a Debian 10 machine. I can run scans from the command line. However, when I try to login to the Web UI I get this error message:
Login failed. Waiting for OMP service to become available.
In gsad.log I can find these 2 log lines every time I try to login:
Failed to connect to server: No such file or directory
Authentication failure for '<username>' from <IP>

Any ideas what might be causing this?


#2

This error indicates that gsad can’t connect to openvasmd/gvmd via unix socket because the unix domain socket isn’t available at the expected location. Did you check if the manager daemon is running at all?


#3

Thanks for your quick response.

Yes. The manager daemon (openvasmd) is running.

Any other things I can check?

Cheers.


#4

You could check the gsad and openvasmd error logs in /var/log for more details


#5

Thanks again for your answer.

I solved it by changing the following line in /usr/lib/systemd/system/greenbone-security-assistant.service from
ExecStart=/usr/sbin/gsad --foreground --listen=127.0.0.1 --port=9392 --mlisten=127.0.0.1 --mport=9390
to
ExecStart=/usr/sbin/gsad --foreground --listen=0.0.0.0 --port=9392 --mlisten=127.0.0.1 --mport=9390 --allow-header-host=<IP of the machine>

Now I can access the UI on https[:]//IP:9392

Cheers.