【问题标题】:Jenkins out of nowhere starts failing with sudo: no tty present and no askpass program specified詹金斯不知从何而来开始失败并出现 sudo: no tty present and no askpass program specified
【发布时间】:2012-11-08 16:39:06
【问题描述】:

没有系统更改,每次尝试从 bundle install 安装 gem 时都会开始失败并出现此错误,尽管我什至不明白为什么要调用 sudo,因为 gem 安装在本地 rvm 目录中...

sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: 3 incorrect password attempts

有人见过吗?

【问题讨论】:

    标签: jenkins


    【解决方案1】:

    jenkins 要安装 gems,他需要在 rvm 组中:

    在 debian 中,这意味着:

    sudo adduser jenkins rvm
    sudo /etc/init.d/jenkins restart
    

    这至少对我有用。

    【讨论】:

    • 您好,感谢您的回复。 Jenkins 服务器要求输入密码,因为它试图为系统捆绑 gem,因为由于某种原因,该作业不再在 rvm 环境中运行。只需再次选择此选项即可阻止作业引发此错误。 :)
    猜你喜欢
    • 2013-06-29
    • 2017-09-22
    • 2017-07-12
    • 1970-01-01
    • 2018-07-10
    • 1970-01-01
    • 1970-01-01
    • 2023-03-31
    • 1970-01-01
    相关资源
    最近更新 更多