Closed timja closed 8 years ago
I tried to start it by the normal service command and it took over 3.5hours to start, but it finally booted.
I was able to pull out the logs from jenkins to show how long it takes to starts. See I restarted the daemon around 2:30 and it came up at 3:15.
root@jenkins-02:~# service jenkins restart * Restarting Jenkins Continuous Integration Server jenkins [ OK ] root@jenkins-02:~# root@jenkins-02:~# tail -f /var/log/jenkins/jenkins.log Jul 26, 2016 2:32:50 PM jenkins.InitReactorRunner$1 onAttained INFO: Listed all plugins Jul 26, 2016 2:32:51 PM jenkins.InitReactorRunner$1 onAttained INFO: Prepared all plugins Jul 26, 2016 2:32:51 PM jenkins.InitReactorRunner$1 onAttained INFO: Started all plugins Jul 26, 2016 2:32:51 PM jenkins.InitReactorRunner$1 onAttained INFO: Augmented all extensions Jul 26, 2016 2:32:52 PM jenkins.InitReactorRunner$1 onAttained INFO: Loaded all jobs Jul 26, 2016 3:14:07 PM hudson.model.AsyncPeriodicWork$1 run INFO: Started Download metadata Jul 26, 2016 3:14:07 PM hudson.model.AsyncPeriodicWork$1 run INFO: Finished Download metadata. 6 ms Jul 26, 2016 3:14:07 PM org.jenkinsci.main.modules.sshd.SSHD start INFO: Started SSHD at port 57032 Jul 26, 2016 3:14:07 PM jenkins.InitReactorRunner$1 onAttained INFO: Completed initialization Jul 26, 2016 3:14:07 PM org.springframework.context.support.AbstractApplicationContext prepareRefresh INFO: Refreshing org.springframework.web.context.support.StaticWebApplicationContext@10872d81: display name [Root WebApplicationContext]; startup date [Tue Jul 26 15:14:07 UTC 2016]; root of context hierarchy Jul 26, 2016 3:14:07 PM org.springframework.context.support.AbstractApplicationContext obtainFreshBeanFactory INFO: Bean factory for application context [org.springframework.web.context.support.StaticWebApplicationContext@10872d81]: org.springframework.beans.factory.support.DefaultListableBeanFactory@27206c02 Jul 26, 2016 3:14:07 PM org.springframework.beans.factory.support.DefaultListableBeanFactory preInstantiateSingletons INFO: Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@27206c02: defining beans [authenticationManager]; root of factory hierarchy Jul 26, 2016 3:14:07 PM org.springframework.context.support.AbstractApplicationContext prepareRefresh INFO: Refreshing org.springframework.web.context.support.StaticWebApplicationContext@2f8ee7e8: display name [Root WebApplicationContext]; startup date [Tue Jul 26 15:14:07 UTC 2016]; root of context hierarchy Jul 26, 2016 3:14:07 PM org.springframework.context.support.AbstractApplicationContext obtainFreshBeanFactory INFO: Bean factory for application context [org.springframework.web.context.support.StaticWebApplicationContext@2f8ee7e8]: org.springframework.beans.factory.support.DefaultListableBeanFactory@808d6cc Jul 26, 2016 3:14:07 PM org.springframework.beans.factory.support.DefaultListableBeanFactory preInstantiateSingletons INFO: Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@808d6cc: defining beans [filter,legacy]; root of factory hierarchy Jul 26, 2016 3:14:07 PM jenkins.install.SetupWizard init INFO: ************************************************************* ************************************************************* ************************************************************* Jenkins initial setup is required. An admin user has been created and a password generated. Please use the following password to proceed to installation: b370076a67c341c68c785bb5406bdeae This may also be found at: /var/lib/jenkins/secrets/initialAdminPassword ************************************************************* ************************************************************* ************************************************************* Jul 26, 2016 3:14:09 PM hudson.model.UpdateSite updateData INFO: Obtained the latest update center data file for UpdateSource default Jul 26, 2016 3:14:09 PM hudson.WebAppMain$3 run INFO: Jenkins is fully up and running
There's no obvious bug here.
To find out what Jenkins is doing during startup, especially when appearing to hang, follow these instructions:
https://wiki.jenkins-ci.org/display/JENKINS/Obtaining+a+thread+dump
Hi,
I created the following question on stack overflow and I can't find yet the problem to my jenkins installation. http://serverfault.com/questions/791848/jenkins-hangs-on-startup
If I use the command line
after installing jenkins on ubuntu 14.0 4 using the jenkins debian repository I cannot start the service.
One interesting detail is that there is no jobs and no plugins yet. It is a vanilla install.
In the logs it often stops here:
What is even more strange is that if I manually start the daemon using the following command
Jenkins starts successfully.
How do I find out what is the error behind the scene when it is starting from the service?
Thanks
Dominick
Originally reported by drivard, imported from: Jenkins hangs on startup