Hey team! We're getting consistent apt install fai...
# infisical-help
b
Hey team! We're getting consistent apt install failures for Infisical 0.43.7: File has unexpected size (35012126 != 35012110). Mirror sync in progress? The package on your CDN is 16 bytes off from what the repo metadata expects. Been failing for the last ~hour across multiple retries in our CI pipeline.
➕ 2
✅ 1
m
Hi @Ben Gigone, tagging in @Daniel Hougaard who can better help. Are you pulling in Debian, RHL, etc?
b
Hey @Maidul Islam and @Daniel Hougaard! Debian/Ubuntu - using the official setup script from artifacts-cli.infisical.com/setup.deb.sh Running on Ubuntu 22.04 in CircleCI. Full error is here:
Copy code
Now using node v22.20.0 (npm v10.9.3)
Executing the setup script for the 'infisical' S3 repository ...

   OK: Checking for required executable 'curl' ...
   OK: Checking for required executable 'apt-get' ...
   OK: Detecting your OS distribution and release using system methods ...
 ^^^^: ... Detected/provided for your OS/distribution, version and architecture:
 >>>>:
 >>>>: ... distro=ubuntu  codename=stable (fixed)  arch=x86_64  
 >>>>:
 NOPE: Checking for apt dependency 'apt-transport-https' ...
   OK: Updating apt repository metadata cache ...
   OK: Attempting to install 'apt-transport-https' ...
   OK: Checking for apt dependency 'ca-certificates' ...
   OK: Checking for apt dependency 'gnupg' ...
   OK: Checking if GPG key is accessible at <https://artifacts-cli.infisical.com/infisical.gpg> ...
   OK: Importing 'infisical' repository GPG key from S3 ...
   OK: Installing 'infisical' repository via apt ...
   OK: Updating apt repository metadata cache ...
   OK: The repository has been installed successfully - You're ready to rock!

You can now install the package with: apt install infisical

Hit:1 <http://us-east-1.ec2.archive.ubuntu.com/ubuntu> jammy InRelease
Hit:2 <http://us-east-1.ec2.archive.ubuntu.com/ubuntu> jammy-updates InRelease   
Hit:3 <http://us-east-1.ec2.archive.ubuntu.com/ubuntu> jammy-backports InRelease 
Hit:4 <https://download.docker.com/linux/ubuntu> jammy InRelease                 
Hit:5 <https://artifacts-cli.infisical.com/deb> stable InRelease                 
Hit:6 <http://security.ubuntu.com/ubuntu> jammy-security InRelease               
Hit:7 <https://dl.google.com/linux/chrome/deb> stable InRelease                  
Hit:8 <http://ppa.launchpad.net/git-core/ppa/ubuntu> jammy InRelease             
Hit:9 <https://ppa.launchpadcontent.net/mozillateam/ppa/ubuntu> jammy InRelease  
Hit:10 <https://ppa.launchpadcontent.net/openjdk-r/ppa/ubuntu> jammy InRelease
Reading package lists... Done
W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list.d/google-chrome.list:3 and /etc/apt/sources.list.d/google.list:1
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/google-chrome.list:3 and /etc/apt/sources.list.d/google.list:1
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list.d/google-chrome.list:3 and /etc/apt/sources.list.d/google.list:1
W: Target CNF (main/cnf/Commands-amd64) is configured multiple times in /etc/apt/sources.list.d/google-chrome.list:3 and /etc/apt/sources.list.d/google.list:1
W: Target CNF (main/cnf/Commands-all) is configured multiple times in /etc/apt/sources.list.d/google-chrome.list:3 and /etc/apt/sources.list.d/google.list:1
W: <http://ppa.launchpad.net/git-core/ppa/ubuntu/dists/jammy/InRelease>: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list.d/google-chrome.list:3 and /etc/apt/sources.list.d/google.list:1
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/google-chrome.list:3 and /etc/apt/sources.list.d/google.list:1
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list.d/google-chrome.list:3 and /etc/apt/sources.list.d/google.list:1
W: Target CNF (main/cnf/Commands-amd64) is configured multiple times in /etc/apt/sources.list.d/google-chrome.list:3 and /etc/apt/sources.list.d/google.list:1
W: Target CNF (main/cnf/Commands-all) is configured multiple times in /etc/apt/sources.list.d/google-chrome.list:3 and /etc/apt/sources.list.d/google.list:1
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following package was automatically installed and is no longer required:
  squashfs-tools
Use 'sudo apt autoremove' to remove it.
The following NEW packages will be installed:
  infisical
