timja / jenkins-gh-issues-poc-06-18

0 stars 0 forks source link

[JENKINS-33478] Cleaning or deleting workspace fails with non-ASCII filename #7926

Open timja opened 8 years ago

timja commented 8 years ago

I have a project in git that contains a file with unicode, non-ASCII characters. The build fails with:

ERROR: Failed to clean the workspace
java.io.IOException: java.lang.reflect.InvocationTargetException
at hudson.Util.isSymlinkJava7(Util.java:377)
at hudson.Util.isSymlink(Util.java:342)
at hudson.Util.deleteRecursive(Util.java:308)
at hudson.Util.deleteContentsRecursive(Util.java:220)
at hudson.Util.deleteRecursive(Util.java:309)
at hudson.Util.deleteContentsRecursive(Util.java:220)
at hudson.Util.deleteRecursive(Util.java:309)
at hudson.Util.deleteContentsRecursive(Util.java:220)
at hudson.Util.deleteRecursive(Util.java:309)
at hudson.Util.deleteContentsRecursive(Util.java:220)
at hudson.Util.deleteRecursive(Util.java:309)
at hudson.Util.deleteContentsRecursive(Util.java:220)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2.execute(CliGitAPIImpl.java:454)
at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$1.call(RemoteGitImpl.java:152)
at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$1.call(RemoteGitImpl.java:145)
at hudson.remoting.UserRequest.perform(UserRequest.java:120)
at hudson.remoting.UserRequest.perform(UserRequest.java:48)
at hudson.remoting.Request$2.run(Request.java:326)
at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.GeneratedMethodAccessor17.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at hudson.Util.isSymlinkJava7(Util.java:372)
... 22 more
Caused by: java.nio.file.InvalidPathException: Malformed input or input contains unmappable chacraters: /home/jenkins/workspace/GitHub-LfMerge-Linux-any-master-debug/data/TestLangProj/LinkedFiles/AudioVisual/635460455469905390??u ??i??w??.wav
at sun.nio.fs.UnixPath.encode(UnixPath.java:147)
at sun.nio.fs.UnixPath.(UnixPath.java:71)
at sun.nio.fs.UnixFileSystem.getPath(UnixFileSystem.java:281)
at java.io.File.toPath(File.java:2193)
... 26 more
ERROR: Error cloning remote repo 'origin'
hudson.plugins.git.GitException: Failed to delete workspace
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2.execute(CliGitAPIImpl.java:457)
at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$1.call(RemoteGitImpl.java:152)
at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$1.call(RemoteGitImpl.java:145)
at hudson.remoting.UserRequest.perform(UserRequest.java:120)
at hudson.remoting.UserRequest.perform(UserRequest.java:48)
at hudson.remoting.Request$2.run(Request.java:326)
at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
at ......remote call to LfMerge-Docker-master-test(Native Method)
at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1416)
at hudson.remoting.UserResponse.retrieve(UserRequest.java:220)
at hudson.remoting.Channel.call(Channel.java:781)
at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler.execute(RemoteGitImpl.java:145)
at sun.reflect.GeneratedMethodAccessor4242.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler.invoke(RemoteGitImpl.java:131)
at com.sun.proxy.$Proxy98.execute(Unknown Source)
at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1013)
at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1053)
at hudson.scm.SCM.checkout(SCM.java:485)
at hudson.model.AbstractProject.checkout(AbstractProject.java:1276)
at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:607)
at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:529)
at hudson.model.Run.execute(Run.java:1738)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:98)
at hudson.model.Executor.run(Executor.java:410)
Caused by: java.io.IOException: java.lang.reflect.InvocationTargetException
at hudson.Util.isSymlinkJava7(Util.java:377)
at hudson.Util.isSymlink(Util.java:342)
at hudson.Util.deleteRecursive(Util.java:308)
at hudson.Util.deleteContentsRecursive(Util.java:220)
at hudson.Util.deleteRecursive(Util.java:309)
at hudson.Util.deleteContentsRecursive(Util.java:220)
at hudson.Util.deleteRecursive(Util.java:309)
at hudson.Util.deleteContentsRecursive(Util.java:220)
at hudson.Util.deleteRecursive(Util.java:309)
at hudson.Util.deleteContentsRecursive(Util.java:220)
at hudson.Util.deleteRecursive(Util.java:309)
at hudson.Util.deleteContentsRecursive(Util.java:220)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2.execute(CliGitAPIImpl.java:454)
at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$1.call(RemoteGitImpl.java:152)
at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$1.call(RemoteGitImpl.java:145)
at hudson.remoting.UserRequest.perform(UserRequest.java:120)
at hudson.remoting.UserRequest.perform(UserRequest.java:48)
at hudson.remoting.Request$2.run(Request.java:326)
at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.GeneratedMethodAccessor17.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at hudson.Util.isSymlinkJava7(Util.java:372)
... 22 more
Caused by: java.nio.file.InvalidPathException: Malformed input or input contains unmappable chacraters: /home/jenkins/workspace/GitHub-LfMerge-Linux-any-master-debug/data/TestLangProj/LinkedFiles/AudioVisual/635460455469905390??u ??i??w??.wav
at sun.nio.fs.UnixPath.encode(UnixPath.java:147)
at sun.nio.fs.UnixPath.(UnixPath.java:71)
at sun.nio.fs.UnixFileSystem.getPath(UnixFileSystem.java:281)
at java.io.File.toPath(File.java:2193)
... 26 more

