-
-
Notifications
You must be signed in to change notification settings - Fork 135
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
Encountering "/steps/entrypoint.sh: No such file or directory" when running the action #284
Comments
Alright so the issue was because of Docker-in-docker (dind). To run my workflows I was using Gitea's container Action runner, so a docker container that spawns other containers to run jobs. Since GameCI's action runs it's own containers for Unity, it meant that these containers would spawn while already inside another container, so a Docker-in-docker situation. As it turns out, volume mounts don't work the same when using a dind setup and therefore, the mounts for I didn't find a solution to this, only a workaround. Instead of using a Gitea Act runner container for anything tagged This means that any random job I launch on EDIT: formatting and typo. |
Hello, I wanted to ask you a question, I am using a slough of VPSes and I am encountering this issue too, but I don't quite know what to do. Are you saying you got another linux VM or are you saying you ran a second docker container for unity? |
Hope this helps. |
Thanks! This actually really does help! :) |
Hello again, I wanted to ask, what did you type in the "Labels"? for me I just typed |
It depends what labels you set when you registered the runner on the VPS. You can check them out in the "Actions > runners" tab in the settings of the Gitea instance or in the To debug this you may also just launch the runner with |
I seem to have gotten it to work, it was just that in the workflow I wasn't changing "ubuntu-latest" to "unity" I'm curious, when your test runner is started, do you get the error "404 not found" at the very end? I think it's trying to upload the artifacts but it gives an error because gitea doesn't have the endpoint, I don't really know how to fix it in all honesty. |
No I didn't have the 404 error you describe. All artifacts I ever had were uploaded successfully without having to do any setup as far as I can recall. |
Hello,
I'm trying to use Game CI's Github Actions on my Gitea server.
The server is hosted using Docker and uses Gitea's act runner as a worker for Actions.
The docker host is a CentOS on the cloud.
In that context, when using the unity-test-runner@v4 action, I quickly encounter an error following the docker command ran by the action:
/bin/bash: line 1: /steps/entrypoint.sh: No such file or directory
Here is the full command that generates this error:
I think it's a permission error because the files do exist on the host and the volume is correctly bound at this point in the command
--volume /run/act/actions/game-ci-unity-test-runner@v4/dist/platforms/ubuntu:/steps:z
. Therefore, theentrypoint.sh
should be in the launched container but theNo such file or directory
error can be raised even though the file exists but the process doesn't have the right to execute it, which is why I think this is the issue there.However, I couldn't find a way to give this permission to the created container. Here a few things I tried:
docker:dind
as a service for my job to have my worklow run docker commands with theprivileged
option. It's the first time I'm using any kind of dind setup or external service in a workflow so I might have made a mistake there because it changed nothing.runAsHostUser
input which unfortunately does nothing either.I have read through the documentation and searched the indexed internet for an answer but couldn't really find anything useful. Maybe someone here will have an idea of what's the issue or a workaround?
Thanks!
How to reproduce
Gitea instance docker setup a bit simplified to stay as concise as possible
Workflow file a bit simplified to stay as concise as possible
The command forged by the
unity-test-runner
action should find the/steps/entrypoint.sh
file and be able to launch it.The text was updated successfully, but these errors were encountered: