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

Load config failedtoml: cannot load TOML value of type string into a Go slice #429

Closed
Raty918 opened this issue May 12, 2017 · 1 comment

Comments

@Raty918
Copy link

Raty918 commented May 12, 2017

Environment

root@debian:~# lsb_release -da
No LSB modules are available.
Distributor ID:	Debian
Description:	Debian GNU/Linux 8.8 (jessie)
Release:	8.8
Codename:	jessie

Vuls

Hash : fecd1ad

OS

  • Target Server: Debian8.8
  • Vuls Server: Docker Container:
root@debian:~# docker run  --rm  vuls/vuls -v
vuls v0.3.0 fecd1ad
 root@debian:~# docker run  --rm  vuls/go-cve-dictionary -v
go-cve-dictionary v0.1.0 4d5c2be

Go

  • Go version:
root@debian:~# go version
go version go1.8 linux/amd64

Current Output

root@debian:~# docker run --rm -it    -v ~/.ssh:/root/.ssh:ro     -v $PWD:/vuls     -v $PWD/vuls-log:/var/log/vuls     vuls/vuls configtest  -debug   -config=config.toml 
ERRO[0000] Load config failedtoml: cannot load TOML value of type string into a Go slice 
[May 12 11:34:12] ERROR [localhost] Error loading config.toml, toml: cannot load TOML value of type string into a Go slice
[May 12 11:34:12] ERROR [localhost] If you update Vuls and get this error, there may be incompatible changes in config.toml
[May 12 11:34:12] ERROR [localhost] Please check README: https://github.com/future-architect/vuls#configuration
Please re-run the command using ```-debug``` and provide the output below.

Addition Details

Good Morning,
First of all i really appreciate your work. I'm a beginner in docker and linux technologies, but i'm really interesting about this project.

Here is my problem, I'm following your tutorial :
https://github.com/future-architect/vuls/tree/master/setup/docker

At the 3rd step, i have to launch this command:

$ 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 # path to config.toml in docker

Here is my config.toml:

[slack]
        hookURL      = "https://hooks.slack.com/services/abc123/defghijklmnopqrstuvwxyz"
        channel      = "#vulsreport"
        iconEmoji    = ":ghost:"
        authUser     = "Stagiaire"
        notifyUsers  = ["@willy"]

[email]
        smtpAddr      = "smtp.gmail.com"
        smtpPort      = "587"
        user          = "XXXXX"
        password      = "XXXXX"
        from          = "raty918@gmail.com"
        to            = "raty918@gmail.com"
        subjectPrefix = "vuls"

[servers]

[servers.172-31-4-82.containers]
type = "lxd"
includes = ["debian", "054abe38b1e6"]

Best regards,

@Raty918
Copy link
Author

Raty918 commented May 12, 2017

I've found the problem,
In the Email section, it's not:
to = "raty918@gmail.com" but to = ["raty918@gmail.com"]

My bad,

@Raty918 Raty918 closed this as completed May 12, 2017
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

1 participant