• Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • depgraph-view-plugin
    • None
    • Jenkins: 2.48
      Operating System: Alpine
      Browser: Firefox 51.0.1 (64-bit)

      I have installed Dependency Graph View Plugin on Jenkins v2.48 but nothing graphs are not generating at all.

      I have installed packages as below and updated the path of the dot binary in Jenkins Configuration as well. Am I missing something?

      apk add graphviz lua-graphviz graphviz-graphs graphviz-dev graphviz-gtk
      

      I have attached a screenshot of the error as well.

          [JENKINS-42429] Cannot view dependency of jobs

          Vikas Kumar created issue -
          Vikas Kumar made changes -
          Attachment New: 2017-03-02_16-09-00.png [ 36206 ]
          Vikas Kumar made changes -
          Description Original: I have installed [Dependency Graph View Plugin|https://wiki.jenkins-ci.org/display/JENKINS/Dependency+Graph+View+Plugin] on Jenkins v2.48 but nothing graphs are not generating at all.

          I have installed packages as below and updated the path of the {{dot}} binary in Jenkins Configuration as well. Am I missing something?
          {noformat}
          apk add graphviz lua-graphviz graphviz-graphs graphviz-dev graphviz-gtk
          {noformat}
          New: I have installed [Dependency Graph View Plugin|https://wiki.jenkins-ci.org/display/JENKINS/Dependency+Graph+View+Plugin] on Jenkins v2.48 but nothing graphs are not generating at all.

          I have installed packages as below and updated the path of the {{dot}} binary in Jenkins Configuration as well. Am I missing something?
          {noformat}
          apk add graphviz lua-graphviz graphviz-graphs graphviz-dev graphviz-gtk
          {noformat}

          I have attached a screenshot of the error as well.

          Stefan Wolf added a comment -

          Could you please check if there is some error in the Jenkins log?

          Stefan Wolf added a comment - Could you please check if there is some error in the Jenkins log?

          Vikas Kumar added a comment -

          Hello wolfs,

          There is nothing in logs. In Debian, only installing graphviz does the job, looks like I am missing few packages in Alpine.

          # docker logs -f jenkins_master
          Running from: /usr/share/jenkins/jenkins.war
          webroot: EnvVars.masterEnvVars.get("JENKINS_HOME")
          Mar 02, 2017 8:33:07 AM Main deleteWinstoneTempContents
          WARNING: Failed to delete the temporary Winstone file /tmp/winstone/jenkins.war
          Mar 02, 2017 8:33:07 AM org.eclipse.jetty.util.log.JavaUtilLog info
          INFO: Logging initialized @1612ms
          Mar 02, 2017 8:33:08 AM winstone.Logger logInternal
          INFO: Beginning extraction from war file
          Mar 02, 2017 8:33:08 AM org.eclipse.jetty.util.log.JavaUtilLog warn
          WARNING: Empty contextPath
          Mar 02, 2017 8:33:08 AM org.eclipse.jetty.util.log.JavaUtilLog info
          INFO: jetty-9.2.z-SNAPSHOT
          Mar 02, 2017 8:33:09 AM org.eclipse.jetty.util.log.JavaUtilLog info
          INFO: NO JSP Support for /, did not find org.eclipse.jetty.jsp.JettyJspServlet
          Jenkins home directory: /var/jenkins_home found at: EnvVars.masterEnvVars.get("JENKINS_HOME")
          Mar 02, 2017 8:33:10 AM org.eclipse.jetty.util.log.JavaUtilLog info
          INFO: Started w.@6e6f2380{/,file:/var/jenkins_home/war/,AVAILABLE}{/var/jenkins_home/war}
          Mar 02, 2017 8:33:10 AM org.eclipse.jetty.util.log.JavaUtilLog info
          INFO: Started ServerConnector@1ca3b418{HTTP/1.1}{0.0.0.0:8080}
          Mar 02, 2017 8:33:10 AM org.eclipse.jetty.util.log.JavaUtilLog info
          INFO: Started @3865ms
          Mar 02, 2017 8:33:10 AM winstone.Logger logInternal
          INFO: Winstone Servlet Engine v2.0 running: controlPort=disabled
          Mar 02, 2017 8:33:10 AM jenkins.InitReactorRunner$1 onAttained
          INFO: Started initialization
          Mar 02, 2017 8:33:11 AM jenkins.InitReactorRunner$1 onAttained
          INFO: Listed all plugins
          Mar 02, 2017 8:33:11 AM jenkins.bouncycastle.api.SecurityProviderInitializer addSecurityProvider
          INFO: Initializing Bouncy Castle security provider.
          Mar 02, 2017 8:33:11 AM jenkins.bouncycastle.api.SecurityProviderInitializer addSecurityProvider
          INFO: Bouncy Castle security provider initialized.
          Mar 02, 2017 8:33:12 AM hudson.plugins.ansicolor.PluginImpl start
          INFO: AnsiColor: eliminating boring output (https://github.com/dblock/jenkins-ansicolor-plugin)
          Mar 02, 2017 8:33:19 AM jenkins.InitReactorRunner$1 onAttained
          INFO: Prepared all plugins
          Mar 02, 2017 8:33:19 AM jenkins.InitReactorRunner$1 onAttained
          INFO: Started all plugins
          Mar 02, 2017 8:33:20 AM hudson.ExtensionFinder$GuiceFinder$FaultTolerantScope$1 error
          INFO: Failed to instantiate optional component hudson.plugins.build_timeout.operations.AbortAndRestartOperation$DescriptorImpl; skipping
          Mar 02, 2017 8:33:21 AM jenkins.InitReactorRunner$1 onAttained
          INFO: Augmented all extensions
          Mar 02, 2017 8:33:21 AM jenkins.InitReactorRunner$1 onAttained
          INFO: Loaded all jobs
          Mar 02, 2017 8:33:21 AM jenkins.util.groovy.GroovyHookScript execute
          INFO: Executing /var/jenkins_home/init.groovy.d/basic-security.groovy
          Mar 02, 2017 8:33:21 AM hudson.model.AsyncPeriodicWork$1 run
          INFO: Started Download metadata
          Mar 02, 2017 8:33:21 AM hudson.model.AsyncPeriodicWork$1 run
          INFO: Finished Download metadata. 131 ms
          Mar 02, 2017 8:33:21 AM org.jenkinsci.main.modules.sshd.SSHD start
          INFO: Started SSHD at port 40338
          Mar 02, 2017 8:33:22 AM jenkins.util.groovy.GroovyHookScript execute
          INFO: Executing /var/jenkins_home/init.groovy.d/tcp-slave-agent-port.groovy
          Mar 02, 2017 8:33:22 AM org.springframework.context.support.AbstractApplicationContext prepareRefresh
          INFO: Refreshing org.springframework.web.context.support.StaticWebApplicationContext@49ce73d4: display name [Root WebApplicationContext]; startup date [Thu Mar 02 08:33:22 GMT 2017]; root of context hierarchy
          Mar 02, 2017 8:33:22 AM org.springframework.context.support.AbstractApplicationContext obtainFreshBeanFactory
          INFO: Bean factory for application context [org.springframework.web.context.support.StaticWebApplicationContext@49ce73d4]: org.springframework.beans.factory.support.DefaultListableBeanFactory@558ab356
          Mar 02, 2017 8:33:22 AM org.springframework.beans.factory.support.DefaultListableBeanFactory preInstantiateSingletons
          INFO: Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@558ab356: defining beans [authenticationManager]; root of factory hierarchy
          Mar 02, 2017 8:33:22 AM jenkins.InitReactorRunner$1 onAttained
          INFO: Completed initialization
          Mar 02, 2017 8:33:22 AM org.springframework.context.support.AbstractApplicationContext prepareRefresh
          INFO: Refreshing org.springframework.web.context.support.StaticWebApplicationContext@6d94dea6: display name [Root WebApplicationContext]; startup date [Thu Mar 02 08:33:22 GMT 2017]; root of context hierarchy
          Mar 02, 2017 8:33:22 AM org.springframework.context.support.AbstractApplicationContext obtainFreshBeanFactory
          INFO: Bean factory for application context [org.springframework.web.context.support.StaticWebApplicationContext@6d94dea6]: org.springframework.beans.factory.support.DefaultListableBeanFactory@64888cac
          Mar 02, 2017 8:33:22 AM org.springframework.beans.factory.support.DefaultListableBeanFactory preInstantiateSingletons
          INFO: Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@64888cac: defining beans [filter,legacy]; root of factory hierarchy
          Mar 02, 2017 8:33:23 AM hudson.WebAppMain$3 run
          INFO: Jenkins is fully up and running
          --> setting agent port for jnlp
          --> setting agent port for jnlp... done
          

          Vikas Kumar added a comment - Hello wolfs , There is nothing in logs. In Debian, only installing graphviz does the job, looks like I am missing few packages in Alpine. # docker logs -f jenkins_master Running from: /usr/share/jenkins/jenkins.war webroot: EnvVars.masterEnvVars.get("JENKINS_HOME") Mar 02, 2017 8:33:07 AM Main deleteWinstoneTempContents WARNING: Failed to delete the temporary Winstone file /tmp/winstone/jenkins.war Mar 02, 2017 8:33:07 AM org.eclipse.jetty.util.log.JavaUtilLog info INFO: Logging initialized @1612ms Mar 02, 2017 8:33:08 AM winstone.Logger logInternal INFO: Beginning extraction from war file Mar 02, 2017 8:33:08 AM org.eclipse.jetty.util.log.JavaUtilLog warn WARNING: Empty contextPath Mar 02, 2017 8:33:08 AM org.eclipse.jetty.util.log.JavaUtilLog info INFO: jetty-9.2.z-SNAPSHOT Mar 02, 2017 8:33:09 AM org.eclipse.jetty.util.log.JavaUtilLog info INFO: NO JSP Support for /, did not find org.eclipse.jetty.jsp.JettyJspServlet Jenkins home directory: /var/jenkins_home found at: EnvVars.masterEnvVars.get("JENKINS_HOME") Mar 02, 2017 8:33:10 AM org.eclipse.jetty.util.log.JavaUtilLog info INFO: Started w.@6e6f2380{/,file:/var/jenkins_home/war/,AVAILABLE}{/var/jenkins_home/war} Mar 02, 2017 8:33:10 AM org.eclipse.jetty.util.log.JavaUtilLog info INFO: Started ServerConnector@1ca3b418{HTTP/1.1}{0.0.0.0:8080} Mar 02, 2017 8:33:10 AM org.eclipse.jetty.util.log.JavaUtilLog info INFO: Started @3865ms Mar 02, 2017 8:33:10 AM winstone.Logger logInternal INFO: Winstone Servlet Engine v2.0 running: controlPort=disabled Mar 02, 2017 8:33:10 AM jenkins.InitReactorRunner$1 onAttained INFO: Started initialization Mar 02, 2017 8:33:11 AM jenkins.InitReactorRunner$1 onAttained INFO: Listed all plugins Mar 02, 2017 8:33:11 AM jenkins.bouncycastle.api.SecurityProviderInitializer addSecurityProvider INFO: Initializing Bouncy Castle security provider. Mar 02, 2017 8:33:11 AM jenkins.bouncycastle.api.SecurityProviderInitializer addSecurityProvider INFO: Bouncy Castle security provider initialized. Mar 02, 2017 8:33:12 AM hudson.plugins.ansicolor.PluginImpl start INFO: AnsiColor: eliminating boring output (https://github.com/dblock/jenkins-ansicolor-plugin) Mar 02, 2017 8:33:19 AM jenkins.InitReactorRunner$1 onAttained INFO: Prepared all plugins Mar 02, 2017 8:33:19 AM jenkins.InitReactorRunner$1 onAttained INFO: Started all plugins Mar 02, 2017 8:33:20 AM hudson.ExtensionFinder$GuiceFinder$FaultTolerantScope$1 error INFO: Failed to instantiate optional component hudson.plugins.build_timeout.operations.AbortAndRestartOperation$DescriptorImpl; skipping Mar 02, 2017 8:33:21 AM jenkins.InitReactorRunner$1 onAttained INFO: Augmented all extensions Mar 02, 2017 8:33:21 AM jenkins.InitReactorRunner$1 onAttained INFO: Loaded all jobs Mar 02, 2017 8:33:21 AM jenkins.util.groovy.GroovyHookScript execute INFO: Executing /var/jenkins_home/init.groovy.d/basic-security.groovy Mar 02, 2017 8:33:21 AM hudson.model.AsyncPeriodicWork$1 run INFO: Started Download metadata Mar 02, 2017 8:33:21 AM hudson.model.AsyncPeriodicWork$1 run INFO: Finished Download metadata. 131 ms Mar 02, 2017 8:33:21 AM org.jenkinsci.main.modules.sshd.SSHD start INFO: Started SSHD at port 40338 Mar 02, 2017 8:33:22 AM jenkins.util.groovy.GroovyHookScript execute INFO: Executing /var/jenkins_home/init.groovy.d/tcp-slave-agent-port.groovy Mar 02, 2017 8:33:22 AM org.springframework.context.support.AbstractApplicationContext prepareRefresh INFO: Refreshing org.springframework.web.context.support.StaticWebApplicationContext@49ce73d4: display name [Root WebApplicationContext]; startup date [Thu Mar 02 08:33:22 GMT 2017]; root of context hierarchy Mar 02, 2017 8:33:22 AM org.springframework.context.support.AbstractApplicationContext obtainFreshBeanFactory INFO: Bean factory for application context [org.springframework.web.context.support.StaticWebApplicationContext@49ce73d4]: org.springframework.beans.factory.support.DefaultListableBeanFactory@558ab356 Mar 02, 2017 8:33:22 AM org.springframework.beans.factory.support.DefaultListableBeanFactory preInstantiateSingletons INFO: Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@558ab356: defining beans [authenticationManager]; root of factory hierarchy Mar 02, 2017 8:33:22 AM jenkins.InitReactorRunner$1 onAttained INFO: Completed initialization Mar 02, 2017 8:33:22 AM org.springframework.context.support.AbstractApplicationContext prepareRefresh INFO: Refreshing org.springframework.web.context.support.StaticWebApplicationContext@6d94dea6: display name [Root WebApplicationContext]; startup date [Thu Mar 02 08:33:22 GMT 2017]; root of context hierarchy Mar 02, 2017 8:33:22 AM org.springframework.context.support.AbstractApplicationContext obtainFreshBeanFactory INFO: Bean factory for application context [org.springframework.web.context.support.StaticWebApplicationContext@6d94dea6]: org.springframework.beans.factory.support.DefaultListableBeanFactory@64888cac Mar 02, 2017 8:33:22 AM org.springframework.beans.factory.support.DefaultListableBeanFactory preInstantiateSingletons INFO: Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@64888cac: defining beans [filter,legacy]; root of factory hierarchy Mar 02, 2017 8:33:23 AM hudson.WebAppMain$3 run INFO: Jenkins is fully up and running --> setting agent port for jnlp --> setting agent port for jnlp... done
          Jochen A. Fürbacher made changes -
          Assignee Original: Stefan Wolf [ wolfs ] New: Jochen A. Fürbacher [ jochenafuerbacher ]
          Jochen A. Fürbacher made changes -
          Assignee Original: Jochen A. Fürbacher [ jochenafuerbacher ] New: Stefan Wolf [ wolfs ]

          Jochen A. Fürbacher added a comment - - edited

          I noticed, that this issue occures, if we use special characters in display names of projects, such as ampersands and that name get put in the label parameter of a diagraph node. Then dot also throws an error, if I manually run dot with the generated graph.vz file:

           

          Error: not well-formed (invalid token) in line 1
          ... <td align="center" href="http://myjenkinsinstance/job/MyJob/" >X & Y ...
          in label of node X & Y
          

           

          When I manually escape the ampersand character in the generated graph.vz file, then dot can gerate a valid image.

          I think, there's some problem with special characters that should get escaped. Maybe in this method.

          Jochen A. Fürbacher added a comment - - edited I noticed, that this issue occures, if we use special characters in display names of projects, such as ampersands and that name get put in the label parameter of a diagraph node. Then dot also throws an error, if I manually run dot with the generated graph.vz file:   Error: not well-formed (invalid token) in line 1 ... <td align= "center" href= "http: //myjenkinsinstance/job/MyJob/" >X & Y ... in label of node X & Y   When I manually escape the ampersand character in the generated graph.vz file, then dot can gerate a valid image. I think, there's some problem with special characters that should get escaped. Maybe in this method.
          Vikas Kumar made changes -
          Attachment New: 2017-03-15_23-35-45.png [ 36533 ]

          Vikas Kumar added a comment - - edited

          Hey jochenafuerbacher,

          It working for me even when using jobs names without any special characters. Have a look at the below screenshot.

          Vikas Kumar added a comment - - edited Hey jochenafuerbacher , It working for me even when using jobs names without any special characters. Have a look at the below screenshot.

            wolfs Stefan Wolf
            vikas027 Vikas Kumar
            Votes:
            2 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated: