Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Windows] bash: /dev/tty: No such device or address #66

Open
koistya opened this issue Sep 2, 2015 · 5 comments
Open

[Windows] bash: /dev/tty: No such device or address #66

koistya opened this issue Sep 2, 2015 · 5 comments

Comments

@koistya
Copy link

koistya commented Sep 2, 2015

Repo#remote_fetch(name, callback)

Error: Command failed: C:\Windows\system32\cmd.exe /s /c "git fetch  staging"
bash: /dev/tty: No such device or address
error: failed to execute prompt script (exit code 1)
fatal: could not read Username for 'https://<site>.scm.azurewebsites.net': No error

Running the same command from the console works fine.

C:\Windows\system32\cmd.exe /s /c "git fetch  staging"

Windows 8.1 x64, Git 2.5.0

@Smolkis
Copy link

Smolkis commented Sep 10, 2015

I have had similar problems with the same error message, and I managed to get around it be installing an old version of git

@notatestuser notatestuser changed the title bash: /dev/tty: No such device or address [Windows] bash: /dev/tty: No such device or address Sep 12, 2015
@notatestuser
Copy link
Owner

I don't know of a solution to this. Any Windows users able to chime in?

@Drumsticks
Copy link

I'm having this very issue right now. It was working after getting everything set up with up with Bitbucket and Jenkins. Literally the next day, I come in to test again and I receive this error in the Jenkins Build Log.

This is the error that I receive when attempting an origin pull:

  • I do actually have a real username in place of "username".

git pull origin master
bash: /dev/tty: No such device or address
error: failed to execute prompt script (exit code 1)
fatal: could not read Password for 'https://"username"@bitbucket.org': Invalid argument

If there is a solution, I would love to know. Thank you.

@Drumsticks
Copy link

After troubleshooting my issue. It was that the command / git bash terminals did not have the password saved for Open SSH. When Jenkins was attempting to run the scripts in the terminal, it was throwing the error because it was unable to get past the invisible password prompt since the script is automatically ran. When I attempted an origin pull manually in either terminal, I received the password prompt and entered the password.

I then close the terminals, re-opened the terminals to make sure the password was not temporarily stored in the previous terminal session and the password kept as I was not prompted again.

I tested Jenkins by building again and everything worked perfectly.

I hope this may help anyone coming here.

@eliranmal
Copy link

eliranmal commented Mar 1, 2017

this issue stems from an issue on git-for-windows

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants