Error during starting of JIRA Server

Julien GERARD June 25, 2018

Hi all,

 

I have the following error in atlassian-jira.log during the start of our local JIRA server.

The error is following two major changes that happen yesterday :

  • The deployment of 4 plugins
  • An infrastructure interruption that caused the reboot of the jira server and postgreSQL server.

We tried to :

  • delete the plugin cache
  • change the delay of jira server startup
  • check the jvm version

 

 This is the first error in the log file at each startup.

2018-06-26 15:07:22,017 localhost-startStop-1 ERROR [webwork.config.DefaultConfiguration] Skipping configuration for class 'com.atlassian.jira.config.webwork.JiraPluginsConfiguration'
java.lang.IllegalStateException: Unable to resolve component: interface com.atlassian.plugin.event.PluginEventManager
at com.atlassian.jira.component.ComponentAccessorWorker.getComponentOfType(ComponentAccessorWorker.java:40)
at com.atlassian.jira.component.ComponentAccessor.getComponentOfType(ComponentAccessor.java:255)
at com.atlassian.jira.config.webwork.JiraPluginsConfiguration.getPluginEventManager(JiraPluginsConfiguration.java:85)
at com.atlassian.jira.config.webwork.JiraPluginsConfiguration$PluginSystemAccessor.<init>(JiraPluginsConfiguration.java:121)
at com.atlassian.jira.config.webwork.JiraPluginsConfiguration.<init>(JiraPluginsConfiguration.java:27)
... 3 filtered
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at java.lang.Class.newInstance(Class.java:442)
at webwork.config.DefaultConfiguration.<init>(DefaultConfiguration.java:116)
at webwork.config.Configuration.getDefaultConfiguration(Configuration.java:135)
at webwork.config.Configuration.getConfiguration(Configuration.java:112)
at com.atlassian.jira.config.webwork.WebworkConfigurator.configureWebwork(WebworkConfigurator.java:66)
at com.atlassian.jira.config.webwork.WebworkConfigurator.setupConfiguration(WebworkConfigurator.java:59)
at com.atlassian.jira.startup.LauncherContextListener.initFastStuff(LauncherContextListener.java:137)
at com.atlassian.jira.startup.LauncherContextListener.contextInitialized(LauncherContextListener.java:101)
... 5 filtered
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
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)
Caused by: java.lang.IllegalStateException
at java.util.Optional.orElseThrow(Optional.java:290)
at com.atlassian.jira.ComponentManager.getRequiredPicoContainer(ComponentManager.java:429)
at com.atlassian.jira.ComponentManager.getComponentInstanceOfType(ComponentManager.java:486)
at com.atlassian.jira.component.ComponentAccessorWorker.getComponentOfType(ComponentAccessorWorker.java:38)
... 25 more

