[opensuse-buildservice] Apt-get doesn't follow HTTP redirects
Hello everybody, I'm using the Build service to create packages for almost all distribution currently present in the build service. This is my repositories http://download.opensuse.org/repositories/home:/EmmeG/ My user account is EmmeG I also created repositories for Apt-based distributions: Debian and xUbuntu... but I have problem to use them with apt because the main server download.opensuse.org reply with a "302 Found" redirect that apt-get consider an error !! :-( :-( So, if a write in sources.list the following statement: deb http://download.opensuse.org/repositories/home:/EmmeG/ xUbuntu_7.10/ Then apt-get reply that it's impossible to fetch data because the server reply with the error: "302 Found" :-( :-( I searched on the web ... and I discovered that this problem was reported since 2000 to apt developers... but I think that they don't want to add the "feature" to honour the HTTP redirects in apt-get !! :-( :-( If I inspect manually the HTTP 302 response, and I put directly the hostname that mirror my repositories in this way: deb ftp://ftp5.gwdg.de/pub/opensuse/repositories/home:/EmmeG/ xUbuntu_7.10/ all goes fine and I can use my repositories without problems. But because the 302 is a temporary redirection, I cannot tell to my users to use the host above! What is the best solution to this problems ??? Thank you, Gianluca --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
On Tue, 29 Jan 2008, G. Massera wrote:
If I inspect manually the HTTP 302 response, and I put directly the hostname that mirror my repositories in this way:
deb ftp://ftp5.gwdg.de/pub/opensuse/repositories/home:/EmmeG/ xUbuntu_7.10/
all goes fine and I can use my repositories without problems. But because the 302 is a temporary redirection, I cannot tell to my users to use the host above!
What is the best solution to this problems ???
Point the users to http://en.opensuse.org/Mirrors_Development_Build and report your problem to apt-developers again. Maybe the now change their mind :-) Ciao -- http://www.dstoecker.eu/ (PGP key available) --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
Dirk Stoecker schrieb:
On Tue, 29 Jan 2008, G. Massera wrote:
If I inspect manually the HTTP 302 response, and I put directly the hostname that mirror my repositories in this way:
deb ftp://ftp5.gwdg.de/pub/opensuse/repositories/home:/EmmeG/ xUbuntu_7.10/
all goes fine and I can use my repositories without problems. But because the 302 is a temporary redirection, I cannot tell to my users to use the host above!
What is the best solution to this problems ???
Point the users to http://en.opensuse.org/Mirrors_Development_Build and report your problem to apt-developers again. Maybe the now change their mind :-)
It's the same problem with RPM, see novell bugzilla #278729 Greetings -- Thomas Schmidt (tschmidt [at] suse.de) SUSE Linux Products GmbH :: Research & Development :: Internal Tools "Don't Panic", Douglas Adams (1952 - 11.05.2001) --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
On 2008-01-29 15:58:20 +0100, Thomas Schmidt wrote:
It's the same problem with RPM, see novell bugzilla #278729 Greetings
with the minor difference that apt is more a replacement for zypper while it would be rpm vs deb. where i think that deb cant handle downloading at all. darix -- openSUSE - SUSE Linux is my linux openSUSE is good for you www.opensuse.org --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
On Tuesday 29 January 2008 15:58:20 wrote Thomas Schmidt:
Dirk Stoecker schrieb:
On Tue, 29 Jan 2008, G. Massera wrote:
If I inspect manually the HTTP 302 response, and I put directly the hostname that mirror my repositories in this way:
deb ftp://ftp5.gwdg.de/pub/opensuse/repositories/home:/EmmeG/ xUbuntu_7.10/
all goes fine and I can use my repositories without problems. But because the 302 is a temporary redirection, I cannot tell to my users to use the host above!
What is the best solution to this problems ???
Point the users to http://en.opensuse.org/Mirrors_Development_Build and report your problem to apt-developers again. Maybe the now change their mind :-)
It's the same problem with RPM, see novell bugzilla #278729
Michael fixed rpm to support redirects in current distributions meanwhile. -- Adrian Schroeter SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg) email: adrian@suse.de --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
On Tue, Jan 29, 2008 at 04:17:52PM +0100, Adrian Schröter wrote:
Michael fixed rpm to support redirects in current distributions meanwhile.
Hmm, I don't think I did that. Maybe someone else. Cheers, Micha. -- Michael Schroeder mls@suse.de SUSE LINUX Products GmbH, GF Markus Rex, HRB 16746 AG Nuernberg main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2-11)*13);} --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
On Tuesday 29 January 2008 16:54:37 wrote Michael Schroeder:
On Tue, Jan 29, 2008 at 04:17:52PM +0100, Adrian Schröter wrote:
Michael fixed rpm to support redirects in current distributions meanwhile.
Hmm, I don't think I did that. Maybe someone else.
okay, sorry, but I can tell it works at least since 10.3 ;) -- Adrian Schroeter SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg) email: adrian@suse.de --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
On Tue, Jan 29, 2008 at 04:59:24PM +0100, Adrian Schröter wrote:
On Tuesday 29 January 2008 16:54:37 wrote Michael Schroeder:
On Tue, Jan 29, 2008 at 04:17:52PM +0100, Adrian Schröter wrote:
Michael fixed rpm to support redirects in current distributions meanwhile.
Hmm, I don't think I did that. Maybe someone else.
okay, sorry, but I can tell it works at least since 10.3 ;)
Are you sure it works with 10.3? download.opensuse.org doesn't do any redirects if the user agent matches that of RPM, so maybe it works for you just because of that...! Peter -- "WARNING: This bug is visible to non-employees. Please be respectful!" SUSE LINUX Products GmbH Research & Development
On Mon, Feb 11, 2008 at 04:39:01PM +0100, Dr. Peter Poeml wrote:
On Tue, Jan 29, 2008 at 04:59:24PM +0100, Adrian Schröter wrote:
On Tuesday 29 January 2008 16:54:37 wrote Michael Schroeder:
On Tue, Jan 29, 2008 at 04:17:52PM +0100, Adrian Schröter wrote:
Michael fixed rpm to support redirects in current distributions meanwhile.
Hmm, I don't think I did that. Maybe someone else.
okay, sorry, but I can tell it works at least since 10.3 ;)
Are you sure it works with 10.3?
download.opensuse.org doesn't do any redirects if the user agent matches that of RPM, so maybe it works for you just because of that...!
For the record: we actually match on "rpm/4.4.2". Peter -- "WARNING: This bug is visible to non-employees. Please be respectful!" SUSE LINUX Products GmbH Research & Development
Dirk Stoecker ha scritto:
On Tue, 29 Jan 2008, G. Massera wrote:
If I inspect manually the HTTP 302 response, and I put directly the hostname that mirror my repositories in this way:
deb ftp://ftp5.gwdg.de/pub/opensuse/repositories/home:/EmmeG/ xUbuntu_7.10/
all goes fine and I can use my repositories without problems. But because the 302 is a temporary redirection, I cannot tell to my users to use the host above!
What is the best solution to this problems ???
Point the users to http://en.opensuse.org/Mirrors_Development_Build and report your problem to apt-developers again. Maybe the now change their mind :-)
Ciao Not all Mirrors mirrors also the repositories directory... so, is not so useful to direct users to Mirrors_Development_Build :-( But anyway... can I mirror my repositories via rsync ??
Ciao, Gianluca --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
Hi Gianluca, On Tue, Jan 29, 2008 at 04:13:24PM +0100, G. Massera wrote:
Dirk Stoecker ha scritto:
On Tue, 29 Jan 2008, G. Massera wrote:
If I inspect manually the HTTP 302 response, and I put directly the hostname that mirror my repositories in this way:
deb ftp://ftp5.gwdg.de/pub/opensuse/repositories/home:/EmmeG/ xUbuntu_7.10/
all goes fine and I can use my repositories without problems. But because the 302 is a temporary redirection, I cannot tell to my users to use the host above!
What is the best solution to this problems ???
Point the users to http://en.opensuse.org/Mirrors_Development_Build and report your problem to apt-developers again. Maybe the now change their mind :-)
Ciao Not all Mirrors mirrors also the repositories directory... so, is not so useful to direct users to Mirrors_Development_Build :-(
What's the exact name of the user agent which apt sends? We could possibly grant an exception in the download redirectory, so it doesn't send redirects for those clients. That makes sense if we are not talking about a huge amounts of requests each day.
But anyway... can I mirror my repositories via rsync ??
yes, you can access rsync.opensuse.org and mirror repositories without problems. See http://en.opensuse.org/Mirror_Infrastructure for available rsync modules. Also, you could solve the issue by pointing your user's apt clients to http://widehat.opensuse.org/repositories/. For the time being it is a complete (and mostly fresh) mirror of download.opensuse.org, and I don't think it is a problem if all those apt clients access it directly. It's not guaranteed to exist forever, and it might not set the caching headers as thoughtfully as download.opensuse.org, because it is only a stupid mirror, but for you it would be a viable option I think. Peter -- "WARNING: This bug is visible to non-employees. Please be respectful!" SUSE LINUX Products GmbH Research & Development
On Mon, Feb 11, Peter Pöml wrote:
What's the exact name of the user agent which apt sends?
User-Agent: Debian APT-HTTP/1.3 on Ubuntu 6.06
We could possibly grant an exception in the download redirectory, so it doesn't send redirects for those clients.
-- With best regards, Carsten Hoeger
On Mon, Feb 11, 2008 at 04:55:08PM +0100, Carsten Hoeger wrote:
On Mon, Feb 11, Peter Pöml wrote:
What's the exact name of the user agent which apt sends?
User-Agent: Debian APT-HTTP/1.3
% grep APT /tmp/download.opensuse.org-20080207-access_log | wc -l 4244 Not an overwhelming amount per day, so no objections from my side to add a workaround in the redirector configuration in order to serve the files directly to APT... Peter -- "WARNING: This bug is visible to non-employees. Please be respectful!" SUSE LINUX Products GmbH Research & Development
On Mon, Feb 11, 2008 at 05:27:05PM +0100, Dr. Peter Poeml wrote:
On Mon, Feb 11, 2008 at 04:55:08PM +0100, Carsten Hoeger wrote:
On Mon, Feb 11, Peter Pöml wrote:
What's the exact name of the user agent which apt sends?
User-Agent: Debian APT-HTTP/1.3
% grep APT /tmp/download.opensuse.org-20080207-access_log | wc -l 4244
Not an overwhelming amount per day, so no objections from my side to add a workaround in the redirector configuration in order to serve the files directly to APT...
Now, all user agents matching "APT-HTTP" are no longer redirected. Peter -- "WARNING: This bug is visible to non-employees. Please be respectful!" SUSE LINUX Products GmbH Research & Development
participants (8)
-
Adrian Schröter
-
Carsten Hoeger
-
Dirk Stoecker
-
Dr. Peter Poeml
-
G. Massera
-
Marcus Rueckert
-
Michael Schroeder
-
Thomas Schmidt