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

Actions runner deployed in kubernetes mode on aks has /runner/_work/externals volume empty causing this error - env: ‘/__e/node20/bin/node’: No such file or directory #3425

Open
7 tasks done
jjayapandian opened this issue Apr 11, 2024 · 1 comment
Labels
bug Something isn't working community Community contribution needs triage Requires review from the maintainers

Comments

@jjayapandian
Copy link

jjayapandian commented Apr 11, 2024

Checks

Controller Version

0.20.2

Helm Chart Version

No response

CertManager Version

No response

Deployment Method

Helm

cert-manager installation

using 1.11.4 cert manager

Checks

  • This isn't a question or user support case (For Q&A and community support, go to Discussions. It might also be a good idea to contract with any of contributors and maintainers if your business is so critical and therefore you need priority support
  • I've read releasenotes before submitting this issue and I'm sure it's not due to any recently-introduced backward-incompatible changes
  • My actions-runner-controller version (v0.x.y) does support the feature
  • I've already upgraded ARC (including the CRDs, see charts/actions-runner-controller/docs/UPGRADING.md for details) to the latest and it didn't fix the issue
  • I've migrated to the workflow job webhook event (if you using webhook driven scaling)

Resource Definitions

apiVersion: actions.summerwind.dev/v1alpha1
kind: RunnerDeployment
metadata:
  name: 
  namespace: 
spec:
  replicas: 1
  template:
    metadata: {}
    spec:
      dockerEnabled: false
      dockerdContainerResources: {}
      enterprise: 
      env:
      - name: GITHUB_ACTIONS_RUNNER_TRACE
        value: "true"
      - name: RUNNER_CONTAINER_IN_SAME_NODE
        value: "true"
      group: 
      image: 
      labels:
      - azure
      resources: {}

helm chart values.yaml
actions-runner-controller:
  actionsRunner:
    containerProvider: kubernetes
    persistentVolumeEnabled: true
    persistentVolumeStorageClass: azure-storage
    persistentVolumeStorageSize: 100Mi

To Reproduce

1. Use azure storage 

apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
  name: azure-storage
provisioner: disk.csi.azure.com
reclaimPolicy: Delete
2.Deploy action runner controller on AKS with kubernetes values.yaml
3.Run workflow file

name: test
on:
  workflow_dispatch:
jobs:
  job2:
    runs-on: azure
    container:
      image: alpine
    steps:
      - uses: actions/checkout@v4
        with:
          fetch-depth: 0
          path: dir1

Describe the bug

Getting env: ‘/__e/node20/bin/node’ : No such file or directory when running runners in kubernetes mode

Describe the expected behavior

/runner/_work/externals is empty whereas /runner/externals has the data somehow its not mapping properly in kubernetes mode

Whole Controller Logs

NA

Whole Runner Pod Logs

NA

Additional Context

NA

@jjayapandian jjayapandian added bug Something isn't working community Community contribution needs triage Requires review from the maintainers labels Apr 11, 2024
Copy link
Contributor

Hello! Thank you for filing an issue.

The maintainers will triage your issue shortly.

In the meantime, please take a look at the troubleshooting guide for bug reports.

If this is a feature request, please review our contribution guidelines.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working community Community contribution needs triage Requires review from the maintainers
Projects
None yet
Development

No branches or pull requests

1 participant