ich konfiguriere jenkins gerade und in der Pre-Erstellungsschritte i jenkins neu zu starten versuchen, aber ich am Ende mit dem folgenden Fehler aufJenkins schlägt fehl, während ich meinen SQL-Server neu starte "sudo: no tty present und kein askpass-Programm angegeben Sorry, versuche es noch einmal."
Commencing build of Revision c5b9f8daac092efc5396d80f568a2cf89ae8b697 (origin/HEAD, origin/master)
Checking out Revision c5b9f8daac092efc5396d80f568a2cf89ae8b697 (origin/HEAD, origin/master)
No change to record in branch origin/HEAD
No change to record in branch origin/master
[webapp] $ /bin/sh -xe /tmp/hudson5215632082686866774.sh
+ sudo /etc/init.d/mysql restart
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: 3 incorrect password attempts
Build step 'Execute shell' marked build as failure
Finished: FAILURE
ich Jenkins out of nowhere starts failing with sudo: no tty present and no askpass program specified
einige Antworten gegoogelt und sah Aber leider, dass didn ‚t help me
Meine/etc/sudoers sieht aus wie dieses
#
# This file MUST be edited with the 'visudo' command as root.
#
# Please consider adding local content in /etc/sudoers.d/ instead of
# directly modifying this file.
#
# See the man page for details on how to write a sudoers file.
#
Defaults env_reset
Defaults secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
# Host alias specification
# User alias specification
# Cmnd alias specification
# User privilege specification
root ALL=(ALL:ALL) ALL
# Members of the admin group may gain root privileges
%admin ALL=(ALL) NOPASSWD: ALL
# Allow members of group sudo to execute any command
%sudo ALL=(ALL:ALL) ALL
# See sudoers(5) for more information on "#include" directives:
#includedir /etc/sudoers.d
mein id Befehl gibt diese uid = 108 (jenkins) gid = 65534 (nogroup) groups = 65534 (nogroup), 111 (admin) ich den Benutzer jenkins denken wird in Admin-Gruppe so sudo ist nicht die Problem. Wenn du sagst: "In diesem Fall hat sudo kein Passwort, um nach dem Passwort und damit dem Fehler zu fragen." Was genau bedeutet das? Wie füge ich tty hinzu? –