Skip to content

Failed to scan via docker. err: Unknown format #404

Closed
@sandats

Description

@sandats

Environment

Vuls

Hash : vuls v0.3.0 b0d9c0b

OS

  • Target Server: CentOS 6.8
  • Vuls Server: CentOS 6.8
  • Docker Version: Docker version 1.7.1, build 786b29d

Current Output

Vuls scan

[sandats@hoge docker]$ sudo docker run --rm -it \
>     -v ~/.ssh:/root/.ssh:ro \
>     -v $PWD:/vuls \
>     -v $PWD/vuls-log:/var/log/vuls \
>     -v /etc/localtime:/etc/localtime:ro \
>     -e "TZ=Asia/Tokyo" \
>     vuls/vuls scan \
>     -config=./config.toml
[Mar 27 17:29:04]  INFO [localhost] Start scanning
[Mar 27 17:29:04]  INFO [localhost] config: ./config.toml
[Mar 27 17:29:04]  INFO [localhost] Validating config...
[Mar 27 17:29:04]  INFO [localhost] Detecting Server/Container OS...
[Mar 27 17:29:04]  INFO [localhost] Detecting OS of servers...
[Mar 27 17:29:04]  INFO [localhost] (1/1) Detected: test: centos 6.8
[Mar 27 17:29:04]  INFO [localhost] Detecting OS of containers...
[Mar 27 17:29:04]  INFO [localhost] Detecting Platforms...
[Mar 27 17:29:05]  INFO [localhost] (1/1) test is running on other
[Mar 27 17:29:05]  INFO [localhost] Scanning vulnerabilities...
[Mar 27 17:29:05]  INFO [localhost] Scanning vulnerable OS packages...
[Mar 27 17:29:07] ERROR [test] Failed to scan vulnerable packages
[Mar 27 17:29:07] ERROR [localhost] Error: test, err: [Failed to parse LANGUAGE=en_US.UTF-8 yum --color=never ]check-update. err: Unknown format: https://access.redhat.com/articles/1320623


One Line Summary
================
test	Error		Run with --debug to view the details

Vuls scan -debug

  stderr:
  err: %!s(<nil>)
[Mar 27 17:10:56] ERROR [test] Failed to scan vulnerable packages
[Mar 27 17:10:56] ERROR [localhost] Error: test, err: [Failed to parse LANGUAGE=en_US.UTF-8 yum --color=never ]check-update. err: Unknown format: https://access.redhat.com/articles/1320623


One Line Summary
================
test	Error		Run with --debug to view the details

Addition Details

Vuls Configtest

[sandats@hoge docker]$ sudo docker run --rm -it\
>     -v ~/.ssh:/root/.ssh:ro \
>     -v $PWD:/vuls \
>     -v $PWD/vuls-log:/var/log/vuls \
>     vuls/vuls configtest \
>     -config=./config.toml
[Mar 27 08:25:15]  INFO [localhost] Validating config...
[Mar 27 08:25:15]  INFO [localhost] Detecting Server/Container OS...
[Mar 27 08:25:15]  INFO [localhost] Detecting OS of servers...
[Mar 27 08:25:15]  INFO [localhost] (1/1) Detected: test: centos 6.8
[Mar 27 08:25:15]  INFO [localhost] Detecting OS of containers...
[Mar 27 08:25:15]  INFO [localhost] Checking dependendies...
[Mar 27 08:25:15]  INFO [test] Dependencies... Pass
[Mar 27 08:25:15]  INFO [localhost] Checking sudo settings...
[Mar 27 08:25:15]  INFO [test] Checking... sudo yum --changelog --assumeno update yum
[Mar 27 08:25:17]  INFO [test] Sudo... Pass
[Mar 27 08:25:17]  INFO [localhost] Scannable servers are below...
test

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions