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

incident: Jenkins unable to clear workspace (.git remnants) #1682

Closed
refack opened this issue Feb 8, 2019 · 5 comments
Closed

incident: Jenkins unable to clear workspace (.git remnants) #1682

refack opened this issue Feb 8, 2019 · 5 comments

Comments

@refack
Copy link
Contributor

refack commented Feb 8, 2019

Seems like certain git branch names (presumably with non ASCII chars) cause Jenkins to borke.
Error shows up much later then the job finished, only when Jenkins tries to clear the workspace.
Example error:

12:05:22  > git rev-parse --is-inside-work-tree # timeout=10
12:05:22 ERROR: Workspace has a .git repository, but it appears to be corrupt.
12:05:22 hudson.plugins.git.GitException: Command "git rev-parse --is-inside-work-tree" returned status code 128:
12:05:22 stdout: 
12:05:22 stderr: fatal: Not a git repository (or any of the parent directories): .git
12:05:22 
12:05:22 	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2318)
.
.
.
12:05:22 Cloning the remote Git repository
12:05:22 Cloning repository git@github.com:nodejs/node.git
12:05:25 ERROR: Failed to clean the workspace
12:05:25 java.io.IOException: Unable to delete '/home/iojs/build/workspace/node-test-commit-plinux/nodes/ppcle-ubuntu1404'. Tried 3 times (of a maximum of 3) waiting 0.1 sec between attempts.
12:05:25 	at hudson.Util.deleteContentsRecursive(Util.java:259)
12:05:25 	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2.execute(CliGitAPIImpl.java:653)
12:05:25 	at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$GitCommandMasterToSlaveCallable.call(RemoteGitImpl.java:161)
12:05:25 	at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$GitCommandMasterToSlaveCallable.call(RemoteGitImpl.java:154)
12:05:25 	at hudson.remoting.UserRequest.perform(UserRequest.java:212)
12:05:25 	at hudson.remoting.UserRequest.perform(UserRequest.java:54)
12:05:25 	at hudson.remoting.Request$2.run(Request.java:369)
12:05:25 	at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
12:05:25 	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
12:05:25 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
12:05:25 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
12:05:25 	at hudson.remoting.Engine$1.lambda$newThread$0(Engine.java:93)
12:05:25 	at java.lang.Thread.run(Thread.java:748)
12:05:25 Caused by: java.io.IOException: java.nio.file.InvalidPathException: Malformed input or input contains unmappable characters: /home/iojs/build/workspace/node-test-commit-plinux/nodes/ppcle-ubuntu1404/.git/refs/remotes/origin/[refack redacted]r-??t[refack redacted]
12:05:25 	at hudson.Util.fileToPath(Util.java:1709)

I'm going to try to hunt those file down, so this posting is just FTR.

/CC @node/reliability

@richardlau
Copy link
Member

@refack
Copy link
Contributor Author

refack commented Feb 12, 2019

@refack
Copy link
Contributor Author

refack commented Feb 19, 2019

https://ci.nodejs.org/job/node-test-commit-linux/nodes=alpine-last-latest-x64/25447/console
fixed, thanks

@github-actions
Copy link

github-actions bot commented Mar 5, 2020

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days

@github-actions github-actions bot added the stale label Mar 5, 2020
@github-actions github-actions bot closed this as completed Apr 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants