I have two Jenkins both on the same version 2.289.3. One has this plugin working fine (plugin version 1.54) but the other is failing with the error in the below error code. It's failing on the plugin extensions
io.jenkins.plugins.casc.ConfiguratorException: No configurator for the following root elements jobs
at io.jenkins.plugins.casc.ConfigurationAsCode.invokeWith(ConfigurationAsCode.java:734)
at io.jenkins.plugins.casc.ConfigurationAsCode.checkWith(ConfigurationAsCode.java:776)
at io.jenkins.plugins.casc.ConfigurationAsCode.configureWith(ConfigurationAsCode.java:761)
at io.jenkins.plugins.casc.ConfigurationAsCode.configureWith(ConfigurationAsCode.java:637)
at io.jenkins.plugins.casc.ConfigurationAsCode.configure(ConfigurationAsCode.java:306)
at io.jenkins.plugins.casc.ConfigurationAsCode.init(ConfigurationAsCode.java:298)
Caused: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at hudson.init.TaskMethodFinder.invoke(TaskMethodFinder.java:104)
These two Jenkins run off of different config repositories but the major files are all the same. I removed the plugin from the startup plugins.txt file and tried installing it on a running Jenkins but that results in the same problem when I then restart Jenkins (below image and error)
org.jvnet.hudson.reactor.ReactorException: java.lang.Error: java.lang.reflect.InvocationTargetException
I've also tried copying the plugins from other repositories that have no problems but here it just keeps failing. Any advice on what the problem might be would be great
The solution to my problem was that I was missing another plugin. The plugin in question was job-dsl - specifically version 1.74 of this plugin. I found some of the later version also caused problems so had to pin it to 1.74
Related
I'm trying to install Jenkins on win 10.
all the plugins failed to install on the startup process and even after that for jenkins GUI.
i'm running with jenkins 2.264,jdk-8u271-windows-x64 and windows 10 pro.
please advise what am I doing worng.
this is one of my error messages ->
most of the errors look the same. (Java issue)
java.io.IOException: Failed to load: Build Timeout (1.20)
- Plugin is missing: token-macro (1.5.1)
at hudson.PluginWrapper.resolvePluginDependencies(PluginWrapper.java:951)
at hudson.PluginManager$2$1$1.run(PluginManager.java:551)
at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:169)
at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:296)
at jenkins.model.Jenkins$5.runTask(Jenkins.java:1129)
at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:214)
at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117)
at jenkins.security.ImpersonatingExecutorService$1.run(ImpersonatingExecutorService.java:68)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
2020-12-24 18:52:29.987+0000 [id=46] SEVERE jenkins.InitReactorRunner$1#onTaskFailed: Failed Loading plugin ECharts API Plugin v4.9.0-2 (echarts-api)
java.io.IOException: Failed to load: ECharts API Plugin (4.9.0-2)
What you have posted is an incomplete pair of error segments (they should start w/timestamp). Nevertheless, not sure how you installed the plugins, but you appear to be missing some key dependencies.
Failed to load: Build Timeout (1.20) - Plugin is missing: token-macro (1.5.1)
token-macro is a dependency on Build Timeout, and appears not to installed.
Failed to load: ECharts API Plugin (4.9.0-2)
This error is incomplete, but I would suspect is also missing a dependency. You can see what is installed on the ${JENKINS_URL}/systemInfo page, "Plugins" section. Not sure what you will see on the ${JENKINS_URL}/pluginManager/installed, but I suspect many plugins will be greyed out. It should explain why (ie: missing).
You would have to explain how you installed what you did to guess how got are missed. Rarely plugins simply declare as "optional" what should be declared as required, but goes undetected since almost everyone always installs the dependency.
Usually, they all point to a single missing plugin or a chain up from one. Check the logs and trace. Get all the pairs Failed to load: x - Plugin is missing: y. Install the ones said to be missing. Failing that, stop Jenkins, delete the /plugins directory and install them from scratch again. If the hpi/jpi package is corrupted, you may need to stop Jenkins, delete the package and the exploded directory inside plugins.
You may also find this response useful, as well as the Jenkins Book Managing Plugins and the new Plugin Installation Manager Tool for Jenkins
I am facing some issue while installing "Deliver Pipeline Plugin" .The dependency plugin "Jquery Plugin" not installing . I am getting the following error:
I am following your Jenkin's tutorial . I am facing some issue while installing "Deliver Pipeline Plugin" .The dependency plugin "Jquery Plugin" not installing . I am getting the following error:
java.io.IOException: Downloaded file C:\Program Files (x86)\Jenkins\plugins\jquery.jpi.tmp does not match expected SHA-1, expected 'eOnfdKAq1jTJLA6XJ5qfQiXBY6o=', actual 'DIij6KoUcjAFwoa79NMRslzuINs='
at hudson.model.UpdateCenter.verifyChecksums(UpdateCenter.java:1810)
at hudson.model.UpdateCenter.access$1100(UpdateCenter.java:149)
at hudson.model.UpdateCenter$InstallationJob.replace(UpdateCenter.java:1963)
at hudson.model.UpdateCenter$UpdateCenterConfiguration.install(UpdateCenter.java:1194)
at hudson.model.UpdateCenter$DownloadJob._run(UpdateCenter.java:1680)
at hudson.model.UpdateCenter$InstallationJob._run(UpdateCenter.java:1874)
at hudson.model.UpdateCenter$DownloadJob.run(UpdateCenter.java:1651)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at hudson.remoting.AtmostOneThreadExecutor$Worker.run(AtmostOneThreadExecutor.java:110)
at java.lang.Thread.run(Unknown Source)
Please help me to resolve this issue.
Please help me to resolve this issue.
One reason for the above error is the network connectivity.
If you are in any corporate network and you have not set proxy in jenkins then you will get the above error.
Please open C:\Program Files (x86)\Jenkins\plugins\jquery.jpi.tmp and see what is written in the file.
To set proxy in jenkins please refer the link in comment section.
Regards,
Anil
Trying to install "Build Pipeline Plugin v1.5.6" fails due to:
hudson.util.IOException2: Failed to download from
http://updates.jenkins-ci.org/download/plugins/jquery/1.11.2-0/jquery.hpi
(redirected to:
http://ftp.tsukuba.wide.ad.jp/software/jenkins/plugins/jquery/1.11.2-0/jquery.hpi)
at
hudson.model.UpdateCenter$UpdateCenterConfiguration.download(UpdateCenter.java:1172)
at hudson.model.UpdateCenter$DownloadJob._run(UpdateCenter.java:1678)
at
hudson.model.UpdateCenter$InstallationJob._run(UpdateCenter.java:1876)
at hudson.model.UpdateCenter$DownloadJob.run(UpdateCenter.java:1652)
at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266) at
hudson.remoting.AtmostOneThreadExecutor$Worker.run(AtmostOneThreadExecutor.java:110)
at java.lang.Thread.run(Thread.java:745) Caused by:
java.io.IOException: Inconsistent file length: expected 3003464 but
only got 872533 at
hudson.model.UpdateCenter$UpdateCenterConfiguration.download(UpdateCenter.java:1155)
... 7 more
The jQuery plug-in is nowhere to be found as part of the plug-in installation...
Googling for a workaround did not give fruitful results. Maybe the Jenkins community knows how to workaround this?
Looks like downloading the plug-in's .hpi file from the FTP site and uploading it via the Jenkins UI followed by restarting Jenkins resolved the issue...
It is unclear why the plug-in installation fails otherwise.
I have a problem using artifactory and jenkins. See the error log below.
My version jenkins : 1.638
My version of artifactory : 3.9.2
Artifactory is working ok and also installed plugin in jenkins and configured. All seems to work ok but when I want to build a project I have the error below.
ERROR: Processing failed due to a bug in the code.
Please report this to jenkinsci-users#googlegroups.com
**java.lang.RuntimeException: java.lang.NullPointerException
at org.jfrog.hudson.maven3.extractor.MavenExtractorEnvironment.buildEnvVars(MavenExtractorEnvironment.java:136)**
at hudson.model.AbstractBuild.getEnvironment(AbstractBuild.java:947)
at hudson.maven.AbstractMavenBuild.getEnvironment(AbstractMavenBuild.java:56)
at hudson.maven.MavenModuleSetBuild.getEnvironment(MavenModuleSetBuild.java:165)
at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:620)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:534)
at hudson.model.Run.execute(Run.java:1738)
at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:529)
at hudson.model.ResourceController.execute(ResourceController.java:98)
at hudson.model.Executor.run(Executor.java:410)
Caused by: java.lang.NullPointerException
at org.jfrog.hudson.util.ExtractorUtils.addBuilderInfoArguments(ExtractorUtils.java:157)
at org.jfrog.hudson.maven3.extractor.MavenExtractorEnvironment.buildEnvVars(MavenExtractorEnvironment.java:132)
... 9 more
project=hudson.maven.MavenModuleSet#d90cf1[messenger]
project.getModules()=[hudson.maven.MavenModule#3993ad[messenger/com.jdb.software:messenger][messenger/com.jdb.software:messenger][relativePath:]]
project.getRootModule()=hudson.maven.MavenModule#3993ad[messenger/com.jdb.software:messenger][messenger/com.jdb.software:messenger][relativePath:]
FATAL: java.lang.NullPointerException
This is actually a bug (since version 2.4.0).
There is a Jira issue for this (which I guess you opened).
I attached a URL to a snapshot version built on top of the last release (2.4.4) which also contains a fix for you issue.
If you have any issues with the fix or for any feedback you can use the Jira to communicate it.
BTW: There is a work around that you can use - just configure an Artifactory publish task and everything will work.
I inherited a Grails app that, on a fresh checkout, I can't get to run. Of course the people that originally worked on this project are long gone. I have other Grails projects that run correctly (out of the box) so I know it's not my config.
setup info:
> cat application.properties
#Grails Metadata file
#Tue Jul 09 16:31:14 IST 2013
app.grails.version=2.1.1
app.name=myapp
app.version=0.1
> grails -version
Grails version: 2.1.1
echo $GROOVY_HOME
/cygdrive/c/Users/myuser/.gvm/groovy/current
> echo $GRAILS_HOME
/cygdrive/c/Users/myuser/.gvm/grails/2.1.1
Now the stacktrace:
grails run-app --stacktrace
| Configuring classpath.
Environment set to development
| Configuring classpath.....
| Error Error executing script RunApp: taskdef class org.codehaus.groovy.grails.compiler.GrailsCompiler cannot be found
using the classloader AntClassLoader[] (NOTE: Stack trace has been filtered. Use --verbose to see entire trace.)
java.lang.ClassNotFoundException: org.codehaus.groovy.grails.compiler.GrailsCompiler
at org.apache.tools.ant.AntClassLoader.findClassInComponents(AntClassLoader.java:1361)
at org.apache.tools.ant.AntClassLoader.findClass(AntClassLoader.java:1311)
at org.apache.tools.ant.AntClassLoader.loadClass(AntClassLoader.java:1064)
at org.apache.tools.ant.taskdefs.Definer.addDefinition(Definer.java:594)
at org.apache.tools.ant.taskdefs.Definer.execute(Definer.java:239)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
at com.springsource.loaded.ri.ReflectiveInterceptor.jlrMethodInvoke(ReflectiveInterceptor.java:1231)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.codehaus.gant.GantBuilder.invokeMethod(GantBuilder.java:99)
at _GrailsCompile_groovy.run(_GrailsCompile_groovy:32)
at _GrailsCompile_groovy$run.call(Unknown Source)
at _GrailsPackage_groovy$run.call(Unknown Source)
at org.codehaus.gant.IncludeTargets.leftShift(IncludeTargets.groovy:59)
at org.codehaus.gant.IncludeTargets$leftShift.call(Unknown Source)
at _GrailsPackage_groovy.run(_GrailsPackage_groovy:38)
at _GrailsPackage_groovy$run.call(Unknown Source)
at _GrailsSettings_groovy$run.call(Unknown Source)
at org.codehaus.gant.IncludeTargets.leftShift(IncludeTargets.groovy:59)
at org.codehaus.gant.IncludeTargets$leftShift.call(Unknown Source)
at _GrailsPlugins_groovy.run(_GrailsPlugins_groovy:33)
at _GrailsPlugins_groovy$run.call(Unknown Source)
at _GrailsRun_groovy$run.call(Unknown Source)
at org.codehaus.gant.IncludeTargets.leftShift(IncludeTargets.groovy:59)
at org.codehaus.gant.IncludeTargets$leftShift.call(Unknown Source)
at _GrailsRun_groovy.run(_GrailsRun_groovy:31)
at _GrailsRun_groovy$run.call(Unknown Source)
at org.codehaus.gant.IncludeTargets.leftShift(IncludeTargets.groovy:59)
at org.codehaus.gant.IncludeTargets$leftShift.call(Unknown Source)
at RunApp.run(RunApp.groovy:25)
at RunApp$run.call(Unknown Source)
at gant.Gant.prepareTargets(Gant.groovy:607)
at com.springsource.loaded.ri.ReflectiveInterceptor.jlrMethodInvoke(ReflectiveInterceptor.java:1231)
| Error Error executing script RunApp: taskdef class org.codehaus.groovy.grails.compiler.GrailsCompiler cannot be found
using the classloader AntClassLoader[]
Nothing I seem to do gets past this or changes it. Anyone have any ideas how to fix this?
run grails upgrade - Still not sure why this works but I've had to do it on occasion with a fresh checkout.
check dependencies:
grails dependency-report
Check the output for multiple versions of Groovy or Spring in the build configuration.
http://grails.org/doc/latest/ref/Command%20Line/dependency-report.html
use exclusions or specific dependencies in BuildConfig.groovy to use certain version.
make sure to check different configurations since some dependencies might be just in test configuration, and a different version in compile or build. That might sometimes be a problem with dependencies.
references:
http://grails.1312388.n4.nabble.com/Upgrading-a-project-from-1-3-6-to-1-4-0-M1-td3603895.html
Another check:
Make sure you don't have a ~/.ant/lib directory. I have seen that cause strange problems.
rename it if it exists:
mv ~/.ant/lib{,.old}
Try upgrading directly to Grails 2.3.11 since 2.1.x or 2.2.x Grails branches aren't maintained any more. Take a look at the release notes from grails.org website (https://grails.org/Releases) and grails reference manual for upgrade instructions.
You should take a look at these instructions:
Upgrading from 2.1.x to 2.2.x:
http://grails.org/doc/2.2.x/guide/upgradingFromPreviousVersionsOfGrails.html
Upgrading from 2.2.x to 2.3.x:
http://grails.org/doc/2.3.x/guide/upgradingFromPreviousVersionsOfGrails.html
Read all release notes after the version you are upgrading from:
https://grails.org/Releases
Some extra upgrade tips:
remove all plugin dependencies from application.properties files and move them to BuildConfig.groovy
compare grails-app/conf/* and web-app/WEB-INF/* files of an empty application (of a new version) to your application with a diff tool like Meld , WinMerge, etc.
if you have a templates directory , compare that to an empty application (of a new new version) that has templates installed (grails install-templates).
I had a similar problem, and #Beatty's answer didn't work, because that also would give me an error. Following some possible solutions I found here, I fixed this by deleting the target folder in my app's folder
rm -rf target/*
and then, running again grails compile
Hope this helps