詹金斯从无处开始以sudo失败:没有tty存在且未指定askpass程序 [英] Jenkins out of nowhere starts failing with sudo: no tty present and no askpass program specified

查看:80
本文介绍了詹金斯从无处开始以sudo失败:没有tty存在且未指定askpass程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

No system changes, just starts failing with this error each time it tries to install a gem from bundle install, though I don't even see why sudo is being called since gems are installed in local rvm dir...

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

有人见过吗?

推荐答案

要让詹金斯安装gem,他需要属于rvm组:

For jenkins to install gems, he needs to be in the rvm group:

在debian中,这意味着:

In debian, that means:

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

那至少对我有用.

这篇关于詹金斯从无处开始以sudo失败:没有tty存在且未指定askpass程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