Skip to content
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

miniconda install fails on self hosted runner #269

Open
GeorgWa opened this issue Dec 22, 2022 · 2 comments
Open

miniconda install fails on self hosted runner #269

GeorgWa opened this issue Dec 22, 2022 · 2 comments

Comments

@GeorgWa
Copy link

GeorgWa commented Dec 22, 2022

I have a new windows 10 installation which I would like to use for performance tests with a custom github actions runner.
Unfortunately, the miniconda installation fails as, to my understanding, the installation cannot be found.

I used a very simple action:

name: performance testing

on: 
  workflow_dispatch:

env:
  TEST_DATA_DIR: ../_data/

jobs:
  loose_installation:
    name: Performance testing
    runs-on: self-hosted
    
    steps:
      - uses: actions/checkout@v3
      - uses: conda-incubator/setup-miniconda@v2
        with:
          miniconda-version: "latest"
      - name: Conda info
        run: |
          conda info

When run, the conda-incubator/setup-miniconda@v2 fails with the following error:

Run conda-incubator/setup-miniconda@v2
Gathering Inputs...
Creating bootstrap condarc file in C:\Windows\ServiceProfiles\NetworkService\.condarc...
Ensuring installer...
Running installer...
  C:\actions-runner\_work\_temp\03d89d[27](https://github.com/org/repo/actions/runs/3761861196/jobs/6394006782#step:3:31)-fe9c-4186-a441-ca7c0ed5858b.exe /InstallationType=JustMe /RegisterPython=0 /S /D=3
...
miniconda is succesfullyinstalled
...
No installed conda 'base' environment found at 3!If you are using this action in a self-hosted runner that already provides its own Miniconda installation, please specify its location with a `CONDA` environment variable. If you want us to download and install Miniconda or Miniforge for you, add `miniconda-version: "latest"` or `miniforge-version: "latest"`, respectively, to the parameters for this action.

For some reason the instalation path is set to /D=3 although C:\Windows\ServiceProfiles\NetworkService\miniconda3 is used during miniconda installation. Please let me know if you need more information or logs.

@GeorgWa
Copy link
Author

GeorgWa commented Dec 24, 2022

Workaround for future reference for users which encounter the same error:

Initially I decided to run the self hosted runner as a service which executed code as NT AUTHORITY\NETWORK SERVICE user. Instead, I now use an already existing account and installed conda manually which works fine.

Nevertheless, having a workflow which install conda automatically my setup-miniconda would be great!

@goanpeca
Copy link
Member

Hi @GeorgWa thanks for reporting the issue. We still have not properly set testing for self hosted runners, and without more details of your exact environment we cannot fully debug this.

If you can provide what your setup is and the system details, we can take a look at it when setting up testing on a self hosted runner.

Cheers!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants