-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
$ ./dit.rb -d [email protected]
2017-02-13T17:29:26.581Z (26983) [00:00.081ms] DEBUG: debug mode set to true
2017-02-13T17:29:27.021Z (26983) [00:00.521ms] DEBUG: remote> LC_ALL=C LANG=C DEBIAN_FRONTEND=noninteractive id -u
2017-02-13T17:29:27.099Z (26983) [00:00.599ms] DEBUG: 0
2017-02-13T17:29:27.100Z (26983) [00:00.599ms] DEBUG: ssh cmd exec done
2017-02-13T17:29:27.100Z (26983) [00:00.600ms] INFO: starting sysctl_dump step…
2017-02-13T17:29:27.536Z (26983) [00:01.036ms] DEBUG: remote> LC_ALL=C LANG=C DEBIAN_FRONTEND=noninteractive sudo -E sysctl -a
2017-02-13T17:29:27.614Z (26983) [00:01.113ms] DEBUG: ssh cmd exec done
2017-02-13T17:29:27.614Z (26983) [00:01.114ms] FATAL: 1
2017-02-13T17:29:27.614Z (26983) [00:01.114ms] FATAL: remote failed: "sysctl -a"
2017-02-13T17:29:27.614Z (26983) [00:01.114ms] FATAL: ./dit.rb:278:in `run_cmd'
./dit.rb:196:in `block in run_remote'
/usr/lib/ruby/vendor_ruby/net/ssh.rb:240:in `start'
./dit.rb:195:in `run_remote'
./dit.rb:502:in `run_step!'
./dit.rb:407:in `block in run!'
./dit.rb:407:in `each'
./dit.rb:407:in `run!'
./dit.rb:542:in `<main>'
en fait, le problème est juste que sudo n'est pas installé dans cet environnement (on peut s'y connecter directement en root)