次の方法で共有


Container Network Interface のダウンロードエラーのトラブルシューティング

この記事では、Microsoft Azure Kubernetes Service (AKS) クラスターを作成してデプロイしようとしたときに発生する CniDownloadTimeoutVMExtensionError エラー コード (エラー コード ERR_CNI_DOWNLOAD_TIMEOUT、エラー番号 41 とも呼ばれます) または WINDOWS_CSE_ERROR_DOWNLOAD_CNI_PACKAGE エラー コード (エラー番号 35) を特定して解決する方法について説明します。

前提条件

  • Curl コマンドライン ツール
  • AKS ノードがデプロイされるのと同じ環境からのネットワーク アクセス (同じ VNet、ファイアウォール規則など)

現象

Linux ベースの AKS クラスターを作成しようとすると、次のエラー メッセージが表示されます。

Message: We are unable to serve this request due to an internal error
SubCode: CniDownloadTimeoutVMExtensionError;
Message="VM has reported a failure when processing extension 'vmssCSE'.
Error message: "Enable failed: failed to execute command: command terminated with exit status=41\n[stdout]\n{
"ExitCode": "41",

Windows ベースの AKS クラスターを作成しようとすると、次のエラー メッセージが表示されます。

Message="VM has reported a failure when processing extension 'vmssCSE' (publisher 'Microsoft.Compute' and type 'CustomScriptExtension').
Error message: 'Command execution finished, but failed because it returned a non-zero exit code of: '1'. The command had an error output of: 'ExitCode: |35|,
Output: |WINDOWS_CSE_ERROR_DOWNLOAD_CNI_PACKAGE|, Error: |Failed in downloading \r\nhttps://acs-mirror.azureedge.net/azure-cni/v1.4.56/binaries/azure-vnet-cni-overlay-windows-amd64-v1.4.56.zip.
Error: \r\nUnable to connect to the r|\r\nAt line:1 ...'
For more information, check the instance view by executing Get-AzVmssVm or Get-AzVm (https://aka.ms/GetAzVm). These commands can be executed using CloudShell (https://aka.ms/CloudShell)'. More information on troubleshooting is available at https://aka.ms/VMExtensionCSEWindowsTroubleshoot.

原因

クラスター ノードは、コンテナー ネットワーク インターフェイス (CNI) ライブラリのダウンロードに使用されるエンドポイントに接続できません。 ほとんどの場合、この問題は、ネットワーク仮想アプライアンスが Secure Sockets Layer (SSL) 通信または SSL 証明書をブロックしているために発生します。

ソリューション

Curl コマンドを実行して、ノードがバイナリをダウンロードできることを確認します。

まず、公式のミラー エンドポイントから Linux 用 Azure CNI パッケージのテスト ダウンロードを試みます。

curl -I https://acs-mirror.azureedge.net/cni/azure-vnet-cni-linux-amd64-v1.0.25.tgz

結果:

HTTP/2 200 
content-length: 970752
content-type: application/x-gzip
last-modified: Wed, 22 Jun 2022 00:00:00 GMT
etag: "0x8DA53F1234567"
server: ECAcc (dab/4B9E)
x-cache: HIT
cache-control: public, max-age=86400
accept-ranges: bytes
date: Thu, 05 Jun 2025 00:00:00 GMT

このコマンドは、エンドポイントに到達できるかどうかを確認し、HTTP ヘッダーを返します。 200 OK応答が表示された場合は、エンドポイントにアクセス可能であることを示します。

次に、検証を使用してダウンロードを試み、さらにトラブルシューティングを行うためにファイルをローカルに保存します。 これは、SSL または送信接続が正しく構成されているかどうかを判断するのに役立ちます。

# Create a temporary directory for testing
mkdir -p /tmp/cni-test

# Download the CNI package to the temp directory
curl -L --fail https://acs-mirror.azureedge.net/cni/azure-vnet-cni-linux-amd64-v1.0.25.tgz --output /tmp/cni-test/azure-vnet-cni-linux-amd64-v1.0.25.tgz && echo "Download successful" || echo "Download failed"

結果:

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 6495k  100 6495k    0     0  8234k      0 --:--:-- --:--:-- --:--:-- 8230k
Download successful

ダウンロードしたファイルを確認します。

ls -la /tmp/cni-test/
file /tmp/cni-test/azure-vnet-cni-linux-amd64-v1.0.25.tgz

結果:

total 6500
drwxr-xr-x 2 user user    4096 Jun 20 10:30 .
drwxrwxrwt 8 root root    4096 Jun 20 10:30 ..
-rw-r--r-- 1 user user 6651392 Jun 20 10:30 azure-vnet-cni-linux-amd64-v1.0.25.tgz

/tmp/cni-test/azure-vnet-cni-linux-amd64-v1.0.25.tgz: gzip compressed data, from Unix, original size modulo 2^32 20070400

テスト ファイルをクリーンアップします。

rm -rf /tmp/cni-test/

これらのファイルをダウンロードできない場合は、ダウンロード エンドポイントへのトラフィックが許可されていることを確認してください。 詳細については、「 Azure Global required FQDN/application rulesを参照してください。

関連情報

お問い合わせはこちらから

ご質問がある場合は、 Azure コミュニティサポートにお問い合わせください。 Azure フィードバック コミュニティに製品フィードバックを送信することもできます。