The same thing happens trying to delete the workspace:

java.io.IOException: remote file operation failed: /home/jenkins/workspace/GitHub-LfMerge-Linux-any-master-debug at hudson.remoting.Channel@21b83218:LfMerge-Docker-master-test: java.io.IOException: java.lang.reflect.InvocationTargetException
at hudson.FilePath.act(FilePath.java:986)
at hudson.FilePath.act(FilePath.java:968)
at hudson.FilePath.deleteRecursive(FilePath.java:1170)
at hudson.model.AbstractProject.doDoWipeOutWorkspace(AbstractProject.java:1939)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:298)
at org.kohsuke.stapler.interceptor.RequirePOST$Processor.invoke(RequirePOST.java:46)
at org.kohsuke.stapler.Function$InterceptedFunction.invoke(Function.java:399)
at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:161)
at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:96)
at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:121)
at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)
at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:746)
at org.kohsuke.stapler.Stapler.invoke(Stapler.java:876)
at org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:249)
at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)
at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:746)
at org.kohsuke.stapler.Stapler.invoke(Stapler.java:876)
at org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:249)
at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)
at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:746)
at org.kohsuke.stapler.Stapler.invoke(Stapler.java:876)
at org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:249)
at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)
at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:746)
at org.kohsuke.stapler.Stapler.invoke(Stapler.java:876)
at org.kohsuke.stapler.Stapler.invoke(Stapler.java:649)
at org.kohsuke.stapler.Stapler.service(Stapler.java:238)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:686)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1494)
at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:132)
at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:123)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482)
at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:86)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482)
at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)
at hudson.security.UnwrapSecurityExceptionFilter.doFilter(UnwrapSecurityExceptionFilter.java:51)
at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
at jenkins.security.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:117)
at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
at org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125)
at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
at org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:142)
at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
at org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:271)
at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
at jenkins.security.BasicHeaderProcessor.doFilter(BasicHeaderProcessor.java:93)
at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249)
at hudson.security.HttpSessionContextIntegrationFilter2.doFilter(HttpSessionContextIntegrationFilter2.java:67)
at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
at hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76)
at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:171)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482)
at org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:49)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482)
at hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:81)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482)
at org.kohsuke.stapler.DiagnosticThreadNameFilter.doFilter(DiagnosticThreadNameFilter.java:30)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1474)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:499)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:533)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1086)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:428)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1020)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)
at org.eclipse.jetty.server.Server.handle(Server.java:370)
at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:489)
at org.eclipse.jetty.server.AbstractHttpConnection.content(AbstractHttpConnection.java:960)
at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content(AbstractHttpConnection.java:1021)
at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:865)
at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:240)
at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:668)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:52)
at winstone.BoundedExecutorService$1.run(BoundedExecutorService.java:77)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.io.IOException: java.lang.reflect.InvocationTargetException
at hudson.Util.isSymlinkJava7(Util.java:377)
at hudson.Util.isSymlink(Util.java:342)
at hudson.FilePath.deleteRecursive(FilePath.java:1193)
at hudson.FilePath.deleteContentsRecursive(FilePath.java:1212)
at hudson.FilePath.deleteRecursive(FilePath.java:1194)
at hudson.FilePath.deleteContentsRecursive(FilePath.java:1212)
at hudson.FilePath.deleteRecursive(FilePath.java:1194)
at hudson.FilePath.deleteContentsRecursive(FilePath.java:1212)
at hudson.FilePath.deleteRecursive(FilePath.java:1194)
at hudson.FilePath.deleteContentsRecursive(FilePath.java:1212)
at hudson.FilePath.deleteRecursive(FilePath.java:1194)
at hudson.FilePath.deleteContentsRecursive(FilePath.java:1212)
at hudson.FilePath.deleteRecursive(FilePath.java:1194)
at hudson.FilePath.access$1000(FilePath.java:190)
at hudson.FilePath$14.invoke(FilePath.java:1173)
at hudson.FilePath$14.invoke(FilePath.java:1170)
at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2719)
at hudson.remoting.UserRequest.perform(UserRequest.java:120)
at hudson.remoting.UserRequest.perform(UserRequest.java:48)
at hudson.remoting.Request$2.run(Request.java:326)
at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
at ......remote call to LfMerge-Docker-master-test(Native Method)
at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1416)
at hudson.remoting.UserResponse.retrieve(UserRequest.java:220)
at hudson.remoting.Channel.call(Channel.java:781)
at hudson.FilePath.act(FilePath.java:979)
... 86 more
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.GeneratedMethodAccessor17.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at hudson.Util.isSymlinkJava7(Util.java:372)
at hudson.Util.isSymlink(Util.java:342)
at hudson.FilePath.deleteRecursive(FilePath.java:1193)
at hudson.FilePath.deleteContentsRecursive(FilePath.java:1212)
at hudson.FilePath.deleteRecursive(FilePath.java:1194)
at hudson.FilePath.deleteContentsRecursive(FilePath.java:1212)
at hudson.FilePath.deleteRecursive(FilePath.java:1194)
at hudson.FilePath.deleteContentsRecursive(FilePath.java:1212)
at hudson.FilePath.deleteRecursive(FilePath.java:1194)
at hudson.FilePath.deleteContentsRecursive(FilePath.java:1212)
at hudson.FilePath.deleteRecursive(FilePath.java:1194)
at hudson.FilePath.deleteContentsRecursive(FilePath.java:1212)
at hudson.FilePath.deleteRecursive(FilePath.java:1194)
at hudson.FilePath.access$1000(FilePath.java:190)
at hudson.FilePath$14.invoke(FilePath.java:1173)
at hudson.FilePath$14.invoke(FilePath.java:1170)
at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2719)
at hudson.remoting.UserRequest.perform(UserRequest.java:120)
at hudson.remoting.UserRequest.perform(UserRequest.java:48)
at hudson.remoting.Request$2.run(Request.java:326)
at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
... 3 more
Caused by: java.nio.file.InvalidPathException: Malformed input or input contains unmappable chacraters: /home/jenkins/workspace/GitHub-LfMerge-Linux-any-master-debug/data/TestLangProj/LinkedFiles/AudioVisual/635460455469905390����u ��i��w����.wav
at sun.nio.fs.UnixPath.encode(UnixPath.java:147)
at sun.nio.fs.UnixPath.(UnixPath.java:71)
at sun.nio.fs.UnixFileSystem.getPath(UnixFileSystem.java:281)
at java.io.File.toPath(File.java:2193)
... 28 more

The filename in question is: 635460455469905390ɒɾu\ ɛiɡwɾɛ.wav


Originally reported by ickersep, imported from: Cleaning or deleting workspace fails with non-ASCII filename
  • status: Open
  • priority: Blocker
  • resolution: Unresolved
  • imported: 2022/01/10
timja commented 8 years ago

danielbeck:

Did you follow the advice in the comments to JENKINS-12610?

timja commented 8 years ago

ickersep:

No, I previously overlooked the suggested workaround of JENKINS-12610.

So I tried right now and added -Dfile.encoding=UTF-8 to JAVA_ARGS in /etc/default/jenkins, restarted Jenkins and added -Dfile.encoding=UTF-8 to the JVM options in the slave configuration and relaunched the slave.

These settings don't make a difference though. It still can't delete the files.

timja commented 8 years ago

csmart:

I was having the same problem with official Jenkins docker image. I don't have any jobs which run on the master, but I set "JVM Options" for my slave to "-Dfile.encoding=UTF-8" and it seems to have solved my problem, thanks.

In case others need to know how to configure the node:
Manage Jenkins -> Manage Nodes -> (select node) -> Configure -> Advanced (Launch method) -> JVM Options = -Dfile.encoding=UTF-8

timja commented 7 years ago

realfogetti:

