[xen-tools-discuss] Bug? use of apt proxy with xen-create-image
Kevin FAUCHON
kevin.fauchon at gmail.com
Wed Jul 10 12:49:36 CEST 2013
Hello,
===> problem SOLVED <===
>Can you try --apt_proxy=http://88.191.190.70:3142/ instead?
>"=url" implies (admittedly not very clearly) that a protocol needs to
>be included.
Thanks you very much, that's the error.
Nota: tested and OK, with and without the ending slash on proxy url:
http://AA.BB.CC.DD:3142
http://AA.BB.CC.DD:3142/
RESUME: Use of apt-cacher-ng during xen-create-image :
use the option --apt_proxy like this:
--apt_proxy=http://AA.BB.CC.DD:3142/
Or set it in /etc/xen-tools/xen-tools.conf like that:
mirror = http://ftp.fr.debian.org/debian/
apt_proxy = http://AA.BB.CC.DD:3142/
Sorry for not finding this easy solving myself...
I was not sure if it was a bug or not, that's why a bug report was not
created.
Thanks you very much, Kevin.
2013/7/9 Axel Beckert <abe at deuxchevaux.org>
> Control: found 623443 0.9.8.2
> Control: found 623443 0.9.9
>
> Hi Kevin,
>
> On Tue, Jul 09, 2013 at 01:53:31PM +0200, Kevin FAUCHON wrote:
> > The actual manpage of debian wheezy say:
> > "--apt_proxy=url Specify a proxy to be used by debootstrap, and within
> > the guest."
> >
> > So i launch this command:
> > xen-create-image --apt_proxy=88.191.190.70:3142 --hostname=test2
> > --size=2048Mb \
> > --memory=128Mb --swap=32Mb --ip=192.168.254.98 --role=udev
>
> Can you try --apt_proxy=http://88.191.190.70:3142/ instead?
>
> "=url" implies (admittedly not very clearly) that a protocol needs to
> be included.
>
> > And near the end of the logfile, these errors:
> > W: Failed to fetch
> > http://ftp.fr.debian.org/debian/dists/wheezy/main/binary-amd64/Packages
> > Cannot initiate the connection to 3142:80 (0.0.12.70). - connect (22:
> > Invalid argument)
>
> Fits: It took 88.191.190.70 as protocol (i.e. before the colon) and
> 3142 as hostname (behind the colon). But it's strange that it was able
> to look up 3142 as hostname (or use it aas IP). But then again
> 0.0.12.70 is not a valid IP address anyway and hence it fails.
>
> On a first glance I'd say that this is an APT bug because it doesn't
> parse the setting properly before using it. Digging a little deeper my
> suspicion got confirmed as the issue already has been reported at
> http://bugs.debian.org/623443 (Cc'ed) and I could reproduce the issue
> on Debian Testing with apt 0.9.8.2 as well as on Debian Unstable with
> apt 0.9.9:
>
> Cannot initiate the connection to 3142:80 (0.0.12.70). - connect (22:
> Invalid argument)
>
> I'll update the xen-tools documentation with regards to that and may
> even add such a check to xen-create-image so that it fails earlier in
> cases like your's. So thanks for the report despite the bug sits
> elsewhere than you suspected.
>
> Kind regards, Axel
> --
> /~\ Plain Text Ribbon Campaign | Axel Beckert
> \ / Say No to HTML in E-Mail and News | abe at deuxchevaux.org (Mail)
> X See http://www.asciiribbon.org/ | abe at noone.org(Mail+Jabber)
> / \ I love long mails: http://email.is-not-s.ms/ | http://noone.org/abe/(Web)
> _______________________________________________
> xen-tools-discuss mailing list
> xen-tools-discuss at xen-tools.org
> https://xen-tools.org/mailman/listinfo/xen-tools-discuss
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://xen-tools.org/pipermail/xen-tools-discuss/attachments/20130710/e056befc/attachment.html>
More information about the xen-tools-discuss
mailing list