Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Aptly cannot mirror Elastic logstashforwarder mirror #305

Closed
jstangroome opened this issue Sep 29, 2015 · 4 comments
Closed

Aptly cannot mirror Elastic logstashforwarder mirror #305

jstangroome opened this issue Sep 29, 2015 · 4 comments

Comments

@jstangroome
Copy link

Add Elastic's logstashforwarder repo to aptly and attempt update:

$ aptly mirror create logstashforwarder http://packages.elastic.co/logstashforwarder/debian stable main
$ aptly mirror update logstashforwarder
Downloading http://packages.elastic.co/logstashforwarder/debian/dists/stable/InRelease...
Downloading http://packages.elastic.co/logstashforwarder/debian/dists/stable/Release...
Downloading http://packages.elastic.co/logstashforwarder/debian/dists/stable/Release.gpg...
gpgv: Signature made Thu 05 Mar 2015 08:04:12 PM UTC using RSA key ID D88E42B4
gpgv: Good signature from "Elasticsearch (Elasticsearch Signing Key) <[email protected]>"
Downloading & parsing package files...
Downloading http://packages.elastic.co/logstashforwarder/debian/dists/stable/main/binary-noarch/Packages.bz2...
Downloading http://packages.elastic.co/logstashforwarder/debian/dists/stable/main/binary-noarch/Packages.gz...
Downloading http://packages.elastic.co/logstashforwarder/debian/dists/stable/main/binary-noarch/Packages...
ERROR: unable to update: HTTP code 404 while fetching http://packages.elastic.co/logstashforwarder/debian/dists/stable/main/binary-noarch/Packages

This appears to be because the architectures in Elastic's Release file don't match the actual package architectures:

$ curl http://packages.elastic.co/logstashforwarder/debian/dists/stable/Release
Architectures: noarch
...
SHA1:
 da39a3ee5e6b4b0d3255bfef95601890afd80709                0 Release
 5f6fcbd97954082f65caf5fd11802a558e8c7dc8              690 main/binary-all/Packages
 be5ae50d21ecd76e0779bb934a601897b434520c              476 main/binary-all/Packages.gz
 5f6fcbd97954082f65caf5fd11802a558e8c7dc8              690 main/binary-amd64/Packages
 be5ae50d21ecd76e0779bb934a601897b434520c              476 main/binary-amd64/Packages.gz
 5f6fcbd97954082f65caf5fd11802a558e8c7dc8              690 main/binary-i386/Packages
 be5ae50d21ecd76e0779bb934a601897b434520c              476 main/binary-i386/Packages.gz
...

Would be good to be able force Aptly to override the Architectures: line in the Release file.

I will raise a similar issue with Elastic about this mismatch in their repository.

@jstangroome
Copy link
Author

Issue for logstash-forwarded: elastic/logstash-forwarder#531

@smira
Copy link
Contributor

smira commented Sep 30, 2015

@jstangroome you can override list of architectures using -architectures flag. You can do that during aptly mirror create, or later using edit:

aptly mirror edit -architectures=i386,amd64 logstashforwarder
aptly mirror update logstashforwarder

@jstangroome
Copy link
Author

@smira this does not work in aptly 0.9.5.

$ aptly mirror create -architectures=amd64 logstashforwarder http://packages.elastic.co/logstashforwarder/debian stable main
Downloading http://packages.elastic.co/logstashforwarder/debian/dists/stable/InRelease...
Downloading http://packages.elastic.co/logstashforwarder/debian/dists/stable/Release...
Downloading http://packages.elastic.co/logstashforwarder/debian/dists/stable/Release.gpg...
gpgv: Signature made Thu 05 Mar 2015 08:04:12 PM UTC using RSA key ID D88E42B4
gpgv: Good signature from "Elasticsearch (Elasticsearch Signing Key) <[email protected]>"
ERROR: unable to fetch mirror: architecture amd64 not available in repo [logstashforwarder]: http://packages.elastic.co/logstashforwarder/debian/ stable

and also

$ aptly mirror create logstashforwarder http://packages.elastic.co/logstashforwarder/debian stable main
$ aptly mirror edit -architectures=amd64 logstashforwarder
Downloading http://packages.elastic.co/logstashforwarder/debian/dists/stable/Release...
ERROR: unable to edit: architecture amd64 not available in repo [logstashforwarder]: http://packages.elastic.co/logstashforwarder/debian/ stable

@smira smira reopened this Sep 30, 2015
@smira
Copy link
Contributor

smira commented Sep 30, 2015

oh... I've added -force-components some time ago to deal with wrong component list. Looks like we need -force-architectures as well to workaround broken repos...

@smira smira added bug feature and removed faq labels Sep 30, 2015
@smira smira added this to the v0.9.6 milestone Sep 30, 2015
@smira smira modified the milestones: v0.9.6, v0.9.7 Jan 24, 2016
@smira smira modified the milestones: v0.9.7, v0.9.8 Apr 18, 2016
@smira smira removed this from the v0.9.8 milestone Mar 27, 2017
@lbolla lbolla closed this as completed Jan 28, 2022
@lbolla lbolla reopened this Jan 28, 2022
@neolynx neolynx closed this as completed Aug 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants
@lbolla @smira @jstangroome @neolynx and others