Infinite restarts after vanilla installation of configuration as code plugin
See original GitHub issueHi, I decided to research possible cons of this plugin for spinning up the jenkins instance from scratch in minutes, but faced problem that after installation of plugins and restart by configuration plugin it goes in infinite loop. My setup: java version 1.8.0_181 jenkins version 2.121.1 configuration-as-code plugin: 1.0
Jenkins output. This keeps appe
Running from: /home/thisguy/.m2/repository/org/jenkins-ci/main/jenkins-war/2.121.1/jenkins-war-2.121.1.war
webroot: EnvVars.masterEnvVars.get("JENKINS_HOME")
Sep 14, 2018 4:23:45 PM org.eclipse.jetty.util.log.Log initialized
INFO: Logging initialized @356ms to org.eclipse.jetty.util.log.JavaUtilLog
Sep 14, 2018 4:23:45 PM winstone.Logger logInternal
INFO: Beginning extraction from war file
Sep 14, 2018 4:23:45 PM org.eclipse.jetty.server.handler.ContextHandler setContextPath
WARNING: Empty contextPath
Sep 14, 2018 4:23:46 PM org.eclipse.jetty.server.Server doStart
INFO: jetty-9.4.z-SNAPSHOT, build timestamp: 2017-11-22T00:27:37+03:00, git hash: 82b8fb23f757335bb3329d540ce37a2a2615f0a8
Sep 14, 2018 4:23:46 PM org.eclipse.jetty.webapp.StandardDescriptorProcessor visitServlet
INFO: NO JSP Support for /, did not find org.eclipse.jetty.jsp.JettyJspServlet
Sep 14, 2018 4:23:46 PM org.eclipse.jetty.server.session.DefaultSessionIdManager doStart
INFO: DefaultSessionIdManager workerName=node0
Sep 14, 2018 4:23:46 PM org.eclipse.jetty.server.session.DefaultSessionIdManager doStart
INFO: No SessionScavenger set, using defaults
Sep 14, 2018 4:23:46 PM org.eclipse.jetty.server.session.HouseKeeper startScavenging
INFO: Scavenging every 600000ms
Jenkins home directory: /home/thisguy/Work/jenkins_home found at: EnvVars.masterEnvVars.get("JENKINS_HOME")
Sep 14, 2018 4:23:47 PM org.eclipse.jetty.server.handler.ContextHandler doStart
INFO: Started w.@57bc27f5{/,file:///home/thisguy/Work/jenkins_home/war/,AVAILABLE}{/home/thisguy/Work/jenkins_home/war}
Sep 14, 2018 4:23:47 PM org.eclipse.jetty.server.AbstractConnector doStart
INFO: Started ServerConnector@6f15d60e{HTTP/1.1,[http/1.1]}{0.0.0.0:8080}
Sep 14, 2018 4:23:47 PM org.eclipse.jetty.server.Server doStart
INFO: Started @1594ms
Sep 14, 2018 4:23:47 PM winstone.Logger logInternal
INFO: Winstone Servlet Engine v4.0 running: controlPort=disabled
Sep 14, 2018 4:23:48 PM jenkins.InitReactorRunner$1 onAttained
INFO: Started initialization
Sep 14, 2018 4:23:48 PM jenkins.InitReactorRunner$1 onAttained
INFO: Listed all plugins
Sep 14, 2018 4:23:51 PM jenkins.InitReactorRunner$1 onAttained
INFO: Prepared all plugins
Sep 14, 2018 4:23:51 PM jenkins.InitReactorRunner$1 onAttained
INFO: Started all plugins
Sep 14, 2018 4:23:51 PM jenkins.InitReactorRunner$1 onAttained
INFO: Augmented all extensions
Sep 14, 2018 4:23:52 PM io.jenkins.plugins.casc.impl.configurators.DataBoundConfigurator tryConstructor
INFO: Setting class hudson.slaves.EnvironmentVariablesNodeProperty$Entry.key = FOO
Sep 14, 2018 4:23:52 PM io.jenkins.plugins.casc.impl.configurators.DataBoundConfigurator tryConstructor
INFO: Setting class hudson.slaves.EnvironmentVariablesNodeProperty$Entry.value = BAR
Sep 14, 2018 4:23:52 PM io.jenkins.plugins.casc.impl.configurators.DataBoundConfigurator tryConstructor
INFO: Setting class hudson.slaves.EnvironmentVariablesNodeProperty.env = [{}]
Sep 14, 2018 4:23:56 PM io.jenkins.plugins.casc.BaseConfigurator configure
INFO: Setting hudson.model.Hudson@94e0eb4.systemMessage = Jenkins configured automatically by Jenkins Configuration as Code Plugin
Sep 14, 2018 4:23:56 PM io.jenkins.plugins.casc.BaseConfigurator configure
INFO: Setting hudson.model.Hudson@94e0eb4.mode = NORMAL
Sep 14, 2018 4:23:56 PM io.jenkins.plugins.casc.BaseConfigurator configure
INFO: Setting hudson.model.Hudson@94e0eb4.numExecutors = 2
Sep 14, 2018 4:23:56 PM io.jenkins.plugins.casc.BaseConfigurator configure
INFO: Setting hudson.model.Hudson@94e0eb4.scmCheckoutRetryCount = 2
Sep 14, 2018 4:23:56 PM io.jenkins.plugins.casc.impl.configurators.DataBoundConfigurator tryConstructor
INFO: Setting class hudson.slaves.EnvironmentVariablesNodeProperty$Entry.key = FOO
Sep 14, 2018 4:23:56 PM io.jenkins.plugins.casc.impl.configurators.DataBoundConfigurator tryConstructor
INFO: Setting class hudson.slaves.EnvironmentVariablesNodeProperty$Entry.value = BAR
Sep 14, 2018 4:23:56 PM io.jenkins.plugins.casc.impl.configurators.DataBoundConfigurator tryConstructor
INFO: Setting class hudson.slaves.EnvironmentVariablesNodeProperty.env = [{}]
Sep 14, 2018 4:23:56 PM io.jenkins.plugins.casc.BaseConfigurator configure
INFO: Setting hudson.model.Hudson@94e0eb4.globalNodeProperties = [hudson.slaves.EnvironmentVariablesNodeProperty@36b0b768]
Sep 14, 2018 4:23:56 PM jenkins.InitReactorRunner$1 onAttained
INFO: Loaded all jobs
Sep 14, 2018 4:23:56 PM hudson.model.AsyncPeriodicWork$1 run
INFO: Started Download metadata
Sep 14, 2018 4:23:56 PM hudson.model.AsyncPeriodicWork$1 run
INFO: Finished Download metadata. 49 ms
Sep 14, 2018 4:23:57 PM org.springframework.context.support.AbstractApplicationContext prepareRefresh
INFO: Refreshing org.springframework.web.context.support.StaticWebApplicationContext@61067bc3: display name [Root WebApplicationContext]; startup date [Fri Sep 14 16:23:57 MSK 2018]; root of context hierarchy
Sep 14, 2018 4:23:57 PM org.springframework.context.support.AbstractApplicationContext obtainFreshBeanFactory
INFO: Bean factory for application context [org.springframework.web.context.support.StaticWebApplicationContext@61067bc3]: org.springframework.beans.factory.support.DefaultListableBeanFactory@6dd81d9
Sep 14, 2018 4:23:57 PM org.springframework.beans.factory.support.DefaultListableBeanFactory preInstantiateSingletons
INFO: Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@6dd81d9: defining beans [authenticationManager]; root of factory hierarchy
Sep 14, 2018 4:23:57 PM org.springframework.context.support.AbstractApplicationContext prepareRefresh
INFO: Refreshing org.springframework.web.context.support.StaticWebApplicationContext@669d05e0: display name [Root WebApplicationContext]; startup date [Fri Sep 14 16:23:57 MSK 2018]; root of context hierarchy
Sep 14, 2018 4:23:57 PM org.springframework.context.support.AbstractApplicationContext obtainFreshBeanFactory
INFO: Bean factory for application context [org.springframework.web.context.support.StaticWebApplicationContext@669d05e0]: org.springframework.beans.factory.support.DefaultListableBeanFactory@2dedd909
Sep 14, 2018 4:23:57 PM org.springframework.beans.factory.support.DefaultListableBeanFactory preInstantiateSingletons
INFO: Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@2dedd909: defining beans [filter,legacy]; root of factory hierarchy
Sep 14, 2018 4:23:57 PM jenkins.InitReactorRunner$1 onAttained
INFO: Completed initialization
Sep 14, 2018 4:23:57 PM hudson.WebAppMain$3 run
INFO: Jenkins is fully up and running
Sep 14, 2018 4:24:01 PM jenkins.model.Jenkins$23 run
SEVERE: Restarting VM as requested by SYSTEM
Sep 14, 2018 4:24:01 PM jenkins.model.Jenkins cleanUp
INFO: Stopping Jenkins
Sep 14, 2018 4:24:01 PM jenkins.model.Jenkins$19 onAttained
INFO: Started termination
Sep 14, 2018 4:24:01 PM jenkins.model.Jenkins$19 onAttained
INFO: Completed termination
Sep 14, 2018 4:24:01 PM jenkins.model.Jenkins _cleanUpDisconnectComputers
INFO: Starting node disconnection
Sep 14, 2018 4:24:02 PM jenkins.model.Jenkins _cleanUpShutdownPluginManager
INFO: Stopping plugin manager
Sep 14, 2018 4:24:02 PM jenkins.model.Jenkins _cleanUpPersistQueue
INFO: Persisting build queue
Sep 14, 2018 4:24:02 PM jenkins.model.Jenkins _cleanUpAwaitDisconnects
INFO: Waiting for node disconnection completion
Sep 14, 2018 4:24:02 PM jenkins.model.Jenkins cleanUp
INFO: Jenkins stopped
Environment: CASC_JENKINS_CONFIG=~/Work/jenkins_cac/configs/jenkins.yaml Configuration as code configuration file content:
plugins:
sites:
- id: "default"
url: "https://ftp-nyc.osuosl.org/pub/jenkins/updates/current/update-center.json"
required:
ldap: "latest"
git: "3.9.0"
jenkins:
systemMessage: "Jenkins configured automatically by Jenkins Configuration as Code Plugin\n\n"
numExecutors: 2
scmCheckoutRetryCount: 2
mode: NORMAL
globalNodeProperties:
- envVars:
env:
- key: WHAT
value: EVER
Jenkins running command:
java -Duser.home=~/Work/jenkins_home -Dhudson.model.DownloadService.noSignatureCheck=true -jar /home/ashageev/Work/jenkins.war
Issue Analytics
- State:
- Created 5 years ago
- Comments:11 (6 by maintainers)
Top Results From Across the Web
GameUserSettings.ini Resetting on Server Restart - Shockbyte
An easy way to find and resolve the issue is to start with a new working config, and apply the changes you wish...
Read more >Hazelcast IMDG 3.12 Reference Manual
Hazelcast Reference Manual explains all in-memory data grid features provided by Hazelcast in detail with code samples and configuration options.
Read more >Tutorials/Setting up a Spigot server - Minecraft Wiki - Fandom
If you want to install an unmodified ("Vanilla") Minecraft Server, ... If you want to add new plugin, remove existing plugin, etc., do...
Read more >Configuration — WorldGuard 7.0 documentation
This setting is useful primarily when non-vanilla functionality is present (game features added by other plugins or mods) and you don't want it...
Read more >How to install plugins on a Minecraft server | GPORTAL Wiki
Upload the plugin; Restart the server in the web interface. ImportantBefore you start it is important to install a fitting modification (e.g. Spigot)...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
see https://github.com/jenkinsci/configuration-as-code-plugin/pull/558
@sch1itzohr have you been able to test the PR ? Does it fix this issue ?