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

sh.exe would not close, unable to install 2.27.0 #2724

Closed
1 task done
xhamyd opened this issue Jun 29, 2020 · 6 comments
Closed
1 task done

sh.exe would not close, unable to install 2.27.0 #2724

xhamyd opened this issue Jun 29, 2020 · 6 comments

Comments

@xhamyd
Copy link

xhamyd commented Jun 29, 2020

  • I was not able to find an open or closed issue matching what I'm seeing

Setup

  • Which version of Git for Windows are you using? Is it 32-bit or 64-bit?
$ git --version --build-options
git version 2.26.2.windows.1
cpu: x86_64
built from commit: 4267c88d0d8936ae723bba55e0576b1c4f3d4e1a
sizeof-long: 4
sizeof-size_t: 8
  • Which version of Windows are you running? Vista, 7, 8, 10? Is it 32-bit or 64-bit?
$ cmd.exe /c ver

Microsoft Windows [Version 10.0.18363.900]
(c) 2019 Microsoft Corporation. All rights reserved.
  • What options did you set as part of the installation? Or did you choose the
    defaults?
# One of the following:
> type "C:\Program Files\Git\etc\install-options.txt"
> type "C:\Program Files (x86)\Git\etc\install-options.txt"
> type "%USERPROFILE%\AppData\Local\Programs\Git\etc\install-options.txt"
$ cat /etc/install-options.txt

Editor Option: Notepad++
Custom Editor Path:
Path Option: Cmd
SSH Option: OpenSSH
Tortoise Option: false
CURL Option: OpenSSL
CRLF Option: CRLFAlways
Bash Terminal Option: MinTTY
Performance Tweaks FSCache: Enabled
Use Credential Manager: Enabled
Enable Symlinks: Enabled
  • Any other interesting things about your environment that might be related
    to the issue you're seeing?

Running on a Microsoft Surface Laptop 3

Details

  • Which terminal/shell are you running Git from? e.g Bash/CMD/PowerShell/other

Git Bash

Tried to install Git for Windows 2.27.0

  • What did you expect to occur after running these commands?

Install to completion

  • What actually happened instead?

Would not let me install, asked me to close sh.exe. After attempting to close the process many times in Powershell, needed to quit the installer.

  • If the problem was occurring with a specific repository, can you provide the
    URL to that repository to help us with testing?

N/A

image

@dscho
Copy link
Member

dscho commented Jun 29, 2020

After attempting to close the process many times in Powershell, needed to quit the installer.

Are you trying to imply that the installer called that sh.exe?

@PhilipOakley
Copy link

@xhamyd Usually it means that you have another 'gitish' window open somewhere that hasn't been closed. They all need closing.

It's easy to do (Accidentally leave one running..) if you had other git windows open before you started the update (inc. the Git Gui and Gitk).

If Windows has 'lost contact' with a file's usage you may even need to do a restart to clear out that misunderstanding about a file's 'ownership' (can happen because git runs on a number of levels). At least that's what I do ;-)

@xhamyd
Copy link
Author

xhamyd commented Jul 11, 2020

Hi @PhilipOakley, thanks for the help! That's also what I thought was happening, but I couldn't find any program in my tasklist that was Git-like (i.e. nothing named git*, nor sh*). I also tried the reinstall right after a machine restart.

@xhamyd
Copy link
Author

xhamyd commented Jul 29, 2020

So I finally found this executable in Task Manager, and it looks like it is Git for Windows' shell binary.

  • Tried to close the process, failed silently
  • Tried to delete the file, popup prevented me

sh-file-location

task-manager-sh

unable-to-remove-sh

@xhamyd
Copy link
Author

xhamyd commented Jul 29, 2020

I've uninstalled and reinstalled the program manually. Turns out the uninstaller was also unable to remove sh.exe, so maybe my setup was just haunted. Closing issue, will reopen if I run into again on 2.28, thanks for the help!

@xhamyd xhamyd closed this as completed Jul 29, 2020
@dscho
Copy link
Member

dscho commented Aug 11, 2020

That's curious: maybe sh.exe was used by the system? That would explain why you could not terminate the process. I could imagine that it was used by the "Check daily for updates" feature, for example. At this point, we cannot be sure, but it is good that we have a record so that next time this scenario arises, we can dig more efficiently. Thanks!

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

3 participants