Comments (7)
Ok, so to be precise, the issue here is that AGENT_TOOLSDIRECTORY is set to one thing, but Agent.ToolsDirectory is getting set to something else?
In theory that shouldn't happen. To help diagnose - in your pipeline, before your usePythonVersion step, could you add a script to echo AGENT_TOOLSDIRECTORY? That should help us determine where exactly this issue is coming from. I believe that .../_work/tools
is the default tools directory when none is found so my guess is that its being lost before then
from azure-pipelines-tool-lib.
Closing due to inactivity. Please reopen with additional information.
from azure-pipelines-tool-lib.
When I do ls
im getting these fiiles instead.
/var/lib/waagent/custom-script/download/1/agent/_work/_tool
helm
kubectl
but doing it on the server is pointing to the right folders where I can see python, ruby and pypy
from azure-pipelines-tool-lib.
Not all python versions are available on all images. If you go to this link, click on the Available Software for the Image you are using, it will list all the software versions on your image.
For example: if you are running Ubuntu 16.04 or Ubuntu 18.04 the only 3.6.x version of python available to you is 3.6.9
https://docs.microsoft.com/en-us/azure/devops/pipelines/agents/hosted?view=azure-devops#software
from azure-pipelines-tool-lib.
Hi @dave-ops we are talking about self hosted. and definitely I can confirm that 3.7.* and 3.8.* are all in toolscache folder.
from azure-pipelines-tool-lib.
Hi. If your agent is started as a service, it will not be aware of the AGENT_TOOLSDIRECTORY environment variable you set. https://github.com/microsoft/azure-pipelines-agent/blob/master/docs/start/nixsvc.md#setting-the-environment
Adding it to the .env
file should solve your issue.
from azure-pipelines-tool-lib.
Hi. If your agent is started as a service, it will not be aware of the AGENT_TOOLSDIRECTORY environment variable you set. https://github.com/microsoft/azure-pipelines-agent/blob/master/docs/start/nixsvc.md#setting-the-environment
Adding it to the
.env
file should solve your issue.
Hi, from the pipeline log, I find that the env is already be recognized. But I still meet this issue. The log is below.
##[debug]versionSpec=3.7
##[debug]addToPath=true
##[debug]architecture=x64
##[debug]Semantic version spec of 3.7 is 3.7
##[debug]isExplicit: null
##[debug]explicit? false
##[debug]Agent.Version=2.165.2
##[debug]Agent.ToolsDirectory=/home/vmasuser/myagent/_work/_tool
##[debug]isExplicit: 3.7.7
##[debug]explicit? true
##[debug]evaluating 0 versions
##[debug]match not found
##[debug]Agent.Version=2.165.2
##[debug]Agent.ToolsDirectory=/home/vmasuser/myagent/_work/_tool
##[debug]isExplicit: 3.7.7
##[debug]explicit? true
##[debug]Agent.Version=2.165.2
##[debug]Agent.ToolsDirectory=/home/vmasuser/myagent/_work/_tool
##[debug]isExplicit: 3.7.7
##[debug]explicit? true
##[debug]Agent.ToolsDirectory=/home/vmasuser/myagent/_work/_tool
##[debug]task result: Failed
##[error]Version spec 3.7 for architecture x64 did not match any version in Agent.ToolsDirectory.
Versions in /home/vmasuser/myagent/_work/_tool:
If this is a Microsoft-hosted agent, check that this image supports side-by-side versions of Python at https://aka.ms/hosted-agent-software.
If this is a self-hosted agent, see how to configure side-by-side Python versions at https://go.microsoft.com/fwlink/?linkid=871498.
from azure-pipelines-tool-lib.
Related Issues (20)
- ⚠ Medium severity vuln found in [email protected], introduced via [email protected]
- Tool caching assumes semantic versions for tools HOT 3
- [NuGet tool installer] Certificate has expired HOT 3
- Support tools with non semver version HOT 1
- Next release? HOT 1
- Sample is broken
- v2.0.1 isn't working, missing transpiled js files HOT 1
- Exception "Aborted" when downloading tools from GitHub releases HOT 11
- This repo is missing important files HOT 1
- Documentation: Path for tool cache incorrect
- ##[error]Version spec 3.7 for architecture x64 did not match any version in Agent.ToolsDirectory. HOT 6
- Archive extraction hangs, when destination folder is already present. HOT 2
- [PERF] Extract directly to cache location HOT 2
- downloadTool not working behind an authenticated proxy. HOT 1
- Extract .tar.bz2 and .tar.xz files
- directory linux
- downloadTool towards github/aws fails due to old rest client
- Checking tool cache not working HOT 2
- Version spec 3.9 for architecture x64 did not match any version in Agent.ToolsDirectory. HOT 5
- Arbitrary Code Execution [High Severity][https://snyk.io/vuln/SNYK-JS-UNDERSCORE-1080984] in [email protected] HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from azure-pipelines-tool-lib.