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

Can't mirror jenkins repository #47

Closed
oker1 opened this issue May 5, 2014 · 13 comments
Closed

Can't mirror jenkins repository #47

oker1 opened this issue May 5, 2014 · 13 comments
Labels
Milestone

Comments

@oker1
Copy link

oker1 commented May 5, 2014

The repository is flat, but it has a component named binary:

$ aptly -architectures="amd64" mirror create jenkins http://pkg.jenkins-ci.org/debian-stable/ ./ binary
ERROR: unable to create mirror: components aren't supported for flat repos

$ aptly -architectures="amd64" mirror create jenkins http://pkg.jenkins-ci.org/debian-stable/binary ./
$ aptly mirror update jenkins
...
ERROR: unable to update: download errors:
  HTTP code 404 while fetching http://pkg.jenkins-ci.org/debian-stable/binary/binary/jenkins_1.554.1_all.deb
@smira smira added the bug label May 9, 2014
@smira smira added this to the v0.6 milestone May 9, 2014
@smira
Copy link
Contributor

smira commented May 9, 2014

This is definitely bug in aptly. Thanks for the report!

@smira smira modified the milestones: v0.5.1, v0.6 May 10, 2014
smira added a commit that referenced this issue May 10, 2014
@smira
Copy link
Contributor

smira commented May 10, 2014

Fix has been committed, I expect 0.5.1 to be released tomorrow.

smira added a commit that referenced this issue May 10, 2014
@smira smira closed this as completed May 10, 2014
@oker1
Copy link
Author

oker1 commented May 10, 2014

Thanks!

@word
Copy link

word commented May 19, 2014

Hi,
Just tried this on 0.5.1 and still having the same issue:

% aptly version
aptly version: 0.5.1
% aptly mirror create jenkins http://pkg.jenkins-ci.org/debian-stable ./ binary
ERROR: unable to create mirror: components aren't supported for flat repos
% aptly mirror create jenkins http://pkg.jenkins-ci.org/debian-stable/binary ./
% aptly mirror update jenkins
...
ERROR: unable to update: download errors:
  HTTP code 404 while fetching http://pkg.jenkins-ci.org/debian-stable/binary/binary/jenkins_1.554.1_all.deb

@smira
Copy link
Contributor

smira commented May 20, 2014

@word, please use exactly the same format as http://pkg.jenkins-ci.org/debian-stable/ is suggesting for apt-sources:

aptly mirror create jenkins http://pkg.jenkins-ci.org/debian-stable binary/

Probably it should be made more clear in docs.

@word
Copy link

word commented May 20, 2014

That works great. Many thanks!

@yasin-amadmia-mck
Copy link

@smira and @word. Can I please clarify this ? I am trying to build http://pkg.jenkins-ci.org/debian-stable/. Can create mirror as discussed above. Howerver, can I ask how are you able to publish it ? I want to publish it in the same way as the source (see doc http://pkg.jenkins-ci.org/debian-stable/ ). This is all-distribution version so when I omit the -distribution="vivid" flag while publishing,
aptly publish snapshot -architecture="amd64" snapshot-name /jenkins , I don't get anything under the dists/ folder of the published repo and hence apt-get update on the clients fail with error below. And I add the repo as per the document (i.e. deb http://aptly-url/jenkins binary/)

Ign http://aptly-url/jenkins binary/ InRelease Ign http://aptly-url/jenkins binary/ binary/ Release.gpg Ign http://aptly-url/jenkins binary/ binary/ Release Err http://aptly-url/jenkins binary/ binary/ Packages

@smira
Copy link
Contributor

smira commented Mar 1, 2016

@geek876 aptly doesn't support "flat" repository format while publishing. Why do you need flat format? apt-get is able to consume both formats?

@yasin-amadmia-mck
Copy link

@smira: apt-get does consume both formats I suppose. That's what the doc suggests http://pkg.jenkins-ci.org/debian-stable/. We are using aptly to version-control our packages. So every so often, we update the mirrors, take snap and publish it. In case of reversion, we simply revert back to the previous good snap. We want to bring along Jenkins repository too within our regime and hence there is a need to snap and publish it. Any alternatives ?

@smira
Copy link
Contributor

smira commented Mar 1, 2016

@geek876 no, apt-get can handle both formats easily. Flat format is kind of legacy and it has its own problems. Mirror your repo, snapshot, publish it and take URL which aptly suggests to use to apt-get. It should work.

@phyber
Copy link

phyber commented Apr 28, 2016

Has this changed again recently?

$ aptly mirror create jenkins-binary-lts http://pkg.jenkins-ci.org/debian-stable binary/
Downloading http://pkg.jenkins-ci.org/debian-stable/binary/InRelease...
Downloading http://pkg.jenkins-ci.org/debian-stable/binary/Release...
ERROR: unable to fetch mirror: http://pkg.jenkins-ci.org/debian-stable/binary/Release: Get http:/debian-stable/binary/Release: dial tcp 52.202.51.185:80: i/o timeout

Why is it trying to connect to http://debian-stable at the end there?

@FlorentCoppint
Copy link

@phyber I think "http:/debian-stable" is just a display issue, it tries to connect to real server "52.202.51.185:80" which is not responding. I have the problem, it's a Jenkins related issue, not Aptly's.

@phyber
Copy link

phyber commented Apr 28, 2016

@FlorentCoppint yeah, I was just replying with that after I noticed just a single / in http:/debian-stable.
I guess the bug here is a display issue with the error message, you're right.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants