View Issue Details

IDProjectCategoryView StatusLast Update
0004593Kali Linux[All Projects] Kali Package Bugpublic2018-05-08 07:58
Reporterjohnny_mossAssigned To 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product Version2018.1 
Target VersionFixed in Version 
Summary0004593: Verbose output in terminal when starting or stopping openvas services.
DescriptionWhen I want to use the Openvas vulnerability scanner, the first thing I do is start the service (from the terminal) thus:
    
    sudo openvas-start

and a few moments later, I am returned to my normal prompt. There is no information of any kind output to my terminal. Now however, there is a great deal of information output when I start the service. There is also a separate window opened displaying an error message:

    Failed to execute default Web Browser
              input/output error

and likewise, when I stop the service there is another page or two of information. This never used to happen before. I have, rightly or wrongly, marked the "bug" as minor. Now when I run a scan, things appear to be working as they should except that the scan progress bar appears to be stuck at 1%. So I can't tell if the scan has finished or not!

I copied and pasted all the output and have included it as an uploaded file. Thanks in advance for any help.
Steps To ReproduceOpen a terminal and start the Openvas service with:

    sudo openvas-start
Additional InformationFunctionality of the Openvas scanner seems to have been affected (the progress bar indicator) though not to any great extent.

Relationships

related to 0004606 resolvedg0tmi1k Make openvas-* more verbose 

Activities

johnny_moss

johnny_moss

2018-03-04 23:30

reporter  

openvas_output (7,379 bytes)
:~$ sudo openvas-start
[*] Please wait for the OpenVAS services to start.
[*]
[*] You might need to refresh your browser once it opens.
[*]
[*]  Web UI (Greenbone Security Assistant): https://127.0.0.1:9392

● greenbone-security-assistant.service - Greenbone Security Assistant
   Loaded: loaded (/lib/systemd/system/greenbone-security-assistant.service; disabled; vendor preset: disabled)
   Active: active (running) since Sun 2018-03-04 22:18:24 GMT; 5s ago
     Docs: man:gsad(8)
           http://www.openvas.org/
 Main PID: 7827 (gsad)
    Tasks: 4 (limit: 4543)
   CGroup: /system.slice/greenbone-security-assistant.service
           ├─7827 /usr/sbin/gsad --foreground --listen=127.0.0.1 --port=9392 --mlisten=127.0.0.1 --mport=9390
           └─7829 /usr/sbin/gsad --foreground --listen=127.0.0.1 --port=9392 --mlisten=127.0.0.1 --mport=9390

Mar 04 22:18:24 kali systemd[1]: Started Greenbone Security Assistant.
Mar 04 22:18:24 kali gsad[7827]: Warning: MHD_USE_THREAD_PER_CONNECTION must be used only with MHD_USE_INTERNAL_POLLING_THREAD. Flag MHD_USE_INTERNAL_POLLING_THREAD was added. Consider setting MHD_USE_INTERNAL_POLLING_THREAD explicitly.
Mar 04 22:18:24 kali gsad[7827]: Warning: MHD_USE_THREAD_PER_CONNECTION must be used only with MHD_USE_INTERNAL_POLLING_THREAD. Flag MHD_USE_INTERNAL_POLLING_THREAD was added. Consider setting MHD_USE_INTERNAL_POLLING_THREAD explicitly.

● openvas-scanner.service - Open Vulnerability Assessment System Scanner Daemon
   Loaded: loaded (/lib/systemd/system/openvas-scanner.service; disabled; vendor preset: disabled)
   Active: active (running) since Sun 2018-03-04 22:18:25 GMT; 5s ago
     Docs: man:openvassd(8)
           http://www.openvas.org/
  Process: 7825 ExecStart=/usr/sbin/openvassd --unix-socket=/var/run/openvassd.sock (code=exited, status=0/SUCCESS)
 Main PID: 7848 (openvassd)
    Tasks: 2 (limit: 4543)
   CGroup: /system.slice/openvas-scanner.service
           ├─7848 openvassd: Reloaded 12550 of 54630 NVTs (22% / ETA: 00:16)
           └─7849 openvassd (Loading Handler)

Mar 04 22:18:24 kali systemd[1]: Starting Open Vulnerability Assessment System Scanner Daemon...
Mar 04 22:18:25 kali systemd[1]: Started Open Vulnerability Assessment System Scanner Daemon.

