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

apt-get update: time out #175

Closed
bbigras opened this issue Sep 13, 2016 · 2 comments
Closed

apt-get update: time out #175

bbigras opened this issue Sep 13, 2016 · 2 comments

Comments

@bbigras
Copy link

bbigras commented Sep 13, 2016

[bbigras@bruno docker]$ docker exec -it vuls vuls prepare -config=conf/config.toml -ask-key-password
SSH key password: *
                                    INFO[0003] Start Preparing (config: conf/config.toml)   
[Sep 13 18:50:15]  INFO [localhost] Detecting OS... 
[Sep 13 18:50:15]  INFO [localhost] Detecting OS of servers... 
[Sep 13 18:50:31]  INFO [localhost] (1/1) Detected: 10-1-10-23: ubuntu 14.04
[Sep 13 18:50:31]  INFO [localhost] Detecting OS of containers... 
[Sep 13 18:50:31]  INFO [localhost] Installing...
[Sep 13 18:50:31]  INFO [10-1-10-23] apt-get update...
[Sep 13 19:00:31] ERROR [localhost] Failed: Timed out: [10-1-10-23]
@kotakanbe
Copy link
Member

kotakanbe commented Sep 14, 2016

Probably, sudo setting on the target server is not enough.

Ubuntu, Debian
vuls ALL=(root) NOPASSWD: /usr/bin/apt-get, /usr/bin/apt-cache

see https://github.com/future-architect/vuls#usage-configtest

I think the error message is not helpful.
I added check logics about sudo settings, ssh settings to prepare subcommand.
#176
#177

Please check sudo setting on the target server and try it out with latest revision of Vuls.

@bbigras
Copy link
Author

bbigras commented Sep 14, 2016

[Sep 14 14:24:38] INFO [localhost] Success

Yes I didn't have a line in /etc/sudoers. Thanks!

@bbigras bbigras closed this as completed Sep 14, 2016
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

2 participants