Issue #299 resolved

Plugins are not updated when restarting server

hyltonpeimer
created an issue

Standalone server 1.24

Update a plugin using the SCM Manager UI, "Update" link.

Restart the server.

The plugin still has the "Update" link available.

Comments (27)

  1. Sebastian Sdorra repo owner

    Hi, Today i've checked all files, but it does not make any sense. Because the plugins.json, which display all plugins with all states (available, installed or newer is installed), shows the jira plugin with the state installed:

    {
      artifactId: "scm-jira-plugin",
      author: "Sebastian Sdorra",
      category: "Issue-Tracking",
      condition: {
        arch: null,
        min-version: "1.23"
      },
      description: "This plugin integrates Atlassian JIRA to SCM-Manager.",
      groupId: "sonia.scm.plugins",
      name: "scm-jira-plugin",
      state: "INSTALLED",
      url: "https://bitbucket.org/sdorra/scm-jira-plugin",
      version: "1.8",
      wiki: "https://bitbucket.org/sdorra/scm-manager/wiki/jira-plugin"
    }
    

    But the overview.json, which is only a filtered view of the plugin.json, shows the jira plugin with state available:

    {
      artifactId: "scm-jira-plugin",
      author: "Sebastian Sdorra",
      category: "Issue-Tracking",
      condition: {
        arch: null,
        min-version: "1.23"
      },
      description: "This plugin integrates Atlassian JIRA to SCM-Manager.",
      groupId: "sonia.scm.plugins",
      name: "scm-jira-plugin",
      state: "AVAILABLE",
      url: "https://bitbucket.org/sdorra/scm-jira-plugin",
      version: "1.8",
      wiki: "https://bitbucket.org/sdorra/scm-manager/wiki/jira-plugin"
    }
    

    This is theoretically impossible. Could you zip your whole plugins folder and post it?

  2. John Peacock

    I'm having precisely the same behavior with a fresh 1.24 installation (as both standalone and webservice) when I try and activate the LDAP auth plugin. plugins.json shows it as INSTALLED but overview.json shows AVAILABLE instead. I'm going to try 1.23 instead (this is a fresh install so I have nothing to lose)...

  3. Sebastian Sdorra repo owner

    That is really strange, because version 1.24 does only change the default date format of scm-manager. There is no change for the plugin system. Did your restart your application server, after installing the plugin?

  4. hyltonpeimer reporter

    Sorry for the delayed response. I was working on a virtual machine and I didn't keep the original SCM-Manager server.

    However I reproduced the problem on a clean installation. I tried to install JIRA plugin, then restarted. After restart the JIRA plugin action is still "Install".

    Attached is my plugin directory.

  5. Sebastian Sdorra repo owner

    Ok, it looks like there is a problem with the installation of the plugin. The plugin directory should look like the following, after a successful installation of the jira plugin:

    .
    ./aopalliance
    ./aopalliance/aopalliance
    ./aopalliance/aopalliance/1.0
    ./aopalliance/aopalliance/1.0/_maven.repositories
    ./aopalliance/aopalliance/1.0/aopalliance-1.0.pom
    ./aopalliance/aopalliance/1.0/aopalliance-1.0.pom.sha1
    ./axis
    ./axis/axis
    ./axis/axis/1.4
    ./axis/axis/1.4/_maven.repositories
    ./axis/axis/1.4/axis-1.4.jar
    ./axis/axis/1.4/axis-1.4.jar.sha1
    ./axis/axis/1.4/axis-1.4.pom
    ./axis/axis/1.4/axis-1.4.pom.sha1
    ./axis/axis-jaxrpc
    ./axis/axis-jaxrpc/1.4
    ./axis/axis-jaxrpc/1.4/_maven.repositories
    ./axis/axis-jaxrpc/1.4/axis-jaxrpc-1.4.pom
    ./axis/axis-jaxrpc/1.4/axis-jaxrpc-1.4.pom.sha1
    ./axis/axis-saaj
    ./axis/axis-saaj/1.4
    ./axis/axis-saaj/1.4/_maven.repositories
    ./axis/axis-saaj/1.4/axis-saaj-1.4.pom
    ./axis/axis-saaj/1.4/axis-saaj-1.4.pom.sha1
    ./axis/axis-wsdl4j
    ./axis/axis-wsdl4j/1.5.1
    ./axis/axis-wsdl4j/1.5.1/_maven.repositories
    ./axis/axis-wsdl4j/1.5.1/axis-wsdl4j-1.5.1.jar
    ./axis/axis-wsdl4j/1.5.1/axis-wsdl4j-1.5.1.jar.sha1
    ./axis/axis-wsdl4j/1.5.1/axis-wsdl4j-1.5.1.pom
    ./axis/axis-wsdl4j/1.5.1/axis-wsdl4j-1.5.1.pom.sha1
    ./classpath.xml
    ./com
    ./com/google
    ./com/google/google
    ./com/google/google/5
    ./com/google/google/5/_maven.repositories
    ./com/google/google/5/google-5.pom
    ./com/google/google/5/google-5.pom.sha1
    ./com/google/guava
    ./com/google/guava/guava
    ./com/google/guava/guava/13.0.1
    ./com/google/guava/guava/13.0.1/_maven.repositories
    ./com/google/guava/guava/13.0.1/guava-13.0.1.pom
    ./com/google/guava/guava/13.0.1/guava-13.0.1.pom.sha1
    ./com/google/guava/guava-parent
    ./com/google/guava/guava-parent/13.0.1
    ./com/google/guava/guava-parent/13.0.1/_maven.repositories
    ./com/google/guava/guava-parent/13.0.1/guava-parent-13.0.1.pom
    ./com/google/guava/guava-parent/13.0.1/guava-parent-13.0.1.pom.sha1
    ./com/google/inject
    ./com/google/inject/extensions
    ./com/google/inject/extensions/extensions-parent
    ./com/google/inject/extensions/extensions-parent/3.0
    ./com/google/inject/extensions/extensions-parent/3.0/_maven.repositories
    ./com/google/inject/extensions/extensions-parent/3.0/extensions-parent-3.0.pom
    ./com/google/inject/extensions/extensions-parent/3.0/extensions-parent-3.0.pom.sha1
    ./com/google/inject/extensions/guice-multibindings
    ./com/google/inject/extensions/guice-multibindings/3.0
    ./com/google/inject/extensions/guice-multibindings/3.0/_maven.repositories
    ./com/google/inject/extensions/guice-multibindings/3.0/guice-multibindings-3.0.pom
    ./com/google/inject/extensions/guice-multibindings/3.0/guice-multibindings-3.0.pom.sha1
    ./com/google/inject/extensions/guice-servlet
    ./com/google/inject/extensions/guice-servlet/3.0
    ./com/google/inject/extensions/guice-servlet/3.0/_maven.repositories
    ./com/google/inject/extensions/guice-servlet/3.0/guice-servlet-3.0.pom
    ./com/google/inject/extensions/guice-servlet/3.0/guice-servlet-3.0.pom.sha1
    ./com/google/inject/extensions/guice-throwingproviders
    ./com/google/inject/extensions/guice-throwingproviders/3.0
    ./com/google/inject/extensions/guice-throwingproviders/3.0/_maven.repositories
    ./com/google/inject/extensions/guice-throwingproviders/3.0/guice-throwingproviders-3.0.pom
    ./com/google/inject/extensions/guice-throwingproviders/3.0/guice-throwingproviders-3.0.pom.sha1
    ./com/google/inject/guice
    ./com/google/inject/guice/3.0
    ./com/google/inject/guice/3.0/_maven.repositories
    ./com/google/inject/guice/3.0/guice-3.0.pom
    ./com/google/inject/guice/3.0/guice-3.0.pom.sha1
    ./com/google/inject/guice-parent
    ./com/google/inject/guice-parent/3.0
    ./com/google/inject/guice-parent/3.0/_maven.repositories
    ./com/google/inject/guice-parent/3.0/guice-parent-3.0.pom
    ./com/google/inject/guice-parent/3.0/guice-parent-3.0.pom.sha1
    ./com/sun
    ./com/sun/jersey
    ./com/sun/jersey/jersey-core
    ./com/sun/jersey/jersey-core/1.16
    ./com/sun/jersey/jersey-core/1.16/_maven.repositories
    ./com/sun/jersey/jersey-core/1.16/jersey-core-1.16.pom
    ./com/sun/jersey/jersey-core/1.16/jersey-core-1.16.pom.sha1
    ./com/sun/jersey/jersey-project
    ./com/sun/jersey/jersey-project/1.16
    ./com/sun/jersey/jersey-project/1.16/_maven.repositories
    ./com/sun/jersey/jersey-project/1.16/jersey-project-1.16.pom
    ./com/sun/jersey/jersey-project/1.16/jersey-project-1.16.pom.sha1
    ./commons-beanutils
    ./commons-beanutils/commons-beanutils
    ./commons-beanutils/commons-beanutils/1.8.3
    ./commons-beanutils/commons-beanutils/1.8.3/_maven.repositories
    ./commons-beanutils/commons-beanutils/1.8.3/commons-beanutils-1.8.3.pom
    ./commons-beanutils/commons-beanutils/1.8.3/commons-beanutils-1.8.3.pom.sha1
    ./commons-discovery
    ./commons-discovery/commons-discovery
    ./commons-discovery/commons-discovery/0.2
    ./commons-discovery/commons-discovery/0.2/_maven.repositories
    ./commons-discovery/commons-discovery/0.2/commons-discovery-0.2.jar
    ./commons-discovery/commons-discovery/0.2/commons-discovery-0.2.jar.sha1
    ./commons-discovery/commons-discovery/0.2/commons-discovery-0.2.pom
    ./commons-discovery/commons-discovery/0.2/commons-discovery-0.2.pom.sha1
    ./commons-lang
    ./commons-lang/commons-lang
    ./commons-lang/commons-lang/2.6
    ./commons-lang/commons-lang/2.6/_maven.repositories
    ./commons-lang/commons-lang/2.6/commons-lang-2.6.pom
    ./commons-lang/commons-lang/2.6/commons-lang-2.6.pom.sha1
    ./commons-logging
    ./commons-logging/commons-logging
    ./commons-logging/commons-logging/1.0.3
    ./commons-logging/commons-logging/1.0.3/_maven.repositories
    ./commons-logging/commons-logging/1.0.3/commons-logging-1.0.3.pom
    ./commons-logging/commons-logging/1.0.3/commons-logging-1.0.3.pom.sha1
    ./commons-logging/commons-logging/1.0.4
    ./commons-logging/commons-logging/1.0.4/_maven.repositories
    ./commons-logging/commons-logging/1.0.4/commons-logging-1.0.4.pom
    ./commons-logging/commons-logging/1.0.4/commons-logging-1.0.4.pom.sha1
    ./javax
    ./javax/inject
    ./javax/inject/javax.inject
    ./javax/inject/javax.inject/1
    ./javax/inject/javax.inject/1/_maven.repositories
    ./javax/inject/javax.inject/1/javax.inject-1.pom
    ./javax/inject/javax.inject/1/javax.inject-1.pom.sha1
    ./net
    ./net/java
    ./net/java/jvnet-parent
    ./net/java/jvnet-parent/1
    ./net/java/jvnet-parent/1/_maven.repositories
    ./net/java/jvnet-parent/1/jvnet-parent-1.pom
    ./net/java/jvnet-parent/1/jvnet-parent-1.pom.sha1
    ./org
    ./org/apache
    ./org/apache/apache
    ./org/apache/apache/7
    ./org/apache/apache/7/_maven.repositories
    ./org/apache/apache/7/apache-7.pom
    ./org/apache/apache/7/apache-7.pom.sha1
    ./org/apache/axis
    ./org/apache/axis/axis-jaxrpc
    ./org/apache/axis/axis-jaxrpc/1.4
    ./org/apache/axis/axis-jaxrpc/1.4/_maven.repositories
    ./org/apache/axis/axis-jaxrpc/1.4/axis-jaxrpc-1.4.jar
    ./org/apache/axis/axis-jaxrpc/1.4/axis-jaxrpc-1.4.jar.sha1
    ./org/apache/axis/axis-jaxrpc/1.4/axis-jaxrpc-1.4.pom
    ./org/apache/axis/axis-jaxrpc/1.4/axis-jaxrpc-1.4.pom.sha1
    ./org/apache/axis/axis-saaj
    ./org/apache/axis/axis-saaj/1.4
    ./org/apache/axis/axis-saaj/1.4/_maven.repositories
    ./org/apache/axis/axis-saaj/1.4/axis-saaj-1.4.jar
    ./org/apache/axis/axis-saaj/1.4/axis-saaj-1.4.jar.sha1
    ./org/apache/axis/axis-saaj/1.4/axis-saaj-1.4.pom
    ./org/apache/axis/axis-saaj/1.4/axis-saaj-1.4.pom.sha1
    ./org/apache/commons
    ./org/apache/commons/commons-parent
    ./org/apache/commons/commons-parent/14
    ./org/apache/commons/commons-parent/14/_maven.repositories
    ./org/apache/commons/commons-parent/14/commons-parent-14.pom
    ./org/apache/commons/commons-parent/14/commons-parent-14.pom.sha1
    ./org/apache/commons/commons-parent/17
    ./org/apache/commons/commons-parent/17/_maven.repositories
    ./org/apache/commons/commons-parent/17/commons-parent-17.pom
    ./org/apache/commons/commons-parent/17/commons-parent-17.pom.sha1
    ./org/apache/shiro
    ./org/apache/shiro/shiro-core
    ./org/apache/shiro/shiro-core/1.2.1
    ./org/apache/shiro/shiro-core/1.2.1/_maven.repositories
    ./org/apache/shiro/shiro-core/1.2.1/shiro-core-1.2.1.pom
    ./org/apache/shiro/shiro-core/1.2.1/shiro-core-1.2.1.pom.sha1
    ./org/apache/shiro/shiro-root
    ./org/apache/shiro/shiro-root/1.2.1
    ./org/apache/shiro/shiro-root/1.2.1/_maven.repositories
    ./org/apache/shiro/shiro-root/1.2.1/shiro-root-1.2.1.pom
    ./org/apache/shiro/shiro-root/1.2.1/shiro-root-1.2.1.pom.sha1
    ./org/slf4j
    ./org/slf4j/slf4j-api
    ./org/slf4j/slf4j-api/1.6.4
    ./org/slf4j/slf4j-api/1.6.4/_maven.repositories
    ./org/slf4j/slf4j-api/1.6.4/slf4j-api-1.6.4.pom
    ./org/slf4j/slf4j-api/1.6.4/slf4j-api-1.6.4.pom.sha1
    ./org/slf4j/slf4j-api/1.7.2
    ./org/slf4j/slf4j-api/1.7.2/_maven.repositories
    ./org/slf4j/slf4j-api/1.7.2/slf4j-api-1.7.2.pom
    ./org/slf4j/slf4j-api/1.7.2/slf4j-api-1.7.2.pom.sha1
    ./org/slf4j/slf4j-parent
    ./org/slf4j/slf4j-parent/1.6.4
    ./org/slf4j/slf4j-parent/1.6.4/_maven.repositories
    ./org/slf4j/slf4j-parent/1.6.4/slf4j-parent-1.6.4.pom
    ./org/slf4j/slf4j-parent/1.6.4/slf4j-parent-1.6.4.pom.sha1
    ./org/slf4j/slf4j-parent/1.7.2
    ./org/slf4j/slf4j-parent/1.7.2/_maven.repositories
    ./org/slf4j/slf4j-parent/1.7.2/slf4j-parent-1.7.2.pom
    ./org/slf4j/slf4j-parent/1.7.2/slf4j-parent-1.7.2.pom.sha1
    ./org/sonatype
    ./org/sonatype/oss
    ./org/sonatype/oss/oss-parent
    ./org/sonatype/oss/oss-parent/7
    ./org/sonatype/oss/oss-parent/7/_maven.repositories
    ./org/sonatype/oss/oss-parent/7/oss-parent-7.pom
    ./org/sonatype/oss/oss-parent/7/oss-parent-7.pom.sha1
    ./sonia
    ./sonia/scm
    ./sonia/scm/plugins
    ./sonia/scm/plugins/scm-jira-plugin
    ./sonia/scm/plugins/scm-jira-plugin/1.8
    ./sonia/scm/plugins/scm-jira-plugin/1.8/_maven.repositories
    ./sonia/scm/plugins/scm-jira-plugin/1.8/scm-jira-plugin-1.8.jar
    ./sonia/scm/plugins/scm-jira-plugin/1.8/scm-jira-plugin-1.8.jar.sha1
    ./sonia/scm/plugins/scm-jira-plugin/1.8/scm-jira-plugin-1.8.pom
    ./sonia/scm/plugins/scm-jira-plugin/1.8/scm-jira-plugin-1.8.pom.sha1
    ./sonia/scm/plugins/scm-plugins
    ./sonia/scm/plugins/scm-plugins/1.23
    ./sonia/scm/plugins/scm-plugins/1.23/_maven.repositories
    ./sonia/scm/plugins/scm-plugins/1.23/scm-plugins-1.23.pom
    ./sonia/scm/plugins/scm-plugins/1.23/scm-plugins-1.23.pom.sha1
    ./sonia/scm/scm
    ./sonia/scm/scm/1.23
    ./sonia/scm/scm/1.23/_maven.repositories
    ./sonia/scm/scm/1.23/scm-1.23.pom
    ./sonia/scm/scm/1.23/scm-1.23.pom.sha1
    ./sonia/scm/scm-core
    ./sonia/scm/scm-core/1.23
    ./sonia/scm/scm-core/1.23/_maven.repositories
    ./sonia/scm/scm-core/1.23/scm-core-1.23.pom
    ./sonia/scm/scm-core/1.23/scm-core-1.23.pom.sha1
    

    But in your installation the complete dependencies and the classpath.xml are missing:

    ./scm-jira-plugin
    ./scm-jira-plugin/1.8
    ./scm-jira-plugin/1.8/_maven.repositories
    ./scm-jira-plugin/1.8/scm-jira-plugin-1.8.jar
    ./scm-jira-plugin/1.8/scm-jira-plugin-1.8.jar.sha1
    ./scm-jira-plugin/1.8/scm-jira-plugin-1.8.pom
    ./scm-jira-plugin/1.8/scm-jira-plugin-1.8.pom.sha1
    ./scm-plugins
    ./scm-plugins/1.23
    ./scm-plugins/1.23/_maven.repositories
    ./scm-plugins/1.23/scm-plugins-1.23.pom
    ./scm-plugins/1.23/scm-plugins-1.23.pom.sha1
    
  6. Sebastian Sdorra repo owner

    I've created a new version of scm-manager, which has improve logging support for aether (library which does the most of the plugin installation stuff).

    Changes:

    Could you please do the following steps:

  7. Sebastian Sdorra repo owner

    The installation looks good, do you have the same error after this plugin installation? Do you have a classpath.xml? Could you post the content of the classpath.xml?

  8. Log in to comment