Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-23023

Address already in use when starting Jenkins in daemon mode with JMX SNMP adaptor

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • core
    • Linux RHEL 6
      java version "1.8.0"
      Java(TM) SE Runtime Environment (build 1.8.0-b132)
      Java HotSpot(TM) 64-Bit Server VM (build 25.0-b70, mixed mode)

      Jenkins daemon fails to start when JMX monitoring via SNMP is enabled with args:
      -Dcom.sun.management.snmp.interface=127.0.0.1
      -Dcom.sun.management.snmp.acl=false
      -Dcom.sun.management.snmp.port=16501

      It fails with the followinf error:
      Error: Failed to start SNMP adaptor with address: /127.0.0.1:16501 (Address already in use)

      I am running Jenkins with the following command line fails:
      /etc/alternatives/java -Djava.awt.headless=true -Dhudson.plugins.tmpcleaner.TmpCleanWork.minutes=360 -Dhudson.plugins.tmpcleaner.TmpCleanWork.days=1 -Dcom.sun.management.snmp.interface=10.120.230.20 -Dcom.sun.management.snmp.acl=false -Dcom.sun.management.snmp.port=1651 -DJENKINS_HOME=/var/lib/jenkins -jar /usr/lib/jenkins/jenkins.war --logfile=/var/log/jenkins/jenkins.log --webroot=/var/cache/jenkins/war --daemon --httpPort=8081 --ajp13Port=8009 --debug=2 --handlerCountMax=100 --handlerCountMaxIdle=20

      It works taking away the --daemon option and running it in foreground.
      This bug seems to be the same as this one: https://issues.jenkins-ci.org/browse/JENKINS-14529

            Unassigned Unassigned
            mtizzoni Marco Tizzoni
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: