Bug 499487 - [Papyrus][hudson]: xnvc All available display numbers are allocated
Summary: [Papyrus][hudson]: xnvc All available display numbers are allocated
Status: CLOSED FIXED
Alias: None
Product: Community
Classification: Eclipse Foundation
Component: CI-Jenkins (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: CI Admin Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-08-10 04:08 EDT by Francois Le Fevre CLA
Modified: 2018-01-02 16:22 EST (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Francois Le Fevre CLA 2016-08-10 04:08:47 EDT
Dear Hudson manager,
we have several jobs that are failing due to "All available display numbers are allocated"



Extra tests build are failing for neon with the following message, did anyone ever got something similar?
 
Checkout:workspace / /home/hudson/genie.papyrus/.hudson/jobs/Papyrus-Neon-Extra-Tests/workspace - hudson.remoting.LocalChannel@68f4bd45
Using strategy: Default
Git Exe: git
Last Built Revision: Revision 51c0baf5ff04ad6407acfd00cb245b5f48caf72d (origin/streams/2.0-maintenance)
Checkout:source / /home/hudson/genie.papyrus/.hudson/jobs/Papyrus-Neon-Extra-Tests/workspace/source - hudson.remoting.LocalChannel@68f4bd45
Fetching changes from the remote Git repository
Fetching upstream changes from /gitroot/papyrus/org.eclipse.papyrus.git
Commencing build of Revision f9a89f1251398cfbdcf5d3bbc9f921ae25a2ea64 (origin/streams/2.0-maintenance)
Checking out Revision f9a89f1251398cfbdcf5d3bbc9f921ae25a2ea64 (origin/streams/2.0-maintenance)
Cleaning workspace
FATAL: All available display numbers are allocated or blacklisted.
allocated: [728, 729, 720, 721, 722, 723, 724, 725, 726, 727]
blacklisted: []
java.lang.RuntimeException: All available display numbers are allocated or blacklisted.
allocated: [728, 729, 720, 721, 722, 723, 724, 725, 726, 727]
blacklisted: []
          at hudson.plugins.xvnc.DisplayAllocator.doAllocate(DisplayAllocator.java:59)
          at hudson.plugins.xvnc.DisplayAllocator.allocate(DisplayAllocator.java:49)
          at hudson.plugins.xvnc.Xvnc.doSetUp(Xvnc.java:84)
          at hudson.plugins.xvnc.Xvnc.setUp(Xvnc.java:74)
          at hudson.model.Build$RunnerImpl.doRun(Build.java:129)
          at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:524)
          at hudson.model.Run.run(Run.java:1495)
          at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:44)
          at hudson.model.ResourceController.execute(ResourceController.java:82)
          at hudson.model.Executor.run(Executor.java:137)
Comment 1 Frederic Gurr CLA 2016-08-10 08:51:23 EDT
I have reset the allocated display numbers. If this issue occurs more frequently there might be a bug in the xvnc plugin.
Comment 2 Benoit Maggi CLA 2016-11-22 08:13:45 EST
Hi,

The problem seems to be back.

It may be due to some admistrative task, cross-project is talking about "'hipp9' host was restarted"

I restarted Papyrus HIPP but the problem is still here.

See this failing job
https://hudson.eclipse.org/papyrus/view/Sysml/job/papyrus-sysml-neon/191/console

Can you reset allocated display numbers again?

Regards,
Comment 3 Frederic Gurr CLA 2016-11-22 08:42:15 EST
Fixed.
Comment 4 Quentin Le Menez CLA 2016-11-22 10:48:10 EST
(In reply to Frederic Gurr from comment #3)
> Fixed.

Yep its back, Thanks :)
Comment 5 Quentin Le Menez CLA 2017-06-12 13:04:28 EDT
Hi,

The problem is once again back [1]. It has been some time since the last failure but I was wondering if, given your vision on the other projects and how often this might have happened, I should post it as a bug on the xvnc plugin ?

Anyway could you reset the allocated numbers again please ? ^^'

Thanks,
Quentin

[1] https://hudson.eclipse.org/papyrus/view/Oxygen%20(Master)/job/Papyrus-Master-Extra-Tests/lastBuild/console
Comment 6 Quentin Le Menez CLA 2017-06-13 03:51:02 EDT
Alternatively, if there is something we can do/run on our end each time we face this problem I would be happy to know it instead of asking for your intervention every time ;)
Comment 7 Frederic Gurr CLA 2017-06-13 06:19:06 EDT
The job works again.

Unfortunately there is nothing you can do on your end. This error should go away once the Papyrus HIPP is migrated to Jenkins (which uses a more recent version of the xvnc-plugin). In the meantime it needs to be fixed manually.
Comment 8 Quentin Le Menez CLA 2017-06-13 06:40:48 EDT
Yes it works again thanks :)

Reading the internets I found out that what had to be done is to remove the locked numbers from the Xvnc.xml file but it had to be done after shuting down Hudson and needed an access to our Home. As I fear that the home/plugins are shared I was wondering if we had any access to that at all ^^'
Comment 9 Frederic Gurr CLA 2017-06-13 06:43:14 EDT
Only admins have access to Hudson home directories. Sorry.
Comment 11 Frederic Gurr CLA 2017-07-21 05:40:00 EDT
Different HIPP, but similar problem. It's fixed now.
Comment 12 Quentin Le Menez CLA 2018-01-02 15:24:38 EST
I again,
Same problem that fails multiple builds. We'll try to move to jenkins this year as soon as possible but in the meantime could you please fix it ?

Thanks,
Quentin
Comment 13 Frederic Gurr CLA 2018-01-02 16:22:35 EST
Fixed again.