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

git-bash: Failed to fork child process: No such file or directory. #440

Closed
SEAPUNK opened this issue Sep 25, 2015 · 27 comments
Closed

git-bash: Failed to fork child process: No such file or directory. #440

SEAPUNK opened this issue Sep 25, 2015 · 27 comments

Comments

@SEAPUNK
Copy link

SEAPUNK commented Sep 25, 2015

Using git 2.5.3.windows.1 on Windows 7 Professional SP1, 64-bit

For some strange reason, at seemingly random times, when I try to open up git-bash again, it gives me that error, refusing to work again, forcing me to reinstall. The window title is /usr/bin/bash --login -i, and I'm assuming that's the command it's trying to run.

The last time it gave me the error and stopped working happened when I closed out of the window while it was in the middle of a process (I had to close, confirm, and then press the close button again).

@dscho dscho added the unclear label Sep 25, 2015
@dscho
Copy link
Member

dscho commented Sep 25, 2015

How do you start Git? Please write down all details about your setup. Including the options chosen when installing and the way you start Git.

@SEAPUNK
Copy link
Author

SEAPUNK commented Sep 25, 2015

I start git-bash by running a shortcut in my taskbar. I also tried to run it directly, git-bash.exe in C:\Program Files\Git. Same result.

Installation options:





I also have a .bash_profile, which contains:

cd D:/Users/Owner/code

@SEAPUNK
Copy link
Author

SEAPUNK commented Sep 25, 2015

Some more info:
C:\Program Files\Git\bin\bash.exe exists, and when I open THAT up, it opens up a cmd window that runs bash just fine.

If I run bash --login -i within that bash window, it also runs just fine, cding me into the directory I told it to cd into within .bash_profile.

EDIT Oh, that's interesting. When I did all those, it opens up git-bash just fine now. I'll try to reproduce the error.

@dscho
Copy link
Member

dscho commented Sep 26, 2015

I start git-bash by running a shortcut in my taskbar.

That is incomplete information. How did that shortcut end up in that taskbar in the first place? Git for Windows does not install that. Please do not leave out crucial information like that, it only extends the time until I can help you effectively because you'll have to tell me those things anyway.

@SEAPUNK
Copy link
Author

SEAPUNK commented Sep 26, 2015

I clicked and dragged the "Git Bash" icon from the start menu search (for git bash) onto the taskbar.

I seriously doubt that it's crucial information, though, since the same error happened when I tried to open the file directly (as in, from the Program Files folder), and the same error occured.

@dscho
Copy link
Member

dscho commented Sep 26, 2015

@SEAPUNK The default use case is to install, with all options left to their defaults, and then click Git Bash from the start menu. It works well enough, otherwise this bug tracker would be overflowing with bug reports. Therefore, the default use case seems to work everywhere. That means that whatever does not work for you must be due to a difference in the default use case. The more information you withhold about your non-default use case, the more likely is it that I cannot help you and that both of us get very, very frustrated.

So let's avoid that, and include all information, like I asked for, and as our issue reporting guide lines suggest.

As it is, I still have not enough information to understand this issue report, and I still have no way to reproduce the problem on this side (ideally, you would come up with a Minimal, Complete and Verifiable Example), and whatever time I had to spend on this ticket for this weekend is now depleted by our current exchange.

I'll try to get back to this ticket on Monday.

@dscho
Copy link
Member

dscho commented Sep 26, 2015

Oh, one last thing for today: if you have installed something like Cygwin, MSys1, Git for Windows 1.x (even a portable version) or anything that is essentially based on Cygwin's POSIX emulation layer, that is probably important information, too.

@SEAPUNK
Copy link
Author

SEAPUNK commented Sep 26, 2015

No need to do Monday, Monday is the day I get back to work. Tuesday should give me enough time to collect enough information about the problem.

@SEAPUNK
Copy link
Author

SEAPUNK commented Sep 29, 2015

I'll close this issue for now; I haven't gotten another error like this for some time.

@SEAPUNK SEAPUNK closed this as completed Sep 29, 2015
@neoadventist
Copy link

