Source code checkout fails on Windows agents due to WinSock error
プラットフォームについて: Server および Data Center のみ。この記事は、Server および Data Center プラットフォームのアトラシアン製品にのみ適用されます。
Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Fisheye および Crucible は除く
問題
When running a build on Windows agents, the checkout fails with the following error in the atlassian-bamboo
.log
2017-07-20 17:29:26,299 WARN [sshd-SshServer[1272c81]-nio2-thread-1] [Nio2Acceptor] Caught IOException while accepting incoming connection from /127.0.0.1:53265: An operation was attempted on something that is not a socket
java.io.IOException: An operation was attempted on something that is not a socket
原因
This issue occurs because the WinSocks configuration needs to be refreshed to allow communication to and from the agent.
ソリューション
- Open the Command Prompt with elevated permissions (Run as Admin)
- Run the following command at the command prompt:
netsh winsock reset
- Press Enter, and restart the computer
Related bug tickets:
BAM-18569 - Getting issue details... STATUS
BAM-18570 - Getting issue details... STATUS