Skip to content

Git daemon broken on windows (WSAStartup) #1952

Closed
@learn-more

Description

@learn-more
  • 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-2.19.2-64-bit.exe
$ git --version --build-options
git version 2.19.2.windows.1
cpu: x86_64
built from commit: 26dcaa1b6b5fd862db3ec40983e33ff3432f1166
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.17134.407]
  • What options did you set as part of the installation? Or did you choose the
    defaults?
> type "C:\Program Files\Git\etc\install-options.txt"
Editor Option: Notepad++
Custom Editor Path:
Path Option: Cmd
Plink Path: D:\Tools\Putty\PLINK.EXE
SSH Option: Plink
CURL Option: WinSSL
CRLF Option: CRLFCommitAsIs
Bash Terminal Option: MinTTY
Performance Tweaks FSCache: Enabled
Use Credential Manager: Enabled
Enable Symlinks: Disabled
  • Any other interesting things about your environment that might be related
    to the issue you're seeing?
    • Corporate domain, behind a proxy.

Details

  • Which terminal/shell are you running Git from? e.g Bash/CMD/PowerShell/other
    • CMD, from a batch script:
start git daemon --base-path="d:\My Projects\Visual Studio Projects" --informative-errors --verbose --enable=receive-pack

Not sure if this is relevant, but in case it might be:
The daemon is not used to serve one repository, but instead it serves all repositories in the selected folder.

git daemon --base-path="d:\My Projects\Visual Studio Projects" --informative-errors --verbose --enable=receive-pack
  • What did you expect to occur after running these commands?

    • A running git daemon
  • What actually happened instead?

    • Git daemon exits with a (localized) error:
[16896] getaddrinfo() for (null) failed: De toepassing heeft WSAStartup niet aangeroepen, of WSAStartup is mislukt.
fatal: unable to allocate any listen sockets on port 9418

Free-handed translation:

[16896] getaddrinfo() for (null) failed: The application has not called WSAStartup, or WSAStartup failed.
  • If the problem was occurring with a specific repository, can you provide the
    URL to that repository to help us with testing?
    • n/a

update:
Downgrading to v2.19.1 fixes the issue for me.

ps: Nice bug reporting template 👍

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions