[opensuse] 11.4 and ftp repositories
Hi, I'm experiencing some problems with ftp repositories: it seems, zypper can't get media information from yast2 and rpm-md repositories on my installation(s). When I add a repository: zypper ar -t rpm-md -n mpip ftp://10.20.70.16/repos/11.4/mpip mpip it gets added 'successfully', but I can't use the repository: zypper se xyzzy File '/content' not found on medium 'ftp://10.20.70.16/repos/11.4/oss' Abort, retry, ignore? [a/r/i/?] (a): i Error retrieving metadata for 'oss': File '/content' not found on medium 'ftp://10.20.70.16/repos/11.4/oss' Warning: Disabling repository 'oss' because of the above error. File '/repodata/repomd.xml' not found on medium 'ftp://10.20.70.16/repos/11.4/mpip' Abort, retry, ignore? [a/r/i/?] (a): Error building the cache: Can't provide /repodata/repomd.xml Warning: Disabling repository 'mpip' because of the above error. Loading repository data... Reading installed packages... No packages found. The warning message is also issued for repositories used during installation. I can use the repositories 'refreshed' during installation (suppressing the error messages by using the --no-refresh messages), but not the newly added repo (probably because it got never refreshed). This is not only a issue of my local repositories, but also occurs if I add, e.g. the nvidia repository (ftp://download.nvidia.com/opensuse/11.4/) I didn't find anything on Google about this, is anyone else experiencing this? Thank you very much. Best regards, Robert -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Friday, March 11, 2011 02:11:09 PM Robert Klein wrote:
Hi,
I'm experiencing some problems with ftp repositories: it seems, zypper can't get media information from yast2 and rpm-md repositories on my installation(s).
When I add a repository:
zypper ar -t rpm-md -n mpip ftp://10.20.70.16/repos/11.4/mpip mpip
it gets added 'successfully', but I can't use the repository:
zypper se xyzzy File '/content' not found on medium 'ftp://10.20.70.16/repos/11.4/oss'
so, can you dowload the file manually with curl or wget: wget ftp://10.20.70.16/repos/11.4/oss/content If that works, then check the zypper log files in /var/log to see what might fail. Btw. I would not give "-t rpm-md", let zypper figure this out itself, Andreas -- Andreas Jaeger, Program Manager openSUSE, aj@{novell.com,opensuse.org} Twitter: jaegerandi | Identica: jaegerandi SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg) Maxfeldstr. 5, 90409 Nürnberg, Germany GPG fingerprint = 93A3 365E CE47 B889 DF7F FED1 389A 563C C272 A126 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
---> Andreas Jaeger <aj@novell.com>:
On Friday, March 11, 2011 02:11:09 PM Robert Klein wrote:
I'm experiencing some problems with ftp repositories: it seems, zypper can't get media information from yast2 and rpm-md repositories on my installation(s).
When I add a repository:
zypper ar -t rpm-md -n mpip ftp://10.20.70.16/repos/11.4/mpip mpip
it gets added 'successfully', but I can't use the repository:
zypper se xyzzy File '/content' not found on medium 'ftp://10.20.70.16/repos/11.4/oss'
so, can you dowload the file manually with curl or wget:
wget ftp://10.20.70.16/repos/11.4/oss/content
If that works, then check the zypper log files in /var/log to see what might fail.
Btw. I would not give "-t rpm-md", let zypper figure this out itself,
Hi Andreas, thank you very much for your suggestion. curl and wget are both working. It seems to be a problem with the proxy settings, though the same settings work under openSUSE 11.2. - Proxy settings on openSUSE 11.4 #+begin_example :node pckr93 :os "openSUSE 11.4 (x86_64)" NO_PROXY=localhost, 127.0.0.1, .mpip-mainz.mpg.de, 10.20.0.0-10.20.255.255 http_proxy=http://theproxy.mpip-mainz.mpg.de:8080 https_proxy=http://theproxy.mpip-mainz.mpg.de:8080 no_proxy=localhost, 127.0.0.1, .mpip-mainz.mpg.de, 10.20.0.0-10.20.255.255 #+end_example - Proxy settings on openSUSE 11.2 #+begin_example :node pckr122 :os "openSUSE 11.2 (x86_64)" http_proxy=http://theproxy.mpip-mainz.mpg.de:8080 https_proxy=http://theproxy.mpip-mainz.mpg.de:8080 no_proxy=localhost, 127.0.0.1, .mpip-mainz.mpg.de, 10.20.0.0-10.20.255.255 #+end_example Setting the upper case NO_PROXY on 11.2 doesn't make any difference: on 11.2 everything works Ok. When I set no_proxy='10.20.70.16' on openSUSE 11.4, I can work with my local repositories on ftp. (So, this is a working solution for me, as I do only use repositories local to our site.) However, outside repositories still don't work: I have to unset http_proxy from the original 11.4 settings above to be able to use e.g. the nvidia repository via ftp. I'll be not setting the proxies anymore on 11.4, for now, so I have a working setup. Anyone wants to dig into this, I'll be glad to do some testing and to provide additional information. Here are some log excerpts from 11.4 and 11.2: - excerpt from /var/log/zypper.log on openSUSE 11.4 #+begin_example :file /var/log/zypper.log :node pckr93 :os "openSUSE 11.4 (x86_64)" 2011-03-11 19:06:40 <1> pckr93(13204) [zypp++] MediaSetAccess.cc(rewriteUrl):392 Rewriting url ftp://10.20.70.16/repos/11.4/mpip 2011-03-11 19:06:40 <1> pckr93(13204) [zypp] MediaAccess.cc(open):118 Trying scheme 'ftp' 2011-03-11 19:06:40 <2> pckr93(13204) [zypp] MediaAccess.cc(open):161 unknown mediahandler set: 2011-03-11 19:06:40 <1> pckr93(13204) [zypp] MediaCurl.cc(MediaCurl):423 MediaCurl::MediaCurl(ftp://10.20.70.16/repos/11.4/mpip, ) 2011-03-11 19:06:40 <1> pckr93(13204) [zypp] MediaMultiCurl.cc(MediaMultiCurl):1150 MediaMultiCurl::MediaMultiCurl(ftp://10.20.70.16/repos/11.4/mpip, ) 2011-03-11 19:06:40 <1> pckr93(13204) [zypp] MediaAccess.cc(open):234 Opened: ftp(ftp://10.20.70.16/repos/11.4/mpip not attached; localRoot "") 2011-03-11 19:06:40 <1> pckr93(13204) [zypp++] MediaManager.cc(open):279 Opened new media access using id 9 to ftp://10.20.70.16/repos/11.4/mpip 2011-03-11 19:06:40 <1> pckr93(13204) [zypp++] MediaSetAccess.cc(provide):203 Going to try to provide optional file /repodata/repomd.xml.asc from media number 1 2011-03-11 19:06:40 <1> pckr93(13204) [zypp++] MediaManager.cc(attach):415 attach(id=9) 2011-03-11 19:06:40 <1> pckr93(13204) [zypp++] MediaHandler.cc(createAttachPoint):393 Trying to create attach point in /var/adm/mount 2011-03-11 19:06:40 <1> pckr93(13204) [zypp] PathInfo.cc(mkdir):315 mkdir /var/adm/mount/AP_0x00000001 00755 2011-03-11 19:06:40 <1> pckr93(13204) [zypp] MediaHandler.cc(createAttachPoint):370 Created default attach point /var/adm/mount/AP_0x00000001 2011-03-11 19:06:40 <1> pckr93(13204) [zypp++] MediaCurl.cc(setupEasy):562 Proxy: http://theproxy.mpip-mainz.mpg.de:8080 2011-03-11 19:06:40 <1> pckr93(13204) [zypp++] MediaCurl.cc(setupEasy):608 Enabling HTTP authentication methods: digest,basic (CURLOPT_HTTPAUTH=3) 2011-03-11 19:06:40 <1> pckr93(13204) [zypp] CurlConfig.cc(parseConfig):44 Going to parse /root/.curlrc 2011-03-11 19:06:40 <1> pckr93(13204) [zypp++] CurlConfig.cc(parseConfig):106 GOT: proxy 2011-03-11 19:06:40 <1> pckr93(13204) [zypp++] CurlConfig.cc(setParameter):178 Ignoring option proxy 2011-03-11 19:06:40 <1> pckr93(13204) [zypp++] MediaCurl.cc(setupEasy):633 ~/.curlrc does not contain the proxy-user option 2011-03-11 19:06:40 <1> pckr93(13204) [zypp] MediaCurl.cc(setupEasy):682 HEADER X-ZYpp-AnonymousId: 5b08d862-70ca-45f6-9056-0723041f5954 2011-03-11 19:06:40 <1> pckr93(13204) [zypp] MediaCurl.cc(setupEasy):682 HEADER X-ZYpp-DistributionFlavor: ftp 2011-03-11 19:06:40 <1> pckr93(13204) [zypp] MediaCurl.cc(setupEasy):682 HEADER Pragma: 2011-03-11 19:06:40 <1> pckr93(13204) [zypp] MediaHandler.cc(attach):647 Attached: ftp://10.20.70.16/repos/11.4/mpip attached; localRoot "/var/adm/mount/AP_0x00000001" 2011-03-11 19:06:40 <1> pckr93(13204) [zypp++] MediaManager.cc(checkDesired):109 checkDesired(9): desired (report by zypp::media::NoVerifier) 2011-03-11 19:06:40 <1> pckr93(13204) [zypp++] MediaManager.cc(checkDesired):112 checkDesired(9): desired (cached) 2011-03-11 19:06:40 <1> pckr93(13204) [zypp++] MediaManager.cc(checkDesired):112 checkDesired(9): desired (cached) 2011-03-11 19:06:40 <1> pckr93(13204) [zypp] PathInfo.cc(assert_dir):357 mkdir /var/adm/mount/AP_0x00000001/repodata 00755 2011-03-11 19:06:40 <1> pckr93(13204) [zypp++] MediaMultiCurl.cc(doGetFileCopy):1230 dest: /var/adm/mount/AP_0x00000001/repodata/repomd.xml.asc 2011-03-11 19:06:40 <1> pckr93(13204) [zypp++] MediaMultiCurl.cc(doGetFileCopy):1231 temp: /var/adm/mount/AP_0x00000001/repodata/repomd.xml.asc.new.zypp.Ov8lLg 2011-03-11 19:06:40 <1> pckr93(13204) [zypp++] MediaCurl.cc(doGetFileCopyFile):1309 /repodata/repomd.xml.asc 2011-03-11 19:06:40 <1> pckr93(13204) [zypp++] MediaCurl.cc(doGetFileCopyFile):1319 URL: ftp://10.20.70.16/repos/11.4/mpip/repodata/repomd.xml.asc 2011-03-11 19:06:40 <3> pckr93(13204) [zypp] MediaCurl.cc(doGetFileCopyFile):1362 curl error: 22: The requested URL returned error: 404, temp file size 0 bytes. 2011-03-11 19:06:40 <5> pckr93(13204) [zypp] Exception.cc(log):137 MediaCurl.cc(evaluateCurlCode):934 THROW: File '/repodata/repomd.xml.asc' not found on medium 'ftp://10.20.70.16/repos/11.4/mpip' 2011-03-11 19:06:40 <5> pckr93(13204) [zypp] Exception.cc(log):137 2011-03-11 19:06:40 <5> pckr93(13204) [zypp] Exception.cc(log):137 MediaCurl.cc(evaluateCurlCode):991 RETHROW: File '/repodata/repomd.xml.asc' not found on medium 'ftp://10.20.70.16/repos/11.4/mpip' 2011-03-11 19:06:40 <5> pckr93(13204) [zypp] Exception.cc(log):137 2011-03-11 19:06:40 <5> pckr93(13204) [zypp] Exception.cc(log):137 MediaCurl.cc(doGetFileCopyFile):1374 RETHROW: File '/repodata/repomd.xml.asc' not found on medium 'ftp://10.20.70.16/repos/11.4/mpip' 2011-03-11 19:06:40 <5> pckr93(13204) [zypp] Exception.cc(log):137 2011-03-11 19:06:40 <1> pckr93(13204) [zypp] PathInfo.cc(unlink):670 unlink /var/adm/mount/AP_0x00000001/repodata/repomd.xml.asc.new.zypp.Ov8lLg 2011-03-11 19:06:40 <5> pckr93(13204) [zypp] Exception.cc(log):137 MediaMultiCurl.cc(doGetFileCopy):1257 RETHROW: File '/repodata/repomd.xml.asc' not found on medium 'ftp://10.20.70.16/repos/11.4/mpip' #+end_example - excerpt from /var/log/zypper.log on openSUSE 11.2 #+begin_example :file /var/log/zypper.log :node pckr122 :os "openSUSE 11.2 (x86_64)" 2011-03-11 19:01:53 <1> pckr122(25770) [zypp] CurlConfig.cc(parseConfig):44 Going to parse /root/.curlrc 2011-03-11 19:01:53 <1> pckr122(25770) [zypp++] CurlConfig.cc(parseConfig):106 GOT: proxy 2011-03-11 19:01:53 <1> pckr122(25770) [zypp++] CurlConfig.cc(setParameter):178 Ignoring option proxy 2011-03-11 19:01:53 <1> pckr122(25770) [zypp++] MediaHandler.cc(createAttachPoint):393 Trying to create attach point in /var/adm/mount 2011-03-11 19:01:53 <1> pckr122(25770) [zypp] PathInfo.cc(mkdir):315 mkdir /var/adm/mount/AP_0x00000001 00755 2011-03-11 19:01:53 <1> pckr122(25770) [zypp] MediaHandler.cc(createAttachPoint):370 Created default attach point /var/adm/mount/AP_0x00000001 2011-03-11 19:01:53 <1> pckr122(25770) [zypp++] Sysconfig.cc(read):31 Load '/etc/sysconfig/proxy' 2011-03-11 19:01:53 <1> pckr122(25770) [zypp] Sysconfig.cc(read):71 done reading '/etc/sysconfig/proxy' 2011-03-11 19:01:53 <1> pckr122(25770) [zypp++] MediaCurl.cc(attachTo):523 Proxy: -none- 2011-03-11 19:01:53 <1> pckr122(25770) [zypp] MediaHandler.cc(attach):647 Attached: ftp://10.20.70.16/repos/11.2/update-20100610 attached; localRoot "/var/adm/mount/AP_0x00000001" #+end_example Best regards Robert ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (3)
-
Andreas Jaeger
-
Robert Klein
-
Robert Klein