0 upgraded, 1 newly installed, 0 to remove and 325 not upgraded.
Need to get 35.0 MB of archives.
After this operation, 76.5 MB of additional disk space will be used.
Get:1 <https://artifacts-cli.infisical.com/deb> stable/main amd64 infisical amd64 0.43.7 [35.0 MB]
Err:1 <https://artifacts-cli.infisical.com/deb> stable/main amd64 infisical amd64 0.43.7
  File has unexpected size (35012126 != 35012110). Mirror sync in progress? [IP: 18.67.76.86 443]
  Hashes of expected file:
   - SHA256:f8992d41172f6468cc41d07e53f8061cd6ce4e7d6cdcda931d6cec5667255ec3
   - SHA1:fc72a8e2c17bdfdfeb6f1b53ae849366b423b801 [weak]
   - MD5Sum:10b80d8d05c48188a24d1fd3b3cb80e1 [weak]
   - Filesize:35012110 [weak]
E: Failed to fetch <https://artifacts-cli.infisical.com/deb/pool/stable/i/in/infisical_0.43.7_linux_amd64.deb>  File has unexpected size (35012126 != 35012110). Mirror sync in progress? [IP: 18.67.76.86 443]
   Hashes of expected file:
    - SHA256:f8992d41172f6468cc41d07e53f8061cd6ce4e7d6cdcda931d6cec5667255ec3
    - SHA1:fc72a8e2c17bdfdfeb6f1b53ae849366b423b801 [weak]
    - MD5Sum:10b80d8d05c48188a24d1fd3b3cb80e1 [weak]
    - Filesize:35012110 [weak]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

