Problem
When updating the license for an airgapped Terraform Enterprise installation, the process may fail with the following error:
$ replicatedctl license-load --airgap-package /path/to/bundle.airgap < license.rli Error: response from daemon: Invalid package archive
Prerequisites
- The Terraform Enterprise installation is in airgapped mode.
Causes
This error can occur for several reasons:
- The full path to the
.airgapfile is incorrect. - The
.airgapfile is corrupted due to a partial download or transfer. - The checksum of the
.airgapfile is not accurate.
Solutions
Solution 1: Verify the Airgap File Path
Ensure that you are providing the correct and full path to the .airgap bundle file in the command. The path must be accessible from the shell where you are running the command.
$ replicatedctl license-load --airgap-package /path/to/bundle.airgap < license.rli
Solution 2: Re-download the Airgap Bundle
The .airgap archive may be invalid due to a partial or corrupted download or upload. Download the file again from your license portal and re-upload it to the Terraform Enterprise host to ensure its integrity.
Solution 3: Validate the Airgap File Checksum
Validate the checksum of the local .airgap file to confirm it matches the checksum provided in your license portal. This helps verify that the file was not corrupted during transfer.
Execute the following command, replacing <Airgap bundle file> with the name of your bundle file.
$ shasum -a 256 <Airgap bundle file>