Details
-
Bug
-
Status: Reopened (View Workflow)
-
Major
-
Resolution: Unresolved
-
None
Description
We have quite a lot of jobs with spaces in the name since upgrading to the 1.14 version from the 1.11 version we encounter the following error:
Fetching upstream changes from origin Commencing build of Revision ae0dcf48e628395417055fe2fc2a6434bf02565d (origin/master) Checking out Revision ae0dcf48e628395417055fe2fc2a6434bf02565d (origin/master) Starting xvnc [Deployit Core] $ vncserver :65 -localhost -nolisten tcp xauth: file /var/lib/jenkins/workspace/Deployit does not exist xauth: (argv):1: unknown command "Core/.Xauthority-2561200615964975228" xauth: file /var/lib/jenkins/workspace/Deployit does not exist xauth: (argv):1: unknown command "Core/.Xauthority-2561200615964975228" Couldn't start Xtightvnc; trying default font path. Please set correct fontPath in the vncserver script. Couldn't start Xtightvnc process. Unrecognized option: Core/.Xauthority-2561200615964975228 use: X [:<display>] [option] -a # mouse acceleration (pixels) -ac disable access control restrictions -audit int set audit trail level -auth file select authorization file bc enable bug compatibility -bs disable any backing store support -c turns off key-click c # key-click volume (0-100) -cc int default color visual class .... -version report Xvnc version on stderr FATAL: Failed to run 'vncserver :37 -localhost -nolisten tcp' (exit code 255), blacklisting display #37; consider checking the "Clean up before start" option java.io.IOException: Failed to run 'vncserver :37 -localhost -nolisten tcp' (exit code 255), blacklisting display #37; consider checking the "Clean up before start" option at hudson.plugins.xvnc.Xvnc.doSetUp(Xvnc.java:107) at hudson.plugins.xvnc.Xvnc.doSetUp(Xvnc.java:104) at hudson.plugins.xvnc.Xvnc.doSetUp(Xvnc.java:104) at hudson.plugins.xvnc.Xvnc.doSetUp(Xvnc.java:104) at hudson.plugins.xvnc.Xvnc.doSetUp(Xvnc.java:104) at hudson.plugins.xvnc.Xvnc.doSetUp(Xvnc.java:104) at hudson.plugins.xvnc.Xvnc.doSetUp(Xvnc.java:104) at hudson.plugins.xvnc.Xvnc.doSetUp(Xvnc.java:104) at hudson.plugins.xvnc.Xvnc.doSetUp(Xvnc.java:104) at hudson.plugins.xvnc.Xvnc.doSetUp(Xvnc.java:104) at hudson.plugins.xvnc.Xvnc.doSetUp(Xvnc.java:104) at hudson.plugins.xvnc.Xvnc.setUp(Xvnc.java:74) at hudson.model.Build$BuildExecution.doRun(Build.java:154) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:584) at hudson.model.Run.execute(Run.java:1575) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:237)
Code changed in jenkins
User: Robert Sandell
Path:
src/main/java/hudson/plugins/xvnc/Xvnc.java
src/main/resources/hudson/plugins/xvnc/Xvnc/global.jelly
src/main/resources/hudson/plugins/xvnc/Xvnc/help-xauthorityInFsRoot.html
src/test/java/hudson/plugins/xvnc/XvncTest.java
http://jenkins-ci.org/commit/xvnc-plugin/1ce66992dbc518d460943b31a640055d4ff9543a
Log:
Configuration for placing the xauthority file in node fs root
Added a configuration option to place the temporary xauthority file
on the fs root of the node instead of the in the build's workspace.
This can be used as a workaround for JENKINS-19139 if the path to
the fs root doesn't contain any spaces but for example the folder
to the job does.