Debian Jessie SaltStack repo
The Debian 8 repository repo.saltstack.com/apt/debian/8/amd64/2015.5 is currently missing some development packages that cause errors to be throw when mirroring the repository.
apt@XXXXX:~$ GNUPGHOME=/srv/XXXX-keyring-debmirror /usr/bin/debmirror --verbose --dist=jessie --section=main --host=repo.saltstack.com --arch=amd64 --method=http --rsync-extra=none -r /apt/debian/8/amd64/2015.5 /srv/XXXXXX-packages/saltstack/debian
Ed binary missing, falling back to --diff=none
Warning: --rsync-extra is not configured to mirror the trace files.
This configuration is not recommended.
Mirroring to /srv/XXXX-packages/saltstack/debian from http://repo.saltstack.com/apt/debian/8/amd64/2015.5/
Arches: amd64
Dists: jessie
Sections: main
Including source.
Pdiff mode: none
Will clean up after mirroring.
Attempting to get lock ...
Getting meta files ...
[ 0%] Getting: dists/jessie/Release... ok
[ 0%] Getting: dists/jessie/Release.gpg... ok
gpgv: Signature made Wed 25 Nov 2015 07:40:24 PM UTC using RSA key ID DE57BFBE
gpgv: Good signature from "SaltStack Packaging Team <[email protected]>"
Parsing Packages and Sources files ...
Get Translation files ...
Files to download: 947 kiB
[ 0%] Getting: pool/main/libp/libpgm/libpgm-dev_5.2.122~dfsg-1_amd64.deb... failed 404 Not Found
[ 0%] Getting: pool/main/libs/libsodium/libsodium-dev_1.0.3-1_amd64.deb... failed 404 Not Found
[ 0%] Getting: pool/main/n/nacl/libnacl-dev_20110221-4.1_amd64.deb... failed 404 Not Found
[ 0%] Getting: pool/main/z/zeromq3/libzmq3-dev_4.0.5+dfsg-3_amd64.deb... failed 404 Not Found
Downloaded 2767 B in 1s at 2.7 kiB/s.
Everything OK. Moving meta files ...
Cleanup mirror.
All done.
Errors:
Ed binary missing, falling back to --diff=none
Download of pool/main/libp/libpgm/libpgm-dev_5.2.122~dfsg-1_amd64.deb failed: 404 Not Found
Download of pool/main/libs/libsodium/libsodium-dev_1.0.3-1_amd64.deb failed: 404 Not Found
Download of pool/main/n/nacl/libnacl-dev_20110221-4.1_amd64.deb failed: 404 Not Found
Download of pool/main/z/zeromq3/libzmq3-dev_4.0.5+dfsg-3_amd64.deb failed: 404 Not Found
Failed to download files (4 errors)!
Current workaround is to ignore any *-dev_ packages.
@dmyerscough - Thanks we'll look into this.
Same issue exists for RHEL 7 yum repo.
Truncated output...
reposync -l -n -d --config=/etc/yum.repos.d/saltstack.repo --repoid=saltstack --download_path=/tmp
Repository saltstack is listed more than once in the configuration
saltstack
saltstack/primary_db
libsodium-devel-1.0.2-1.el7.x8 FAILED
libsodium-devel-1.0.2-1.el7.x8 FAILED
openpgm-devel-5.2.122-2.el7.x8 FAILED
openpgm-devel-5.2.122-2.el7.x8 FAILED
zeromq-devel-4.0.5-4.el7.x86_6 FAILED
zeromq-devel-4.0.5-4.el7.x86_6 FAILED
libsodium-devel-1.0.2-1.el7.x86_64: [Errno 256] No more mirrors to try.
openpgm-devel-5.2.122-2.el7.x86_64: [Errno 256] No more mirrors to try.
zeromq-devel-4.0.5-4.el7.x86_64: [Errno 256] No more mirrors to try.
This issue (or something related) currently breaks bootstrap-salt.sh on Debian 8 with:
E: Failed to fetch http://repo.saltstack.com/apt/debian/latest/pool/main/z/zeromq3/libzmq3-dev_4.0.5+dfsg-3_amd64.deb Size mismatch
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
* ERROR: Failed to run install_debian_8_deps()!!!
More details:
In http://repo.saltstack.com/apt/debian/latest/dists/jessie/main/binary-amd64/Packages libzmq3-dev_4.0.5+dfsg-3_amd64.deb has Size: 563942 but the actual file is 563848 bytes.
sha256 hashes also don't match
$sha256sum libzmq3-dev_4.0.5+dfsg-3_amd64.deb
fb59e26e901dd4168670fc14166b2d47d43694565411997fea7cb969cb37b793 *libzmq3-dev_4.0.5+dfsg-3_amd64.deb
versus 1643d8e9ec1ef0a3fa17eeffcf55b73cbe75801453dfcb4906e01140bb389626 in the metadata.
So either the repo has been hacked or the file has been corrupted. (This was a joke! The Release hashes match and the signature by key DE57BFBE is good, so the repo having been hacked is unlikely)
@jdelic this does not mean the repo has been hacked, this message is usually caused when you build a Debian package twice but don't increase the revision in the package.
I have seen this multiple times when building Debian packages.
dmyerscough commented 14 minutes ago:
@jdelic this does not mean the repo has been hacked, this message is usually caused when you build a Debian package twice but don't increase the revision in the package.
I know, I know... hence the line:
(This was a joke! The Release hashes match and the signature by key DE57BFBE is good, so the repo having been hacked is unlikely)
;)
Just a quick question: Since Debian provisioning from the official repos has now been broken for a while... any ETA on when the repos can be fixed or any work-arounds I can use until then?
FTR, this breaks my attempts at using salt-bootstrap & salt-cloud. Have to rely on the unmaintained repository for now and hack through salt-bootstrap to skip the repo change.
The existence of these bugs makes me consider leaving salt behind for good. Am I wrong in relying on the official salt repositories? What do other people do to deploy salt?
@EvaSDK It seems you're in the same boat... I did the same thing, i.e. rolled back the bootstrap script to the old repositories for now, but that can't possibly be what everybody else is doing, right?
@jdelic honestly I've been building and maintaining my own version of salt in an internal repo for a while now, I find it's easier to control which versions we want installed and that we can also do some customizations (to i.e: external pillar) without breaking functionality for the rest of you guys.
At the moment, we pick a release and build the debian packages ourselves, overwritting the debian directory that comes from the official salt repo, if it exists, and removing the upstart dependency as a plus.
For the dependencies I just rely on the official repos (Ubuntu/Debian/...), seems to work fine for us.
Salt 2015.8.3 has been packaged within Debian now (currently in sid from where it transitioned into stretch) and it might not be too hard to create backports of that version for jessie that you can deploy internally.
Well it's not too hard for me to do the backports except I wanted to create the servers to do that with salt. Anyway, I am running 2015.5.3 for the time being.
Related to: https://github.com/saltstack/salt/issues/29812
@dmyerscough @meggiebot Looks like it's already fixed in #29812
@dmyerscough is this fixed for you?
Yeah, looks good.
Confirming it works great now, thanks guys.
Hello, I'm having the problem again with latest version:
Réception de : 1 http://repo.saltstack.com/apt/debian/8/amd64/latest/ jessie/main libsodium13 amd64 1.0.3-1 [139 kB]
Réception de : 2 http://repo.saltstack.com/apt/debian/8/amd64/latest/ jessie/main libzmq3 amd64 4.0.5+dfsg-3 [437 kB]
Réception de : 3 http://repo.saltstack.com/apt/debian/8/amd64/latest/ jessie/main python-urllib3 all 1.10.4-1 [61,1 kB]
Réception de : 4 http://repo.saltstack.com/apt/debian/8/amd64/latest/ jessie/main python-requests all 2.7.0-3 [66,4 kB]
702 ko réceptionnés en 0s (52,1 Mo/s)
E: Impossible de récupérer http://repo.saltstack.com/apt/debian/8/amd64/latest/pool/main/libs/libsodium/libsodium13_1.0.3-1_amd64.deb Taille incohérente
E: Impossible de récupérer http://repo.saltstack.com/apt/debian/8/amd64/latest/pool/main/z/zeromq3/libzmq3_4.0.5+dfsg-3_amd64.deb Taille incohérente
E: Impossible de récupérer http://repo.saltstack.com/apt/debian/8/amd64/latest/pool/main/p/python-urllib3/python-urllib3_1.10.4-1_all.deb Taille incohérente
E: Impossible de récupérer http://repo.saltstack.com/apt/debian/8/amd64/latest/pool/main/r/requests/python-requests_2.7.0-3_all.deb Taille incohérente
E: Impossible de récupérer certaines archives, peut-être devrez-vous lancer apt-get update ou essayer avec --fix-missing ?
@kissifrot Perhaps if you could rerun apt-get update to ensure everything is up to date. The problem related to '-dev' in the name was fixed over a year a go, and there has been no issue with inconsistent sizes etc. in test or reported for some time.
Well that's I did, and on a few machines. The problem still happens for these 4 libs. Shall I open a new issue?