This is still happening. Setting the system property as suggested above both on Jenkins master and the slaves has no effect.

Our system info looks like this:

 

System Properties
Name ↓
Value 
awt.toolkit sun.awt.X11.XToolkit
executable-war /usr/share/jenkins/jenkins.war
file.encoding UTF-8
file.encoding.pkg sun.io
file.separator /
hudson.model.DirectoryBrowserSupport.CSP 
java.awt.graphicsenv sun.awt.X11GraphicsEnvironment
java.awt.headless true
java.awt.printerjob sun.print.PSPrinterJob
java.class.path /usr/share/jenkins/jenkins.war
java.class.version 52.0
java.endorsed.dirs /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/endorsed
java.ext.dirs /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/ext:/usr/java/packages/lib/ext
java.home /usr/lib/jvm/java-8-openjdk-amd64/jre
java.io.tmpdir /tmp
java.library.path /usr/java/packages/lib/amd64:/usr/lib/x86_64-linux-gnu/jni:/lib/x86_64-linux-gnu:/usr/lib/x86_64-linux-gnu:/usr/lib/jni:/lib:/usr/lib
java.runtime.name OpenJDK Runtime Environment
java.runtime.version 1.8.0_121-8u121-b13-1~bpo8+1-b13
java.specification.name Java Platform API Specification
java.specification.vendor Oracle Corporation
java.specification.version 1.8
java.vendor Oracle Corporation
java.vendor.url http://java.oracle.com/
java.vendor.url.bug http://bugreport.sun.com/bugreport/
java.version 1.8.0_121
java.vm.info mixed mode
java.vm.name OpenJDK 64-Bit Server VM
java.vm.specification.name Java Virtual Machine Specification
java.vm.specification.vendor Oracle Corporation
java.vm.specification.version 1.8
java.vm.vendor Oracle Corporation
java.vm.version 25.121-b13
jna.loaded true
jna.platform.library.path /usr/lib/x86_64-linux-gnu:/lib/x86_64-linux-gnu:/lib64:/usr/lib:/lib:/usr/lib/x86_64-linux-gnu/libfakeroot
jnidispatch.path /tmp/jna-3506402/jna6850560045543477174.tmp
line.separator 
mail.smtp.sendpartial true
mail.smtps.sendpartial true
os.arch amd64
os.name Linux
os.version 4.4.0-72-generic
path.separator :
sun.arch.data.model 64
sun.boot.class.path /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/resources.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/rt.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/sunrsasign.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/jsse.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/jce.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/charsets.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/jfr.jar:/usr/lib/jvm/java-8-openjdk-amd64/jre/classes
sun.boot.library.path /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/amd64
sun.cpu.endian little
sun.cpu.isalist 
sun.font.fontmanager sun.awt.X11FontManager
sun.io.unicode.encoding UnicodeLittle
sun.java.command /usr/share/jenkins/jenkins.war
sun.java.launcher SUN_STANDARD
sun.jnu.encoding UTF-8
sun.management.compiler HotSpot 64-Bit Tiered Compilers
sun.os.patch.level unknown
svnkit.http.methods Digest,Basic,NTLM,Negotiate
svnkit.ssh2.persistent false
user.dir /
user.home /root
user.language en
user.name root
user.timezone Europe/Berlin
Environment Variables
Name ↓
Value 
CA_CERTIFICATES_JAVA_VERSION 20161107~bpo8+1
COPY_REFERENCE_FILE_LOG /var/jenkins_home/copy_reference_file.log
HOME /root
HOSTNAME 1bba71b07f7e
JAVA_DEBIAN_VERSION 8u121-b13-1~bpo8+1
JAVA_HOME /usr/lib/jvm/java-8-openjdk-amd64
JAVA_OPTS -Dhudson.model.DirectoryBrowserSupport.CSP
JAVA_VERSION 8u121
JENKINS_HOME /opt/jenkins_home
JENKINS_SLAVE_AGENT_PORT 50000
JENKINS_UC https://updates.jenkins.io
JENKINS_VERSION 2.46.1
LANG C.UTF-8
PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PWD /
SHLVL 0
TINI_SHA afbf8de8a63ce8e4f18cb3f34dfdbbd354af68a1
TINI_VERSION 0.13.2
Plugins
Name ↓
Version 
Enabled 
ace-editor 1.1 true
ansicolor 0.5.0 true
ant 1.4 true
antisamy-markup-formatter 1.5 true
authentication-tokens 1.3 true
bouncycastle-api 2.16.1 true
branch-api 2.0.8 true
build-name-setter 1.6.5 true
build-token-root 1.4 true
built-on-column 1.1 true
cloudbees-folder 6.0.3 true
conditional-buildstep 1.3.5 true
copy-data-to-workspace-plugin 1.0 true
copyartifact 1.38.1 true
credentials 2.1.13 true
credentials-binding 1.11 true
cvs 2.13 true
description-setter 1.10 true
display-url-api 2.0 true
docker-commons 1.6 true
docker-workflow 1.10 true
durable-task 1.13 true
email-ext 2.57.2 true
emailext-template 1.0 true
envinject 2.0 true
external-monitor-job 1.7 true
ez-templates 1.2.5 true
fail-the-build-plugin 1.0 true
ghprb 1.36.2 true
git 3.2.0 true
git-client 2.4.1 true
git-parameter 0.8.0 true
git-server 1.7 true
github 1.27.0 true
github-api 1.85 true
github-branch-source 2.0.5 true
github-organization-folder 1.6 true
google-login 1.3 true
gradle 1.26 true
groovy 2.0 true
groovy-postbuild 2.3.1 true
handlebars 1.1.1 true
htmlpublisher 1.13 true
icon-shim 2.0.3 true
javadoc 1.4 true
jenkins-multijob-plugin 1.24 true
jquery 1.11.2-0 true
jquery-detached 1.2.1 true
junit 1.20 true
ldap 1.14 true
mailer 1.20 true
mapdb-api 1.0.9.0 true
mask-passwords 2.10.1 true
matrix-auth 1.5 true
matrix-project 1.10 true
maven-plugin 2.15.1 true
momentjs 1.1.1 true
pam-auth 1.3 true
parameterized-trigger 2.33 true
pegdown-formatter 1.3 true
pipeline-build-step 2.5 true
pipeline-github-lib 1.0 true
pipeline-graph-analysis 1.3 true
pipeline-input-step 2.5 true
pipeline-milestone-step 1.3.1 true
pipeline-model-api 1.1.2 true
pipeline-model-declarative-agent 1.1.1 true
pipeline-model-definition 1.1.2 true
pipeline-model-extensions 1.1.2 true
pipeline-rest-api 2.6 true
pipeline-stage-step 2.2 true
pipeline-stage-tags-metadata 1.1.2 true
pipeline-stage-view 2.6 true
plain-credentials 1.4 true
rebuild 1.25 true
reverse-proxy-auth-plugin 1.5 false
run-condition 1.0 true
run-condition-extras 0.2 true
scm-api 2.1.1 true
script-security 1.27 true
simple-theme-plugin 0.3 true
ssh-agent 1.15 true
ssh-credentials 1.13 true
ssh-slaves 1.17 true
structs 1.6 true
subversion 2.7.2 true
throttle-concurrents 1.9.0 true
timestamper 1.8.8 true
token-macro 2.1 true
windows-slaves 1.3.1 true
workflow-aggregator 2.5 true
workflow-api 2.13 true
workflow-basic-steps 2.4 true
workflow-cps 2.29 true
workflow-cps-global-lib 2.7 true
workflow-durable-task-step 2.10 true
workflow-job 2.10 true
workflow-multibranch 2.14 true
workflow-scm-step 2.4 true
workflow-step-api 2.9 true
workflow-support 2.14 true
timja commented 7 years ago

ymougenel:

Jenkins connects the master to the slave via a non-interactive shell.
Which means that the unix bash_profile is not loaded, and the LANG variable has to be exported in the bashrc (as explained here)

realfogetti I don't know if you have the same issue, yet since it took me quite some time to notice that the LANG variable was unset despite the locale command result, I thought it might help.

timja commented 2 years ago

[Originally related to: JENKINS-12610]