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

Jenkins crashes on loading the websocket if port 8081 is unavailable

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • websocket-plugin
    • None

      We have another service running on 8081 on a jenkins-master. Enabling the Websocket Plugin leads to a crash after restart with the stack trace [1].

      The config does not contain any entries for the plugin yet, so no manual change of the port is possible (without guessing the correct xml).

      Cheers,

      Igor

      [1] Stack trace on start:
      org.jvnet.hudson.reactor.ReactorException: java.lang.Error: java.lang.reflect.InvocationTargetException
      at org.jvnet.hudson.reactor.Reactor.execute(Reactor.java:246)
      at hudson.model.Hudson.executeReactor(Hudson.java:753)
      at hudson.model.Hudson.<init>(Hudson.java:667)
      at hudson.model.Hudson.<init>(Hudson.java:607)
      at hudson.WebAppMain$2.run(WebAppMain.java:215)
      Caused by: java.lang.Error: java.lang.reflect.InvocationTargetException
      at hudson.init.InitializerFinder.invoke(InitializerFinder.java:114)
      at hudson.init.InitializerFinder$TaskImpl.run(InitializerFinder.java:174)
      at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:259)
      at hudson.model.Hudson$4.runTask(Hudson.java:735)
      at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:187)
      at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:94)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      at java.lang.Thread.run(Thread.java:662)
      Caused by: java.lang.reflect.InvocationTargetException
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at hudson.init.InitializerFinder.invoke(InitializerFinder.java:110)
      ... 8 more
      Caused by: org.jboss.netty.channel.ChannelException: Failed to bind to: 0.0.0.0/0.0.0.0:8081
      at org.jboss.netty.bootstrap.ServerBootstrap.bind(ServerBootstrap.java:303)
      at org.webbitserver.netty.NettyWebServer.start(NettyWebServer.java:141)
      at org.webbitserver.netty.NettyWebServer.start(NettyWebServer.java:36)
      at org.codefirst.jenkins.wsnotifier.WsServer.reset(WsServer.java:40)
      at org.codefirst.jenkins.wsnotifier.WsServer.init(WsServer.java:23)
      ... 13 more
      Caused by: java.net.BindException: Address already in use
      at sun.nio.ch.Net.bind(Native Method)
      at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:119)
      at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:59)
      at org.jboss.netty.channel.socket.nio.NioServerSocketPipelineSink.bind(NioServerSocketPipelineSink.java:148)
      at org.jboss.netty.channel.socket.nio.NioServerSocketPipelineSink.handleServerSocket(NioServerSocketPipelineSink.java:100)
      at org.jboss.netty.channel.socket.nio.NioServerSocketPipelineSink.eventSunk(NioServerSocketPipelineSink.java:74)
      at org.jboss.netty.channel.Channels.bind(Channels.java:468)
      at org.jboss.netty.channel.AbstractChannel.bind(AbstractChannel.java:200)
      at org.jboss.netty.bootstrap.ServerBootstrap$Binder.channelOpen(ServerBootstrap.java:348)
      at org.jboss.netty.channel.Channels.fireChannelOpen(Channels.java:176)
      at org.jboss.netty.channel.socket.nio.NioServerSocketChannel.<init>(NioServerSocketChannel.java:85)
      at org.jboss.netty.channel.socket.nio.NioServerSocketChannelFactory.newChannel(NioServerSocketChannelFactory.java:142)
      at org.jboss.netty.channel.socket.nio.NioServerSocketChannelFactory.newChannel(NioServerSocketChannelFactory.java:90)
      at org.jboss.netty.bootstrap.ServerBootstrap.bind(ServerBootstrap.java:282)
      ... 17 more

            mzp mzp
            iigorr Igor Lankin
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated: