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

Unable to run code by jenkins

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Getting below error while installing Jenkins : -

       

      C:\Users\Delhivery\Downloads>java -jar jenkins.war -httpport=9090

      Running from: C:\Users\Delhivery\Downloads\jenkins.war

      webroot: $user.home/.jenkins

      2020-11-17 12:45:18.594+0000 [id=1]     INFO    org.eclipse.jetty.util.log.Log#initialized: Logging initialized @731ms to org.eclipse.jetty.util.log.JavaUtilLog

      2020-11-17 12:45:18.875+0000 [id=1]     INFO    winstone.Logger#logInternal: Beginning extraction from war file

      2020-11-17 12:45:18.906+0000 [id=1]     WARNING o.e.j.s.handler.ContextHandler#setContextPath: Empty contextPath

      2020-11-17 12:45:19.000+0000 [id=1]     INFO    org.eclipse.jetty.server.Server#doStart: jetty-9.4.27.v20200227; built: 2020-02-27T18:37:21.340Z; git: a304fd9f351f337e7c0e2a7c28878dd536149c6c; jvm 1.8.0_171-b11

      2020-11-17 12:45:20.531+0000 [id=1]     INFO    o.e.j.w.StandardDescriptorProcessor#visitServlet: NO JSP Support for /, did not find org.eclipse.jetty.jsp.JettyJspServlet

      2020-11-17 12:45:20.625+0000 [id=1]     INFO    o.e.j.s.s.DefaultSessionIdManager#doStart: DefaultSessionIdManager workerName=node0

      2020-11-17 12:45:20.625+0000 [id=1]     INFO    o.e.j.s.s.DefaultSessionIdManager#doStart: No SessionScavenger set, using defaults

      2020-11-17 12:45:20.640+0000 [id=1]     INFO    o.e.j.server.session.HouseKeeper#startScavenging: node0 Scavenging every 660000ms

      2020-11-17 12:45:21.287+0000 [id=1]     INFO    hudson.WebAppMain#contextInitialized: Jenkins home directory: C:\Users\Delhivery\.jenkins found at: $user.home/.jenkins

      2020-11-17 12:45:21.446+0000 [id=1]     INFO    o.e.j.s.handler.ContextHandler#doStart: Started w.@4e0ae11f{Jenkins v2.235.1,/,file:///C:/Users/Delhivery/.jenkins/war/,AVAILABLE}

      {C:\Users\Delhivery\.jenkins\war}

      2020-11-17 12:45:21.465+0000 [id=1]     INFO    o.e.j.server.AbstractConnector#doStop: Stopped ServerConnector@62043840{HTTP/1.1, (http/1.1)}

      {0.0.0.0:8080}

      2020-11-17 12:45:21.466+0000 [id=1]     INFO    o.e.j.server.session.HouseKeeper#stopScavenging: node0 Stopped scavenging

      2020-11-17 12:45:21.477+0000 [id=1]     INFO    hudson.WebAppMain#contextDestroyed: Shutting down a Jenkins instance that was still starting up

      java.lang.Throwable: reason

              at hudson.WebAppMain.contextDestroyed(WebAppMain.java:417)

              at org.eclipse.jetty.server.handler.ContextHandler.callContextDestroyed(ContextHandler.java:940)

              at org.eclipse.jetty.servlet.ServletContextHandler.callContextDestroyed(ServletContextHandler.java:565)

              at org.eclipse.jetty.server.handler.ContextHandler.stopContext(ContextHandler.java:908)

              at org.eclipse.jetty.servlet.ServletContextHandler.stopContext(ServletContextHandler.java:367)

              at org.eclipse.jetty.webapp.WebAppContext.stopWebapp(WebAppContext.java:1450)

              at org.eclipse.jetty.webapp.WebAppContext.stopContext(WebAppContext.java:1415)

              at org.eclipse.jetty.server.handler.ContextHandler.doStop(ContextHandler.java:983)

              at org.eclipse.jetty.servlet.ServletContextHandler.doStop(ServletContextHandler.java:284)

              at org.eclipse.jetty.webapp.WebAppContext.doStop(WebAppContext.java:547)

              at org.eclipse.jetty.util.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:93)

              at org.eclipse.jetty.util.component.ContainerLifeCycle.stop(ContainerLifeCycle.java:180)

              at org.eclipse.jetty.util.component.ContainerLifeCycle.doStop(ContainerLifeCycle.java:201)

              at org.eclipse.jetty.server.handler.AbstractHandler.doStop(AbstractHandler.java:108)

              at org.eclipse.jetty.server.Server.doStop(Server.java:454)

              at org.eclipse.jetty.util.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:93)

              at winstone.Launcher.shutdown(Launcher.java:304)

              at winstone.Launcher.<init>(Launcher.java:195)

              at winstone.Launcher.main(Launcher.java:355)

              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

              at java.lang.reflect.Method.invoke(Method.java:498)

              at Main._main(Main.java:375)

              at Main.main(Main.java:151)

      Exception in thread "Jenkins initialization thread" 2020-11-17 12:45:21.487+0000 [id=1] INFO    o.e.j.s.handler.ContextHandler#doStop: Stopped w.@4e0ae11f{Jenkins v2.235.1,/,null,UNAVAILABLE}

      {C:\Users\Delhivery\.jenkins\war}

      java.lang.NoClassDefFoundError: hudson/util/HudsonFailedToLoad

              at hudson.WebAppMain$3.run(WebAppMain.java:276)

      Caused by: java.lang.ClassNotFoundException: hudson.util.HudsonFailedToLoad

              at java.net.URLClassLoader.findClass(URLClassLoader.java:381)

              at java.lang.ClassLoader.loadClass(ClassLoader.java:424)

              at java.lang.ClassLoader.loadClass(ClassLoader.java:357)

              at org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:543)

              at java.lang.ClassLoader.loadClass(ClassLoader.java:357)

              ... 1 more

      2020-11-17 12:45:21.490+0000 [id=1]     INFO    winstone.Logger#logInternal: Jetty shutdown successfully

      java.io.IOException: Failed to start Jetty

              at winstone.Launcher.<init>(Launcher.java:184)

              at winstone.Launcher.main(Launcher.java:355)

              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

              at java.lang.reflect.Method.invoke(Method.java:498)

              at Main._main(Main.java:375)

              at Main.main(Main.java:151)

      Caused by: java.io.IOException: Failed to bind to 0.0.0.0/0.0.0.0:8080

              at org.eclipse.jetty.server.ServerConnector.openAcceptChannel(ServerConnector.java:346)

              at org.eclipse.jetty.server.ServerConnector.open(ServerConnector.java:307)

              at org.eclipse.jetty.server.AbstractNetworkConnector.doStart(AbstractNetworkConnector.java:80)

              at org.eclipse.jetty.server.ServerConnector.doStart(ServerConnector.java:231)

              at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:72)

              at org.eclipse.jetty.server.Server.doStart(Server.java:385)

              at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:72)

              at winstone.Launcher.<init>(Launcher.java:182)

              ... 7 more

      Caused by: java.net.BindException: Address already in use: bind

              at sun.nio.ch.Net.bind0(Native Method)

              at sun.nio.ch.Net.bind(Net.java:433)

              at sun.nio.ch.Net.bind(Net.java:425)

              at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:223)

              at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74)

              at org.eclipse.jetty.server.ServerConnector.openAcceptChannel(ServerConnector.java:342)

              ... 14 more

      2020-11-17 12:45:21.527+0000 [id=1]     SEVERE  winstone.Logger#logInternal: Container startup failed

      java.net.BindException: Address already in use: bind

              at sun.nio.ch.Net.bind0(Native Method)

              at sun.nio.ch.Net.bind(Net.java:433)

              at sun.nio.ch.Net.bind(Net.java:425)

              at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:223)

              at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74)

              at org.eclipse.jetty.server.ServerConnector.openAcceptChannel(ServerConnector.java:342)

      Caused: java.io.IOException: Failed to bind to 0.0.0.0/0.0.0.0:8080

              at org.eclipse.jetty.server.ServerConnector.openAcceptChannel(ServerConnector.java:346)

              at org.eclipse.jetty.server.ServerConnector.open(ServerConnector.java:307)

              at org.eclipse.jetty.server.AbstractNetworkConnector.doStart(AbstractNetworkConnector.java:80)

              at org.eclipse.jetty.server.ServerConnector.doStart(ServerConnector.java:231)

              at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:72)

              at org.eclipse.jetty.server.Server.doStart(Server.java:385)

              at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:72)

              at winstone.Launcher.<init>(Launcher.java:182)

      Caused: java.io.IOException: Failed to start Jetty

              at winstone.Launcher.<init>(Launcher.java:184)

              at winstone.Launcher.main(Launcher.java:355)

              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

              at java.lang.reflect.Method.invoke(Method.java:498)

              at Main._main(Main.java:375)

              at Main.main(Main.java:151)

       

        Attachments

          Activity

          Hide
          slide_o_mix Alex Earl added a comment -

          Looks like something is already running on port 8080:

           

          Caused: java.io.IOException: Failed to bind to 0.0.0.0/0.0.0.0:8080

                  at org.eclipse.jetty.server.ServerConnector.openAcceptChannel(ServerConnector.java:346)

                  at org.eclipse.jetty.server.ServerConnector.open(ServerConnector.java:307)

                  at org.eclipse.jetty.server.AbstractNetworkConnector.doStart(AbstractNetworkConnector.java:80)

                  at org.eclipse.jetty.server.ServerConnector.doStart(ServerConnector.java:231)

                  at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:72)

                  at org.eclipse.jetty.server.Server.doStart(Server.java:385)

                  at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:72)

                  at winstone.Launcher.<init>(Launcher.java:182)

           

          You'll either need to select a different port (using the --httpPort parameter) or shut down whatever is already running with that port. See here for all the command line options for Jenkins: https://www.jenkins.io/doc/book/installing/initial-settings/

          Show
          slide_o_mix Alex Earl added a comment - Looks like something is already running on port 8080:   Caused:  java.io .IOException: Failed to bind to 0.0.0.0/0.0.0.0:8080         at org.eclipse.jetty.server.ServerConnector.openAcceptChannel(ServerConnector.java:346)         at org.eclipse.jetty.server.ServerConnector.open(ServerConnector.java:307)         at org.eclipse.jetty.server.AbstractNetworkConnector.doStart(AbstractNetworkConnector.java:80)         at org.eclipse.jetty.server.ServerConnector.doStart(ServerConnector.java:231)         at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:72)         at org.eclipse.jetty.server.Server.doStart(Server.java:385)         at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:72)         at winstone.Launcher.<init>(Launcher.java:182)   You'll either need to select a different port (using the --httpPort parameter) or shut down whatever is already running with that port. See here for all the command line options for Jenkins:  https://www.jenkins.io/doc/book/installing/initial-settings/

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            swatantra Swatantra
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: