Coder Social home page Coder Social logo

multi-runners's People

Contributors

rrauenza avatar vbem avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

multi-runners's Issues

Runners running out of space

Hey, awesome tool! Love it so far!

I was wondering if there is a guideline on how to cleanup leftover files of the runners? Can I delete the _work directories? They are by far the heaviest ones.

Thanks!

Start the runners as root

I'm trying to use this wrapper script but the issue I'm having is that containers in github actions run as root so if you try to use this in combination with a workflow that requires containers then you'll get a permission error. I wanted to run this wrapper as root but there's a hardcoded useradd which obviously conflicts with the existing root user.

Using custom docker registries

Hi,

Thanks for creating the package, after my last issue I was able to create the runners so thanks for the update. But now I'm facing another issue. Some of my docker images are in a private registry, so I ensured that my server can access the registry. I verified that by using the default GitHub runner which can successfully pull images from there.

But all the runners that I've added using this tool can't access this repository although they are added on the same server. Did I miss anything in the readme that I need to do to ensure these runners can also access the registry?

SELinux fail because of binary location

On RHEL9 SELinux fail because of binary location
Runnig chcon -t bin_t /home/runner-0/runner/runsvc.sh resolve the problem

  • Include the chcon to add comand
@@ -253,7 +253,7 @@
 		cd .. && tar -xzf "$tarpath"
 		echo "$dotenv" >> .env
 		./config.sh --unattended --replace --url '$url' --token '$token' --name '$name' --labels '$labels' --runnergroup '$group'
-		sudo ./svc.sh install '$user' && sudo ./svc.sh start
+		sudo ./svc.sh install '$user' && chcon -t bin_t ./runsvc.sh && sudo ./svc.sh start
 	__
 }

Error Log

May 07 18:39:26 github-runner-ci systemd[1644]: [email protected]: Failed at step EXEC spawning /home/runner-0/runner/runsvc.sh: Permission denied
May 07 18:39:26 github-runner-ci systemd[1]: [email protected]: Main process exited, code=exited, status=203/EXE

Cannot iterate over null

Running ./mr.bash download

Produces such error:
jq: error (at <stdin>:1): Cannot iterate over null (null)

./mr.bash pat2token is working correctlym although

Not sure what steps to reproduce to put or any other info about my system.

Can I override the default name given to the runners?

This tool is super useful; thank you!!

I set up a handful of runners on an EC2 instance, and their names on https://github.com/MY_ORG/MY_REPO/actions/runners?tab=self-hosted are all something like [email protected].

Is there a way to override the name? If not, please consider this a feature request. :)

Multiple runners on the same machine fail

Hello. The problem is this:

  • installed 6 runners on the same machine
  • all 6 got connected and ready for jobs
  • when the workflow started, they all failed
  • error: package.json not found

From the looks of it, only one managed to download the repo it was supposed
to build on, the rest failed and continue to fail.

It seems the repo gets deleted for some reason from the /_work/ folder
What may cause this and what is the fix?

Thank you

registration is failing with 404

[2023-10-17T19:24:10+00:00 DEBUG mr::addRunner] Adding runner into local user 'runner-1' for https://github.com/contra

--------------------------------------------------------------------------------
|        ____ _ _   _   _       _          _        _   _                      |
|       / ___(_) |_| | | |_   _| |__      / \   ___| |_(_) ___  _ __  ___      |
|      | |  _| | __| |_| | | | | '_ \    / _ \ / __| __| |/ _ \| '_ \/ __|     |
|      | |_| | | |_|  _  | |_| | |_) |  / ___ \ (__| |_| | (_) | | | \__ \     |
|       \____|_|\__|_| |_|\__,_|_.__/  /_/   \_\___|\__|_|\___/|_| |_|___/     |
|                                                                              |
|                       Self-hosted runner registration                        |
|                                                                              |
--------------------------------------------------------------------------------

# Authentication

Http response code: NotFound from 'POST https://api.github.com/actions/runner-registration' (Request Id: E214:40DE:17767A6:2F94543:652EDF5E)
{"message":"Not Found","documentation_url":"https://docs.github.com/rest"}
Response status code does not indicate success: 404 (Not Found).
[2023-10-17T19:24:14+00:00 WARN mr::addRunner] Return 1 from command: sudo su --login runner-1 -- -eo pipefail

Not clear why this is failing

"Must have admin rights to repository" - Thrown by API

Thank you for doing the work and providing a solution to use multiple runners on a single host. However I'm running into an issue when trying to run the pat2token / add commands to setup my runners. Based on the error I'm pretty certain that the issue is on my side but I can't figure it out.

I created a PAT in my profile (classic) with the following permission and added it to the .env file. I also tried the recommend approach for creating a fine grained token but could not find the mentioned 'organization_self_hosted_runners' permission. Any guidance would be appreciated.

Good to mention is that I'm the owner of the organisation and when trying it for a specific repository it appears to work like expected

Screenshot 2024-03-09 at 16 32 40

Adding a base directory specification feature to runners

Hi there,
Thanks to this, i conveniently configured github actions. ๐Ÿ™๐Ÿป

I have a question regarding the runner directory. Is it possible to specify a custom directory for the runners instead of using the default /home directory?
Any information or guidance on this matter would be greatly appreciated.
TY

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.