I got this error Failed to fork child process: No such file or directory. Just now. Happened when I changed my Path to include the android SDK. Will see if this happens If i restart.

@ShaneCarr
Copy link

I ran into this problem too. Pointing my git hub gui process to the version of bash.exe deployed by a fresh install of git for windows resovled the issue. In my case after a windows update and reboot I got into this state. Probably something is corrupted (perhaps in registry) pointing to the wrong version of bash. Maybe this can help with the investigation. I did a clean install of the git tools and this issue stuck around. I had to manually point it which you can do from the settings.After this it fixes up the cmdline as well since it probably uses the same settings.

@keithjjones
Copy link

👍 I have this on a fresh Windows 10 Enterprise, with the MS Azure domain. Broken in Cygwin too.

@dcneeme
Copy link

dcneeme commented Apr 19, 2016

the same with my win 10, fresh git install, configured to use git bash only.

@dcneeme
Copy link

dcneeme commented Apr 19, 2016

works without that error if run as administrator!

@keithjjones
Copy link

@dcneeme I traced my problem to using a domain account. A non domain account worked fine. Did you run the first one as a domain account, but then run the second one as a local administrator?

@SamDeBlock
Copy link

@keithjjones Same issue here, also with an azure domain account. It always worked with regular accounts.
When I run bash.exe directly, I get a bash prompt which opens up to Unknown+user@foo MING64 /bin

@dscho
Copy link
Member

dscho commented May 12, 2016

@SamDeBlock any chance that you could give me temporary access to a machine with that account? In the alternative, I could walk you through debugging the problem.

@garrytrinder
Copy link

I have the exact same issue, however I temporarily fixed it by enabling "Run as administrator" in the Advanced settings of the Shortcut file.

image

@jfjcn
Copy link

jfjcn commented Jun 15, 2016

Also an issue with an account via email on Windows 10, not just a domain account. Local accounts seem to work fine since I have this installed on another machine and there is no issue with that one.

@dscho
Copy link
Member

dscho commented Jun 15, 2016

Also an issue with an account via email

@jfjcn could you please elaborate?

@jfjcn
Copy link

jfjcn commented Jun 15, 2016

Windows supports three kinds of accounts:

  1. Local accounts - simply an account on the host. Think standard *NIX accounts. So a typical username might be 'jsmith' or 'jdoe'.
  2. Domain accounts - there are one or more central authentication servers allowing logins onto a given host. Think LDAP server on the network doing authentication owned by a company/organization for its employees/contractors. So example accounts would be 'PrivateCompany\jsmith' or 'Walmart\jdoe'.
  3. Email accounts - like domain accounts, except that the authentication server is a Microsoft server on the Internet using your personal email as the username.So example accounts would be 'jsmith@outlook.com' or 'jdoe@gmail.com'.

@keithjjones
Copy link

Note that my email account seems to be working fine with it on two computers (Windows 10). It was only when I was hooked up to Azure for AD that there were issues.

@jfjcn
Copy link

jfjcn commented Jun 15, 2016

I have it on two computers - one with email and one with local account, and I'm only having issues on the email. Maybe that's not the core issue then? Let me know what I can do to help troubleshoot!

@keithjjones
Copy link

It seems to be a home directory issue, of some sort, when I looked into a while back. The home directories seemed to be different for AD than other accounts. My home directory for my email account looks like a normal home directory. I don't know if this is what the problem is. It is just an educated guess on my part.

@carlpaten
Copy link

Same issue here. Fresh install of Windows 10.

@SEAPUNK
Copy link
Author

SEAPUNK commented Jul 26, 2016

I'll go ahead and reopen the issue for visibility (since I'm not the only one having this problem), but I won't be active here because I no longer use this (I'm on a full Linux environment now).

@SEAPUNK SEAPUNK reopened this Jul 26, 2016
@dscho
Copy link
Member

dscho commented Jul 27, 2016

@SEAPUNK since you closed it, others have opened new tickets for the same issue. So let's head over to #580 to discuss this further (or to work on it, if anybody feels up to the task).

@dscho dscho closed this as completed Jul 27, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

10 participants