Jenkins not getting started on linux

324 views
Skip to first unread message

Syed Shadab

unread,
Mar 3, 2017, 6:04:39 AM3/3/17
to Jenkins Users
Hi

I have installed jenkins via java -jar jenkins but its is not getting started. But same war is working fine on other server. I have highlighted the difference in RED what is the difference between logs where it is working and where it is not working.

I am using jdk1.6 and linux Red Hat

In log no error is coming, below are the logs of the server where jenkins is not working:-

Running from: /home/TCS/Jenkins/installer/jenkins.war
webroot: EnvVars.masterEnvVars.get("JENKINS_HOME")
Mar 3, 2017 3:27:10 PM org.eclipse.jetty.util.log.JavaUtilLog info
INFO: jetty-8.y.z-SNAPSHOT
Mar 3, 2017 3:27:10 PM org.eclipse.jetty.util.log.JavaUtilLog info
INFO: Extract jar:file:/home/TCS/Jenkins/installer/jenkins.war!/ to /tmp/jetty-0.0.0.0-8080-jenkins.war--any-/webapp
Mar 3, 2017 3:27:13 PM org.eclipse.jetty.util.log.JavaUtilLog info
INFO: NO JSP Support for , did not find org.apache.jasper.servlet.JspServlet
Jenkins home directory: /home/TCS/Jenkins/installedApp found at: EnvVars.masterEnvVars.get("JENKINS_HOME")
Mar 3, 2017 3:27:13 PM org.eclipse.jetty.util.log.JavaUtilLog info
INFO: Started SelectChann...@0.0.0.0:8080
Mar 3, 2017 3:27:13 PM winstone.Logger logInternal
INFO: Winstone Servlet Engine v2.0 running: controlPort=disabled
Mar 3, 2017 3:27:13 PM jenkins.InitReactorRunner$1 onAttained
INFO: Started initialization
Mar 3, 2017 3:27:19 PM jenkins.InitReactorRunner$1 onAttained
INFO: Listed all plugins
Mar 3, 2017 3:27:19 PM jenkins.InitReactorRunner$1 onAttained
INFO: Prepared all plugins
Mar 3, 2017 3:27:19 PM jenkins.InitReactorRunner$1 onAttained
INFO: Started all plugins
Mar 3, 2017 3:27:19 PM jenkins.InitReactorRunner$1 onAttained
INFO: Augmented all extensions
Mar 3, 2017 3:27:19 PM jenkins.InitReactorRunner$1 onAttained
INFO: Loaded all jobs
Mar 3, 2017 3:27:21 PM org.jenkinsci.main.modules.sshd.SSHD start
INFO: Started SSHD at port 52714
Mar 3, 2017 3:27:21 PM jenkins.InitReactorRunner$1 onAttained
INFO: Completed initialization
Mar 3, 2017 3:27:21 PM hudson.TcpSlaveAgentListener <init>
INFO: JNLP slave agent listener started on TCP port 59866
Mar 3, 2017 3:27:21 PM hudson.WebAppMain$3 run
INFO: Jenkins is fully up and running
./start.sh: line 3: 22682 Killed                  java -jar /home/TCS/Jenkins/installer/jenkins.war
Running from: /home/TCS/Jenkins/installer/jenkins.war
webroot: EnvVars.masterEnvVars.get("JENKINS_HOME")
Mar 3, 2017 3:31:24 PM org.eclipse.jetty.util.log.JavaUtilLog info
INFO: jetty-8.y.z-SNAPSHOT
Mar 3, 2017 3:31:24 PM org.eclipse.jetty.util.log.JavaUtilLog info
INFO: Extract jar:file:/home/TCS/Jenkins/installer/jenkins.war!/ to /tmp/jetty-0.0.0.0-8080-jenkins.war--any-/webapp
Mar 3, 2017 3:31:26 PM org.eclipse.jetty.util.log.JavaUtilLog info
INFO: NO JSP Support for , did not find org.apache.jasper.servlet.JspServlet
Jenkins home directory: /home/TCS/Jenkins/installedApp found at: EnvVars.masterEnvVars.get("JENKINS_HOME")
Mar 3, 2017 3:31:26 PM org.eclipse.jetty.util.log.JavaUtilLog info
INFO: Started SelectChann...@0.0.0.0:8080
Mar 3, 2017 3:31:26 PM winstone.Logger logInternal
INFO: Winstone Servlet Engine v2.0 running: controlPort=disabled
Mar 3, 2017 3:31:26 PM jenkins.InitReactorRunner$1 onAttained
INFO: Started initialization
Mar 3, 2017 3:31:26 PM jenkins.InitReactorRunner$1 onAttained
INFO: Listed all plugins
Mar 3, 2017 3:31:26 PM jenkins.InitReactorRunner$1 onAttained
INFO: Prepared all plugins
Mar 3, 2017 3:31:26 PM jenkins.InitReactorRunner$1 onAttained
INFO: Started all plugins
Mar 3, 2017 3:31:26 PM jenkins.InitReactorRunner$1 onAttained
INFO: Augmented all extensions
Mar 3, 2017 3:31:26 PM jenkins.InitReactorRunner$1 onAttained
INFO: Loaded all jobs
Mar 3, 2017 3:31:28 PM org.jenkinsci.main.modules.sshd.SSHD start
INFO: Started SSHD at port 42722
Mar 3, 2017 3:31:28 PM jenkins.InitReactorRunner$1 onAttained
INFO: Completed initialization
Mar 3, 2017 3:31:28 PM hudson.TcpSlaveAgentListener <init>
INFO: JNLP slave agent listener started on TCP port 35884
Mar 3, 2017 3:31:28 PM hudson.WebAppMain$3 run
INFO: Jenkins is fully up and running

Below are the logs where Jenkins is working fine:-

Running from: /home/01HW844377/Jenkins/installer/jenkins.war
webroot: EnvVars.masterEnvVars.get("JENKINS_HOME")
Mar 3, 2017 2:17:05 PM org.eclipse.jetty.util.log.JavaUtilLog info
INFO: jetty-8.y.z-SNAPSHOT
Mar 3, 2017 2:17:05 PM org.eclipse.jetty.util.log.JavaUtilLog info
INFO: Extract jar:file:/home/01HW844377/Jenkins/installer/jenkins.war!/ to /tmp/jetty-0.0.0.0-8080-jenkins.war--any-/webapp
Mar 3, 2017 2:17:08 PM org.eclipse.jetty.util.log.JavaUtilLog info
INFO: NO JSP Support for , did not find org.apache.jasper.servlet.JspServlet
Jenkins home directory: /home/01HW844377/.Jenkins/installedApp found at: EnvVars.masterEnvVars.get("JENKINS_HOME")
Mar 3, 2017 2:17:08 PM org.eclipse.jetty.util.log.JavaUtilLog info
INFO: Started SelectChann...@0.0.0.0:8080
Mar 3, 2017 2:17:08 PM winstone.Logger logInternal
INFO: Winstone Servlet Engine v2.0 running: controlPort=disabled
Mar 3, 2017 2:17:09 PM jenkins.InitReactorRunner$1 onAttained
INFO: Started initialization
Mar 3, 2017 2:17:09 PM jenkins.InitReactorRunner$1 onAttained
INFO: Listed all plugins
Mar 3, 2017 2:17:09 PM jenkins.InitReactorRunner$1 onAttained
INFO: Prepared all plugins
Mar 3, 2017 2:17:09 PM jenkins.InitReactorRunner$1 onAttained
INFO: Started all plugins
Mar 3, 2017 2:17:09 PM jenkins.InitReactorRunner$1 onAttained
INFO: Augmented all extensions
Mar 3, 2017 2:17:10 PM jenkins.InitReactorRunner$1 onAttained
INFO: Loaded all jobs
Mar 3, 2017 2:17:12 PM org.springframework.web.context.support.StaticWebApplicationContext prepareRefresh
INFO: Refreshing org.springframework.web.context.support.StaticWebApplicationContext@b481ba: display name [Root WebApplicationContext]; startup date [Fri Mar 03 14:17:12 IST 2017]; root of context hierarchy
Mar 3, 2017 2:17:12 PM org.springframework.web.context.support.StaticWebApplicationContext obtainFreshBeanFactory
INFO: Bean factory for application context [org.springframework.web.context.support.StaticWebApplicationContext@b481ba]: org.springframework.beans.factory.support.DefaultListableBeanFactory@1fee2db
Mar 3, 2017 2:17:12 PM org.springframework.beans.factory.support.DefaultListableBeanFactory preInstantiateSingletons
INFO: Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@1fee2db: defining beans [authenticationManager]; root of factory hierarchy
Mar 3, 2017 2:17:12 PM org.springframework.web.context.support.StaticWebApplicationContext prepareRefresh
INFO: Refreshing org.springframework.web.context.support.StaticWebApplicationContext@f2a0ef: display name [Root WebApplicationContext]; startup date [Fri Mar 03 14:17:12 IST 2017]; root of context hierarchy
Mar 3, 2017 2:17:12 PM org.springframework.web.context.support.StaticWebApplicationContext obtainFreshBeanFactory
INFO: Bean factory for application context [org.springframework.web.context.support.StaticWebApplicationContext@f2a0ef]: org.springframework.beans.factory.support.DefaultListableBeanFactory@6d3ca2
Mar 3, 2017 2:17:12 PM org.springframework.beans.factory.support.DefaultListableBeanFactory preInstantiateSingletons
INFO: Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@6d3ca2: defining beans [filter,legacy]; root of factory hierarchy

Mar 3, 2017 2:17:12 PM org.jenkinsci.main.modules.sshd.SSHD start
INFO: Started SSHD at port 28550
Mar 3, 2017 2:17:12 PM jenkins.InitReactorRunner$1 onAttained
INFO: Completed initialization
Mar 3, 2017 2:17:12 PM hudson.TcpSlaveAgentListener <init>
INFO: JNLP slave agent listener started on TCP port 28777
Mar 3, 2017 2:17:12 PM hudson.WebAppMain$3 run
INFO: Jenkins is fully up and running

Fritz Elfert

unread,
Mar 3, 2017, 6:56:15 AM3/3/17
to jenkins...@googlegroups.com
Replies inline ...

On 03.03.2017 12:04, Syed Shadab wrote:
> Hi
>
> I have installed jenkins via java -jar jenkins but its is not getting
> started. But same war is working fine on other server. I have
> highlighted the difference in RED what is the difference between logs
> where it is working and where it is not working.
>
> I am using jdk1.6 and linux Red Hat
Really jdk1.6? Jenkins requires >= 1.7

>
> In log no error is coming, below are the logs of the server where
> jenkins is not working:-
[...]

Well, maybe you overlooked this:
[...]
> INFO: JNLP slave agent listener started on TCP port 59866
> Mar 3, 2017 3:27:21 PM hudson.WebAppMain$3 run
> INFO: Jenkins is fully up and running
> ./start.sh: line 3: 22682 Killed java -jar
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

This looks suspiciously like Linux-OOM-Killer has killed your java
process. So maybe your machine has not enough memory.

-Fritz


signature.asc
Reply all
Reply to author
Forward
0 new messages