Exited with code exit status 100
d
Hi @Ben Gigone! Can you please share the repository and package installation commands you're using?
b
@Daniel Hougaard Sure - using the official install method: curl -1sLf 'https://artifacts-cli.infisical.com/setup.deb.sh' | sudo -E bash sudo apt-get update && sudo apt-get install -y infisical Environment: Ubuntu 22.04 (CircleCI machine executor ubuntu-2204:2024.05.1) Just started breaking for us about an hour ago
d
Thank you for letting us know Ben, let me take a look at this on my end. I'll let you know as soon as I have an update for you!
b
Thanks Daniel!
d
Hi @Ben Gigone and @Kathryn Lawrence, could I please have you try again with version
v0.43.8
?
k
does that mean changing our workflows to use the artifacts-infisical-core url in the docs here? or is there another way to change the version? we have the same in our ci:
curl -1sLf '<https://artifacts-cli.infisical.com/setup.deb.sh>' | sudo -E bash
...
sudo apt-get update && sudo apt-get install -y infisical
d
Hi @Kathryn Lawrence, yes you should use the
<https://artifacts-cli.infisical.com/setup.deb.sh>
installation script!
👍 1
b
@Daniel Hougaard yes that worked!
Thanks so much for the quick help!
d
Glad to hear! The apt repository metadata got out of sync with the apt packages - we're looking into seeing how we can fully prevent this from happening again moving forward!
✅ 1
k
hi @Daniel Hougaard I have got the installation working now but we were using this to install the infisical cli and those commands appear not to work any more:
export INFISICAL_TOKEN=$(infisical login --method=universal-auth --client-id=$INFISICAL_CLIENT_ID --client-secret=$INFISICAL_CLIENT_SECRET --plain --silent) && infisical run --env=dev --projectId=$INFISICAL_PROJECT_ID yarn next dev
when changing "infisical" to "infisical-ctl" as it now says in the docs, I get the error
I don't know that command.
d
@Kathryn Lawrence, are you trying to use the CLI, or the infisical binary?
k
we're trying to install the CLI on a container and use the CLI to start the app
and saw the same error as Ben did installing it from
<https://artifacts-cli.infisical.com/setup.deb.sh>'
d
Please take a look at the CLI installation documentation on how to install the Infisical CLI. `infisical-ctl`i is for the Infisical self-hosted binary, and
infisical
is the command to use the CLI. I think you might've follwoed the guide for installing the Infisical binary
Add the repository:
Copy code
curl -1sLf \
'<https://artifacts-cli.infisical.com/setup.deb.sh>' \
| sudo -E bash
Install the CLI:
Copy code
sudo apt-get update && sudo apt-get install -y infisical
(Assuming you're on Debian)
k
right, so that's exactly what we had before and we get this error:
Copy code
Err:1 <https://artifacts-cli.infisical.com/deb> stable/main amd64 infisical amd64 0.43.7
  File has unexpected size (35012126 != 35012110). Mirror sync in progress? [IP: 18.155.173.94 443]
  Hashes of expected file:
   - SHA256:f8992d41172f6468cc41d07e53f8061cd6ce4e7d6cdcda931d6cec5667255ec3
   - SHA1:fc72a8e2c17bdfdfeb6f1b53ae849366b423b801 [weak]
   - MD5Sum:10b80d8d05c48188a24d1fd3b3cb80e1 [weak]
   - Filesize:35012110 [weak]
E: Failed to fetch <https://artifacts-cli.infisical.com/deb/pool/stable/i/in/infisical_0.43.7_linux_amd64.deb>  File has unexpected size (35012126 != 35012110). Mirror sync in progress? [IP: 18.155.173.94 443]
   Hashes of expected file:
    - SHA256:f8992d41172f6468cc41d07e53f8061cd6ce4e7d6cdcda931d6cec5667255ec3
    - SHA1:fc72a8e2c17bdfdfeb6f1b53ae849366b423b801 [weak]
    - MD5Sum:10b80d8d05c48188a24d1fd3b3cb80e1 [weak]
    - Filesize:35012110 [weak]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
d
It appears you're trying to install version
0.43.7
, can you please update to the latest
0.43.8
version?
k
what part of
curl -1sLf '<https://artifacts-infisical-core.infisical.com/setup.deb.sh>' | sudo -E bash
specifies the version?
d
That is the command for installation the repository itself. You need to run:
Copy code
sudo apt-get update && sudo apt-get install -y infisical
k
yes we have that in the next step of the CI pipeline
here is the full log:
Copy code
Run sudo apt-get update && sudo apt-get install -y infisical
  sudo apt-get update && sudo apt-get install -y infisical
  shell: /usr/bin/bash -e {0}
  env:
    INFISICAL_CLIENT_ID: ***
    INFISICAL_CLIENT_SECRET: ***
    INFISICAL_PROJECT_ID: ***
    TEST_KIT_TOKEN: ***
    GITHUB_REPO_NAME: mintlify/mint
Hit:1 <https://artifacts-cli.infisical.com/deb> stable InRelease
Hit:2 <https://packages.microsoft.com/repos/azure-cli> jammy InRelease
Hit:3 <https://packages.microsoft.com/ubuntu/22.04/prod> jammy InRelease
Hit:4 <http://us-west-2.ec2.archive.ubuntu.com/ubuntu> jammy InRelease
Hit:5 <http://us-west-2.ec2.archive.ubuntu.com/ubuntu> jammy-updates InRelease
Hit:6 <http://us-west-2.ec2.archive.ubuntu.com/ubuntu> jammy-backports InRelease
Hit:7 <http://security.ubuntu.com/ubuntu> jammy-security InRelease
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
The following NEW packages will be installed:
  infisical
0 upgraded, 1 newly installed, 0 to remove and 72 not upgraded.
Need to get 35.0 MB of archives.
After this operation, 76.5 MB of additional disk space will be used.
Get:1 <https://artifacts-cli.infisical.com/deb> stable/main amd64 infisical amd64 0.43.7 [35.0 MB]
Err:1 <https://artifacts-cli.infisical.com/deb> stable/main amd64 infisical amd64 0.43.7
  File has unexpected size (35012126 != 35012110). Mirror sync in progress? [IP: 18.155.173.94 443]
  Hashes of expected file:
   - SHA256:f8992d41172f6468cc41d07e53f8061cd6ce4e7d6cdcda931d6cec5667255ec3
   - SHA1:fc72a8e2c17bdfdfeb6f1b53ae849366b423b801 [weak]
   - MD5Sum:10b80d8d05c48188a24d1fd3b3cb80e1 [weak]
   - Filesize:35012110 [weak]
E: Failed to fetch <https://artifacts-cli.infisical.com/deb/pool/stable/i/in/infisical_0.43.7_linux_amd64.deb>  File has unexpected size (35012126 != 35012110). Mirror sync in progress? [IP: 18.155.173.94 443]
   Hashes of expected file:
    - SHA256:f8992d41172f6468cc41d07e53f8061cd6ce4e7d6cdcda931d6cec5667255ec3
    - SHA1:fc72a8e2c17bdfdfeb6f1b53ae849366b423b801 [weak]
    - MD5Sum:10b80d8d05c48188a24d1fd3b3cb80e1 [weak]
    - Filesize:35012110 [weak]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
d
Can you please try running
sudo apt-get clean
first? There may be stale repository data on your CI runner
k
yup that was it, thank you 😄 total red herring since I saw that October 10 switchover info banner in the core docs (but they are very beautiful docs ✨)
d
Awesome glad you were able to get it resolved, and thank you for the kind words! Let us know if you run into any other issues :-)