Unable to select form to migrate attachments from database to file system

お困りですか?

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

コミュニティに質問



プラットフォームについて: 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 は除く

要約

If you're storing attachments in the Confluence database (we deprecated this method in Confluence 5.4), your Confluence site won't start up when you try to upgrade to Confluence 8.8 or later.

To upgrade to Confluence 8.8, you must first migrate your attachments to the file system. The instructions for how to do this are below, along with a workaround if you experience an issue with the checkbox in the user interface.

You must have system admin permissions to configure attachment storage.

環境

Confluence 7.19 or later using database attachment storage (deprecated)

ソリューション

  1. Go to Administration > General Configuration > Attachment Storage
  2. Select Edit to modify the configuration
  3. Within the Attachment storage list of options, select Locally in the Confluence home directory 
    1. If you are unable to perform this action because the checkbox is disabled, right-click in your browser, and select Inspect to open the developer console or developer tools for your browser.
    2. Select the Console tab
    3. Paste this script into the console

      if (window.location.pathname.endsWith('editattachmentstorage.action')) {
          for (let radio of document.querySelectorAll('div.radio')) {
              const input = radio.querySelector('input'), label = radio.querySelector('label');
              if (input && label) {
                  label.setAttribute('for', input.id);
              }
          }
      }
      
      

    4. Hit Enter to run the script
    5. Return to the Edit Attachment Storage page where you will now be able to select the Locally in Confluence home directory checkbox
  4. Select Save to save the changes
  5. A screen will appear, asking you to confirm your changes. Select Migrate to start the migration and view its progress


最終更新日: 2024 年 1 月 8 日

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

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