[opensuse] Adding http repositories doesn't work
Hi, the One click install feature would by nice to use, but it doesn't work for me. I can't add a http repository. FTP works well. The reopsitory is accessable. I can donwload the file with firefox and wget without any problem. Any suggestions? Im running a 10.3 here the zypp package seems to be up to date, martin@BIGAthlon:~> rpm -qf /usr/lib/libzypp.so.324 libzypp-3.26.2-2 y2log: [zypp] RepoManager.cc(checkIfToRefreshMetadata):405 Going to try to check whether refresh is needed for http://download.opensuse.org/repositories/X11:/XGL/openSUSE_10.3/ 2007-10-22 23:51:40 <1> BIGAthlon(17002) [zypp] MediaSetAccess.cc(MediaSetAccess):36 initializing.. 2007-10-22 23:51:40 <1> BIGAthlon(17002) [zypp] MediaAccess.cc(open):109 Trying scheme 'http' 2007-10-22 23:51:40 <1> BIGAthlon(17002) [zypp] MediaCurl.cc(MediaCurl):177 MediaCurl::MediaCurl(http://download.opensuse.org/repositories/X11:/XGL/openSUSE_10.3/, ) 2007-10-22 23:51:40 <1> BIGAthlon(17002) [zypp] MediaAccess.cc(open):141 Opened: http(http://download.opensuse.org/repositories/X11:/XGL/openSUSE_10.3/ not attached; localRoot "") 2007-10-22 23:51:40 <1> BIGAthlon(17002) [zypp] PathInfo.cc(_Log_Result):295 mkdir /var/adm/mount/AP_0x00000004 00755 2007-10-22 23:51:40 <1> BIGAthlon(17002) [zypp] MediaHandler.cc(createAttachPoint):370 Created default attach point /var/adm/mount/AP_0x00000004 2007-10-22 23:51:40 <1> BIGAthlon(17002) [zypp] MediaHandler.cc(attach):653 Attached: http://download.opensuse.org/repositories/X11:/XGL/openSUSE_10.3/ attached; localRoot "/var/adm/mount/AP_0x00000004" 2007-10-22 23:52:09 <1> BIGAthlon(17002) [zypp] MediaCurl.cc(doGetDoesFileExist):931 perform code: 52 [ server returned nothing (no headers, no data) ] 2007-10-22 23:52:09 <5> BIGAthlon(17002) [zypp] Exception.cc(log):119 MediaCurl.cc(doGetDoesFileExist):1022 THROW: MediaCurl.cc(doGetDoesFileExist):1022: Curl error for 'http://download.opensuse.org/repositories/X11:/XGL/openSUSE_10.3/repodata/re...': 2007-10-22 23:52:09 <5> BIGAthlon(17002) [zypp] Exception.cc(log):119 Error code: 2007-10-22 23:52:09 <5> BIGAthlon(17002) [zypp] Exception.cc(log):119 Error message: Empty reply from server 2007-10-22 23:52:09 <5> BIGAthlon(17002) [zypp] Exception.cc(log):119 MediaCurl.cc(doGetDoesFileExist):1027 RETHROW: MediaCurl.cc(doGetDoesFileExist):1022: Curl error for 'http://download.opensuse.org/repositories/X11:/XGL/openSUSE_10.3/repodata/re...': 2007-10-22 23:52:09 <5> BIGAthlon(17002) [zypp] Exception.cc(log):119 Error code: 2007-10-22 23:52:09 <5> BIGAthlon(17002) [zypp] Exception.cc(log):119 Error message: Empty reply from server 2007-10-22 23:52:09 <5> BIGAthlon(17002) [zypp] Exception.cc(log):119 MediaCurl.cc(getDoesFileExist):822 RETHROW: MediaCurl.cc(doGetDoesFileExist):1027: Curl error for 'http://download.opensuse.org/repositories/X11:/XGL/openSUSE_10.3/repodata/re...': 2007-10-22 23:52:09 <5> BIGAthlon(17002) [zypp] Exception.cc(log):119 Error code: 2007-10-22 23:52:09 <5> BIGAthlon(17002) [zypp] Exception.cc(log):119 Error message: Empty reply from server 2007-10-22 23:52:09 <5> BIGAthlon(17002) [zypp] Exception.cc(log):119 MediaSetAccess.cc(doesFileExist):116 CAUGHT: MediaCurl.cc(getDoesFileExist):822: Curl error for 'http://download.opensuse.org/repositories/X11:/XGL/openSUSE_10.3/repodata/re...': 2007-10-22 23:52:09 <5> BIGAthlon(17002) [zypp] Exception.cc(log):119 Error code: 2007-10-22 23:52:09 <5> BIGAthlon(17002) [zypp] Exception.cc(log):119 Error message: Empty reply from server 2007-10-22 23:52:09 <1> BIGAthlon(17002) [zypp] MediaHandler.cc(disconnect):692 Disconnected: http://download.opensuse.org/repositories/X11:/XGL/openSUSE_10.3/ attached; localRoot "/var/adm/mount/AP_0x00000004" 2007-10-22 23:52:09 <1> BIGAthlon(17002) [zypp] PathInfo.cc(_Log_Result):295 recursive_rmdir /var/adm/mount/AP_0x00000004 2007-10-22 23:52:09 <1> BIGAthlon(17002) [zypp] MediaHandler.cc(removeAttachPoint):190 Deleted default attach point /var/adm/mount/AP_0x00000004 2007-10-22 23:52:09 <1> BIGAthlon(17002) [zypp] MediaHandler.cc(release):773 Released: http://download.opensuse.org/repositories/X11:/XGL/openSUSE_10.3/ not attached; localRoot "" 2007-10-22 23:52:09 <1> BIGAthlon(17002) [YCP] PackageCallbacks.ycp:556 MediaChange err'Curl error for 'http://download.opensuse.org/repositories/X11:/XGL/openSUSE_10.3/repodata/re...': Error code: Error message: Empty reply from server', url'http://download.opensuse.org/repositories/X11:/XGL/openSUSE_10.3/', prd'', cur'0'/'', wan'1'/'' Greetings, Martin! -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Tuesday 2007-10-23 at 00:00 +0200, Martin Oberzalek wrote:
the One click install feature would by nice to use, but it doesn't work for me. I can't add a http repository. FTP works well.
The reopsitory is accessable. I can donwload the file with firefox and wget without any problem. Any suggestions?
Server error.
2007-10-22 23:51:40 <1> BIGAthlon(17002) [zypp] MediaHandler.cc(attach):653 Attached: http://download.opensuse.org/repositories/X11:/XGL/openSUSE_10.3/ attached; localRoot "/var/adm/mount/AP_0x00000004" 2007-10-22 23:52:09 <1> BIGAthlon(17002) [zypp] MediaCurl.cc(doGetDoesFileExist):931 perform code: 52 [ server returned nothing (no headers, no data) ]
Remember that http://download.opensuse.org/ is a redirector, and it may happen that the actual server you get doesn't work that moment. Try setting a static server instead. - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Made with pgp4pine 1.76 iD8DBQFHHTb1tTMYHG2NR9URAoVcAKCGwx4MR8/goTzphmF6GyTR9AU9GACghmc9 e5mISgzMGmyWPrjTsD07rsU= =EDY1 -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Am Dienstag, 23. Oktober 2007 01:49:00 schrieb Carlos E. R.:
The Tuesday 2007-10-23 at 00:00 +0200, Martin Oberzalek wrote:
the One click install feature would by nice to use, but it doesn't work for me. I can't add a http repository. FTP works well.
The reopsitory is accessable. I can donwload the file with firefox and wget without any problem. Any suggestions?
Server error.
2007-10-22 23:51:40 <1> BIGAthlon(17002) [zypp] MediaHandler.cc(attach):653 Attached: http://download.opensuse.org/repositories/X11:/XGL/openSUSE_10.3/ attached; localRoot "/var/adm/mount/AP_0x00000004" 2007-10-22 23:52:09 <1> BIGAthlon(17002) [zypp] MediaCurl.cc(doGetDoesFileExist):931 perform code: 52 [ server returned nothing (no headers, no data) ]
Remember that http://download.opensuse.org/ is a redirector, and it may happen that the actual server you get doesn't work that moment. Try setting a static server instead.
Don't think so, because it always fails and never worked. And I can access the file with the curl command line client too. I built a little testprogram that tries accessing the file vial curl: Works well. So I guess I'm triggering here a bug in libzypp :-( I'll do some more testing tomorrow. Martin -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Am Dienstag, 23. Oktober 2007 02:24:12 schrieb Martin Oberzalek:
Am Dienstag, 23. Oktober 2007 01:49:00 schrieb Carlos E. R.:
The Tuesday 2007-10-23 at 00:00 +0200, Martin Oberzalek wrote:
the One click install feature would by nice to use, but it doesn't work for me. I can't add a http repository. FTP works well.
The reopsitory is accessable. I can donwload the file with firefox and wget without any problem. Any suggestions?
Server error.
2007-10-22 23:51:40 <1> BIGAthlon(17002) [zypp] MediaHandler.cc(attach):653 Attached: http://download.opensuse.org/repositories/X11:/XGL/openSUSE_10.3/ attached; localRoot "/var/adm/mount/AP_0x00000004" 2007-10-22 23:52:09 <1> BIGAthlon(17002) [zypp] MediaCurl.cc(doGetDoesFileExist):931 perform code: 52 [ server returned nothing (no headers, no data) ]
Remember that http://download.opensuse.org/ is a redirector, and it may happen that the actual server you get doesn't work that moment. Try setting a static server instead.
Don't think so, because it always fails and never worked. And I can access the file with the curl command line client too. I built a little testprogram that tries accessing the file vial curl: Works well.
So I guess I'm triggering here a bug in libzypp :-(
So, I fixed the Bug now. diff -r -u libzypp-3.26.3/zypp/media/MediaCurl.cc libzypp-3.26.3-kingleo/zypp/media/MediaCurl.cc --- libzypp-3.26.3/zypp/media/MediaCurl.cc 2007-10-12 15:10:58.000000000 +0200 +++ libzypp-3.26.3-kingleo/zypp/media/MediaCurl.cc 2007-10-24 23:13:49.000000000 +0200 @@ -894,11 +894,12 @@ // little data, that works with broken servers, and // works for ftp as well, because retrieving only headers // ftp will return always OK code ? +#if 0 ret = curl_easy_setopt( _curl, CURLOPT_RANGE, "0-1" ); if ( ret != 0 ) { ZYPP_THROW(MediaCurlSetOptException(url, _curlError)); } - +#endif FILE *file = ::fopen( "/dev/null", "w" ); if ( !file ) { ::fclose(file); Greetings, Martin.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
* Martin Oberzalek
So, I fixed the Bug now.
diff -r -u libzypp-3.26.3/zypp/media/MediaCurl.cc libzypp-3.26.3-kingleo/zypp/media/MediaCurl.cc
The interested developers *may* not see your fix here. Please submit it to: http://bugzilla.novell.com tks, - -- Patrick Shanahan Plainfield, Indiana, USA HOG # US1244711 http://wahoo.no-ip.org Photo Album: http://wahoo.no-ip.org/gallery2 Registered Linux User #207535 @ http://counter.li.org -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4-svn4472 (GNU/Linux) iD8DBQFHH7rVClSjbQz1U5oRAkjMAJ4vi6DrLtR9CLG8RaZwQRJkyDJl2gCePRV/ cH1qlLTgGtY1FEmYqW1Un7w= =Td47 -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Patrick Shanahan napsal(a):
* Martin Oberzalek
[10-24-07 17:18]: [...] So, I fixed the Bug now.
diff -r -u libzypp-3.26.3/zypp/media/MediaCurl.cc libzypp-3.26.3-kingleo/zypp/media/MediaCurl.cc
The interested developers *may* not see your fix here. Please submit it to: http://bugzilla.novell.com
I've already forwarded that mail (with patch) to zypp-devel at opensuse.org which is "the" mailing-list of libzypp developers, however attaching it to bugzilla is even better. Bye Lukas
participants (4)
-
Carlos E. R.
-
Lukas Ocilka
-
Martin Oberzalek
-
Patrick Shanahan