com.atlassian.plugin.osgi.container.OsgiContainerException: Unable to install bundle

Atlassian JIRA | Malik Mangier | DevTools PA | 4 years ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    [BSERV-3766] Permission check on Stash installation files - Atlassian JIRA

    atlassian.com | 1 year ago
    com.atlassian.plugin.osgi.container.OsgiContainerException: Unable to install bundle
  2. 0

    Upon Stash restart, the following is logged: {noformat} 2013-07-30 12:16:18,997 INFO [localhost-startStop-1] c.a.s.internal.home.HomeLockAcquirer Successfully acquired lock on home directory /usr/local/Stash for 4773@NLAMSQBSC01 2013-07-30 12:16:47,558 INFO [localhost-startStop-1] c.a.s.i.hook.DefaultHookService Hook callback socket listening on 127.0.0.1:46182 2013-07-30 12:16:47,881 INFO [localhost-startStop-1] c.a.s.i.server.ApplicationInfoLogger Starting Stash 2.3.0 (72a2042b28 built on Mon Mar 25 23:16:03 CET 2013) 2013-07-30 12:16:47,881 INFO [localhost-startStop-1] c.a.s.i.server.ApplicationInfoLogger JVM: Sun Microsystems Inc. Java HotSpot(TM) 64-Bit Server VM 1.6.0_45-b06 2013-07-30 12:16:57,878 WARN [localhost-startStop-1] c.a.plugin.osgi.factory.OsgiPlugin Unable to install plugin 'com.atlassian.plugins.rest.atlassian-rest-module' com.atlassian.plugin.osgi.container.OsgiContainerException: Unable to install bundle at com.atlassian.plugin.osgi.container.felix.FelixOsgiContainerManager.installBundle(FelixOsgiContainerManager.java:473) ~[atlassian-plugins-osgi-2.13.4.jar:na] at com.atlassian.plugin.osgi.factory.OsgiPluginUninstalledHelper.install(OsgiPluginUninstalledHelper.java:68) ~[atlassian-plugins-osgi-2.13.4.jar:na] at com.atlassian.plugin.osgi.factory.OsgiPlugin.installInternal(OsgiPlugin.java:381) ~[atlassian-plugins-osgi-2.13.4.jar:na] at com.atlassian.plugin.impl.AbstractPlugin.install(AbstractPlugin.java:329) ~[atlassian-plugins-core-2.13.4.jar:na] at com.atlassian.plugin.impl.AbstractDelegatingPlugin.install(AbstractDelegatingPlugin.java:205) [atlassian-plugins-core-2.13.4.jar:na] at com.atlassian.plugin.manager.DefaultPluginManager.addPlugins(DefaultPluginManager.java:706) [atlassian-plugins-core-2.13.4.jar:na] at com.atlassian.plugin.manager.DefaultPluginManager.init(DefaultPluginManager.java:178) [atlassian-plugins-core-2.13.4.jar:na] Caused by: org.osgi.framework.BundleException: Invalid bundle format at com.atlassian.plugin.osgi.container.felix.FelixOsgiContainerManager$BundleRegistration.install(FelixOsgiContainerManager.java:624) ~[atlassian-plugins-osgi-2.13.4.jar:na] at com.atlassian.plugin.osgi.container.felix.FelixOsgiContainerManager.installBundle(FelixOsgiContainerManager.java:469) ~[atlassian-plugins-osgi-2.13.4.jar:na] ... 26 common frames omitted Caused by: java.util.zip.ZipException: error in opening zip file at java.util.zip.ZipFile.open(Native Method) ~[na:1.6.0_45] at java.util.zip.ZipFile.<init>(ZipFile.java:127) ~[na:1.6.0_45] at java.util.jar.JarFile.<init>(JarFile.java:136) ~[na:1.6.0_45] at java.util.jar.JarFile.<init>(JarFile.java:100) ~[na:1.6.0_45] at com.atlassian.plugin.osgi.container.felix.FelixOsgiContainerManager$BundleRegistration.install(FelixOsgiContainerManager.java:602) ~[atlassian-plugins-osgi-2.13.4.jar:na] ... 27 common frames omitted {noformat} {noformat} 2013-07-30 12:16:57,890 ERROR [localhost-startStop-1] o.s.web.context.ContextLoader Context initialization failed com.atlassian.plugin.osgi.container.OsgiContainerException: Unable to install bundle at com.atlassian.plugin.osgi.container.felix.FelixOsgiContainerManager.installBundle(FelixOsgiContainerManager.java:473) ~[atlassian-plugins-osgi-2.13.4.jar:na] at com.atlassian.plugin.osgi.factory.OsgiPluginUninstalledHelper.install(OsgiPluginUninstalledHelper.java:68) ~[atlassian-plugins-osgi-2.13.4.jar:na] at com.atlassian.plugin.osgi.factory.OsgiPlugin.installInternal(OsgiPlugin.java:381) ~[atlassian-plugins-osgi-2.13.4.jar:na] [...] Caused by: org.osgi.framework.BundleException: Invalid bundle format at com.atlassian.plugin.osgi.container.felix.FelixOsgiContainerManager$BundleRegistration.install(FelixOsgiContainerManager.java:624) ~[atlassian-plugins-osgi-2.13.4.jar:na] at com.atlassian.plugin.osgi.container.felix.FelixOsgiContainerManager.installBundle(FelixOsgiContainerManager.java:469) ~[atlassian-plugins-osgi-2.13.4.jar:na] ... 26 common frames omitted Caused by: java.util.zip.ZipException: error in opening zip file at java.util.zip.ZipFile.open(Native Method) ~[na:1.6.0_45] at java.util.zip.ZipFile.<init>(ZipFile.java:127) ~[na:1.6.0_45] at java.util.jar.JarFile.<init>(JarFile.java:136) ~[na:1.6.0_45] at java.util.jar.JarFile.<init>(JarFile.java:100) ~[na:1.6.0_45] at com.atlassian.plugin.osgi.container.felix.FelixOsgiContainerManager$BundleRegistration.install(FelixOsgiContainerManager.java:602) ~[atlassian-plugins-osgi-2.13.4.jar:na] ... 27 common frames omitted {noformat} {noformat} 2013-07-30 12:16:57,893 ERROR [localhost-startStop-1] c.a.j.s.w.c.JohnsonContextLoaderListener The Spring WebApplicationContext could not be started com.atlassian.plugin.osgi.container.OsgiContainerException: Unable to install bundle at com.atlassian.plugin.osgi.container.felix.FelixOsgiContainerManager.installBundle(FelixOsgiContainerManager.java:473) ~[atlassian-plugins-osgi-2.13.4.jar:na] at com.atlassian.plugin.osgi.factory.OsgiPluginUninstalledHelper.install(OsgiPluginUninstalledHelper.java:68) ~[atlassian-plugins-osgi-2.13.4.jar:na] at com.atlassian.plugin.osgi.factory.OsgiPlugin.installInternal(OsgiPlugin.java:381) ~[atlassian-plugins-osgi-2.13.4.jar:na] [...] Caused by: org.osgi.framework.BundleException: Invalid bundle format at com.atlassian.plugin.osgi.container.felix.FelixOsgiContainerManager$BundleRegistration.install(FelixOsgiContainerManager.java:624) ~[atlassian-plugins-osgi-2.13.4.jar:na] at com.atlassian.plugin.osgi.container.felix.FelixOsgiContainerManager.installBundle(FelixOsgiContainerManager.java:469) ~[atlassian-plugins-osgi-2.13.4.jar:na] ... 26 common frames omitted Caused by: java.util.zip.ZipException: error in opening zip file at java.util.zip.ZipFile.open(Native Method) ~[na:1.6.0_45] at java.util.zip.ZipFile.<init>(ZipFile.java:127) ~[na:1.6.0_45] at java.util.jar.JarFile.<init>(JarFile.java:136) ~[na:1.6.0_45] at java.util.jar.JarFile.<init>(JarFile.java:100) ~[na:1.6.0_45] at com.atlassian.plugin.osgi.container.felix.FelixOsgiContainerManager$BundleRegistration.install(FelixOsgiContainerManager.java:602) ~[atlassian-plugins-osgi-2.13.4.jar:na] ... 27 common frames omitted {noformat} {noformat} 2013-07-30 12:16:58,131 ERROR [localhost-startStop-1] c.a.j.s.w.c.s.JohnsonHttpRequestHandlerServlet Bypassing HttpRequestHandlerServlet [fileServerServlet] initialisation; Spring initialisation failed: The Spring WebApplicationContext could not be started 2013-07-30 12:16:58,131 ERROR [localhost-startStop-1] c.a.j.s.w.c.s.JohnsonHttpRequestHandlerServlet Bypassing HttpRequestHandlerServlet [scmServlet] initialisation; Spring initialisation failed: The Spring WebApplicationContext could not be started 2013-07-30 12:16:58,131 ERROR [localhost-startStop-1] c.a.j.s.w.c.s.JohnsonHttpRequestHandlerServlet Bypassing HttpRequestHandlerServlet [streamsEmptyActivityServlet] initialisation; Spring initialisation failed: The Spring WebApplicationContext could not be started 2013-07-30 12:16:58,163 ERROR [localhost-startStop-1] c.a.j.s.w.s.JohnsonDispatcherServlet Bypassing SpringMVC dispatcher [spring-mvc] initialisation; Spring initialisation failed: The Spring WebApplicationContext could not be started 2013-07-30 12:16:58,623 WARN [http-bio-7990-exec-1] c.a.j.s.w.f.BypassableDelegatingFilterProxy Bypassing [requestAttributeFilter]; no Spring WebApplicationContext is available 2013-07-30 12:16:58,892 WARN [http-bio-7990-exec-2] c.a.j.s.w.f.BypassableDelegatingFilterProxy Bypassing [requestAttributeFilter]; no Spring WebApplicationContext is available {noformat} Problem was unsufficient rights to subdirectory of <STASH_HOME>/plugins. Removed directories and restarted stash. It seems like the access rights for the plugin directory were messed up. It might be a good idea to implement a 'directory access sanity check' upon starting stash/jira/etc. That way, such small errors can be located and solved more quickly.

    Atlassian JIRA | 4 years ago | Malik Mangier
    com.atlassian.plugin.osgi.container.OsgiContainerException: Unable to install bundle
  3. 0

    Upon Stash restart, the following is logged: {noformat} 2013-07-30 12:16:18,997 INFO [localhost-startStop-1] c.a.s.internal.home.HomeLockAcquirer Successfully acquired lock on home directory /usr/local/Stash for 4773@NLAMSQBSC01 2013-07-30 12:16:47,558 INFO [localhost-startStop-1] c.a.s.i.hook.DefaultHookService Hook callback socket listening on 127.0.0.1:46182 2013-07-30 12:16:47,881 INFO [localhost-startStop-1] c.a.s.i.server.ApplicationInfoLogger Starting Stash 2.3.0 (72a2042b28 built on Mon Mar 25 23:16:03 CET 2013) 2013-07-30 12:16:47,881 INFO [localhost-startStop-1] c.a.s.i.server.ApplicationInfoLogger JVM: Sun Microsystems Inc. Java HotSpot(TM) 64-Bit Server VM 1.6.0_45-b06 2013-07-30 12:16:57,878 WARN [localhost-startStop-1] c.a.plugin.osgi.factory.OsgiPlugin Unable to install plugin 'com.atlassian.plugins.rest.atlassian-rest-module' com.atlassian.plugin.osgi.container.OsgiContainerException: Unable to install bundle at com.atlassian.plugin.osgi.container.felix.FelixOsgiContainerManager.installBundle(FelixOsgiContainerManager.java:473) ~[atlassian-plugins-osgi-2.13.4.jar:na] at com.atlassian.plugin.osgi.factory.OsgiPluginUninstalledHelper.install(OsgiPluginUninstalledHelper.java:68) ~[atlassian-plugins-osgi-2.13.4.jar:na] at com.atlassian.plugin.osgi.factory.OsgiPlugin.installInternal(OsgiPlugin.java:381) ~[atlassian-plugins-osgi-2.13.4.jar:na] at com.atlassian.plugin.impl.AbstractPlugin.install(AbstractPlugin.java:329) ~[atlassian-plugins-core-2.13.4.jar:na] at com.atlassian.plugin.impl.AbstractDelegatingPlugin.install(AbstractDelegatingPlugin.java:205) [atlassian-plugins-core-2.13.4.jar:na] at com.atlassian.plugin.manager.DefaultPluginManager.addPlugins(DefaultPluginManager.java:706) [atlassian-plugins-core-2.13.4.jar:na] at com.atlassian.plugin.manager.DefaultPluginManager.init(DefaultPluginManager.java:178) [atlassian-plugins-core-2.13.4.jar:na] Caused by: org.osgi.framework.BundleException: Invalid bundle format at com.atlassian.plugin.osgi.container.felix.FelixOsgiContainerManager$BundleRegistration.install(FelixOsgiContainerManager.java:624) ~[atlassian-plugins-osgi-2.13.4.jar:na] at com.atlassian.plugin.osgi.container.felix.FelixOsgiContainerManager.installBundle(FelixOsgiContainerManager.java:469) ~[atlassian-plugins-osgi-2.13.4.jar:na] ... 26 common frames omitted Caused by: java.util.zip.ZipException: error in opening zip file at java.util.zip.ZipFile.open(Native Method) ~[na:1.6.0_45] at java.util.zip.ZipFile.<init>(ZipFile.java:127) ~[na:1.6.0_45] at java.util.jar.JarFile.<init>(JarFile.java:136) ~[na:1.6.0_45] at java.util.jar.JarFile.<init>(JarFile.java:100) ~[na:1.6.0_45] at com.atlassian.plugin.osgi.container.felix.FelixOsgiContainerManager$BundleRegistration.install(FelixOsgiContainerManager.java:602) ~[atlassian-plugins-osgi-2.13.4.jar:na] ... 27 common frames omitted {noformat} {noformat} 2013-07-30 12:16:57,890 ERROR [localhost-startStop-1] o.s.web.context.ContextLoader Context initialization failed com.atlassian.plugin.osgi.container.OsgiContainerException: Unable to install bundle at com.atlassian.plugin.osgi.container.felix.FelixOsgiContainerManager.installBundle(FelixOsgiContainerManager.java:473) ~[atlassian-plugins-osgi-2.13.4.jar:na] at com.atlassian.plugin.osgi.factory.OsgiPluginUninstalledHelper.install(OsgiPluginUninstalledHelper.java:68) ~[atlassian-plugins-osgi-2.13.4.jar:na] at com.atlassian.plugin.osgi.factory.OsgiPlugin.installInternal(OsgiPlugin.java:381) ~[atlassian-plugins-osgi-2.13.4.jar:na] [...] Caused by: org.osgi.framework.BundleException: Invalid bundle format at com.atlassian.plugin.osgi.container.felix.FelixOsgiContainerManager$BundleRegistration.install(FelixOsgiContainerManager.java:624) ~[atlassian-plugins-osgi-2.13.4.jar:na] at com.atlassian.plugin.osgi.container.felix.FelixOsgiContainerManager.installBundle(FelixOsgiContainerManager.java:469) ~[atlassian-plugins-osgi-2.13.4.jar:na] ... 26 common frames omitted Caused by: java.util.zip.ZipException: error in opening zip file at java.util.zip.ZipFile.open(Native Method) ~[na:1.6.0_45] at java.util.zip.ZipFile.<init>(ZipFile.java:127) ~[na:1.6.0_45] at java.util.jar.JarFile.<init>(JarFile.java:136) ~[na:1.6.0_45] at java.util.jar.JarFile.<init>(JarFile.java:100) ~[na:1.6.0_45] at com.atlassian.plugin.osgi.container.felix.FelixOsgiContainerManager$BundleRegistration.install(FelixOsgiContainerManager.java:602) ~[atlassian-plugins-osgi-2.13.4.jar:na] ... 27 common frames omitted {noformat} {noformat} 2013-07-30 12:16:57,893 ERROR [localhost-startStop-1] c.a.j.s.w.c.JohnsonContextLoaderListener The Spring WebApplicationContext could not be started com.atlassian.plugin.osgi.container.OsgiContainerException: Unable to install bundle at com.atlassian.plugin.osgi.container.felix.FelixOsgiContainerManager.installBundle(FelixOsgiContainerManager.java:473) ~[atlassian-plugins-osgi-2.13.4.jar:na] at com.atlassian.plugin.osgi.factory.OsgiPluginUninstalledHelper.install(OsgiPluginUninstalledHelper.java:68) ~[atlassian-plugins-osgi-2.13.4.jar:na] at com.atlassian.plugin.osgi.factory.OsgiPlugin.installInternal(OsgiPlugin.java:381) ~[atlassian-plugins-osgi-2.13.4.jar:na] [...] Caused by: org.osgi.framework.BundleException: Invalid bundle format at com.atlassian.plugin.osgi.container.felix.FelixOsgiContainerManager$BundleRegistration.install(FelixOsgiContainerManager.java:624) ~[atlassian-plugins-osgi-2.13.4.jar:na] at com.atlassian.plugin.osgi.container.felix.FelixOsgiContainerManager.installBundle(FelixOsgiContainerManager.java:469) ~[atlassian-plugins-osgi-2.13.4.jar:na] ... 26 common frames omitted Caused by: java.util.zip.ZipException: error in opening zip file at java.util.zip.ZipFile.open(Native Method) ~[na:1.6.0_45] at java.util.zip.ZipFile.<init>(ZipFile.java:127) ~[na:1.6.0_45] at java.util.jar.JarFile.<init>(JarFile.java:136) ~[na:1.6.0_45] at java.util.jar.JarFile.<init>(JarFile.java:100) ~[na:1.6.0_45] at com.atlassian.plugin.osgi.container.felix.FelixOsgiContainerManager$BundleRegistration.install(FelixOsgiContainerManager.java:602) ~[atlassian-plugins-osgi-2.13.4.jar:na] ... 27 common frames omitted {noformat} {noformat} 2013-07-30 12:16:58,131 ERROR [localhost-startStop-1] c.a.j.s.w.c.s.JohnsonHttpRequestHandlerServlet Bypassing HttpRequestHandlerServlet [fileServerServlet] initialisation; Spring initialisation failed: The Spring WebApplicationContext could not be started 2013-07-30 12:16:58,131 ERROR [localhost-startStop-1] c.a.j.s.w.c.s.JohnsonHttpRequestHandlerServlet Bypassing HttpRequestHandlerServlet [scmServlet] initialisation; Spring initialisation failed: The Spring WebApplicationContext could not be started 2013-07-30 12:16:58,131 ERROR [localhost-startStop-1] c.a.j.s.w.c.s.JohnsonHttpRequestHandlerServlet Bypassing HttpRequestHandlerServlet [streamsEmptyActivityServlet] initialisation; Spring initialisation failed: The Spring WebApplicationContext could not be started 2013-07-30 12:16:58,163 ERROR [localhost-startStop-1] c.a.j.s.w.s.JohnsonDispatcherServlet Bypassing SpringMVC dispatcher [spring-mvc] initialisation; Spring initialisation failed: The Spring WebApplicationContext could not be started 2013-07-30 12:16:58,623 WARN [http-bio-7990-exec-1] c.a.j.s.w.f.BypassableDelegatingFilterProxy Bypassing [requestAttributeFilter]; no Spring WebApplicationContext is available 2013-07-30 12:16:58,892 WARN [http-bio-7990-exec-2] c.a.j.s.w.f.BypassableDelegatingFilterProxy Bypassing [requestAttributeFilter]; no Spring WebApplicationContext is available {noformat} Problem was unsufficient rights to subdirectory of <STASH_HOME>/plugins. Removed directories and restarted stash. It seems like the access rights for the plugin directory were messed up. It might be a good idea to implement a 'directory access sanity check' upon starting stash/jira/etc. That way, such small errors can be located and solved more quickly.

    Atlassian JIRA | 4 years ago | Malik Mangier | DevTools PA
    com.atlassian.plugin.osgi.container.OsgiContainerException: Unable to install bundle
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. com.atlassian.plugin.osgi.container.OsgiContainerException

      Unable to install bundle

      at com.atlassian.plugin.osgi.container.felix.FelixOsgiContainerManager.installBundle()
    2. com.atlassian.plugin
      OsgiPlugin.installInternal
      1. com.atlassian.plugin.osgi.container.felix.FelixOsgiContainerManager.installBundle(FelixOsgiContainerManager.java:473)[atlassian-plugins-osgi-2.13.4.jar:na]
      2. com.atlassian.plugin.osgi.factory.OsgiPluginUninstalledHelper.install(OsgiPluginUninstalledHelper.java:68)[atlassian-plugins-osgi-2.13.4.jar:na]
      3. com.atlassian.plugin.osgi.factory.OsgiPlugin.installInternal(OsgiPlugin.java:381)[atlassian-plugins-osgi-2.13.4.jar:na]
      3 frames