Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to scan. err: No server defined. Check the configuration #187

Closed
keyolk opened this issue Sep 19, 2016 · 8 comments
Closed

Failed to scan. err: No server defined. Check the configuration #187

keyolk opened this issue Sep 19, 2016 · 8 comments

Comments

@keyolk
Copy link

keyolk commented Sep 19, 2016

Hello~
I'm newbie on this project.

I'm tyring it with docker, docker-compose.
but failed with below error

[Sep 19 02:04:56]  INFO [localhost] Validating Config...
[Sep 19 02:04:56]  INFO [localhost] Detecting Server/Contianer OS... 
[Sep 19 02:04:56]  INFO [localhost] Detecting OS of servers... 
[Sep 19 02:04:56]  INFO [localhost] Detecting OS of containers... 
[Sep 19 02:04:56]  INFO [localhost] Checking sudo configuration... 
[Sep 19 02:04:56]  INFO [localhost] Detecting Platforms... 
[Sep 19 02:04:56]  INFO [localhost] Scanning vulnerabilities... 
[Sep 19 02:04:56] ERROR [localhost] Failed to scan. err: No server defined. Check the configuration

my config.toml is below

[servers]

[my laptop]
host  = "xx.xx.xxxx.xxx"
user  = "keyolk"
keyPath  = "conf/id_rsa"
vuls configtest -debug
[Sep 19 03:04:31]  INFO [localhost] Validating Config...
[Sep 19 03:04:31]  INFO [localhost] Detecting Server/Contianer OS... 
[Sep 19 03:04:31]  INFO [localhost] Detecting OS of servers... 
[Sep 19 03:04:31]  INFO [localhost] Detecting OS of containers... 
[Sep 19 03:04:31]  INFO [localhost] Checking sudo configuration... 
[Sep 19 03:04:31]  INFO [localhost] SSH-able servers are below...

Could anyone inform me why it puts the error ?

@kotakanbe
Copy link
Member

kotakanbe commented Sep 19, 2016

Hello. Thanks for using Vuls :)

You have to change [my laptop] to [servers.my_laptop]

For details, see
https://github.com/toml-lang/toml#user-content-table or
https://github.com/BurntSushi/toml#more-complex-usage

Whitespace around dot-separated parts is ignored, however, best practice is to not use any extraneous whitespace.

Please update vuls to the latest version. Then try it again.

@keyolk
Copy link
Author

keyolk commented Sep 19, 2016

@kotakanbe
Thanks reply
but still has an issue

it puts belows

[Sep 19 07:12:29]  INFO [localhost] Validating Config...
[Sep 19 07:12:33]  INFO [localhost] Detecting Server/Contianer OS... 
[Sep 19 07:12:33]  INFO [localhost] Detecting OS of servers... 
[Sep 19 07:12:34] ERROR [localhost] (1/2) Failed: xx-xx-xxx-xxx, err: [Unknown OS Type]
[Sep 19 07:12:35] ERROR [localhost] (2/2) Failed: xx-xx-xxx-xx, err: [Unknown OS Type]
[Sep 19 07:12:35]  INFO [localhost] Detecting OS of containers... 
[Sep 19 07:12:35]  INFO [localhost] Checking sudo configuration... 
[Sep 19 07:12:35]  INFO [localhost] SSH-able servers are below...

Both are Arch based distro
whether it has some OS limitation to use ?

@kotakanbe
Copy link
Member

Arch Linux is not supported yet.
see https://github.com/future-architect/vuls#support-os

I found the vulnerability information abount arch Linux on the web.
https://wiki.archlinux.org/index.php/CVE#Documented_CVE.27s

If we get these CVE information via command line, Vuls can detect the vulnerability information on Arch Linux. Do you know about that?

@keyolk
Copy link
Author

keyolk commented Sep 20, 2016

@kotakanbe
I'll check how I can get the information.
And I just wannted to check docker images not the docker engine host.
Is there some workaround ?

And How it make matching CPE ID and target files ?
What I mean it just check package management system ?
Is it same to for docker contaienrs ?

@kotakanbe
Copy link
Member

And I just wannted to check docker images not the docker engine host.
Is there some workaround ?

Not implemented yet.
#122

And How it make matching CPE ID and target files ?
What I mean it just check package management system ?

Please see Usage: Scan vulnerability of non-OS package section.
https://github.com/future-architect/vuls#usage-scan-vulnerability-of-non-os-package

@kotakanbe
Copy link
Member

@keyolk

And I just wannted to check docker images not the docker engine host.
Is there some workaround ?

I implemented the function :)
Please specify -containers-only option of scan subcommand.
For details, see #190

@kotakanbe
Copy link
Member

If you are still in trouble, please reopen the issue.
Thanks

@swiftgeek
Copy link

vulnerability information is now available at https://security.archlinux.org/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants