sudo: no tty present and no askpass program specified

SU access to our Bamboo Agents has suddenly stopped working. The first time any script in a Bamboo Job tries to invoke `sudo` we get:

sudo: no tty present and no askpass program specified

(In at least several examples, `yum` is the command we're trying to run.)

All of these scripts were running happily 12 hours ago. We have only just started looking into what may have happened. Any pointers?

2 answers

on most *nix systems you can type visudo as root and look for something called Disable requiretty. Comment this out save and exit. 

 

https://wiki.archlinux.org/index.php/Sudo#SSH_TTY_Problems

Thanks.

The underlying problem was that `yum` didn't exist on the system because it was an Ubuntu image intended for a different plan. (Ubuntu uses `apt-get`, not `yum`.) A change had been made to that Ubuntu image which accidentally caused it to become eligible for use on a plan for which it was not suitable.

Suggest an answer

Log in or Join to answer
Community showcase
Renan Battaglin
Published May 18, 2017 in Bamboo

FAQ: How to Upgrade Bamboo Server

Bamboo 5.9 will no longer be supported after June 12, 2017. What does this mean? As part of our End of Life policy, Atlassian supports major versions for two years after the first major iteratio...

1,096 views 0 5
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot