Unable to upgrade Jenkins from version 2.387.1 to version 2.401.1.

2023-06-23 15:26:14.420+0000 [id=28] INFO hudson.PluginManager#loadDetachedPlugins: Upgraded Jenkins from version 2.387.1 to version 2.401.1. Loaded detached plugins (and dependencies):
2023-06-23 15:26:16.634+0000 [id=28] INFO jenkins.InitReactorRunner$1#onAttained: Listed all plugins
2023-06-23 15:26:17.669+0000 [id=30] SEVERE jenkins.InitReactorRunner$1#onTaskFailed: Failed Loading plugin Job DSL v1.84 (job-dsl)
java.io.IOException: Failed to load: Job DSL (job-dsl 1.84)

  • Update required: Config File Provider Plugin (config-file-provider 3.11.1) to be updated to 938.ve2b_8a_591c596 or higher
    at hudson.PluginWrapper.resolvePluginDependencies(PluginWrapper.java:994)
    at hudson.PluginManager$2$1$1.run(PluginManager.java:555)
    at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:177)
    at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:305)
    at jenkins.model.Jenkins$5.runTask(Jenkins.java:1164)
    at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:221)
    at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:120)
    at jenkins.security.ImpersonatingExecutorService$1.run(ImpersonatingExecutorService.java:68)
    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
    at java.base/java.lang.Thread.run(Thread.java:829)
    2023-06-23 15:26:17.688+0000 [id=29] SEVERE jenkins.InitReactorRunner$1#onTaskFailed: Failed Loading plugin Email Extension Plugin v2.99 (email-ext)
    java.io.IOException: Failed to load: Email Extension Plugin (email-ext 2.99)
  • Update required: Config File Provider Plugin (config-file-provider 3.11.1) to be updated to 938.ve2b_8a_591c596 or higher
    at hudson.PluginWrapper.resolvePluginDependencies(PluginWrapper.java:994)
    at hudson.PluginManager$2$1$1.run(PluginManager.java:555)
    at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:177)
    at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:305)
    at jenkins.model.Jenkins$5.runTask(Jenkins.java:1164)
    at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:221)
    at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:120)
    at jenkins.security.ImpersonatingExecutorService$1.run(ImpersonatingExecutorService.java:68)
    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
    at java.base/java.lang.Thread.run(Thread.java:829)
    2023-06-23 15:26:28.490+0000 [id=28] INFO jenkins.InitReactorRunner$1#onAttained: Prepared all plugins
    2023-06-23 15:26:28.568+0000 [id=28] INFO jenkins.InitReactorRunner$1#onAttained: Started all plugins
    WARNING: An illegal reflective access operation has occurred
    WARNING: Illegal reflective access by org.codehaus.groovy.vmplugin.v7.Java7$1 ([file:/var/jenkins_home/war/WEB-INF/lib/groovy-all-2.4.21.jar](file:///var/jenkins_home/war/WEB-INF/lib/groovy-all-2.4.21.jar)) to constructor java.lang.invoke.MethodHandles$Lookup(java.lang.Class,int)
    WARNING: Please consider reporting this to the maintainers of org.codehaus.groovy.vmplugin.v7.Java7$1
    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
    2023-06-23 15:26:29.062+0000 [id=29] INFO jenkins.InitReactorRunner$1#onAttained: Augmented all extensions
    2023-06-23 15:26:31.542+0000 [id=31] INFO h.p.b.g.GlobalTimeOutConfiguration#load: global timeout not set
    2023-06-23 15:26:32.096+0000 [id=29] INFO jenkins.InitReactorRunner$1#onAttained: System config loaded
    2023-06-23 15:26:35.208+0000 [id=29] SEVERE jenkins.InitReactorRunner$1#onTaskFailed: Failed ConfigurationAsCode.init
    io.jenkins.plugins.casc.ConfiguratorException: Invalid configuration elements for type class jenkins.model.GlobalConfigurationCategory$Security : globalJobDslSecurityConfiguration.
    Available attributes : apiToken, apiTokenProperty, crumb, envInject, gitHooks, gitHostKeyVerificationConfiguration, queueItemAuthenticator, sSHD, scriptApproval, updateSiteWarningsConfiguration
    at io.jenkins.plugins.casc.BaseConfigurator.handleUnknown(BaseConfigurator.java:387)
    at io.jenkins.plugins.casc.BaseConfigurator.configure(BaseConfigurator.java:374)
    at io.jenkins.plugins.casc.BaseConfigurator.check(BaseConfigurator.java:293)
    at io.jenkins.plugins.casc.ConfigurationAsCode.lambda$checkWith$8(ConfigurationAsCode.java:790)
    at io.jenkins.plugins.casc.ConfigurationAsCode.invokeWith(ConfigurationAsCode.java:724)
    Caused: io.jenkins.plugins.casc.ConfiguratorException: security: error configuring ‘security’ with class io.jenkins.plugins.casc.impl.configurators.GlobalConfigurationCategoryConfigurator configurator
    at io.jenkins.plugins.casc.ConfigurationAsCode.invokeWith(ConfigurationAsCode.java:730)
    at io.jenkins.plugins.casc.ConfigurationAsCode.checkWith(ConfigurationAsCode.java:790)
    at io.jenkins.plugins.casc.ConfigurationAsCode.configureWith(ConfigurationAsCode.java:776)
    at io.jenkins.plugins.casc.ConfigurationAsCode.configureWith(ConfigurationAsCode.java:645)
    at io.jenkins.plugins.casc.ConfigurationAsCode.configure(ConfigurationAsCode.java:307)
    at io.jenkins.plugins.casc.ConfigurationAsCode.init(ConfigurationAsCode.java:299)
    Caused: java.lang.reflect.InvocationTargetException
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.base/java.lang.reflect.Method.invoke(Method.java:566)
    at hudson.init.TaskMethodFinder.invoke(TaskMethodFinder.java:109)
    Caused: java.lang.Error

Activity

Ascending order - Click to sort in descending order

venkatd4uVenkatesh added a comment - 2 days ago

2023-06-23 17:47:14.272+0000 [id=29] INFO hudson.PluginManager#loadDetachedPlugins: Upgraded Jenkins from version 2.387.1 to version 2.401.1. Loaded detached plugins (and dependencies):
2023-06-23 17:47:16.500+0000 [id=31] INFO jenkins.InitReactorRunner$1#onAttained: Listed all plugins
2023-06-23 17:47:17.509+0000 [id=30] SEVERE jenkins.InitReactorRunner$1#onTaskFailed: Failed Loading plugin Job DSL v1.84 (job-dsl)
java.io.IOException: Failed to load: Job DSL (job-dsl 1.84)

  • Update required: Config File Provider Plugin (config-file-provider 3.11.1) to be updated to 938.ve2b_8a_591c596 or higher
    at hudson.PluginWrapper.resolvePluginDependencies(PluginWrapper.java:994)
    at hudson.PluginManager$2$1$1.run(PluginManager.java:555)
    at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:177)
    at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:305)
    at jenkins.model.Jenkins$5.runTask(Jenkins.java:1164)
    at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:221)
    at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:120)
    at jenkins.security.ImpersonatingExecutorService$1.run(ImpersonatingExecutorService.java:68)
    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
    at java.base/java.lang.Thread.run(Thread.java:829)
    2023-06-23 17:47:17.522+0000 [id=32] SEVERE jenkins.InitReactorRunner$1#onTaskFailed: Failed Loading plugin Email Extension Plugin v2.99 (email-ext)
    java.io.IOException: Failed to load: Email Extension Plugin (email-ext 2.99)
  • Update required: Config File Provider Plugin (config-file-provider 3.11.1) to be updated to 938.ve2b_8a_591c596 or higher
    at hudson.PluginWrapper.resolvePluginDependencies(PluginWrapper.java:994)
    at hudson.PluginManager$2$1$1.run(PluginManager.java:555)
    at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:177)
    at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:305)
    at jenkins.model.Jenkins$5.runTask(Jenkins.java:1164)
    at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:221)
    at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:120)
    at jenkins.security.ImpersonatingExecutorService$1.run(ImpersonatingExecutorService.java:68)
    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
    at java.base/java.lang.Thread.run(Thread.java:829)
    2023-06-23 17:47:27.798+0000 [id=31] INFO jenkins.InitReactorRunner$1#onAttained: Prepared all plugins
    2023-06-23 17:47:27.865+0000 [id=32] INFO jenkins.InitReactorRunner$1#onAttained: Started all plugins
    2023-06-23 17:47:28.119+0000 [id=29] INFO jenkins.InitReactorRunner$1#onAttained: Augmented all extensions
    WARNING: An illegal reflective access operation has occurred
    WARNING: Illegal reflective access by org.codehaus.groovy.vmplugin.v7.Java7$1 ([file:/var/jenkins_home/war/WEB-INF/lib/groovy-all-2.4.21.jar](file:///var/jenkins_home/war/WEB-INF/lib/groovy-all-2.4.21.jar)) to constructor java.lang.invoke.MethodHandles$Lookup(java.lang.Class,int)
    WARNING: Please consider reporting this to the maintainers of org.codehaus.groovy.vmplugin.v7.Java7$1
    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
    2023-06-23 17:47:30.050+0000 [id=32] INFO h.p.b.g.GlobalTimeOutConfiguration#load: global timeout not set
    2023-06-23 17:47:30.823+0000 [id=32] INFO jenkins.InitReactorRunner$1#onAttained: System config loaded
    2023-06-23 17:47:33.946+0000 [id=29] SEVERE jenkins.InitReactorRunner$1#onTaskFailed: Failed ConfigurationAsCode.init
    io.jenkins.plugins.casc.ConfiguratorException: Invalid configuration elements for type class jenkins.model.GlobalConfigurationCategory$Security : globalJobDslSecurityConfiguration.
    Available attributes : apiToken, apiTokenProperty, crumb, envInject, gitHooks, gitHostKeyVerificationConfiguration, queueItemAuthenticator, sSHD, scriptApproval, updateSiteWarningsConfiguration
    at io.jenkins.plugins.casc.BaseConfigurator.handleUnknown(BaseConfigurator.java:387)
    at io.jenkins.plugins.casc.BaseConfigurator.configure(BaseConfigurator.java:374)
    at io.jenkins.plugins.casc.BaseConfigurator.check(BaseConfigurator.java:293)
    at io.jenkins.plugins.casc.ConfigurationAsCode.lambda$checkWith$8(ConfigurationAsCode.java:790)
    at io.jenkins.plugins.casc.ConfigurationAsCode.invokeWith(ConfigurationAsCode.java:724)
    Caused: io.jenkins.plugins.casc.ConfiguratorException: security: error configuring ‘security’ with class io.jenkins.plugins.casc.impl.configurators.GlobalConfigurationCategoryConfigurator configurator
    at io.jenkins.plugins.casc.ConfigurationAsCode.invokeWith(ConfigurationAsCode.java:730)
    at io.jenkins.plugins.casc.ConfigurationAsCode.checkWith(ConfigurationAsCode.java:790)
    at io.jenkins.plugins.casc.ConfigurationAsCode.configureWith(ConfigurationAsCode.java:776)
    at io.jenkins.plugins.casc.ConfigurationAsCode.configureWith(ConfigurationAsCode.java:645)
    at io.jenkins.plugins.casc.ConfigurationAsCode.configure(ConfigurationAsCode.java:307)
    at io.jenkins.plugins.casc.ConfigurationAsCode.init(ConfigurationAsCode.java:299)
    Caused: java.lang.reflect.InvocationTargetException
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.base/java.lang.reflect.Method.invoke(Method.java:566)
    at hudson.init.TaskMethodFinder.invoke(TaskMethodFinder.java:109)
    Caused: java.lang.Error
    at hudson.init.TaskMethodFinder.invoke(TaskMethodFinder.java:115)
    at hudson.init.TaskMethodFinder$TaskImpl.run(TaskMethodFinder.java:185)
    at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:305)
    at jenkins.model.Jenkins$5.runTask(Jenkins.java:1164)
    at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:221)
    at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:120)
    at jenkins.security.ImpersonatingExecutorService$1.run(ImpersonatingExecutorService.java:68)
    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
    at java.base/java.lang.Thread.run(Thread.java:829)
    2023-06-23 17:47:33.949+0000 [id=22] SEVERE hudson.util.BootFailure#publish: Failed to initialize Jenkins
    io.jenkins.plugins.casc.ConfiguratorException: Invalid configuration elements for type class jenkins.model.GlobalConfigurationCategory$Security : globalJobDslSecurityConfiguration.
    Available attributes : apiToken, apiTokenProperty, crumb, envInject, gitHooks, gitHostKeyVerificationConfiguration, queueItemAuthenticator, sSHD, scriptApproval, updateSiteWarningsConfiguration
    at io.jenkins.plugins.casc.BaseConfigurator.handleUnknown(BaseConfigurator.java:387)
    at io.jenkins.plugins.casc.BaseConfigurator.configure(BaseConfigurator.java:374)
    at io.jenkins.plugins.casc.BaseConfigurator.check(BaseConfigurator.java:293)
    at io.jenkins.plugins.casc.ConfigurationAsCode.lambda$checkWith$8(ConfigurationAsCode.java:790)
    at io.jenkins.plugins.casc.ConfigurationAsCode.invokeWith(ConfigurationAsCode.java:724)
    Caused: io.jenkins.plugins.casc.ConfiguratorException: security: error configuring ‘security’ with class io.jenkins.plugins.casc.impl.configurators.GlobalConfigurationCategoryConfigurator configurator

Upgrade the config file provider plugin to 938.ve2b_8a_591c596 or higher

1 Like

Actually we are having jenkins as code. Everything we do is via code. We don’t have config file provider plugin itself. So first we need to bring the jenkins to latest version, then think over of adding any new plugins.

The message indicates that you do have the config file provider plugin. Since you manage your configuration as code, that likely indicates that your configuration as code is not specified completely. Your configuration as code definition may be providing an incomplete list of plugins.

There is a script that can be used in the script console to generate the exact list of plugins in your currently running instance. That generates a very good starting point for the plugins.txt file.

1 Like

WE are not using the config file provider plugin at all. But don’t know why this error is coming. Even we tried once for upgrade with latest version of config file provider as well but still the same error. So there is some other issues.

I ran that script you gave & it doesn’t show config file provider itself. We have only configuration as code plugin

You say that you don’t have config file provider plugin, yet the error message says that you do. That seems inconsistent to me.

I think you need to perform more checks in order to understand why the error messages thinks you have config file provider installed while the script console does not list config-file-provider as one of the plugins.

if we do a fresh installation, its working, But its not working as expected for upgrade. I think it was throwing that error because job dsl 1.84 as dependancy to have that plugin. That would be the issue. Now im going to try to run job dsl 1.83 & see if it still throws the error. Then we can understand where is the problem.

io.jenkins.plugins.casc.ConfiguratorException: Invalid configuration elements for type class jenkins.model.GlobalConfigurationCategory$Security : globalJobDslSecurityConfiguration.
Available attributes : apiToken, apiTokenProperty, crumb, envInject, gitHooks, gitHostKeyVerificationConfiguration, queueItemAuthenticator, sSHD, scriptApproval, updateSiteWarningsConfiguration
at io.jenkins.plugins.casc.BaseConfigurator.handleUnknown(BaseConfigurator.java:387)
at io.jenkins.plugins.casc.BaseConfigurator.configure(BaseConfigurator.java:374)
at io.jenkins.plugins.casc.BaseConfigurator.check(BaseConfigurator.java:293)
at io.jenkins.plugins.casc.ConfigurationAsCode.lambda$checkWith$8(ConfigurationAsCode.java:790)
at io.jenkins.plugins.casc.ConfigurationAsCode.invokeWith(ConfigurationAsCode.java:724)
Caused: io.jenkins.plugins.casc.ConfiguratorException: security: error configuring ‘security’ with class io.jenkins.plugins.casc.impl.configurators.GlobalConfigurationCategoryConfigurator configurator
at io.jenkins.plugins.casc.ConfigurationAsCode.invokeWith(ConfigurationAsCode.java:730)
at io.jenkins.plugins.casc.ConfigurationAsCode.checkWith(ConfigurationAsCode.java:790)
at io.jenkins.plugins.casc.ConfigurationAsCode.configureWith(ConfigurationAsCode.java:776)
at io.jenkins.plugins.casc.ConfigurationAsCode.configureWith(ConfigurationAsCode.java:645)
at io.jenkins.plugins.casc.ConfigurationAsCode.configure(ConfigurationAsCode.java:307)
at io.jenkins.plugins.casc.ConfigurationAsCode.init(ConfigurationAsCode.java:299)
Caused: java.lang.reflect.InvocationTargetException
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at hudson.init.TaskMethodFinder.invoke(TaskMethodFinder.java:109)
Caused: java.lang.Error
at hudson.init.TaskMethodFinder.invoke(TaskMethodFinder.java:115)
at hudson.init.TaskMethodFinder$TaskImpl.run(TaskMethodFinder.java:185)
at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:305)
at jenkins.model.Jenkins$5.runTask(Jenkins.java:1164)
at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:221)
at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:120)
at jenkins.security.ImpersonatingExecutorService$1.run(ImpersonatingExecutorService.java:68)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:829)
Caused: org.jvnet.hudson.reactor.ReactorException
at org.jvnet.hudson.reactor.Reactor.execute(Reactor.java:290)
at jenkins.InitReactorRunner.run(InitReactorRunner.java:49)
at jenkins.model.Jenkins.executeReactor(Jenkins.java:1199)
at jenkins.model.Jenkins.(Jenkins.java:987)
at hudson.model.Hudson.(Hudson.java:86)
at hudson.model.Hudson.(Hudson.java:82)
at hudson.WebAppMain$3.run(WebAppMain.java:247)
Caused: hudson.util.HudsonFailedToLoad

That message is a result of the Job DSL plugin failing to load. The message that explains why it failed to load is earlier in the output. It probably failed to load because one of its dependencies was not included in the plugins directory. I would guess that dependency is the config-file-provider plugin, since that is the plugin that has been mentioned in your earlier messages.