Category Archives: jenkin

Jenkins address already in use on Linux

Problem : Address already in use in Jenkins. Failed to start Jetty
        at winstone.Launcher.<init>(
        at winstone.Launcher.main(
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(
        at java.lang.reflect.Method.invoke(
        at Main._main(
        at Main.main(
Caused by: Address already in use
        at Method)
        at org.eclipse.jetty.server.AbstractNetworkConnector.doStart(
        at org.eclipse.jetty.server.ServerConnector.doStart(
        at org.eclipse.jetty.util.component.AbstractLifeCycle.start(
        at org.eclipse.jetty.server.Server.doStart(
        at org.eclipse.jetty.util.component.AbstractLifeCycle.start(
        at winstone.Launcher.<init>(
        ... 7 more

Solution :

lsof -i tcp:8080

This should list pids for applications using port 8080. Once you have the pid you can kill the process with kill command

kill -9 <PID> #where <PID> is the process id returned by lsof

This will solve the problem.

97 total views, no views today