Skip to content

Error: spawn sudo ENOENT #15

@sandervspl

Description

@sandervspl

Getting this error in my workflow

This is the action's setup

runs-on: ubuntu-latest
container:
  image: node:18
steps:
  - name: Set timezone
  uses: szenius/set-timezone@v1.2
  with:
    timezoneLinux: 'Europe/Amsterdam'
/usr/bin/docker exec  9e5ecfe8eec4dde51ee9ed4172859f4252023dbe70882e[6](https://github.com/LabelA/ai-studio-playground/actions/runs/6315022412/job/17146610428#step:12:7)d[7](https://github.com/LabelA/ai-studio-playground/actions/runs/6315022412/job/17146610428#step:12:8)d5b84d62fcc28b2 sh -c "cat /etc/*release | grep ^ID"
node:internal/errors:478
    ErrorCaptureStackTrace(err);
    ^

Error: spawn sudo ENOENT
    at Process.ChildProcess._handle.onexit (node:internal/child_process:2[8](https://github.com/LabelA/ai-studio-playground/actions/runs/6315022412/job/17146610428#step:12:9)5:1[9](https://github.com/LabelA/ai-studio-playground/actions/runs/6315022412/job/17146610428#step:12:10))
    at onErrorNT (node:internal/child_process:485:16)
    at processTicksAndRejections (node:internal/process/task_queues:83:21) {
  errno: -2,
  code: 'ENOENT',
  syscall: 'spawn sudo',
  path: 'sudo',
  spawnargs: [ 'timedatectl', 'set-timezone', 'Europe/Amsterdam' ]```

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions