Hello all
A question about sudo prompt pattern
I have several servers under rundeck, vers 2.7.1
With all serveur with the ubuntu OS, remote sudo commands are running fine.
With a raspberry and a python script, it's not OK
On this raspberry, when I running interactive command with sudo, I see that
rundeck@SERVER:/home/pi $ sudo /Projets/domotique/lcd3.py /Projets/domotique/affiche_nagios.lcd
argument : /Projets/domotique/affiche_nagios.lcd
Le fichier à afficher est : /Projets/domotique/affiche_nagios.lcd
NAGIOS-SERVICES
Liste : 128
Liste : 192
OK : 156 C: 57
Liste : 148
W: 3 U: 3
Liste : 212No passwd is required because in /etc/sudoers
r
undeck ALL=(ALL:ALL) NOPASSWD: ALL
When i lauch this command within a rundeck job
| . Affiche Nagios==>LCD | argument : affiche_nagios.lcd |
| 08:41:52 |
|
| Le fichier à afficher est : affiche_nagios.lcd |
| 08:41:52 |
|
| NAGIOS-SERVICES |
| 08:41:52 |
|
| Liste : 128 |
| 08:41:52 |
|
|
|
| 08:41:52 |
|
| Liste : 192 |
| 08:41:52 |
|
| OK : 160 C: 55 |
| 08:41:52 |
|
| Liste : 148 |
| 08:41:52 |
|
| W: 1 U: 3 |
| 08:41:52 |
|
| Liste : 212 |
| 08:41:53 |
|
| Remote command failed with exit status -1 |
| 08:41:53 |
|
| Sudo execution password response failed: Failed waiting for input prompt: Expected input was not seen in 5000 milliseconds |
| 08:41:53 |
|
| Failed: NonZeroResultCode: Remote command failed with exit status -1 |
| 08:41:53 | RUNDECK
|
| Execution failed: 144597 in project DOMOTIQUE: [Workflow result: , step failures: {2=Dispatch failed on 1 nodes: [SERVER: NonZeroResultCode: Remote command failed with exit status -1]}, Node failures: {RASPAIL=[NonZeroResultCode: Remote command failed with exit status -1]}, status: failed] |
in my project config file
project.sudo-command-pattern=^sudo$
project.sudo-prompt-pattern=^\[sudo\] Mot de passe de rundeck :
[sudo] password for rundeck:$Result is failed but the job is done !!!
Any ideas ? Thanks in advance
Olivier