You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What did you do? (required. The issue will be closed when not provided.)
Manualy filled config.toml with some test hosts, 6 in total including localhost. All the hosts are accessable via SSH as enigma-user. Running "vuls configtest" shows that all the hosts are scannable. However, "vuls scan" or "vuls scan HOST_IN_QUESTION" fails for 3 of the hosts. Hosts in question: cbuild8, nagios01-cl, nagios02-cl.
What did you expect to happen?
Sucessful scan of all the hosts in config.toml, either in full scan or individual scan.
What happened instead?
Scan was partialy succesfull.
"vuls scan" is succesfull on 3 hosts out of 6 (localhost, ansible, edu). Rest of the hosts (cbuild8, nagios01-cl, nagios02-cl) give scan error.
To shorten the output, scan below is performed on cbuild8 only.
Current Output
[Sep 29 09:59:04] INFO [localhost] vuls-v0.18.0-build-20210923_125526_f047a6f
[Sep 29 09:59:04] INFO [localhost] Start scanning
[Sep 29 09:59:04] INFO [localhost] config: /root/config.toml
[Sep 29 09:59:04] INFO [localhost] Validating config...
[Sep 29 09:59:04] INFO [localhost] Detecting Server/Container OS...
[Sep 29 09:59:04] INFO [localhost] Detecting OS of servers...
[Sep 29 09:59:05] INFO [localhost] (1/1) Detected: cbuild8: centos 8.1.1911
[Sep 29 09:59:05] INFO [localhost] Detecting OS of containers...
[Sep 29 09:59:05] INFO [localhost] Checking Scan Modes...
[Sep 29 09:59:05] INFO [localhost] Detecting Platforms...
[Sep 29 09:59:06] INFO [localhost] (1/1) cbuild8 is running on other
[Sep 29 09:59:07] INFO [cbuild8] Scanning OS pkg in fast mode
[Sep 29 09:59:09] ERROR [localhost] Error on cbuild8, err: [Failed to detect installed dnf modules:
github.com/future-architect/vuls/scanner.(*redhatBase).scanPackages
/root/go/src/github.com/future-architect/vuls/scanner/redhatbase.go:264
- sudo yum check-update to make local cache before scanning: execResult: servername: cbuild8
cmd: /usr/bin/ssh -tt -o StrictHostKeyChecking=yes -o LogLevel=quiet -o ConnectionAttempts=3 -o ConnectTimeout=10 -o ControlMaster=auto -o ControlPath=/root/.vuls/controlmaster-%r-cbuild8.%p -o Controlpersist=10m enigma-user@192.168.63.34 -p 22 -i /home/enigma-user/.ssh/id_rsa.enigma-user -o PasswordAuthentication=no stty cols 1000; dnf --nogpgcheck --cacheonly --color=never --quiet module list --enabled
exitstatus: 1
stdout: Error: Cache-only enabled but no cache for 'AppStream'
stderr:
err: %!s(<nil>):
github.com/future-architect/vuls/scanner.(*redhatBase).detectEnabledDnfModules
/root/go/src/github.com/future-architect/vuls/scanner/redhatbase.go:704]
Scan Summary
================
cbuild8 Error Use configtest subcommand or scan with --debug to view the details
[Sep 29 09:59:09] ERROR [localhost] Failed to scan: Failed to scan. err:
github.com/future-architect/vuls/scanner.Scanner.Scan
/root/go/src/github.com/future-architect/vuls/scanner/serverapi.go:103
- An error occurred on [cbuild8]
Please re-run the command using -debug and provide the output below.
To shorten the output, debug below is performed on cbuild8 only.
What did you do? (required. The issue will be closed when not provided.)
Manualy filled config.toml with some test hosts, 6 in total including localhost. All the hosts are accessable via SSH as enigma-user. Running "vuls configtest" shows that all the hosts are scannable. However, "vuls scan" or "vuls scan HOST_IN_QUESTION" fails for 3 of the hosts. Hosts in question: cbuild8, nagios01-cl, nagios02-cl.
What did you expect to happen?
Sucessful scan of all the hosts in config.toml, either in full scan or individual scan.
What happened instead?
Scan was partialy succesfull.
"vuls scan" is succesfull on 3 hosts out of 6 (localhost, ansible, edu). Rest of the hosts (cbuild8, nagios01-cl, nagios02-cl) give scan error.
To shorten the output, scan below is performed on cbuild8 only.
Please re-run the command using
-debug
and provide the output below.To shorten the output, debug below is performed on cbuild8 only.
Steps to reproduce the behaviour
Fill config.toml and run "vuls scan".
Configuration (MUST fill this out):
go version
):go env
):Hash : ____
c73ed7f
To check the commit hash of HEAD
$ vuls -v
or
$ cd $GOPATH/src/github.com/future-architect/vuls
$ git rev-parse --short HEAD
The text was updated successfully, but these errors were encountered: