すべてのプロダクト
Search
ドキュメントセンター

Object Storage Service:よくある質問

最終更新日:Apr 18, 2025

このトピックでは、ossutil の使用中に発生する可能性のある一般的な問題と、それぞれの解決策について説明します。

ossutil コマンドを実行すると、「sign version 4 でリージョンを設定する必要があります」というエラーが報告される

考えられる原因: ossutil 2.0 の構成プロセスでリージョン ID が指定されていません。

解決策: ossutil を使用するときに構成項目の欠落による障害を回避するには、以下の手順に従って AccessKey ID、AccessKey Secret、およびリージョン ID を構成してください。署名アルゴリズムが V4 にアップグレードされているため、リージョン ID の構成は必須です。リージョン ID の取得方法については、「OSS リージョンとエンドポイント」をご参照ください。

Linux

  1. 次のコマンドを実行して、構成プロセスを開始します。

    ossutil config
  2. 構成ファイルのパスを構成します。 Enter キーを押してデフォルトパスを使用できます。

    Please enter the config file name,the file name can include path(default /root/.ossutilconfig, carriage return will use the default file. If you specified this option to other file, you should specify --config-file option to the file when you use other commands):

    デフォルトでは、ossutil は /root/.ossutilconfig を構成ファイルとして使用します。

  3. 画面上の指示に基づいて、AccessKey ID、AccessKey Secret、およびリージョン ID を指定します。

    作成した AccessKey ID を入力します。

    Please enter Access Key ID [****************id]:LTAI****************

    作成した AccessKey Secret を入力します。

    Please enter Access Key Secret [****************sk]:R6vg*********************

    OSS にデータが保存されているリージョンの ID を入力します。デフォルトのリージョン ID は cn-hangzhou です。

    Please enter Region [cn-hangzhou]:cn-hangzhou

    この例では、中国 (杭州) リージョンの ID が使用されています。他のリージョンの ID については、「OSS リージョンとエンドポイント」をご参照ください。

Windows

  1. 次のコマンドを実行して、構成プロセスを開始します。

    ossutil config
  2. 構成ファイルのパスを構成します。 Enter キーを押してデフォルトパスを使用できます。

    Please enter the config file name,the file name can include path(default "C:\Users\issuser\.ossutilconfig", carriage return will use the default file. If you specified this option to other file, you should specify --config-file option to the file when you use other commands):

    デフォルトでは、ossutil は C:\Users\issuser\.ossutilconfig を構成ファイルとして使用します。

  3. 画面上の指示に基づいて、AccessKey ID、AccessKey Secret、およびリージョン ID を指定します。

    作成した AccessKey ID を入力します。

    Please enter Access Key ID [****************id]:LTAI****************

    作成した AccessKey Secret を入力します。

    Please enter Access Key Secret [****************sk]:R6vg*********************

    OSS にデータが保存されているリージョンの ID を入力します。デフォルトのリージョン ID は cn-hangzhou です。

    Please enter Region [cn-hangzhou]:cn-hangzhou

    この例では、中国 (杭州) リージョンの ID が使用されています。他のリージョンの ID については、「リージョンとエンドポイント」をご参照ください。

macOS

  1. 次のコマンドを実行して、構成プロセスを開始します。

    ossutil config
  2. 構成ファイルのパスを構成します。 Enter キーを押してデフォルトパスを使用できます。

    Please enter the config file name,the file name can include path(default "/Users/user/.ossutilconfig", carriage return will use the default file. If you specified this option to other file, you should specify --config-file option to the file when you use other commands): 

    デフォルトでは、ossutil は /Users/user/.ossutilconfig を構成ファイルとして使用します。

  3. 画面上の指示に基づいて、AccessKey ID、AccessKey Secret、およびリージョン ID を指定します。

    作成した AccessKey ID を入力します。

    Please enter Access Key ID [****************id]:LTAI****************

    作成した AccessKey Secret を入力します。

    Please enter Access Key Secret [****************sk]:R6vg*********************

    OSS にデータが保存されているリージョンの ID を入力します。デフォルトのリージョン ID は cn-hangzhou です。

    Please enter Region [cn-hangzhou]:cn-hangzhou

    この例では、中国 (杭州) リージョンの ID が使用されています。他のリージョンの ID については、「OSS リージョンとエンドポイント」をご参照ください。