記錄和故障診斷 - Amazon Q Developer

本文為英文版的機器翻譯版本,如內容有任何歧義或不一致之處,概以英文版為準。

記錄和故障診斷

設定日誌交付

Amazon Q 可為您提供日誌檔案,協助您了解自訂的問題並進行故障診斷。

您可以將日誌檔案傳送至 Amazon CloudWatch Logs、群組、Amazon S3 儲存貯體、Amazon Data Firehose,或上述任何組合。

若要設定日誌交付,請選取自訂的主控台頁面上的日誌交付索引標籤。依照介面中的指示設定日誌交付。然後選擇建立日誌交付

傳送到 Amazon S3 儲存貯體的日誌字首為:AWSLogs/account_id/codeWhispererCustomizationLogs/region/customization_id/year/month/day/hour/

檔案會經過壓縮,並使用命名格式:account_id_codeWhispererCustomizationLogs_customization_id_date_file_id.log.gz

警告

為了充分利用自訂日誌,最好在建立自訂後的五分鐘內設定日誌交付。

若要進一步了解將日誌傳送至多個資源所需的許可,請參閱《Amazon CloudWatch Logs 使用者指南》中的需要額外許可的記錄 [V2]

了解自訂相關的日誌訊息

下表列出可協助您了解自訂問題的日誌訊息。

日誌訊息 日誌層級

Starting to ingest number repos from source source

Info

Downloading data from repo: repo name

Info

Received amount MB of supported data. amount MB required. Add more data and retry.

錯誤

The provided CodeStar Connection ARN: Arn is invalid.

錯誤

Access denied when attempting to reach the provided CodeStar Connection: Arn

錯誤

Failed to download with AWS CodeStar Connection: Arn probably deleted by customer

錯誤

ProviderThrottlingException from CodeStar Connection: Arn while cloning repository: repository

錯誤

Processing data from S3: S3 URI

Info

Invalid S3 path specified: S3 Directory

錯誤

Unable to access the provided S3 bucket: bucket name

錯誤

The provided S3 bucket: bucket name does not exist.

錯誤

The provided S3 key S3 URI does not exist.

錯誤

Failed to ingest number of failed repos / total number of repos repositories

錯誤

Unable to process repository: repo name, with a size of repo size GB, exceeds the limit of max size GB.

Warn

Unable to process file: file name, with a size of file size, which exceeds the limit of max file size MB

錯誤

Unable to process collection: collection name, with total size of total repo size MB, which exceeds the limit of max total repo size MB

錯誤

The following languages will be used for customization: list of languages. Languages may be excluded from customization if they are not sufficiently represented in your files.

Info

了解主控台中的自訂相關錯誤訊息

下表將協助您了解 Amazon Q 主控台中的自訂相關訊息。

錯誤訊息 建議動作

您已啟用自訂數量上限。

停用作用中的自訂,然後再試一次。

您已超過群組許可限制的數量上限。

移除群組並重試。

您已超過使用者許可限制的數量上限。

移除使用者並重試。

已達到作用中任務的上限。

等待相同帳戶中的進行中任務完成。重試操作。

處理請求時遇到意外錯誤。

重試操作。如果持續失敗,請聯絡客戶支援。

從 CodeConnections 擷取部分選取的儲存庫時遇到問題。請查看自訂的日誌交付,以了解詳細資訊。

嘗試使用連線可存取的有效儲存庫,再次建立或更新自訂。

嘗試連線到提供的 AWS CodeConnections 連線時,存取遭拒。

驗證您的連線和第三方提供者的許可。然後重試操作。

存取提供的 AWS CodeConnections 連線時,找不到一或多個儲存庫。

驗證來自第三方提供者的許可和儲存庫清單。然後重試操作。

提供的 AWS CodeConnections 連線 ARN 無效。

使用更正的連線 ARN 更新自訂。

與提供的 AWS CodeConnections 連線相關聯的主機無法使用。

請過 5 分鐘後再試。

指定的 Amazon S3 路徑無效。

使用有效的 Amazon S3 URI 更新自訂。

無法存取提供的 Amazon S3 儲存貯體。

驗證管理員角色的許可。修正任何許可問題後重試。

提供的 Amazon S3 儲存貯體不存在。

使用有效的 Amazon S3 URI 更新自訂。

提供的 Amazon S3 金鑰不存在。

使用有效的 Amazon S3 URI 更新自訂。

資料不足,無法建立自訂。新增更多來自支援語言的檔案,然後重試。

將更多資料新增至相同的資料來源,並使用相同的參考更新自訂。

提供的儲存庫大小總計超過自訂允許的大小上限。

從提供的資料來源移除一些資料。使用相同的參考更新自訂。

您建立的自訂數量已達上限。刪除現有的自訂,然後再試一次。

刪除目前的自訂並重試。

帳戶中有自訂存在。您必須先刪除所有自訂,才能刪除設定檔。

刪除與帳戶相關聯的所有自訂,然後重試。