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

298.2 actions checkout error #2191

Closed
ashriram opened this issue Oct 9, 2022 · 7 comments
Closed

298.2 actions checkout error #2191

ashriram opened this issue Oct 9, 2022 · 7 comments
Labels
awaiting-customer-response bug Something isn't working

Comments

@ashriram
Copy link

ashriram commented Oct 9, 2022

Describe the bug

Error: Command failed: rm -rf "/home/docker/actions-runner/_work/assignment-2-mishasinitcyn/assignment-2-mishasinitcyn/.git"
rm: cannot remove '/home/docker/actions-runner/_work/assignment-2-mishasinitcyn/assignment-2-mishasinitcyn/.git/hooks': Directory not empty
rm: cannot remove '/home/docker/actions-runner/_work/assignment-2-mishasinitcyn/assignment-2-mishasinitcyn/.git/info': Directory not empty
rm: cannot remove '/home/docker/actions-runner/_work/assignment-2-mishasinitcyn/assignment-2-mishasinitcyn/.git/refs/remotes/origin': Directory not empty
rm: cannot remove '/home/docker/actions-runner/_work/assignment-2-mishasinitcyn/assignment-2-mishasinitcyn/.git/objects/pack': Directory not empty
rm: cannot remove '/home/docker/actions-runner/_work/assignment-2-mishasinitcyn/assignment-2-mishasinitcyn/.git/logs/refs/remotes/origin': Directory not empty

(node:84696) UnhandledPromiseRejectionWarning: Error: Command failed: rm -rf "/home/docker/actions-runner/_work/_temp/e977c0c9-2d91-458e-8cc5-c37ffd11e877"
rm: cannot remove '/home/docker/actions-runner/_work/_temp/e977c0c9-2d91-458e-8cc5-c37ffd11e877': Directory not empty

at ChildProcess.exithandler (child_process.js:308:12)
at ChildProcess.emit (events.js:314:20)
at maybeClose (internal/child_process.js:1022:16)
at Socket.<anonymous> (internal/child_process.js:444:11)
at Socket.emit (events.js:314:20)
at Pipe.<anonymous> (net.js:675:12)

(node:145) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:145) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Run '....'
  3. See error

Expected behavior
A clear and concise description of what you expected to happen.

Runner Version and Platform

Version of your runner? 298.2
OS of the machine running the runner? OSX/Windows/Linux/...
Linux (actions running inside docker)

What's not working?

Please include error messages and screenshots.

at ChildProcess.exithandler (child_process.js:308:12)
at ChildProcess.emit (events.js:314:20)
at maybeClose (internal/child_process.js:1022:16)
at Socket.<anonymous> (internal/child_process.js:444:11)
at Socket.emit (events.js:314:20)
at Pipe.<anonymous> (net.js:675:12)

(node:145) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:145) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

Job Log Output

If applicable, include the relevant part of the job / step log output here. All sensitive information should already be masked out, but please double-check before pasting here.

Runner and Worker's Diagnostic Logs

If applicable, add relevant diagnostic log information. Logs are located in the runner's _diag folder. The runner logs are prefixed with Runner_ and the worker logs are prefixed with Worker_. Each job run correlates to a worker log. All sensitive information should already be masked out, but please double-check before pasting here.

@ashriram ashriram added the bug Something isn't working label Oct 9, 2022
@ashriram
Copy link
Author

ashriram commented Oct 9, 2022

I am behind a university proxy but nodeJS checkouts used to work in 297. I do have http_proxy and https_proxy set up.

@nikola-jokic
Copy link
Contributor

Hey @ashriram,

Thank you for reporting this issue. Can you please tell me, are you running your workflow in a container? Can you provide an example workflow, so we can reproduce this bug?

@ashriram
Copy link
Author

I am running it in a container. Can be obtained here.
ashriram/cmpt295-runner:298-proxy

Container is behind university proxy (only happens behind proxy).
If I am not behind proxy it is ok.

However, I ran run-check in actions and it appears to say nodeJS is ok.

ashriram/cmpt295-runner:297-proxy is fine. It does not report same error.

Seems similar to issue here: https://lightrun.com/answers/actions-checkout-permission-denied-when-deleting-the-contents-of

@nikola-jokic
Copy link
Contributor

Thanks for the response! Unfortunately, I cannot see the repo is probably private since I cannot see it. I will try to provide more context here. If you are running your runner as a user with uid 1001 for example on your system, and you execute a docker action as a user 1000 for example, files created inside the volume attached to your container will be owned by the user 1000 on your host machine. If that is the case, the runner will not be able to clean-up after itself since it does not have any permissions to do so. That might be an issue here. Please see the issue #434, and let me know it that is the source of the issue ☺️

@ashriram
Copy link
Author

I will give this a shot and also set up a public repo that you can investigate on. Thanks

@nikola-jokic
Copy link
Contributor

Hey @ashriram,

Did you manage to resolve this issue ☺️ ?

@nikola-jokic
Copy link
Contributor

I will close this issue until we hear back from you. If you discover that the issue is not occurring for the reason I wrote above, feel free to re-open the issue, and please do provide the repo, so we can re-produce it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting-customer-response bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants
@ashriram @nikola-jokic and others