java.io.IOException: Failed to run '/usr/bin/vncserver :51 -geometry 1920x1280' (exit code 98), blacklisting display #51; consider checking the "Clean up before start" option

Jenkins JIRA | David Pärsson | 4 years ago
  1. 0

    We're having issues with failing builds. We're running several builds in parallel on the same Jenkins machine, and many of them use XVNC, and I'm assuming it's related to this. Builds fail several times a day with the following error (though displays might differ, obviously): {code} Starting xvnc [my-build] $ /usr/bin/vncserver :37 -geometry 1920x1280 A VNC server is already running as :37 Starting xvnc [my-build] $ /usr/bin/vncserver :49 -geometry 1920x1280 A VNC server is already running as :49 Starting xvnc [my-build] $ /usr/bin/vncserver :50 -geometry 1920x1280 A VNC server is already running as :50 Starting xvnc [my-build] $ /usr/bin/vncserver :51 -geometry 1920x1280 A VNC server is already running as :51 FATAL: Failed to run '/usr/bin/vncserver :51 -geometry 1920x1280' (exit code 98), blacklisting display #51; consider checking the "Clean up before start" option java.io.IOException: Failed to run '/usr/bin/vncserver :51 -geometry 1920x1280' (exit code 98), blacklisting display #51; consider checking the "Clean up before start" option at hudson.plugins.xvnc.Xvnc.doSetUp(Xvnc.java:100) at hudson.plugins.xvnc.Xvnc.doSetUp(Xvnc.java:98) at hudson.plugins.xvnc.Xvnc.doSetUp(Xvnc.java:98) at hudson.plugins.xvnc.Xvnc.doSetUp(Xvnc.java:98) at hudson.plugins.xvnc.Xvnc.setUp(Xvnc.java:73) at hudson.model.Build$BuildExecution.doRun(Build.java:154) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:592) at hudson.model.Run.execute(Run.java:1557) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:236) {code} To me it seems like displays in use are blacklisted, and this is undesired since we currently don't have any stale locks in {{/tmp/.X11-unix/}} (where our VNC locks are placed). Could locks in {{/tmp/.X*-lock}} and {{/tmp/.X11-unix/X*}} be considered when trying to start a new display? Could we allow more retries than the current 3? Or do you have any other ideas on how to address this issue?

    Jenkins JIRA | 4 years ago | David Pärsson
    java.io.IOException: Failed to run '/usr/bin/vncserver :51 -geometry 1920x1280' (exit code 98), blacklisting display #51; consider checking the "Clean up before start" option
  2. 0

    We're having issues with failing builds. We're running several builds in parallel on the same Jenkins machine, and many of them use XVNC, and I'm assuming it's related to this. Builds fail several times a day with the following error (though displays might differ, obviously): {code} Starting xvnc [my-build] $ /usr/bin/vncserver :37 -geometry 1920x1280 A VNC server is already running as :37 Starting xvnc [my-build] $ /usr/bin/vncserver :49 -geometry 1920x1280 A VNC server is already running as :49 Starting xvnc [my-build] $ /usr/bin/vncserver :50 -geometry 1920x1280 A VNC server is already running as :50 Starting xvnc [my-build] $ /usr/bin/vncserver :51 -geometry 1920x1280 A VNC server is already running as :51 FATAL: Failed to run '/usr/bin/vncserver :51 -geometry 1920x1280' (exit code 98), blacklisting display #51; consider checking the "Clean up before start" option java.io.IOException: Failed to run '/usr/bin/vncserver :51 -geometry 1920x1280' (exit code 98), blacklisting display #51; consider checking the "Clean up before start" option at hudson.plugins.xvnc.Xvnc.doSetUp(Xvnc.java:100) at hudson.plugins.xvnc.Xvnc.doSetUp(Xvnc.java:98) at hudson.plugins.xvnc.Xvnc.doSetUp(Xvnc.java:98) at hudson.plugins.xvnc.Xvnc.doSetUp(Xvnc.java:98) at hudson.plugins.xvnc.Xvnc.setUp(Xvnc.java:73) at hudson.model.Build$BuildExecution.doRun(Build.java:154) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:592) at hudson.model.Run.execute(Run.java:1557) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:236) {code} To me it seems like displays in use are blacklisted, and this is undesired since we currently don't have any stale locks in {{/tmp/.X11-unix/}} (where our VNC locks are placed). Could locks in {{/tmp/.X*-lock}} and {{/tmp/.X11-unix/X*}} be considered when trying to start a new display? Could we allow more retries than the current 3? Or do you have any other ideas on how to address this issue?

    Jenkins JIRA | 4 years ago | David Pärsson
    java.io.IOException: Failed to run '/usr/bin/vncserver :51 -geometry 1920x1280' (exit code 98), blacklisting display #51; consider checking the "Clean up before start" option
  3. 0

    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: {code} 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}

    Jenkins JIRA | 3 years ago | Ric Klaren
    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
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Enabling the NodeJS plugin on a job that has the Xvnc plugin enabled results in a broken Xvnc plugin. The following log is from such a build: {code:java} ... Starting xvnc [TEST-nodejs-xvnc] $ /usr/bin/vncserver :76 -geometry 1920x1280 /usr/bin/env: perl: No such file or directory Starting xvnc [TEST-nodejs-xvnc] $ /usr/bin/vncserver :46 -geometry 1920x1280 /usr/bin/env: perl: No such file or directory Starting xvnc ... FATAL: Failed to run '/usr/bin/vncserver :22 -geometry 1920x1280' (exit code 127), blacklisting display #22; consider checking the "Clean up before start" option java.io.IOException: Failed to run '/usr/bin/vncserver :22 -geometry 1920x1280' (exit code 127), blacklisting display #22; consider checking the "Clean up before start" option at hudson.plugins.xvnc.Xvnc.doSetUp(Xvnc.java:119) at hudson.plugins.xvnc.Xvnc.doSetUp(Xvnc.java:116) at hudson.plugins.xvnc.Xvnc.doSetUp(Xvnc.java:116) at hudson.plugins.xvnc.Xvnc.doSetUp(Xvnc.java:116) at hudson.plugins.xvnc.Xvnc.doSetUp(Xvnc.java:116) at hudson.plugins.xvnc.Xvnc.doSetUp(Xvnc.java:116) at hudson.plugins.xvnc.Xvnc.doSetUp(Xvnc.java:116) at hudson.plugins.xvnc.Xvnc.doSetUp(Xvnc.java:116) at hudson.plugins.xvnc.Xvnc.doSetUp(Xvnc.java:116) at hudson.plugins.xvnc.Xvnc.doSetUp(Xvnc.java:116) at hudson.plugins.xvnc.Xvnc.doSetUp(Xvnc.java:116) at hudson.plugins.xvnc.Xvnc.setUp(Xvnc.java:79) at hudson.model.Build$BuildExecution.doRun(Build.java:154) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:533) at hudson.model.Run.execute(Run.java:1758) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:89) at hudson.model.Executor.run(Executor.java:240) {code} At first I thought that this was a PATH issue, but the Xvnc plugin works if I disable the NodeJS plugin and use the EnvInject plugin to set the PATH to what the NodeJS plugin would set it to.

    Jenkins JIRA | 2 years ago | David Pärsson
    java.io.IOException: Failed to run '/usr/bin/vncserver :22 -geometry 1920x1280' (exit code 127), blacklisting display #22; consider checking the "Clean up before start" option
  6. 0

    [JIRA] [nodejs-plugin] (JENKINS-28578) The NodeJS plugin breaks the Xvnc plugin

    Google Groups | 2 years ago | david....@gmail.com (JIRA)
    java.io.IOException: Failed to run '/usr/bin/vncserver :22 -geometry 1920x1280' (exit code 127), blacklisting display #22; consider checking the <span class="code-quote" style="color: #009100">&quot;Clean up before start&quot;</span> option

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.io.IOException

      Failed to run '/usr/bin/vncserver :51 -geometry 1920x1280' (exit code 98), blacklisting display #51; consider checking the "Clean up before start" option

      at hudson.plugins.xvnc.Xvnc.doSetUp()
    2. hudson.plugins.xvnc
      Xvnc.setUp
      1. hudson.plugins.xvnc.Xvnc.doSetUp(Xvnc.java:100)
      2. hudson.plugins.xvnc.Xvnc.doSetUp(Xvnc.java:98)
      3. hudson.plugins.xvnc.Xvnc.doSetUp(Xvnc.java:98)
      4. hudson.plugins.xvnc.Xvnc.doSetUp(Xvnc.java:98)
      5. hudson.plugins.xvnc.Xvnc.setUp(Xvnc.java:73)
      5 frames
    3. Hudson
      Executor.run
      1. hudson.model.Build$BuildExecution.doRun(Build.java:154)
      2. hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:592)
      3. hudson.model.Run.execute(Run.java:1557)
      4. hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
      5. hudson.model.ResourceController.execute(ResourceController.java:88)
      6. hudson.model.Executor.run(Executor.java:236)
      6 frames