i am installing jenkins to VM using official document but looks like my 8080 port is being occupied, if i kill the process - my connection refreshes but 8080 doesn’t get free. Jenkins is running fine if i run it in another port but that won’t help me solve the task. Below is the error i am facing:
thor@jumphost ~$ sudo systemctl start jenkins.service
Job for jenkins.service failed because the control process exited with error code.
See “systemctl status jenkins.service” and “journalctl -xeu jenkins.service” for details.
thor@jumphost ~$ journalctl -xeu jenkins.service
Dec 07 16:50:52 host_link jenkins[9560]: Running from: /usr/share/java/jenkins.war
Dec 07 16:50:54 host_link jenkins[9560]: 2024-12-07 16:50:54.263+0000 [id=1] INFO winstone.Logger#logInternal: Beginning extraction from war file
Dec 07 16:50:55 host_link jenkins[9560]: 2024-12-07 16:50:55.783+0000 [id=1] WARNING o.e.j.ee9.nested.ContextHandler#setContextPath: Empty contextPath
Dec 07 16:50:55 host_link jenkins[9560]: 2024-12-07 16:50:55.961+0000 [id=1] INFO org.eclipse.jetty.server.Server#doStart: jetty-12.0.13; built: 2024-09-03T03:04:05.240Z; git: 816018a420329c1cacd4116799cda8c8c60a57cd; jvm 17.0.13+11-LTS
Dec 07 16:50:55 host_link jenkins[9560]: 2024-12-07 16:50:55.971+0000 [id=1] INFO org.eclipse.jetty.server.Server#doStop: Stopped oejs.Server@68df9280{STOPPING}[12.0.13,sto=0]
Dec 07 16:50:55 host_link jenkins[9560]: 2024-12-07 16:50:55.971+0000 [id=1] INFO winstone.Logger#logInternal: Jetty shutdown successfully
Dec 07 16:50:55 host_link jenkins[9560]: java.io.IOException: Failed to start Jetty
Dec 07 16:50:55 host_link jenkins[9560]: at Jenkins Main ClassLoader//winstone.Launcher.(Launcher.java:194)
Dec 07 16:50:55 host_link jenkins[9560]: at Jenkins Main ClassLoader//winstone.Launcher.main(Launcher.java:490)
Dec 07 16:50:55 host_link jenkins[9560]: at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
Dec 07 16:50:55 host_link jenkins[9560]: at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
Dec 07 16:50:55 host_link jenkins[9560]: at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
Dec 07 16:50:55 host_link jenkins[9560]: at java.base/java.lang.reflect.Method.invoke(Method.java:569)
Dec 07 16:50:55 host_link jenkins[9560]: at executable.Main.main(Main.java:335)
Dec 07 16:50:55 host_link jenkins[9560]: Caused by: java.io.IOException: Failed to bind to 0.0.0.0/0.0.0.0:8080
Dec 07 16:50:55 host_link jenkins[9560]: at Jenkins Main ClassLoader//org.eclipse.jetty.server.ServerConnector.openAcceptChannel(ServerConnector.java:349)
Dec 07 16:50:55 host_link jenkins[9560]: at Jenkins Main ClassLoader//org.eclipse.jetty.server.ServerConnector.open(ServerConnector.java:313)
Dec 07 16:50:55 host_link jenkins[9560]: at Jenkins Main ClassLoader//org.eclipse.jetty.server.Server.lambda$doStart$0(Server.java:552)
Dec 07 16:50:55 host_link jenkins[9560]: at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:183)
Dec 07 16:50:55 host_link jenkins[9560]: at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
Dec 07 16:50:55 host_link jenkins[9560]: at java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:179)
Dec 07 16:50:55 host_link jenkins[9560]: at java.base/java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:992)
Dec 07 16:50:55 host_link jenkins[9560]: at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509)
Dec 07 16:50:55 host_link jenkins[9560]: at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
Dec 07 16:50:55 host_link jenkins[9560]: at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:150)
Dec 07 16:50:55 host_link jenkins[9560]: at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:173)
Dec 07 16:50:55 host_link jenkins[9560]: at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
Dec 07 16:50:55 host_link jenkins[9560]: at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:596)
Dec 07 16:50:55 host_link jenkins[9560]: at Jenkins Main ClassLoader//org.eclipse.jetty.server.Server.doStart(Server.java:548)
Dec 07 16:50:55 host_link jenkins[9560]: at Jenkins Main ClassLoader//org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:93)
Dec 07 16:50:55 host_link jenkins[9560]: at Jenkins Main ClassLoader//winstone.Launcher.(Launcher.java:190)
Dec 07 16:50:55 host_link jenkins[9560]: … 6 more
Dec 07 16:50:55 host_link jenkins[9560]: Caused by: java.net.BindException: Address already in use
Dec 07 16:50:55 host_link jenkins[9560]: at java.base/sun.nio.ch.Net.bind0(Native Method)
Dec 07 16:50:55 host_link jenkins[9560]: at java.base/sun.nio.ch.Net.bind(Net.java:555)
Dec 07 16:50:55 host_link jenkins[9560]: at java.base/sun.nio.ch.ServerSocketChannelImpl.netBind(ServerSocketChannelImpl.java:337)
Dec 07 16:50:55 host_link jenkins[9560]: at java.base/sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:294)
Dec 07 16:50:55 host_link jenkins[9560]: at Jenkins Main ClassLoader//org.eclipse.jetty.server.ServerConnector.openAcceptChannel(ServerConnector.java:344)
Dec 07 16:50:55 host_link jenkins[9560]: … 21 more
Dec 07 16:50:55 host_link jenkins[9560]: 2024-12-07 16:50:55.972+0000 [id=1] SEVERE winstone.Logger#logInternal: Container startup failed
Dec 07 16:50:55 host_link jenkins[9560]: java.net.BindException: Address already in use
Dec 07 16:50:55 host_link jenkins[9560]: at java.base/sun.nio.ch.Net.bind0(Native Method)
Dec 07 16:50:55 host_link jenkins[9560]: at java.base/sun.nio.ch.Net.bind(Net.java:555)
Dec 07 16:50:55 host_link jenkins[9560]: at java.base/sun.nio.ch.ServerSocketChannelImpl.netBind(ServerSocketChannelImpl.java:337)
Dec 07 16:50:55 host_link jenkins[9560]: at java.base/sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:294)
Dec 07 16:50:55 host_link jenkins[9560]: at Jenkins Main ClassLoader//org.eclipse.jetty.server.ServerConnector.openAcceptChannel(ServerConnector.java:344)
Dec 07 16:50:55 host_link jenkins[9560]: Caused: java.io.IOException: Failed to bind to 0.0.0.0/0.0.0.0:8080
Dec 07 16:50:55 host_link jenkins[9560]: at Jenkins Main ClassLoader//org.eclipse.jetty.server.ServerConnector.openAcceptChannel(ServerConnector.java:349)
Dec 07 16:50:55 host_link jenkins[9560]: at Jenkins Main ClassLoader//org.eclipse.jetty.server.ServerConnector.open(ServerConnector.java:313)
Dec 07 16:50:55 host_link jenkins[9560]: at Jenkins Main ClassLoader//org.eclipse.jetty.server.Server.lambda$doStart$0(Server.java:552)
Dec 07 16:50:55 host_link jenkins[9560]: at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:183)
Dec 07 16:50:55 host_link jenkins[9560]: at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
Dec 07 16:50:55 host_link jenkins[9560]: at java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:179)
Dec 07 16:50:55 host_link jenkins[9560]: at java.base/java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:992)
Dec 07 16:50:55 host_link jenkins[9560]: at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509)
Dec 07 16:50:55 host_link jenkins[9560]: at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
Dec 07 16:50:55 host_link jenkins[9560]: at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:150)
Dec 07 16:50:55 host_link jenkins[9560]: at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:173)
Dec 07 16:50:55 host_link jenkins[9560]: at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
Dec 07 16:50:55 host_link jenkins[9560]: at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:596)
Dec 07 16:50:55 host_link jenkins[9560]: at Jenkins Main ClassLoader//org.eclipse.jetty.server.Server.doStart(Server.java:548)
Dec 07 16:50:55 host_link jenkins[9560]: at Jenkins Main ClassLoader//org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:93)
Dec 07 16:50:55 host_link jenkins[9560]: at Jenkins Main ClassLoader//winstone.Launcher.(Launcher.java:190)
Dec 07 16:50:55 host_link jenkins[9560]: Caused: java.io.IOException: Failed to start Jetty
Dec 07 16:50:55 host_link jenkins[9560]: at Jenkins Main ClassLoader//winstone.Launcher.(Launcher.java:194)
Dec 07 16:50:55 host_link jenkins[9560]: at Jenkins Main ClassLoader//winstone.Launcher.main(Launcher.java:490)
Dec 07 16:50:55 host_link jenkins[9560]: at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
Dec 07 16:50:55 host_link jenkins[9560]: at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
Dec 07 16:50:55 host_link jenkins[9560]: at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
Dec 07 16:50:55 host_link jenkins[9560]: at java.base/java.lang.reflect.Method.invoke(Method.java:569)
Dec 07 16:50:55 host_link jenkins[9560]: at executable.Main.main(Main.java:335)
Dec 07 16:50:56 host_link systemd[1]: Failed to start Jenkins Continuous Integration Server.
░░ Subject: A start job for unit jenkins.service has failed
░░ Defined-By: systemd
░░ Support: Red Hat Customer Experience & Engagement - Red Hat Customer Portal
░░
░░ A start job for unit jenkins.service has finished with a failure.
░░
░░ The job identifier is 794 and the job result is failed.
Please help me