-
Notifications
You must be signed in to change notification settings - Fork 17.8k
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
os: TestNetworkSymbolicLink failure with The network path was not found.
#61467
Comments
(attn @golang/windows) Can you provide some more debugging detail? If you modify the test to add a |
Does the same test pass using |
The network path was not found.
Execute net share to see
|
add a time.Sleep(10 * time.Minute) before that t.Fatal.
|
Thanks. Does that test pass using I wonder if this may be related to https://go.dev/cl/460595. |
That error message comes from
@qmuntal, do you have the bandwidth to look into this? |
Change https://go.dev/cl/512075 mentions this issue: |
@qiulaidongfeng, does anything about the test change if you patch in https://go.dev/cl/512075? In particular I wonder if we need to set |
I'm not able to get the test to run without skipping even when running it as an administrator on a local device. 🤯 |
I finally got my settings sorted out so that the test will run. It passes at HEAD for me. |
@bcmills I obtained CL 512075 and found that https://github.com/golang/go/blob/master/src/os/os_windows_test.go#L484 Change to |
That would not be a UNC path — it would no longer be testing the property it aims to test. |
I still suspect that this has something to do with a system-specific firewall setting or network-security hook. Since neither I nor @qmuntal are able to reproduce this failure mode and we don't have a specific theory of what could cause it, I am not able to investigate further. I wonder if it also depends on some specific combination of SMBv1, SMBv2, and/or SMBv3 support (see https://learn.microsoft.com/en-us/windows-server/storage/file-server/troubleshoot/detect-enable-and-disable-smbv1-v2-v3?tabs=server). Moving to Unplanned since we don't have any apparent way to move forward, and since getting the test to run in the first place — let alone fail! — seems to require a lot of fairly unusual factors (running the test as an administrator, having the service running, and so on). @qiulaidongfeng, please let us know if you figure out more about what may be causing this test to fail in your setup. |
Also use a unique share name for each run of the test. This may help with #61467, but since I couldn't reproduce the failure in the first place I don't know. It passes locally for me. For #61467. Change-Id: Ie51e3cf381063e02e4849af5c1a1ed7441ce21c0 Reviewed-on: https://go-review.googlesource.com/c/go/+/512075 Reviewed-by: Quim Muntal <quimmuntal@gmail.com> Run-TryBot: Bryan Mills <bcmills@google.com> Reviewed-by: Ian Lance Taylor <iant@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Auto-Submit: Bryan Mills <bcmills@google.com>
Change https://go.dev/cl/512736 mentions this issue: |
After enabling SMB, the test passed, and I sent CL 512736 to fix the failure when SMB was not enabled. |
There has to be something else. I disabled SMB1 by running |
On my computer, execute Disable WindowsOptionalFeature Online FeatureName SMB1Protocol to turn off SMB and the test will fail. Execute Enable WindowsOptionalFeature Online FeatureName SMB1Protocol to turn on SMB and the test will succeed. |
I'm not putting that in doubt. What I meant is that there should be another Windows capability or configuration that is missing in your computer that makes the test fail when |
https://learn.microsoft.com/en-us/windows-server/storage/file-server/troubleshoot/smbv1-not-installed-by-default-in-windows says that SMBv1 is not installed by default on some Windows versions, including the version I tested on — and I did not install it explicitly. But: @qiulaidongfeng, I do think you may be on to something with https://go.dev/cl/512736. If the SMB Server service is running but the client is disabled — or if the server is only serving SMBv2/SMBv3 but the client is only configured to use SMBv1 — then the call to |
Yay! I disabled the Workstation and got the |
Can the WaitingForInfo label be removed? |
Label removed. @qiulaidongfeng mark all resolved CL 512736 comments as resolved, either using the |
Thank you. |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
yes.
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
go test os
What did you expect to see?
Test passed.
What did you see instead?
The text was updated successfully, but these errors were encountered: