Can't login the interface

My greenbone was working fine i can scan and do everything. I tried to update the feeds again(to configure greenbone to scan a magento website ) now i can access the greenbone the interface works fine but when i type the username and password it shows this error “The Greenbone Vulnerability Manager service is not responding. This could be due to system maintenance. Please try again later, check the system status, or contact your system administrator.”

when i type this command
sudo journalctl -u gvmd.service
the result: févr. 20 07:48:45 ubuntu systemd[1]: gvmd.service: Can’t open PID file /run/gvm/gvmd.pid (yet?) after start: Operation not permitted févr. 20 07:48:50 ubuntu systemd[1]: Started Greenbone Vulnerability Manager daemon (gvmd).

ubuntu@ubuntu:~$ ls /var/run/gvmd
ls: cannot access ‘/var/run/gvmd’: No such file or directory

I think there’s a problem in the feed updates how to fix this issue please I need help as fast as possible. Also if you you know how to configure greenbone and what to change in it so that it can scan a magento website (easy way) please let me know.

Hi,

first of all please read Start Here

2 Likes

Hello,
these are the outputs that i think will be useful to help me resolve my problem
My greenbone was working fine i can scan and do everything. I tried to update the feeds again(to configure greenbone to scan a magento website ) now i can access the greenbone the interface works fine but when i type the username and password it shows this error
"The Greenbone Vulnerability Manager service is not responding. This could be due to system maintenance. Please try again later, check the system status, or contact your system administrator. "

Please help I need help as fast as possible.

ubuntu@ubuntu:~$ sudo journalctl -u gvmd.service
févr. 20 07:48:45 ubuntu systemd[1]: gvmd.service: Can’t open PID file /run/gvm/gvmd.pid (yet?) after start: Operation not permitted févr. 20 07:48:50 ubuntu systemd[1]: Started Greenbone Vulnerability Manager daemon (gvmd).

ubuntu@ubuntu:~$ ls /var/run/gvmd
ls: cannot access ‘/var/run/gvmd’: No such file or directory

ubuntu@ubuntu:~$ sudo systemctl status gvmd.service
gvmd.service - Greenbone Vulnerability Manager daemon (gvmd)
     Loaded: loaded (/lib/systemd/system/gvmd.service; enabled; vendor preset: enabled)
     Active: active (running) since Tue 2024-02-20 07:48:50 UTC; 1h 4min ago
       Docs: man:gvmd(8)
    Process: 46621 ExecStart=/usr/sbin/gvmd --osp-vt-update=/run/ospd/ospd-openvas.sock --listen-group=gvm $OPTIONS (code=exited, status=0/SUCCESS)
   Main PID: 46623 (gvmd)
      Tasks: 1 (limit: 4557)
     Memory: 112.7M
        CPU: 43.777s
     CGroup: /system.slice/gvmd.service
             └─46623 "gvmd: gvmd: Wa" --osp-vt-update=/run/ospd/ospd-openvas.sock --listen-group=gvm

févr. 20 07:48:45 ubuntu systemd[1]: Starting Greenbone Vulnerability Manager daemon (gvmd)...
févr. 20 07:48:45 ubuntu systemd[1]: gvmd.service: Can't open PID file /run/gvm/gvmd.pid (yet?) after start: Operation not permitted
févr. 20 07:48:50 ubuntu systemd[1]: Started Greenbone Vulnerability Manager daemon (gvmd).

when i try to update the feed again


ubuntu@ubuntu:~$ sudo -u gvm -g gvm greenbone-nvt-sync
[sudo] password for ubuntu:
Greenbone community feed server - http://feed.community.greenbone.net/
This service is hosted by Greenbone Networks - http://www.greenbone.net/

All transactions are logged.

If you have any questions, please use the Greenbone community portal.
See https://community.greenbone.net for details.

By using this service you agree to our terms and conditions.

Only one sync per time, otherwise the source ip will be temporarily blocked.

receiving incremental file list

sent 2.057 bytes  received 2.771.857 bytes  291.990,95 bytes/sec
total size is 323.035.417  speedup is 116,45
Greenbone community feed server - http://feed.community.greenbone.net/
This service is hosted by Greenbone Networks - http://www.greenbone.net/

All transactions are logged.

If you have any questions, please use the Greenbone community portal.
See https://community.greenbone.net for details.

By using this service you agree to our terms and conditions.

Only one sync per time, otherwise the source ip will be temporarily blocked.

receiving incremental file list

sent 44 bytes  received 18.384 bytes  12.285,33 bytes/sec
total size is 347.705.790  speedup is 18.868,34
Greenbone community feed server - http://feed.community.greenbone.net/
This service is hosted by Greenbone Networks - http://www.greenbone.net/

All transactions are logged.

If you have any questions, please use the Greenbone community portal.
See https://community.greenbone.net for details.

By using this service you agree to our terms and conditions.

Only one sync per time, otherwise the source ip will be temporarily blocked.

receiving incremental file list

sent 38 bytes  received 60 bytes  65,33 bytes/sec
total size is 330  speedup is 3,37
/var/lib/openvas/feed-update.lockubuntu@ubuntu:~$


ubuntu@ubuntu:~$ sudo -u gvm -g gvm greenbone-feed-sync-legacy --type CERT

Greenbone community feed server - http://feed.community.greenbone.net/
This service is hosted by Greenbone Networks - http://www.greenbone.net/

All transactions are logged.

If you have any questions, please use the Greenbone community portal.
See https://community.greenbone.net for details.

By using this service you agree to our terms and conditions.

Only one sync per time, otherwise the source ip will be temporarily blocked.

receiving incremental file list
timestamp
             13 100%   12,70kB/s    0:00:00 (xfr#1, to-chk=0/1)

sent 71 bytes  received 111 bytes  121,33 bytes/sec
total size is 13  speedup is 0,07


ubuntu@ubuntu:~$sudo -u gvm -g gvm greenbone-feed-sync-legacy --type SCAP
Greenbone community feed server - http://feed.community.greenbone.net/
This service is hosted by Greenbone Networks - http://www.greenbone.net/

All transactions are logged.

If you have any questions, please use the Greenbone community portal.
See https://community.greenbone.net for details.

By using this service you agree to our terms and conditions.

Only one sync per time, otherwise the source ip will be temporarily blocked.

receiving incremental file list
timestamp
             13 100%   12,70kB/s    0:00:00 (xfr#1, to-chk=0/1)

sent 71 bytes  received 111 bytes  121,33 bytes/sec
total size is 13  speedup is 0,07



ubuntu@ubuntu:~$sudo -u gvm -g gvm greenbone-feed-sync-legacy --type GVMD_DATA
Greenbone community feed server - http://feed.community.greenbone.net/
This service is hosted by Greenbone Networks - http://www.greenbone.net/

All transactions are logged.

If you have any questions, please use the Greenbone community portal.
See https://community.greenbone.net for details.

By using this service you agree to our terms and conditions.

Only one sync per time, otherwise the source ip will be temporarily blocked.

receiving incremental file list
timestamp
             13 100%   12,70kB/s    0:00:00 (xfr#1, to-chk=0/1)

sent 71 bytes  received 111 bytes  121,33 bytes/sec
total size is 13  speedup is 0,07


ubuntu@ubuntu:~$ ls /run/gvm
gvm-create-functions


ubuntu@ubuntu:~$ ls /var/log/gvm/
gsad.log  gsad.log.1.gz  gvmd.log  gvmd.log.1.gz  notus-scanner.log  openvas.log  ospd-openvas.log


Please also take a look at https://greenbone.github.io/docs/latest/troubleshooting.html#facing-an-issue-with-the-greenbone-community-edition

You should take a look at the logs and please mention the installation method.

2 Likes

I did take a look at the link you provided
Installed greenbone 5 days ago for those 5 days it was working fine no problems also i tried scanning multiple vms so i did not face any issues of any kind.
I’m using a virtual machine ubuntu 22.04 connected via ssh

ubuntu@ubuntu:~$ ls /var/log/gvm/
gsad.log  gsad.log.1.gz  gvmd.log  gvmd.log.1.gz  notus-scanner.log  openvas.log  ospd-openvas.log

ubuntu@ubuntu:~$ cat /var/log/gvm/gsad.log
gsad  gmp:WARNING:2024-02-20 08h57.10 utc:71234: Failed to connect to server at /run/gvm/gvmd.sock: No such file or directory
gsad  gmp:WARNING:2024-02-20 08h57.10 utc:71234: Authentication failure for 'admin' from 172.16.0.152. Status was 1.
gsad  gmp:WARNING:2024-02-20 09h46.36 utc:71234: Failed to connect to server at /run/gvm/gvmd.sock: No such file or directory
gsad  gmp:WARNING:2024-02-20 09h46.36 utc:71234: Authentication failure for 'admin' from 172.16.0.152. Status was 1.
gsad  gmp:WARNING:2024-02-20 10h01.27 utc:71234: Failed to connect to server at /run/gvm/gvmd.sock: No such file or directory
gsad  gmp:WARNING:2024-02-20 10h01.27 utc:71234: Authentication failure for 'admin' from 172.16.0.152. Status was 1.
gsad main:MESSAGE:2024-02-20 10h16.15 utc:90662: Starting GSAD version 22.04.1
gsad main:WARNING:2024-02-20 10h16.15 utc:90665: main: start_http_daemon redirect failed !
gsad main:MESSAGE:2024-02-20 10h16.19 utc:90686: Starting GSAD version 22.04.1
gsad main:WARNING:2024-02-20 10h16.19 utc:90688: main: start_http_daemon redirect failed !
gsad  gmp:WARNING:2024-02-20 10h16.27 utc:90687: Failed to connect to server at /run/gvm/gvmd.sock: No such file or directory
gsad  gmp:WARNING:2024-02-20 10h16.27 utc:90687: Authentication failure for 'admin' from 172.16.0.152. Status was 1.
gsad  gmp:WARNING:2024-02-20 10h57.36 utc:90687: Failed to connect to server at /run/gvm/gvmd.sock: No such file or directory
gsad  gmp:WARNING:2024-02-20 10h57.36 utc:90687: Authentication failure for 'admin' from 172.16.0.152. Status was 1.
gsad  gmp:WARNING:2024-02-20 10h57.37 utc:90687: Failed to connect to server at /run/gvm/gvmd.sock: No such file or directory
gsad  gmp:WARNING:2024-02-20 10h57.37 utc:90687: Authentication failure for 'admin' from 172.16.0.152. Status was 1.
gsad  gmp:WARNING:2024-02-20 12h47.01 utc:90687: Failed to connect to server at /run/gvm/gvmd.sock: No such file or directory
gsad  gmp:WARNING:2024-02-20 12h47.01 utc:90687: Authentication failure for 'admin' from 172.16.0.152. Status was 1.
gsad  gmp:WARNING:2024-02-20 12h47.02 utc:90687: Failed to connect to server at /run/gvm/gvmd.sock: No such file or directory
gsad  gmp:WARNING:2024-02-20 12h47.02 utc:90687: Authentication failure for 'admin' from 172.16.0.152. Status was 1.
gsad  gmp:WARNING:2024-02-20 12h47.11 utc:90687: Failed to connect to server at /run/gvm/gvmd.sock: No such file or directory
gsad  gmp:WARNING:2024-02-20 12h47.11 utc:90687: Authentication failure for 'admin' from 172.16.0.152. Status was 1.
gsad  gmp:WARNING:2024-02-20 12h49.31 utc:90687: Failed to connect to server at /run/gvm/gvmd.sock: No such file or directory
gsad  gmp:WARNING:2024-02-20 12h49.31 utc:90687: Authentication failure for 'admin' from 172.16.0.152. Status was 1.
gsad  gmp:WARNING:2024-02-20 12h49.33 utc:90687: Failed to connect to server at /run/gvm/gvmd.sock: No such file or directory
gsad  gmp:WARNING:2024-02-20 12h49.33 utc:90687: Authentication failure for 'admin' from 172.16.0.152. Status was 1.
gsad  gmp:WARNING:2024-02-20 13h39.58 utc:90687: Failed to connect to server at /run/gvm/gvmd.sock: No such file or directory
gsad  gmp:WARNING:2024-02-20 13h39.58 utc:90687: Authentication failure for 'admin' from 172.16.0.152. Status was 1.
gsad  gmp:WARNING:2024-02-20 13h39.59 utc:90687: Failed to connect to server at /run/gvm/gvmd.sock: No such file or directory
gsad  gmp:WARNING:2024-02-20 13h39.59 utc:90687: Authentication failure for 'admin' from 172.16.0.152. Status was 1.
gsad  gmp:WARNING:2024-02-20 13h40.23 utc:90687: Failed to connect to server at /run/gvm/gvmd.sock: No such file or directory
gsad  gmp:WARNING:2024-02-20 13h40.23 utc:90687: Authentication failure for 'admin' from 172.16.0.152. Status was 1.

About the installation method I used these steps

Install PostgreSQL

sudo apt -y install postgresql

Add the GVM repository
sudo add-apt-repository ppa:mrazavi/gvm

Install GVM
sudo apt -y install gvm

Create the notus directory
sudo mkdir /var/lib/notus
sudo chown gvm:gvm /var/lib/notus

Update the Greenbone feeds
sudo -u gvm -g gvm greenbone-nvt-sync
sudo -u gvm -g gvm greenbone-feed-sync-legacy --type CERT
sudo -u gvm -g gvm greenbone-feed-sync-legacy --type SCAP
sudo -u gvm -g gvm greenbone-feed-sync-legacy --type GVMD_DATA

Configure the Greenbone Security Assistant web interface.
sudo vi /etc/default/gsad

GSAD_ADDRESS=0.0.0.0
GSAD_OPTIONS=" "


Restart the Greenbone Security Assistant daemon
sudo systemctl restart gsad

Restart the GVM daemon.
sudo systemctl restart gvmd

Open your browser and input the IP of your server and port 9392 using HTTPS.
https://192.168.10.172:9392

Thanks for the information. Sadly this package repo isn’t supported and we can’t offer any help for fixing your issues. In the past the repo was even in a broken state. If you still want to go with it, you need to contact the author of these package.

Otherwise please take a look at our Greenbone Community Documentation for supported installation methods.

2 Likes

@bricks Thank you so much for responding and helping me! I know my error I was restarting gvmd before the gsad i did not know that the order matters. Everything works fine now. Thank you again!