Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 591662 - =dev-util/jenkins-bin-2.12: won't start with DNSMultiCast enabled
Summary: =dev-util/jenkins-bin-2.12: won't start with DNSMultiCast enabled
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Patrick Lauer
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-08-19 08:23 UTC by Richard Scott
Modified: 2018-10-26 18:07 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Richard Scott 2016-08-19 08:23:48 UTC
I get this error when starting Jenkins:

Jenkins initial setup is required. An admin user has been created and a password generated.
Please use the following password to proceed to installation:

a096a44e670048c6b955440b3e049a4d

This may also be found at: /var/lib/jenkins/home/secrets/initialAdminPassword

*************************************************************
*************************************************************
*************************************************************

Aug 19, 2016 9:20:28 AM hudson.model.UpdateSite updateData
INFO: Obtained the latest update center data file for UpdateSource default
Aug 19, 2016 9:20:28 AM hudson.WebAppMain$3 run
INFO: Jenkins is fully up and running
Aug 19, 2016 9:20:28 AM hudson.DNSMultiCast$1 call
INFO: Cannot advertise service to DNS multi-cast, skipping: {0}
java.net.BindException: Address already in use
        at java.net.PlainDatagramSocketImpl.bind0(Native Method)
        at java.net.AbstractPlainDatagramSocketImpl.bind(AbstractPlainDatagramSocketImpl.java:96)
        at java.net.DatagramSocket.bind(DatagramSocket.java:397)
        at java.net.MulticastSocket.<init>(MulticastSocket.java:172)
        at java.net.MulticastSocket.<init>(MulticastSocket.java:137)
        at javax.jmdns.impl.JmDNSImpl.openMulticastSocket(JmDNSImpl.java:448)
        at javax.jmdns.impl.JmDNSImpl.<init>(JmDNSImpl.java:420)
        at javax.jmdns.JmDNS.create(JmDNS.java:60)
        at hudson.DNSMultiCast$1.call(DNSMultiCast.java:33)
        at jenkins.util.ContextResettingExecutorService$2.call(ContextResettingExecutorService.java:46)
        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)
Comment 1 Richard Scott 2016-08-19 08:24:46 UTC
I can fix it by adding and uncommenting this line in /etc/conf.d/jenkins:

#
# Options to pass to java when running Jenkins.
#
JENKINS_JAVA_OPTIONS="-Djava.awt.headless=true"
#JENKINS_JAVA_OPTIONS="${JENKINS_JAVA_OPTIONS} -Dhudson.DNSMultiCast.disabled=true"
Comment 2 Patrice Clement gentoo-dev 2016-08-21 15:03:29 UTC
Thanks for the bug report. Which version are you trying to install please?
Comment 3 Richard Scott 2016-08-22 07:56:29 UTC
(In reply to Patrice Clement from comment #2)
> Thanks for the bug report. Which version are you trying to install please?

dev-util/jenkins-bin-2.12
Comment 4 Patrice Clement gentoo-dev 2016-08-22 09:34:23 UTC
OK. By the way, I think you can also switch the "true" flag here:

-Dhudson.DNSMultiCast.disabled=true

to "false" to get to the same result.
Comment 5 Hans de Graaff gentoo-dev Security 2017-04-30 08:49:11 UTC
Is this still an issue with recent versions of jenkins-bin?
Comment 6 Virgil Dupras (RETIRED) gentoo-dev 2018-09-29 00:31:40 UTC
Adjusting assignment to removal of proxy-maintainer.