मैं सिर्फ Jenkins out of nowhere starts failing with sudo: no tty present and no askpass program specifiedजेनकिंस मेरे एसक्यूएल को फिर से शुरू करते समय विफल रहता है "sudo: no tty present और कोई askpass प्रोग्राम निर्दिष्ट नहीं है क्षमा करें, पुनः प्रयास करें।"
लेकिन दुर्भाग्य है कि didn पर जेनकींस विन्यस्त और में दिए चरणों मैं जेनकींस पुनः आरंभ करने की कोशिश कर रहा हूँ पूर्व निर्माण, लेकिन मैं निम्न त्रुटि
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
मैं googled साथ खत्म हो और देखा कुछ जवाब 'टी मेरी मदद
मेरे/etc/sudoers इस
#
# 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
इस uid = 108 (जेनकींस) gid = 65534 (nogroup) समूहों = 65534 (nogroup), 111 (व्यवस्थापक) मुझे लगता है कि उपयोगकर्ता जेनकींस व्यवस्थापक समूह में है तो sudo नहीं है मुसीबत। जब आप कहते हैं, "इस मामले में सुडो के पास पासवर्ड मांगने के लिए कोई tty नहीं है और इसलिए त्रुटि" इसका क्या अर्थ है? मैं tty कैसे जोड़ूं? –