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

Fix self-update failuers due to /runner/externals mount #253

Merged
merged 6 commits into from
Jan 24, 2021

Conversation

mumoshu
Copy link
Collaborator

@mumoshu mumoshu commented Jan 13, 2021

Please follow the steps described in https://github.com/summerwind/actions-runner-controller#developing to build the container images for testing.

Fixes #252


USER runner
USER runner/runner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unable to find user runner/runner: no matching entries in passwd file, this is correct?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry this should just be USER runner

@jolestar
Copy link

I try use new runner image, got:

Github endpoint URL https://github.com/
mv: cannot move '/runnertmp/bin' to '/runner/bin': Permission denied
mv: cannot move '/runnertmp/config.sh' to '/runner/config.sh': Permission denied
mv: cannot move '/runnertmp/env.sh' to '/runner/env.sh': Permission denied
mv: cannot move '/runnertmp/externalstmp' to '/runner/externalstmp': Permission denied
mv: cannot move '/runnertmp/patched' to '/runner/patched': Permission denied
mv: cannot move '/runnertmp/run.sh' to '/runner/run.sh': Permission denied
/entrypoint.sh: line 56: ./config.sh: No such file or directory
mv: cannot stat './externalstmp/*': No such file or directory
diff: bin/runsvc.sh: No such file or directory
diff: patched/runsvc.sh: No such file or directory
mv: cannot stat 'bin/runsvc.sh': No such file or directory
mv: cannot stat 'patched/runsvc.sh': No such file or directory
diff: bin/RunnerService.js: No such file or directory
diff: patched/RunnerService.js: No such file or directory
mv: cannot stat 'bin/RunnerService.js': No such file or directory
mv: cannot stat 'patched/RunnerService.js': No such file or directory
/entrypoint.sh: line 68: /runner/bin/runsvc.sh: No such file or directory

@mumoshu
Copy link
Collaborator Author

mumoshu commented Jan 20, 2021

@jolestar Thanks. Ah - Probably you need sudo chown -R runner:docker /runner in the very beginning of your entrypoint.sh

https://github.com/summerwind/actions-runner-controller/blob/master/runner/entrypoint.sh

As we use that user and group in our dockerfile

https://github.com/summerwind/actions-runner-controller/blob/524cf1b3793aeb8ea6280b2c1cd0a9cd55090173/runner/Dockerfile#L53-L55

@jolestar
Copy link

@mumoshu

Need add "mkdir ./externals" at here

https://github.com/summerwind/actions-runner-controller/blob/524cf1b3793aeb8ea6280b2c1cd0a9cd55090173/runner/entrypoint.sh#L51

the runnertmp dir also need to chown -R runner:docker.

It is work for me now.

@mumoshu
Copy link
Collaborator Author

mumoshu commented Jan 20, 2021

Need add "mkdir ./externals" at here

Ahhh, good catch! That makes sense. Thanks a lot for sharing your insight 👍

@jolestar
Copy link

HorizontalRunnerAutoscaler can not get correct DESIRED value, I'm trying to figure out why. May be it is github action api's bug, too many action job is timeout, and all job's status is weird

@mumoshu mumoshu merged commit ace95d7 into master Jan 24, 2021
@mumoshu
Copy link
Collaborator Author

mumoshu commented Jan 24, 2021

Let's go ahead! Thanks for all your help @e36-cicd, @jolestar, @achedeuzot, @hfuss, and everyone involved ❤️

@mumoshu mumoshu deleted the fix-self-update-failure branch January 24, 2021 01:58
@rofafor rofafor mentioned this pull request Jan 27, 2021
mumoshu added a commit that referenced this pull request Mar 25, 2021
Apparently #253 broke dindWithinRunnerContainer completely due to the difference in how /runner volume is set up.
mumoshu added a commit that referenced this pull request Mar 25, 2021
Apparently #253 broke dindWithinRunnerContainer completely due to the difference in how /runner volume is set up.
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

Successfully merging this pull request may close these issues.

Self update failed due to /externals mount point
3 participants