Jira fails to start with DataAccessException: Cannot load the application properties metadata file

お困りですか?

アトラシアン コミュニティをご利用ください。

コミュニティに質問

プラットフォームについて: Server および Data Center のみ。この記事は、Server および Data Center プラットフォームのアトラシアン製品にのみ適用されます。

Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Fisheye および Crucible は除く

要約

Jira instance is not accessible. You will see your instance is up and running but when attempting to access Jira the page is not loading

診断

The following error is observed when attempting to access Jira:

The following error is observed in atlassian-jira.log – Unable to load jpm.xml file:

2022-05-03 10:14:38,999+0200 JIRA-Bootstrap ERROR      [c.a.jira.startup.ComponentContainerLauncher] A fatal error occurred during initialisation. JIRA has been locked.
io.atlassian.util.concurrent.LazyReference$InitializationException: io.atlassian.util.concurrent.LazyReference$InitializationException: com.atlassian.jira.exception.DataAccessException: Cannot load the application properties metadata file jpm.xml
	at io.atlassian.util.concurrent.LazyReference.getInterruptibly(LazyReference.java:156)
	at io.atlassian.util.concurrent.LazyReference.get(LazyReference.java:116)
	at io.atlassian.util.concurrent.ResettableLazyReference.get(ResettableLazyReference.java:95) 

Looking further into the error stack trace, it seems like the file is malformed or corrupted, causing Jira to not be able to be started:

Caused by: org.dom4j.DocumentException: Error on line 2211 of document  : The markup in the document following the root element must be well-formed. Nested exception: The markup in the document following the root element must be well-formed.
	at org.dom4j.io.SAXReader.read(SAXReader.java:344)
	at org.dom4j.io.SAXReader.read(SAXReader.java:250)
	at com.atlassian.jira.config.properties.MetadataLoader.loadMetadata(MetadataLoader.java:62)
	at com.atlassian.jira.config.properties.MetadataLoader.loadMetadata(MetadataLoader.java:43)
	... 218 more
2022-05-03 10:14:39,077+0200 JIRA-Bootstrap ERROR      [c.a.jira.health.HealthChecks] We couldn't start JIRA 

原因

The jpm.xml file, which is placed at $JIRA_INSTALL/atlassian-jira/WEB-INF/classes directory, is corrupted or malformed.

ソリューション

  • Restore the file from a previous backup if available.
  • Alternatively, you could fix the issue if the error is clear. e.g. <property> element was incorrectly added at the end of the file.

If you are unsure of how to fix the file, you can always raise a support ticket and we will assist you.

<jira-properties>
    <properties>
        <property>
            <key>jira.ajax.autocomplete.issuepicker.enabled</key>
            <default-value>true</default-value>
            <type>boolean</type>
            <admin-editable>false</admin-editable>
            <sysadmin-editable>false</sysadmin-editable>
        </property>
...................
...................
        <property>
            <key>jira.project.permission.helper.beta.fix.enabled</key>
            <default-value>false</default-value>
            <type>boolean</type>
            <requires-restart>true</requires-restart>
        </property>
    </properties>
</jira-properties>

<property>
            <key>jira.thumbnails.scaling.factor</key>
            <default-value>4</default-value>
            <type>uint</type>
            <admin-editable>false</admin-editable>
            <sysadmin-editable>true</sysadmin-editable>
            <requires-restart>false</requires-restart>
        </property>

最終更新日 2023 年 8 月 11 日

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.