Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-37066

Use of gogs repository browser stucks the Job Configuration page on "Loading" gray screen

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • git-plugin
    • * Jenkins 2.7.1 with the official Docker image (Id b4974ba62598)
      * Docker 1.12 (for Mac, on Mac OS 10.11.5)
      * Java: Docker's image embedded OpenJDK 1.8.0_91
      * Git Plugin 2.5.2
      * Webbrowser: Chrome Version 52.0.2743.82 (64-bit)

      Hello there !

      When configuring any project to use a gogs repository browser, as part of "Git Source Code Management", configuration is not reachable anymore, stuck on a grey section with "Loading".

      Steps to reproduce:

      • With docker and docker-compose:
      • OR with Jenkins 2.7.1 and a Gogs service running with a project inside, even an empty one
      • Ensure that the git-plugin is up-to-date within Jenkins (Jenkins 2.7.1 seems to come with the git-plugin 2.5.0. 2.5.2 is the latest one for git-plugin).
      • Create a new freestyle project:
        • Select Git as SCM and use one from Gogs (if in my docker-compose, use http://gitserver:3000/jenkins/demoapp.git)
        • In the SCM -> Repository Browser section, select gogs
        • Save the configuration, and try to reach it again, you're stuck in the "Loading" Screen (cf. loading.png attached screenshot)

      Debug informations:

      • When saving the job, I can see this stack in the Jenkins Logs (containers logs in my case):
        INFO: Accepted connection #10 from /172.18.0.9:40988
        Jul 29, 2016 2:34:46 PM hudson.widgets.RenderOnDemandClosure$1 generateResponse
        WARNING: Failed to evaluate the template closure
        org.apache.commons.jelly.JellyTagException: jar:file:/var/jenkins_home/war/WEB-INF/lib/jenkins-core-2.7.1.jar!/lib/hudson/listScmBrowsers.jelly:43:77: <st:include> No page found 'config.jelly' for class hudson.plugins.git.browser.GogsGit$GogsGitDescriptor
        	at org.kohsuke.stapler.jelly.IncludeTag.doTag(IncludeTag.java:124)
        	at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:269)
        	at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
        	at org.kohsuke.stapler.jelly.CallTagLibScript$1.run(CallTagLibScript.java:99)
        	at org.apache.commons.jelly.tags.define.InvokeBodyTag.doTag(InvokeBodyTag.java:91)
        	at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:269)
        	at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
        	at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:161)
        	at org.apache.commons.jelly.tags.core.OtherwiseTag.doTag(OtherwiseTag.java:41)
        	at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:269)
        	at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
        	at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:161)
        	at org.apache.commons.jelly.tags.core.ChooseTag.doTag(ChooseTag.java:38)
        	at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:269)
        	at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
        	at org.apache.commons.jelly.tags.core.CoreTagLibrary$2.run(CoreTagLibrary.java:105)
        	at org.kohsuke.stapler.jelly.CallTagLibScript.run(CallTagLibScript.java:120)
        	at org.kohsuke.stapler.jelly.CallTagLibScript$1.run(CallTagLibScript.java:99)
        	at org.apache.commons.jelly.tags.define.InvokeBodyTag.doTag(InvokeBodyTag.java:91)
        	at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:269)
        	at org.kohsuke.stapler.jelly.CallTagLibScript$1.run(CallTagLibScript.java:99)
        	at org.kohsuke.stapler.jelly.DefaultScriptInvoker.invokeScript(DefaultScriptInvoker.java:63)
        	at org.kohsuke.stapler.jelly.DefaultScriptInvoker.invokeScript(DefaultScriptInvoker.java:53)
        	at hudson.widgets.RenderOnDemandClosure$1.generateResponse(RenderOnDemandClosure.java:99)
        	at org.kohsuke.stapler.HttpResponseRenderer$Default.handleHttpResponse(HttpResponseRenderer.java:124)
        	at org.kohsuke.stapler.HttpResponseRenderer$Default.generateResponse(HttpResponseRenderer.java:69)
        	at org.kohsuke.stapler.Function.renderResponse(Function.java:119)
        	at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:102)
        	at org.kohsuke.stapler.MetaClass$JavaScriptProxyMethodDispatcher.doDispatch(MetaClass.java:474)
        	at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:58)
        	at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:746)
        	at org.kohsuke.stapler.Stapler.invoke(Stapler.java:876)
        	at org.kohsuke.stapler.MetaClass$11.dispatch(MetaClass.java:380)
        	at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:746)
        	at org.kohsuke.stapler.Stapler.invoke(Stapler.java:876)
        	at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:813)
        	at org.kohsuke.stapler.Stapler.invoke(Stapler.java:876)
        	at org.kohsuke.stapler.Stapler.invoke(Stapler.java:649)
        	at org.kohsuke.stapler.Stapler.service(Stapler.java:199)
        	at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
        	at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:812)
        	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1669)
        	at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:135)
        	at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:126)
        	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
        	at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:49)
        	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
        	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)
        	at hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76)
        	at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:171)
        	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
        	at org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:49)
        	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
        	at hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:82)
        	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
        	at org.kohsuke.stapler.DiagnosticThreadNameFilter.doFilter(DiagnosticThreadNameFilter.java:30)
        	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
        	at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:585)
        	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
        	at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:553)
        	at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:223)
        	at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127)
        	at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)
        	at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
        	at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061)
        	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
        	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)
        	at org.eclipse.jetty.server.Server.handle(Server.java:499)
        	at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:311)
        	at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257)
        	at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:544)
        	at winstone.BoundedExecutorService$1.run(BoundedExecutorService.java:77)
        	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        	at java.lang.Thread.run(Thread.java:745)
        
      • When going back to the config job (status stuck to loading screen), my Chrome console shows some errors. I've put them in the attached screenshot "web_console_errs.png"

      Workaround

      FYI, I ended up using this project: https://github.com/renannprado/gogs-repository-viewer-plugin , which an alternative Gogs Repository Browser, that works, but require more configuration, and is not pre-build plugin within the OSS Update Center.

      Thanks for your hard work, don't hesitate if I missed something or if you need more informations !

        1. gogs_browse_fix.png
          gogs_browse_fix.png
          74 kB
        2. loading.png
          loading.png
          70 kB
        3. web_console_errs.png
          web_console_errs.png
          116 kB

            markewaite Mark Waite
            dduportal Damien Duportal
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: