-
Notifications
You must be signed in to change notification settings - Fork 851
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
Agent unable to find location of pwsh
for PowerShell task - works in Hosted build
#1862
Comments
p.s. here are the logs |
what is the value of your PATH environment variable? |
It's this: and
|
is the executable bit set? |
...on |
It is:
|
i guess this is because of the symlink you have. |
is the executable set on |
@ericsciple ah... it wasn't. Good catch. Setting the permissions of that file to 777 worked. Do you have a recommendation of allowing just enough access to pwsh? So I don't have to give everything permission to do anything? 😄 |
@tylerl0706 i guess 755 is better than 777, everyone can use powershell, but they can't modify the file. |
@tylerl0706 thanks for reporting this. It's interesting that from your script, bash resolves and runs Regarding permissions, what Ting said makes sense to me. |
Sounds good! I'll leave it to you to close this issue when you see fit - now or after opening an issue in task repo |
@damccorm @stephenmichaelf this sounds like a bug in the task lib |
@damccorm fyi you may want to update the release notes doc in the task lib to mention the bug fix |
Sounds good. I'm going to close here since the work for this is done and tracked in the task-lib. Please reopen if appropriate. |
I get this error too on vmimage: ubuntu-16.04, container: ubuntu:trusty. Is there a solution for this?
How did it solve? Edit: it was a container issue. |
Have you tried trouble shooting?
Trouble shooting doc
Yes.
Agent Version and Platform
Version of your agent? v2.141.0
OS of the machine running the agent? Raspbian Linux ARM
VSTS Type and Version
VisualStudio.com or On-Prem TFS? VisualStudio.com
If VisualStudio.com, what is your account name? http://mtntop.visualstudio.com
What's not working?
Given the following yml definition:
Running on a Raspberry Pi that has PowerShell installed and symlinked to
/usr/bin
.The first step passes - it's able to resolve the
pwsh
and run it. No problem.The second step fails with:
From the logs below it looks like an issue with reading for
which
.Agent and Worker's Diagnostic Logs
Logs are located in the agent's
_diag
folder. The agent logs are prefixed withAgent_
and the worker logs are prefixed withWorker_
. All sensitive information should already be masked out, please double check before pasting here.Diagnostic from Azure Pipelines build run:
Related Repositories
Please ensure you are logging issues to the correct repository in order to get the best support.
If you are hitting a generic issue about VSTS/TFS, please report it to the Developer Community
The text was updated successfully, but these errors were encountered: