Attachment is disabled after JIRA migrated from Windows to Linux

お困りですか?

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

コミュニティに質問

 

プラットフォームについて: Server、Data Center、および Cloud (状況に応じる) - この記事はアトラシアンのサーバーおよびデータセンター プラットフォーム向けに記載されていますが、Atlassian Cloud のお客様も記事の内容を利用できる可能性があります。この記事で説明されている手順の実施が役立つと考えられる場合、アトラシアン サポートにお問い合わせのうえ、この記事を紹介してください。

 

問題

After migrating attachments from Windows to Linux, attachments are accessible for the old issues that have been migrated, but no "Attach Files" option under "More" for any issues (old and new issues). On the "Attachment" page, attachment is disabled and clicking on "Update" on "Attachment Setting" page does nothing. 

Clicking on "Update"button does not:

Attachment is disabled:

 

診断

Attachment Path

  • Make sure the attachment is placed in the correct directory in Linux; /var/atlassian/application-data/jira/data/attachments

Create Attachment Permission

  • To troubleshoot the no "Attach Files" option under "More" for any issues, use "Permission Helper" to identify the user logged in has the "Create Attachment" permission.

Attachment Values in Database

  • Executed SQL query to obtain value of "jira.option.allowattachments":

    select * from propertynumber where id in (select id from propertyentry where PROPERTY_KEY = 'jira.option.allowattachments');
  • Result return by the query:

    id   | propertyvalue
    -------+---------------
    10613 |             0
    (1 row)
  • Executed SQL queries to update the value:
     

    delete from propertynumber where id in (select id from propertyentry where PROPERTY_KEY = 'jira.option.allowattachments');
    insert into propertynumber values ((select id from propertyentry where PROPERTY_KEY = 'jira.option.allowattachments'), 1)
  • Restarted JIRA and database caused in restoring the old value back; propertyvalue: 0

原因

The attachment folder that copied from Windows to Linux doesn't have the correct file system permission.zzzzz

ソリューション

  • Jira を停止します。

  • Fix the permissions for the below directories and all of their subdirectories:

    $JIRA_HOME/
    $JIRA_INSTALL/logs
    $JIRA_INSTALL/temp
    $JIRA_INSTALL/work
    sudo chown -R jira:jira /var/atlassian/application-data/jira
    sudo chown -R jira:jira /opt/atlassian/jira/logs
    sudo chown -R jira:jira /opt/atlassian/jira/temp
    sudo chown -R jira:jira /opt/atlassian/jira/work
    chmod -R u=rwx,g=rx,o=rx /var/atlassian/application-data/jira 
    chmod -R u=rwx,g=rx,o=rx /opt/atlassian/jira/logs
    chmod -R u=rwx,g=rx,o=rx /opt/atlassian/jira/temp
    chmod -R u=rwx,g=rx,o=rx /opt/atlassian/jira/work
  • Jira を起動します。

 

Restarted JIRA and database caused in restoring the old value back; {{propertyvalue:0}}
最終更新日: 2016 年 2 月 26 日

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

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