Skip to content

Commit 6adc0d7

Browse files
authored
Document alternate solution to PermissionError during test proxy use (#36703)
1 parent e2c90b1 commit 6adc0d7

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

doc/dev/test_proxy_troubleshooting.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,13 +260,19 @@ While the test proxy is being invoked during the start of a test run, you may se
260260
PermissionError: [Errno 13] Permission denied: '.../azure-sdk-for-python/.proxy/Azure.Sdk.Tools.TestProxy'
261261
```
262262

263-
This means that the test proxy tool was successfully installed at the location in the error message, but we don't have
263+
This can mean that the test proxy tool was successfully installed at the location in the error message, but we don't have
264264
sufficient permissions to run it with the tool startup script. We can set the correct permissions on the file by using
265265
`chmod`. Using the tool path that was provided in the `PermissionError` message, run the following command:
266266
```
267267
chmod +x .../azure-sdk-for-python/.proxy/Azure.Sdk.Tools.TestProxy
268268
```
269269

270+
Alternatively, you can delete the installed tool and re-run your tests to automatically reinstall it correctly.
271+
272+
- Open Task Manager, search for a process named "Azure.Sdk.Tools.TestProxy", and end the task if one is running.
273+
- Delete the `.proxy` folder at the root of your local `azure-sdk-for-python` clone.
274+
- Re-run your tests; the test proxy will be reinstalled and should correctly set file permissions.
275+
270276

271277
[custom_default_matcher]: https://github.com/Azure/azure-sdk-for-python/blob/497f5f3435162c4f2086d1429fc1bba4f31a4354/tools/azure-sdk-tools/devtools_testutils/sanitizers.py#L85
272278
[detailed_docs]: https://github.com/Azure/azure-sdk-tools/tree/main/tools/test-proxy/Azure.Sdk.Tools.TestProxy/README.md

0 commit comments

Comments
 (0)