● openvas-manager.service - Open Vulnerability Assessment System Manager Daemon
   Loaded: loaded (/lib/systemd/system/openvas-manager.service; disabled; vendor preset: disabled)
   Active: active (running) since Sun 2018-03-04 22:18:25 GMT; 5s ago
     Docs: man:openvasmd(8)
           http://www.openvas.org/
  Process: 7826 ExecStart=/usr/sbin/openvasmd --listen=127.0.0.1 --port=9390 --database=/var/lib/openvas/mgr/tasks.db (code=exited, status=0/SUCCESS)
 Main PID: 7828 (openvasmd)
    Tasks: 1 (limit: 4543)
   CGroup: /system.slice/openvas-manager.service
           └─7828 openvasmd

Mar 04 22:18:24 kali systemd[1]: Starting Open Vulnerability Assessment System Manager Daemon...
Mar 04 22:18:24 kali systemd[1]: openvas-manager.service: Can't open PID file /var/run/openvasmd.pid (yet?) after start: No such file or directory
Mar 04 22:18:25 kali systemd[1]: Started Open Vulnerability Assessment System Manager Daemon.

[*] Opening Web UI (https://127.0.0.1:9392) in: 5... 4... 3... 2... 1... 









:~$ sudo openvas-stop
[>] Stopping OpenVAS services
● greenbone-security-assistant.service - Greenbone Security Assistant
   Loaded: loaded (/lib/systemd/system/greenbone-security-assistant.service; disabled; vendor preset: disabled)
   Active: inactive (dead)
     Docs: man:gsad(8)
           http://www.openvas.org/

Mar 04 21:40:32 kali systemd[1]: Started Greenbone Security Assistant.
Mar 04 21:40:32 kali gsad[5109]: Warning: MHD_USE_THREAD_PER_CONNECTION must be used only with MHD_USE_INTERNAL_POLLING_THREAD. Flag MHD_USE_INTERNAL_POLLING_THREAD was added. Consider setting MHD_USE_INTERNAL_POLLING_THREAD explicitly.
Mar 04 21:40:32 kali gsad[5109]: Warning: MHD_USE_THREAD_PER_CONNECTION must be used only with MHD_USE_INTERNAL_POLLING_THREAD. Flag MHD_USE_INTERNAL_POLLING_THREAD was added. Consider setting MHD_USE_INTERNAL_POLLING_THREAD explicitly.
Mar 04 22:09:14 kali systemd[1]: Stopping Greenbone Security Assistant...
Mar 04 22:09:14 kali systemd[1]: Stopped Greenbone Security Assistant.
Mar 04 22:18:24 kali systemd[1]: Started Greenbone Security Assistant.
Mar 04 22:18:24 kali gsad[7827]: Warning: MHD_USE_THREAD_PER_CONNECTION must be used only with MHD_USE_INTERNAL_POLLING_THREAD. Flag MHD_USE_INTERNAL_POLLING_THREAD was added. Consider setting MHD_USE_INTERNAL_POLLING_THREAD explicitly.
Mar 04 22:18:24 kali gsad[7827]: Warning: MHD_USE_THREAD_PER_CONNECTION must be used only with MHD_USE_INTERNAL_POLLING_THREAD. Flag MHD_USE_INTERNAL_POLLING_THREAD was added. Consider setting MHD_USE_INTERNAL_POLLING_THREAD explicitly.
Mar 04 22:25:23 kali systemd[1]: Stopping Greenbone Security Assistant...
Mar 04 22:25:23 kali systemd[1]: Stopped Greenbone Security Assistant.

● openvas-scanner.service - Open Vulnerability Assessment System Scanner Daemon
   Loaded: loaded (/lib/systemd/system/openvas-scanner.service; disabled; vendor preset: disabled)
   Active: failed (Result: signal) since Sun 2018-03-04 22:25:26 GMT; 29ms ago
     Docs: man:openvassd(8)
           http://www.openvas.org/
  Process: 7825 ExecStart=/usr/sbin/openvassd --unix-socket=/var/run/openvassd.sock (code=exited, status=0/SUCCESS)
 Main PID: 7848 (code=killed, signal=KILL)

Mar 04 22:18:24 kali systemd[1]: Starting Open Vulnerability Assessment System Scanner Daemon...
Mar 04 22:18:25 kali systemd[1]: Started Open Vulnerability Assessment System Scanner Daemon.
Mar 04 22:25:23 kali systemd[1]: Stopping Open Vulnerability Assessment System Scanner Daemon...
Mar 04 22:25:26 kali systemd[1]: openvas-scanner.service: Main process exited, code=killed, status=9/KILL
Mar 04 22:25:26 kali systemd[1]: openvas-scanner.service: Failed with result 'signal'.
Mar 04 22:25:26 kali systemd[1]: Stopped Open Vulnerability Assessment System Scanner Daemon.

● openvas-manager.service - Open Vulnerability Assessment System Manager Daemon
   Loaded: loaded (/lib/systemd/system/openvas-manager.service; disabled; vendor preset: disabled)
   Active: inactive (dead)
     Docs: man:openvasmd(8)
           http://www.openvas.org/

Mar 04 21:40:32 kali systemd[1]: Starting Open Vulnerability Assessment System Manager Daemon...
Mar 04 21:40:32 kali systemd[1]: openvas-manager.service: Can't open PID file /var/run/openvasmd.pid (yet?) after start: No such file or directory
Mar 04 21:41:26 kali systemd[1]: Started Open Vulnerability Assessment System Manager Daemon.
Mar 04 22:09:14 kali systemd[1]: Stopping Open Vulnerability Assessment System Manager Daemon...
Mar 04 22:09:14 kali systemd[1]: Stopped Open Vulnerability Assessment System Manager Daemon.
Mar 04 22:18:24 kali systemd[1]: Starting Open Vulnerability Assessment System Manager Daemon...
Mar 04 22:18:24 kali systemd[1]: openvas-manager.service: Can't open PID file /var/run/openvasmd.pid (yet?) after start: No such file or directory
Mar 04 22:18:25 kali systemd[1]: Started Open Vulnerability Assessment System Manager Daemon.
Mar 04 22:25:23 kali systemd[1]: Stopping Open Vulnerability Assessment System Manager Daemon...
Mar 04 22:25:23 kali systemd[1]: Stopped Open Vulnerability Assessment System Manager Daemon.
openvas_output (7,379 bytes)
g0tmi1k

g0tmi1k

2018-03-05 07:29

administrator   ~0008854

The package recently (since 9.0.2kali3) had an update:

- Switch from "services" (old way) to "systemctl" (new method).
- At the same time, the output was made more verbose (by checking the status of the services once started/stopped)
- There's been an increase of text also printed the terminal, as well as opening the browser to the web UI (to create some consistency between them - i.e. beef, xplico, dradis and openvas).

Commits:
* http://git.kali.org/gitweb/?p=packages/openvas.git;a=commitdiff;h=3c33d36b3abbe799f98dee190046cac92b14e3e1
* http://git.kali.org/gitweb/?p=packages/openvas.git;a=commitdiff;h=b6682294d0b40740b8995fb78249be81a9d8e30f

- - -

"Failed to execute default Web Browser", I believe is a XFCE error? What is your Kali environment and setup?

- - -

"scan progress bar appears to be stuck at 1%". How long for? Other than the package being updated, anything else being altered in the scanning environment?

What happens if you do:

```
sudo openvas-start
service greenbone-security-assistant start
service openvas-scanner start
service openvas-manager start
sleep 10s
```

and then try and re-scan?
This is switching back to the old method to starting the services up.

The only other suggestion I have is opening the OpenVAS feeds before scanning.
johnny_moss

johnny_moss

2018-03-05 11:18

reporter   ~0008856

Thank you very much for that.
Openvas worked sweet as a nut until the recent package upgrade.

I'm using Kali Light which uses XFCE by default. I'm running it on a HP laptop, 2GHz quad-core, 4GB ram. I update/upgrade my system daily.

The progress bar doesn't move off 1% because once I switch to a different task view, it ceased to auto-refresh; I had this feature originally set to 'every 30 seconds'.

I tested it this morning on a VM and it seems to work OK; no automatic browser opening, though it never used to do that anyway so it's not something I miss!

Thanks again; much appreciated.

Issue History

Date Modified Username Field Change
2018-03-04 23:30 johnny_moss New Issue
2018-03-04 23:30 johnny_moss File Added: openvas_output
2018-03-05 07:29 g0tmi1k Note Added: 0008854
2018-03-05 11:18 johnny_moss Note Added: 0008856
2018-03-06 10:46 g0tmi1k Relationship added related to 0004606
2018-05-08 07:58 g0tmi1k Status new => resolved
2018-05-08 07:58 g0tmi1k Resolution open => fixed