question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

self-hosted runner failing while trying to get version

See original GitHub issue

Describe the bug Getting the following error when running Version 3.x was not found in the local cache ##[error]Version 3.x with arch x64 not found The list of all available versions can be found here: https://raw.githubusercontent.com/actions/python-versions/master/versions-manifest.json

I have tried both v1 and v2 of setup-python and have tried setting a specific version or latest minor like above. I am running an amazon-linux runner and I am wondering if this will only work on Ubuntu. Could you provide some guidance. Thanks

Which version of the action are you using?

  • v1
  • [ X ] v2
  • Some other tag (such as v2.0.1 or master)

Environment

  • [ X ] self-hosted
  • [ X ] Linux
  • Windows
  • Mac

If applicable, please specify if you’re using a container Not using containers

Python Versions Please list all of the effected versions of Python (3.8.2, etc.) 3.7.7, 3.x

To Reproduce Steps to reproduce the behavior:

  1. Add setup action step to actions file
  2. Set Actions file to use self-hosted runner
  3. Run action

Run/Repo Url Private repo

Screenshots Screen Shot 2020-05-23 at 9 49 06 AM

Additional context The runner is using amazon-linux2 based ami

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:7
  • Comments:9 (1 by maintainers)

github_iconTop GitHub Comments

9reactions
konradpabjancommented, Jul 16, 2020

Officially we only support Python for the environments that are listed out here: https://github.com/actions/virtual-environments#available-environments

We compile Python from source for Ubuntu 1604, 1804 and Mac (10.15), the available versions for download are listed out here: https://github.com/actions/python-versions/blob/master/versions-manifest.json

If you have a local runner with something like Ubuntu 1904, then the platform_version will be different so nothing will be found in the manifest and the action will fail with the error you see. Same thing applies to Mac if you’re using something other than 10.15.

The fact is it’s not working on an amazon-linux runner is expected and we do not plan on supporting Python for configurations other than what we have in virtual-environments.

There are two things we can do here

  • Update the README (we accept PRs 😃 )
    • Mention we only support the same platforms as those listed in virtual-environments
    • Explain why we only support those platforms - Maintenance, maintenance, maintenance - For Ubuntu and Mac, we compile from source so it is impossible to support all Linux distros and we have no plans to support more. - For Windows we download and use the MSI installers so those should work on all versions
  • Even more logging and a better error message that says exactly why no version was found. It’s very ambiguous right now.
1reaction
etienne-napoleonecommented, May 26, 2020

I also can’t run those steps locally with act on mac

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshoot self-hosted runner - CircleCI
I installed my first self-hosted runner on macOS and the job is stuck in "Preparing Environment", but there are no errors, what should...
Read more >
GitHub action self-host runner as service fails - Stack Overflow
I have installed GitHub self-hosted runner on my Ubuntu system. Getting below error when i try to configure it as service.
Read more >
Self-hosted runner failing to get oauth token
What version of the runner are you using? If there is a build log for the build you tried to run in the...
Read more >
Troubleshooting GitLab Runner
In this case, the authentication failure is caused by a service in between the Internet and the GitLab service. This service uses separate...
Read more >
Troubleshoot self-hosted integration runtime - Azure
For failed activities that are running on a self-hosted IR or a shared IR, the service supports viewing and uploading error logs. To...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found