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

sudo apt-get command fails in custom built runner #33

Open
kimxogus opened this issue Aug 25, 2023 · 1 comment
Open

sudo apt-get command fails in custom built runner #33

kimxogus opened this issue Aug 25, 2023 · 1 comment

Comments

@kimxogus
Copy link

We are using self-hosted runner which uses custom runner image based on https://github.com/actions/actions-runner-controller .
sudo apt-get command fails in our runners(error logs below).

It seems we can't avoid that sudo apt-get, we can't use this action.

Can you resolve this issue?

Possible solution is to make the command to use bash shell like `bash -c 'sudo apt-get ...' (not sure that would work)

Run leafo/gh-actions-lua@v10
  
Notice: gh-actions-lua: No cache available, clean build
/usr/bin/tar xz --warning=no-unknown-keyword --overwrite -C /runner/_work/_temp/.lua-build -f /runner/_work/_temp/50d5[7](https://github.com/upbitit/kong-plugin-upbit-jwt-ratelimiting/actions/runs/5971987739/job/16201857620?pr=2#step:7:7)b5[8](https://github.com/upbitit/kong-plugin-upbit-jwt-ratelimiting/actions/runs/5971987739/job/16201857620?pr=2#step:7:9)-88b4-4d30-[9](https://github.com/upbitit/kong-plugin-upbit-jwt-ratelimiting/actions/runs/5971987739/job/16201857620?pr=2#step:7:10)8c0-8c004e53123f
/usr/bin/sudo apt-get install -q libreadline-dev libncurses-dev
sudo: apt-get: command not found
Error: Failed to install Lua: Error: The process '/usr/bin/sudo' failed with exit code 1
@kimxogus kimxogus changed the title Ability to skip apt install in linux runner sudo apt-get command fails in custom built runner Aug 25, 2023
@rbarker-dev
Copy link

Having the same issue now.

Run leafo/gh-actions-lua@35bcb06abec04ec87df82e08caa84d545348536e
  
Notice: gh-actions-lua: No cache available, clean build
/usr/bin/tar xz --warning=no-unknown-keyword --overwrite -C /runner/_work/_temp/.lua-build -f /runner/_work/_temp/[5](https://github.com/hashgraph/hedera-the-graph/actions/runs/8854400625/job/24317349769#step:7:5)[5](https://github.com/hashgraph/hedera-the-graph/actions/runs/8854400625/job/24317349769#step:7:6)5254e7-5fd6-45a2-bc05-90f5573c555f
/usr/bin/sudo apt-get install -q libreadline-dev libncurses-dev
sudo: apt-get: command not found
Error: Failed to install Lua: Error: The process '/usr/bin/sudo' failed with exit code 1

rbarker-dev added a commit to hashgraph/hedera-the-graph that referenced this issue Apr 26, 2024
See issue leafo/gh-actions-lua#33.
Attempting manual install of lua

Signed-off-by: Roger Barker <[email protected]>
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