2018-06-26 15:07:33,526 JIRA-Bootstrap ERROR [c.a.event.internal.AsynchronousAbleEventDispatcher] There was an exception thrown trying to dispatch event [com.atlassian.plugin.event.events.PluginFrameworkSta
rtingEvent@10d4f1e5] from the invoker [SingleParameterMethodListenerInvoker{method=public void com.atlassian.plugin.osgi.container.felix.FelixOsgiContainerManager.onStart(com.atlassian.plugin.event.events.Plugin
FrameworkStartingEvent), listener=com.atlassian.jira.plugin.JiraOsgiContainerManager@516908c1}]
java.lang.RuntimeException: Unable to start OSGi container. Listener: com.atlassian.jira.plugin.JiraOsgiContainerManager event: com.atlassian.plugin.event.events.PluginFrameworkStartingEvent
at com.atlassian.event.internal.SingleParameterMethodListenerInvoker.invoke(SingleParameterMethodListenerInvoker.java:55)
at com.atlassian.event.internal.AsynchronousAbleEventDispatcher$1$1.run(AsynchronousAbleEventDispatcher.java:38)
at com.google.common.util.concurrent.MoreExecutors$DirectExecutorService.execute(MoreExecutors.java:299)
at com.atlassian.event.internal.AsynchronousAbleEventDispatcher.dispatch(AsynchronousAbleEventDispatcher.java:88)
at com.atlassian.event.internal.EventPublisherImpl.invokeListeners(EventPublisherImpl.java:204)
at com.atlassian.event.internal.EventPublisherImpl.publish(EventPublisherImpl.java:115)
at com.atlassian.plugin.event.impl.DefaultPluginEventManager.broadcast(DefaultPluginEventManager.java:83)
at com.atlassian.plugin.manager.DefaultPluginManager.broadcastIgnoreError(DefaultPluginManager.java:2129)
at com.atlassian.plugin.manager.DefaultPluginManager.earlyStartup(DefaultPluginManager.java:538)
at com.atlassian.jira.plugin.JiraPluginManager.earlyStartup(JiraPluginManager.java:118)
at com.atlassian.jira.ComponentManager$PluginSystem.earlyStartup(ComponentManager.java:764)
at com.atlassian.jira.ComponentManager.quickStart(ComponentManager.java:199)
at com.atlassian.jira.ComponentManager.start(ComponentManager.java:168)
at com.atlassian.jira.upgrade.PluginSystemLauncher.start(PluginSystemLauncher.java:45)
at com.atlassian.jira.startup.DefaultJiraLauncher.lambda$postDbLaunch$2(DefaultJiraLauncher.java:143)
at com.atlassian.jira.config.database.DatabaseConfigurationManagerImpl.doNowOrEnqueue(DatabaseConfigurationManagerImpl.java:304)
at com.atlassian.jira.config.database.DatabaseConfigurationManagerImpl.doNowOrWhenDatabaseActivated(DatabaseConfigurationManagerImpl.java:199)
at com.atlassian.jira.startup.DefaultJiraLauncher.postDbLaunch(DefaultJiraLauncher.java:135)
at com.atlassian.jira.startup.DefaultJiraLauncher.lambda$start$0(DefaultJiraLauncher.java:102)
at com.atlassian.jira.util.devspeed.JiraDevSpeedTimer.run(JiraDevSpeedTimer.java:31)
at com.atlassian.jira.startup.DefaultJiraLauncher.start(DefaultJiraLauncher.java:100)
at com.atlassian.jira.startup.LauncherContextListener.initSlowStuff(LauncherContextListener.java:157)

at java.lang.Thread.run(Thread.java:745)
Caused by: com.atlassian.plugin.osgi.container.OsgiContainerException: Unable to start OSGi container
at com.atlassian.plugin.osgi.container.felix.FelixOsgiContainerManager.start(FelixOsgiContainerManager.java:353)
at com.atlassian.plugin.osgi.container.felix.FelixOsgiContainerManager.onStart(FelixOsgiContainerManager.java:241)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at com.atlassian.event.internal.SingleParameterMethodListenerInvoker.invoke(SingleParameterMethodListenerInvoker.java:40)
... 22 more
Caused by: java.lang.InterruptedException
at java.lang.Object.wait(Native Method)
at java.lang.Thread.join(Thread.java:1257)
at com.atlassian.plugin.osgi.container.felix.FelixOsgiContainerManager.start(FelixOsgiContainerManager.java:350)
... 28 more
2018-06-26 15:07:34,094 JIRA-Bootstrap ERROR [c.a.plugin.loaders.ScanningPluginLoader] Unable to deploy plugin 'com.atlassian.activeobjects.activeobjects-plugin' from 'Unit: /opt/atlassian/jira/atlassian-ji
ra/WEB-INF/atlassian-bundled-plugins/activeobjects-plugin-1.5.0.jar (1517354092000)'.
2018-06-26 15:07:34,094 JIRA-Bootstrap ERROR [c.a.plugin.loaders.ScanningPluginLoader] Because of the following exception:
java.lang.IllegalStateException: Unable to create a tracker when osgi is not running
at com.atlassian.plugin.osgi.container.felix.FelixOsgiContainerManager.getServiceTracker(FelixOsgiContainerManager.java:490)
at com.atlassian.plugin.osgi.container.felix.FelixOsgiContainerManager.getServiceTracker(FelixOsgiContainerManager.java:482)
at com.atlassian.plugin.osgi.factory.OsgiPluginFactory$1.create(OsgiPluginFactory.java:116)
at com.atlassian.plugin.osgi.factory.OsgiChainedModuleDescriptorFactoryCreator.create(OsgiChainedModuleDescriptorFactoryCreator.java:58)
at com.atlassian.plugin.osgi.factory.OsgiPluginFactory.getChainedModuleDescriptorFactory(OsgiPluginFactory.java:321)
at com.atlassian.plugin.osgi.factory.OsgiPluginFactory.create(OsgiPluginFactory.java:222)
at com.atlassian.jira.plugin.MasterPluginFactory.create(MasterPluginFactory.java:73)
at com.atlassian.plugin.loaders.ScanningPluginLoader.deployPluginFromUnit(ScanningPluginLoader.java:142)
at com.atlassian.plugin.loaders.ScanningPluginLoader.loadAllPlugins(ScanningPluginLoader.java:87)
at com.atlassian.plugin.loaders.PermissionCheckingPluginLoader.loadAllPlugins(PermissionCheckingPluginLoader.java:28)
at com.atlassian.plugin.manager.DefaultPluginManager.earlyStartup(DefaultPluginManager.java:548)
at com.atlassian.jira.plugin.JiraPluginManager.earlyStartup(JiraPluginManager.java:118)
at com.atlassian.jira.ComponentManager$PluginSystem.earlyStartup(ComponentManager.java:764)
at com.atlassian.jira.ComponentManager.quickStart(ComponentManager.java:199)
at com.atlassian.jira.ComponentManager.start(ComponentManager.java:168)
at com.atlassian.jira.upgrade.PluginSystemLauncher.start(PluginSystemLauncher.java:45)
at com.atlassian.jira.startup.DefaultJiraLauncher.lambda$postDbLaunch$2(DefaultJiraLauncher.java:143)
at com.atlassian.jira.config.database.DatabaseConfigurationManagerImpl.doNowOrEnqueue(DatabaseConfigurationManagerImpl.java:304)
at com.atlassian.jira.config.database.DatabaseConfigurationManagerImpl.doNowOrWhenDatabaseActivated(DatabaseConfigurationManagerImpl.java:199)
at com.atlassian.jira.startup.DefaultJiraLauncher.postDbLaunch(DefaultJiraLauncher.java:135)
at com.atlassian.jira.startup.DefaultJiraLauncher.lambda$start$0(DefaultJiraLauncher.java:102)
at com.atlassian.jira.util.devspeed.JiraDevSpeedTimer.run(JiraDevSpeedTimer.java:31)
at com.atlassian.jira.startup.DefaultJiraLauncher.start(DefaultJiraLauncher.java:100)
at com.atlassian.jira.startup.LauncherContextListener.initSlowStuff(LauncherContextListener.java:157)
at java.lang.Thread.run(Thread.java:745)

 

My server has the following configuration : 

___ Environment _____________________________

JIRA Build : 7.7.1#77002-sha1:e75ca93d5574d9409c0630b81c894d9065296414
Build Date : Wed Jan 31 00:00:00 NCT 2018
JIRA Installation Type : Standalone
Application Server : Apache Tomcat/8.5.6 - Servlet API 3.1
Java Version : 1.8.0_102 - Oracle Corporation
Current Working Directory : /opt/atlassian/jira/bin
Maximum Allowable Memory : 1198MB
Total Memory : 1198MB
Free Memory : 1144MB
Used Memory : 54MB
Memory Pool: Code Cache : Code Cache: init = 2555904(2496K) used = 9947968(9714K) committed = 10027008(9792K) max = 251658240(245760K)
Memory Pool: Metaspace : Metaspace: init = 0(0K) used = 21892632(21379K) committed = 22724608(22192K) max = -1(-1K)
Memory Pool: Compressed Class Space : Compressed Class Space: init = 0(0K) used = 2567672(2507K) committed = 2801664(2736K) max = 1073741824(1048576K)
Memory Pool: PS Eden Space : PS Eden Space: init = 327680000(320000K) used = 37375600(36499K) committed = 327680000(320000K) max = 348127232(339968K)
Memory Pool: PS Survivor Space : PS Survivor Space: init = 54525952(53248K) used = 0(0K) committed = 54525952(53248K) max = 54525952(53248K)
Memory Pool: PS Old Gen : PS Old Gen: init = 873988096(853504K) used = 20627064(20143K) committed = 873988096(853504K) max = 873988096(853504K)
JVM Input Arguments : -Djava.util.logging.config.file=/opt/atlassian/jira/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Xms1250m -X
mx1250m -Djava.awt.headless=true -Datlassian.standalone=JIRA -Dorg.apache.jasper.runtime.BodyContentImpl.LIMIT_BUFFER=true -Dmail.mime.decodeparameters=true -Dorg.dom4j.factory=com.atlassian.core.xml.InterningDo
cumentFactory -XX:-OmitStackTraceInFastThrow -Datlassian.plugins.startup.options= -Djdk.tls.ephemeralDHKeySize=2048 -Djava.protocol.handler.pkgs=org.apache.catalina.webresources -Xloggc:/opt/atlassian/jira/logs/
atlassian-jira-gc-%t.log -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=5 -XX:GCLogFileSize=20M -XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+PrintGCTimeStamps -XX:+PrintGCCause -Dhttp.proxyHost=proxy.intra.
cafat.nc -Dhttp.proxyPort=3128 -Dhttp.nonProxyHosts=*.intra.cafat.nc -Dhttps.proxyHost=proxy.intra.cafat.nc -Dhttps.proxyPort=3128 -Dhttps.nonProxyHosts=*.intra.cafat.nc -Dcatalina.base=/opt/atlassian/jira -Dcat
alina.home=/opt/atlassian/jira -Djava.io.tmpdir=/opt/atlassian/jira/temp
Java Compatibility Information : JIRA version = 7.7.1, Java Version = 1.8.0_102

___ Java System Properties _________________

atlassian.plugins.startup.options :
atlassian.standalone : JIRA
awt.toolkit : sun.awt.X11.XToolkit
catalina.base : /opt/atlassian/jira
catalina.home : /opt/atlassian/jira
catalina.useNaming : true
common.loader : "${catalina.base}/lib",
"${catalina.base}/lib/*.jar",
"${catalina.home}/lib",
"${catalina.home}/lib/*.jar"
file.encoding : ANSI_X3.4-1968
file.encoding.pkg : sun.io

java.awt.graphicsenv : sun.awt.X11GraphicsEnvironment
java.awt.headless : true
java.awt.printerjob : sun.print.PSPrinterJob
java.class.version : 52.0
java.home : /opt/atlassian/jira/jre
java.io.tmpdir : /opt/atlassian/jira/temp
java.naming.factory.initial : org.apache.naming.java.javaURLContextFactory
java.naming.factory.url.pkgs : org.apache.naming
java.protocol.handler.pkgs : org.apache.catalina.webresources
java.runtime.name : Java(TM) SE Runtime Environment
java.runtime.version : 1.8.0_102-b14
java.specification.name : Java Platform API Specification
java.specification.vendor : Oracle Corporation
java.specification.version : 1.8
java.util.logging.config.file : /opt/atlassian/jira/conf/logging.properties
java.util.logging.manager : org.apache.juli.ClassLoaderLogManager
java.vendor : Oracle Corporation
java.vendor.url : http://java.oracle.com/
java.vendor.url.bug : http://bugreport.sun.com/bugreport/
java.version : 1.8.0_102
java.vm.info : mixed mode
java.vm.name : Java HotSpot(TM) 64-Bit Server VM
java.vm.specification.name : Java Virtual Machine Specification
java.vm.specification.vendor : Oracle Corporation
java.vm.specification.version : 1.8
java.vm.vendor : Oracle Corporation
java.vm.version : 25.102-b14
jdk.tls.ephemeralDHKeySize : 2048
mail.mime.decodeparameters : true
org.apache.jasper.runtime.BodyContentImpl.LIMIT_BUFFER : true
org.dom4j.factory : com.atlassian.core.xml.InterningDocumentFactory
os.arch : amd64
os.name : Linux
os.version : 3.10.0-693.el7.x86_64
package.access : sun.,
org.apache.catalina.,
org.apache.coyote.,
org.apache.jasper.,
org.apache.tomcat.
package.definition : sun.,
java.,
org.apache.catalina.,
org.apache.coyote.,
org.apache.jasper.,
org.apache.naming.,
org.apache.tomcat.

sun.arch.data.model : 64
sun.boot.library.path : /opt/atlassian/jira/jre/lib/amd64
sun.cpu.endian : little
sun.cpu.isalist :
sun.io.unicode.encoding : UnicodeLittle
sun.java.command : org.apache.catalina.startup.Bootstrap start
sun.java.launcher : SUN_STANDARD
sun.jnu.encoding : ANSI_X3.4-1968
sun.management.compiler : HotSpot 64-Bit Tiered Compilers
sun.os.patch.level : unknown
tomcat.util.buf.StringCache.byte.enabled : true

2 answers

0 votes
Julien GERARD July 2, 2018

Hi there,

 

for information our problem came from a bad /etc/hosts file on our Linux server.

In the mountain of logs, if you have a network BindException, this could be the same mistake.

Thanks Alexey for your help.

0 votes
Alexey Matveev
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 25, 2018

Hello,

Start Jira in safe mode and try to enable add-ons one by one to see which one makes you Jira instance fail on startup.

./start-jira.sh --disable-all-addons --disable addons=com.atlassian.test.plugin
Julien GERARD June 25, 2018

Thanks Alexey,

but I got the same errors in the log file.

Alexey Matveev
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 25, 2018

If you have a backup of Jira folder, you can try to apply the backup.

Suggest an answer

Log in or Sign up to answer