Home > Back-end >  Please wait while Jenkins is getting ready to work on docker container
Please wait while Jenkins is getting ready to work on docker container

Time:02-17

I'm running jenkins as a container on my ubuntu machine:

docker run -d -p 8080:8080 -p 50000:50000 -v jenkins_home:/var/jenkins_home --name jenkins jenkins:2.60.3

but when I go to 0.0.0.0:8080 it shows the Please wait while Jenkins is getting ready to work... message.

I waited over an hour and it still shows that message.

I tried to restart my container many times and refreshed my browser but nothing changed. I also removed my browser cache.

I read several resources about the problem including please wait while jenkins is restarting- waiting long but it did not help.

Here are my container logs:

Running from: /usr/share/jenkins/jenkins.war
webroot: EnvVars.masterEnvVars.get("JENKINS_HOME")
Feb 12, 2022 7:49:59 AM Main deleteWinstoneTempContents
WARNING: Failed to delete the temporary Winstone file /tmp/winstone/jenkins.war
Feb 12, 2022 7:49:59 AM org.eclipse.jetty.util.log.JavaUtilLog info
INFO: Logging initialized @313ms
Feb 12, 2022 7:49:59 AM winstone.Logger logInternal
INFO: Beginning extraction from war file
Feb 12, 2022 7:50:00 AM org.eclipse.jetty.util.log.JavaUtilLog warn
WARNING: Empty contextPath
Feb 12, 2022 7:50:00 AM org.eclipse.jetty.util.log.JavaUtilLog info
INFO: jetty-9.2.z-SNAPSHOT
Feb 12, 2022 7:50:00 AM org.eclipse.jetty.util.log.JavaUtilLog info
INFO: NO JSP Support for /, did not find org.eclipse.jetty.jsp.JettyJspServlet
Jenkins home directory: /var/jenkins_home found at: EnvVars.masterEnvVars.get("JENKINS_HOME")
Feb 12, 2022 7:50:01 AM org.eclipse.jetty.util.log.JavaUtilLog info
INFO: Started w.@47404bea{/,file:/var/jenkins_home/war/,AVAILABLE}{/var/jenkins_home/war}
Feb 12, 2022 7:50:01 AM org.eclipse.jetty.util.log.JavaUtilLog info
INFO: Started ServerConnector@1252b961{HTTP/1.1}{0.0.0.0:8080}
Feb 12, 2022 7:50:01 AM org.eclipse.jetty.util.log.JavaUtilLog info
INFO: Started @1903ms
Feb 12, 2022 7:50:01 AM winstone.Logger logInternal
INFO: Winstone Servlet Engine v2.0 running: controlPort=disabled
Feb 12, 2022 7:50:01 AM jenkins.InitReactorRunner$1 onAttained
INFO: Started initialization
Feb 12, 2022 7:50:01 AM jenkins.InitReactorRunner$1 onAttained
INFO: Listed all plugins
Feb 12, 2022 7:50:02 AM jenkins.InitReactorRunner$1 onAttained
INFO: Prepared all plugins
Feb 12, 2022 7:50:02 AM jenkins.InitReactorRunner$1 onAttained
INFO: Started all plugins
Feb 12, 2022 7:50:02 AM jenkins.InitReactorRunner$1 onAttained
INFO: Augmented all extensions
Feb 12, 2022 7:50:03 AM jenkins.InitReactorRunner$1 onAttained
INFO: Loaded all jobs
Feb 12, 2022 7:50:03 AM hudson.model.AsyncPeriodicWork$1 run
INFO: Started Download metadata
Feb 12, 2022 7:50:03 AM jenkins.util.groovy.GroovyHookScript execute
INFO: Executing /var/jenkins_home/init.groovy.d/tcp-slave-agent-port.groovy
Feb 12, 2022 7:50:03 AM jenkins.InitReactorRunner$1 onAttained
INFO: Completed initialization
Feb 12, 2022 7:50:03 AM org.springframework.context.support.AbstractApplicationContext prepareRefresh
INFO: Refreshing org.springframework.web.context.support.StaticWebApplicationContext@67a08669: display name [Root WebApplicationContext]; startup date [Sat Feb 12 07:50:03 UTC 2022]; root of context hierarchy
Feb 12, 2022 7:50:03 AM org.springframework.context.support.AbstractApplicationContext obtainFreshBeanFactory
INFO: Bean factory for application context [org.springframework.web.context.support.StaticWebApplicationContext@67a08669]: org.springframework.beans.factory.support.DefaultListableBeanFactory@3a0f6242
Feb 12, 2022 7:50:03 AM org.springframework.beans.factory.support.DefaultListableBeanFactory preInstantiateSingletons
INFO: Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@3a0f6242: defining beans [authenticationManager]; root of factory hierarchy
Feb 12, 2022 7:50:03 AM org.springframework.context.support.AbstractApplicationContext prepareRefresh
INFO: Refreshing org.springframework.web.context.support.StaticWebApplicationContext@146249ee: display name [Root WebApplicationContext]; startup date [Sat Feb 12 07:50:03 UTC 2022]; root of context hierarchy
Feb 12, 2022 7:50:03 AM org.springframework.context.support.AbstractApplicationContext obtainFreshBeanFactory
INFO: Bean factory for application context [org.springframework.web.context.support.StaticWebApplicationContext@146249ee]: org.springframework.beans.factory.support.DefaultListableBeanFactory@4907522a
Feb 12, 2022 7:50:03 AM org.springframework.beans.factory.support.DefaultListableBeanFactory preInstantiateSingletons
INFO: Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@4907522a: defining beans [filter,legacy]; root of factory hierarchy
Feb 12, 2022 7:50:03 AM 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:

bbac6644d6444960b3421b154f5c0162

This may also be found at: /var/jenkins_home/secrets/initialAdminPassword

*************************************************************
*************************************************************
*************************************************************

--> setting agent port for jnlp
--> setting agent port for jnlp... done
Feb 12, 2022 8:02:10 AM hudson.model.AsyncPeriodicWork$1 run
INFO: Started Fingerprint cleanup
Feb 12, 2022 8:02:10 AM hudson.model.AsyncPeriodicWork$1 run
INFO: Finished Fingerprint cleanup. 2 ms

UPDATE

I also changed the jenkins image from jenkins:2.60.3 to jenkins/jenkins, jenkins/jenkins:lts and jenkins/jenkins:lts-jdk11 based on documentation (because that image was DEPRECATED) but nothing changed.

jenkins container log:

Running from: /usr/share/jenkins/jenkins.war
webroot: EnvVars.masterEnvVars.get("JENKINS_HOME")
2022-02-12 10:54:17.196 0000 [id=1] INFO    org.eclipse.jetty.util.log.Log#initialized: Logging initialized @427ms to org.eclipse.jetty.util.log.JavaUtilLog
2022-02-12 10:54:17.269 0000 [id=1] INFO    winstone.Logger#logInternal: Beginning extraction from war file
2022-02-12 10:54:18.099 0000 [id=1] WARNING o.e.j.s.handler.ContextHandler#setContextPath: Empty contextPath
2022-02-12 10:54:18.149 0000 [id=1] INFO    org.eclipse.jetty.server.Server#doStart: jetty-9.4.43.v20210629; built: 2021-06-30T11:07:22.254Z; git: 526006ecfa3af7f1a27ef3a288e2bef7ea9dd7e8; jvm 11.0.14 9
2022-02-12 10:54:18.371 0000 [id=1] INFO    o.e.j.w.StandardDescriptorProcessor#visitServlet: NO JSP Support for /, did not find org.eclipse.jetty.jsp.JettyJspServlet
2022-02-12 10:54:18.406 0000 [id=1] INFO    o.e.j.s.s.DefaultSessionIdManager#doStart: DefaultSessionIdManager workerName=node0
2022-02-12 10:54:18.406 0000 [id=1] INFO    o.e.j.s.s.DefaultSessionIdManager#doStart: No SessionScavenger set, using defaults
2022-02-12 10:54:18.407 0000 [id=1] INFO    o.e.j.server.session.HouseKeeper#startScavenging: node0 Scavenging every 600000ms
2022-02-12 10:54:18.809 0000 [id=1] INFO    hudson.WebAppMain#contextInitialized: Jenkins home directory: /var/jenkins_home found at: EnvVars.masterEnvVars.get("JENKINS_HOME")
2022-02-12 10:54:18.961 0000 [id=1] INFO    o.e.j.s.handler.ContextHandler#doStart: Started w.@338cc75f{Jenkins v2.334,/,file:///var/jenkins_home/war/,AVAILABLE}{/var/jenkins_home/war}
2022-02-12 10:54:18.977 0000 [id=1] INFO    o.e.j.server.AbstractConnector#doStart: Started ServerConnector@3a3e78f{HTTP/1.1, (http/1.1)}{0.0.0.0:8080}
2022-02-12 10:54:18.977 0000 [id=1] INFO    org.eclipse.jetty.server.Server#doStart: Started @2210ms
2022-02-12 10:54:18.978 0000 [id=25]    INFO    winstone.Logger#logInternal: Winstone Servlet Engine running: controlPort=disabled
2022-02-12 10:54:19.212 0000 [id=32]    INFO    jenkins.InitReactorRunner$1#onAttained: Started initialization
2022-02-12 10:54:19.240 0000 [id=38]    INFO    jenkins.InitReactorRunner$1#onAttained: Listed all plugins
2022-02-12 10:54:19.893 0000 [id=41]    INFO    jenkins.InitReactorRunner$1#onAttained: Prepared all plugins
2022-02-12 10:54:19.898 0000 [id=32]    INFO    jenkins.InitReactorRunner$1#onAttained: Started all plugins
2022-02-12 10:54:19.903 0000 [id=38]    INFO    jenkins.InitReactorRunner$1#onAttained: Augmented all extensions
2022-02-12 10:54:20.410 0000 [id=36]    INFO    jenkins.InitReactorRunner$1#onAttained: System config loaded
2022-02-12 10:54:20.411 0000 [id=39]    INFO    jenkins.InitReactorRunner$1#onAttained: System config adapted
2022-02-12 10:54:20.412 0000 [id=40]    INFO    jenkins.InitReactorRunner$1#onAttained: Loaded all jobs
2022-02-12 10:54:20.413 0000 [id=40]    INFO    jenkins.InitReactorRunner$1#onAttained: Configuration for all jobs updated
2022-02-12 10:54:20.424 0000 [id=58]    INFO    hudson.model.AsyncPeriodicWork#lambda$doRun$1: Started Download metadata
2022-02-12 10:54:20.434 0000 [id=58]    INFO    hudson.util.Retrier#start: Attempt #1 to do the action check updates server
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.codehaus.groovy.reflection.CachedClass (file:/var/jenkins_home/war/WEB-INF/lib/groovy-all-2.4.21.jar) to method java.lang.Object.finalize()
WARNING: Please consider reporting this to the maintainers of org.codehaus.groovy.reflection.CachedClass
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
2022-02-12 10:54:21.180 0000 [id=42]    INFO    jenkins.install.SetupWizard#init: 

*************************************************************
*************************************************************
*************************************************************

Jenkins initial setup is required. An admin user has been created and a password generated.
Please use the following password to proceed to installation:

00ffb144007847c5b51b0452f2cee8d6

This may also be found at: /var/jenkins_home/secrets/initialAdminPassword

*************************************************************
*************************************************************
*************************************************************

CodePudding user response:

As I mentioned in comments, the problem wasn't for jenkins...

It was because I had no internet connection inside my container...

So, I restart my docker engine and tried again and everything looks good!

  • Related