sudo: no tty present and no askpass program specified
See original GitHub issueNot sure how this can be fixed.
I get this after mup setup
.
Started TaskList: Setup Docker
[10.0.2.51] - setup docker
[10.0.2.52] - setup docker
[10.0.2.51] - setup docker: SUCCESS
[10.0.2.52] - setup docker: SUCCESS
Started TaskList: Setup Meteor
[10.0.2.51] - Setup Environment
To use mup inbuilt mongodb setup, you should have both meteor app and mongodb on the same server
[10.0.2.51] x Setup Environment: FAILED
-----------------------------------STDERR-----------------------------------
sudo: no tty present and no askpass program specified
sudo: no tty present and no askpass program specified
sudo: no tty present and no askpass program specified
sudo: no tty present and no askpass program specified
-----------------------------------STDOUT-----------------------------------
----------------------------------------------------------------------------
My setup file specify two servers… I haven’t changed much from the the default settings, apart from specifying credentials and app info/path.
Issue Analytics
- State:
- Created 7 years ago
- Comments:5
Top Results From Across the Web
sudo: no tty present and no askpass program specified
The error message sudo: no tty present and no askpass program specified will occur when the sudo command is trying to execute a...
Read more >How to fix 'sudo: no tty present and no askpass program ...
The issue is caused by executing a sudo command which tries to request for a password, but sudo does not have access to...
Read more >Linux error 'sudo: no tty present and no askpass program ...
It's important to note that this error occurs when a user with no superuser privileges tries to execute a command with sudo. ......
Read more >“sudo: no tty present and no askpass program specified”.
The “sudo: no tty present and no askpass program specified” issue occurs when the sudo is used but password is not read. It...
Read more >sudo: no tty present and no askpass program specified
It works because sudo requires a tty to prompt for a password, and when specifying commands to run to ssh , it doesn't...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Deployment
Local
Generate local SSH key if needed
Copy the SSH id over to the server (replace
user
by the specified user login)Test login (it should not prompt for password now) (replace
user
by the specified user login)Remote
Remove password from sudoers
Add this line at the bottom of the file (replace
user
by the specified user login)Install docker on all servers
Exit
Local (again)
Setup if necessary, etc.
Note: Now, I have a deployment failure, but no error. The TCP port is open, but the app can’t be accessed. Moving on to other issues…
You should change this line, in sudoers file (sudo visudo) %sudo ALL=(ALL:ALL) ALL
by this: %sudo ALL=(ALL) NOPASSWD:ALL
and solved problem!