Export Configuration error "This web page is not available"
See original GitHub issueWhen trying to export a brand new jenkins configuration with the “Export Configuration” button, an error page is displayed (code : ERR_INVALID_RESPONSE).
Environment
- Tests done in Docker
- Jenkins version : 2.89.2
- Jenkins CasC version : 0.9-alpha
Steps to reproduce :
cat << EOF > docker-compose.yml
version: "3"
services:
jenkins:
image: jenkins/jenkins:lts
ports:
- 8080:8080
volumes:
- ./data:/var/jenkins_home
EOF
docker-compose up -d
Connect to Jenkins, install “Configuration as Code” plugin, restart Jenkins and go the the plugin page and click “Export configuration”
Log
jenkins_1 | Jul 03, 2018 8:16:39 PM org.jenkinsci.plugins.casc.Configurator lookup
jenkins_1 | WARNING: Configuration-as-Code can't handle type class jenkins.install.InstallState
jenkins_1 | Jul 03, 2018 8:16:39 PM org.eclipse.jetty.server.handler.ContextHandler$Context log
jenkins_1 | WARNING: Error while serving http://localhost:8080/configuration-as-code/export
jenkins_1 | java.lang.reflect.InvocationTargetException
jenkins_1 | at org.kohsuke.stapler.Function$MethodFunction.invoke(Function.java:347)
jenkins_1 | at org.kohsuke.stapler.interceptor.RequirePOST$Processor.invoke(RequirePOST.java:52)
jenkins_1 | at org.kohsuke.stapler.PreInvokeInterceptedFunction.invoke(PreInvokeInterceptedFunction.java:26)
jenkins_1 | at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:184)
jenkins_1 | at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:117)
jenkins_1 | at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:129)
jenkins_1 | at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:58)
jenkins_1 | at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:715)
jenkins_1 | at org.kohsuke.stapler.Stapler.invoke(Stapler.java:845)
jenkins_1 | at org.kohsuke.stapler.MetaClass$10.dispatch(MetaClass.java:374)
jenkins_1 | at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:715)
jenkins_1 | at org.kohsuke.stapler.Stapler.invoke(Stapler.java:845)
jenkins_1 | at org.kohsuke.stapler.Stapler.invoke(Stapler.java:649)
jenkins_1 | at org.kohsuke.stapler.Stapler.service(Stapler.java:238)
jenkins_1 | at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
jenkins_1 | at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:841)
jenkins_1 | at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1650)
jenkins_1 | at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:135)
jenkins_1 | at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:138)
jenkins_1 | at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1637)
jenkins_1 | at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:85)
jenkins_1 | at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1637)
jenkins_1 | at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)
jenkins_1 | at hudson.security.UnwrapSecurityExceptionFilter.doFilter(UnwrapSecurityExceptionFilter.java:51)
jenkins_1 | at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
jenkins_1 | at jenkins.security.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:117)
jenkins_1 | at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
jenkins_1 | at org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125)
jenkins_1 | at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
jenkins_1 | at org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:142)
jenkins_1 | at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
jenkins_1 | at org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:271)
jenkins_1 | at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
jenkins_1 | at jenkins.security.BasicHeaderProcessor.doFilter(BasicHeaderProcessor.java:93)
jenkins_1 | at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
jenkins_1 | at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249)
jenkins_1 | at hudson.security.HttpSessionContextIntegrationFilter2.doFilter(HttpSessionContextIntegrationFilter2.java:67)
jenkins_1 | at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
jenkins_1 | at hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:90)
jenkins_1 | at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:171)
jenkins_1 | at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1637)
jenkins_1 | at org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:49)
jenkins_1 | at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1637)
jenkins_1 | at hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:82)
jenkins_1 | at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1637)
jenkins_1 | at org.kohsuke.stapler.DiagnosticThreadNameFilter.doFilter(DiagnosticThreadNameFilter.java:30)
jenkins_1 | at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1637)
jenkins_1 | at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:533)
jenkins_1 | at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
jenkins_1 | at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:524)
jenkins_1 | at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)
jenkins_1 | at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:190)
jenkins_1 | at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1595)
jenkins_1 | at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:188)
jenkins_1 | at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1253)
jenkins_1 | at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:168)
jenkins_1 | at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:473)
jenkins_1 | at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1564)
jenkins_1 | at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:166)
jenkins_1 | at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1155)
jenkins_1 | at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
jenkins_1 | at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)
jenkins_1 | at org.eclipse.jetty.server.Server.handle(Server.java:564)
jenkins_1 | at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:317)
jenkins_1 | at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:251)
jenkins_1 | at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:279)
jenkins_1 | at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:110)
jenkins_1 | at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:124)
jenkins_1 | at org.eclipse.jetty.util.thread.Invocable.invokePreferred(Invocable.java:128)
jenkins_1 | at org.eclipse.jetty.util.thread.Invocable$InvocableExecutor.invoke(Invocable.java:222)
jenkins_1 | at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:294)
jenkins_1 | at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:199)
jenkins_1 | at winstone.BoundedExecutorService$1.run(BoundedExecutorService.java:77)
jenkins_1 | at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
jenkins_1 | at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
jenkins_1 | at java.lang.Thread.run(Thread.java:748)
jenkins_1 | Caused by: org.jenkinsci.plugins.casc.ConfiguratorException: Cannot find configurator for type class jenkins.install.InstallState
jenkins_1 | at org.jenkinsci.plugins.casc.Configurator.lookupOrFail(Configurator.java:76)
jenkins_1 | at org.jenkinsci.plugins.casc.Attribute.describe(Attribute.java:166)
jenkins_1 | at org.jenkinsci.plugins.casc.JenkinsConfigurator.describe(JenkinsConfigurator.java:69)
jenkins_1 | at org.jenkinsci.plugins.casc.JenkinsConfigurator.describe(JenkinsConfigurator.java:20)
jenkins_1 | at org.jenkinsci.plugins.casc.ConfigurationAsCode.doExport(ConfigurationAsCode.java:234)
jenkins_1 | at java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:627)
jenkins_1 | at org.kohsuke.stapler.Function$MethodFunction.invoke(Function.java:343)
jenkins_1 | ... 75 more
jenkins_1 |
Issue Analytics
- State:
- Created 5 years ago
- Comments:9 (6 by maintainers)
Top Results From Across the Web
Configuration files can't be exported - Microsoft Learn
This article helps you resolve the problem where configuration files can't be exported to a DFS share through the Internet Services Manager.
Read more >Export not working - Forums - IBM Support
Hi,. I checked some of the topics in the forum for my issue but could not find a solution. I am trying to...
Read more >Unable to export from Connexion - OCLC Support
If using Connexion client, navigate to Tools > Options > Export. Create an export destination on your Desktop. Choose Apply > Close. OCLC ......
Read more >Problem: The Export Data option is unavailable in ArcGIS Online
In ArcGIS Online, when attempting to export a web layer to a file type using its item details page, the Export Data option...
Read more >Receiving error "This service is not available yet... - ServiceNow
Receiving error "Export Failed. This service is not available yet" when users try to export dashboard or homepage to PDF. Webkit and OAuth....
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
already fixed, while not yet released
Great!, thank you @ewelinawilkosz !