[Bug 227136] New: Failure by adding update repo in yast
https://bugzilla.novell.com/show_bug.cgi?id=227136 Summary: Failure by adding update repo in yast Product: openSUSE 10.2 Version: Final Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: YaST2 AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: dominique.leuenberger@tmf-group.com QAContact: jsrain@novell.com I try to explain, how I got to this error (did not try to recreate it yet, but I might do so.. it's a VM installation): ### Explanation ### While installing 10.2 (behind a firewall restricting FTP), the installer failed to add an update repository (as far as I can see from the log, only ftp.suse.com was tried)(that is reported in bug #227059) So I decided to add one by myself later (using HTTP, as FTP is not working). The proxy is set in Yast. When adding the update repo, it takes a while (it is downloading some files) and at once I get a message: "Curl error for: http://ftp4.gwdg.de/pub/suse/update/10.2/media.1/license.zip: Error code: HTTP resonse: 403 Error message: The requested URL returned error: 403" -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=227136 ------- Comment #1 from dominique.leuenberger@tmf-group.com 2006-12-08 07:25 MST ------- Created an attachment (id=108877) --> (https://bugzilla.novell.com/attachment.cgi?id=108877&action=view) Yast logfiles -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=227136 mhorvath@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO Info Provider| |dominique.leuenberger@tmf-group.com ------- Comment #2 from mhorvath@novell.com 2006-12-08 08:47 MST ------- Well, I'm getting 404 while trying to download that file. In your logs there is also several times the 404, as well as the 403. Most probably you have a bad URL, or the server was encountering problems. However this message is also interesting: martyr(6415) [media] MediaCurl.cc(attachTo):614 Not allowed to parse '/root/.curlrc': bad file owner So, please check the file owner and permissions. Also please try to find a valid address for that file and try to reproduce it. Thank you. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=227136 dominique.leuenberger@tmf-group.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |ASSIGNED Info Provider|dominique.leuenberger@tmf- | |group.com | ------- Comment #3 from dominique.leuenberger@tmf-group.com 2006-12-08 09:01 MST ------- Why should I try to find that license.zip? Why should yast even try to download that file when I add a repository? I don't think this file exists anywhere... I was trying to add an update repo (http://ftp-1.gwdg.de/pub/suse/update/10.2) The file /root/.curlrc does not exist on my installation. so the error message is wrong: It should not be not allowed, but file not found. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=227136 ------- Comment #4 from dominique.leuenberger@tmf-group.com 2006-12-08 13:38 MST ------- Just remember: the 403 can be ignored, as it was a reply by the corp Proxy: ZIP files are blocked in general. But as this file is not even needed, nor existing, this should not avoid me from adding a repo using Yast. Adding it with rug worked. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=227136 mhorvath@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|bnc-team- |lslezak@novell.com |screening@forge.provo.novell| |.com | Status|ASSIGNED |NEW -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=227136 lslezak@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|lslezak@novell.com |dmacvicar@novell.com ------- Comment #5 from lslezak@novell.com 2006-12-14 07:20 MST ------- It seems that zypp is trying to download a non-existing file, probably during source probing. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=227136 dmacvicar@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|dmacvicar@novell.com |yast2-maintainers@suse.de ------- Comment #6 from dmacvicar@novell.com 2006-12-18 08:11 MST ------- zypp only download files either listed in content file or directory.yast files. The problem is YaST once more skipping layers and doing work that should be done in zypp, in ProductLicense.ycp: string license_file = Pkg::SourceProvideOptionalFile (src_id, 1, "/media.1/license.zip"); Without checking if it is a YUM source. That is why YaST should not even know about source types, that is the reason of zypp. If a license is needed, then lets add license to the API, and we can provide different implementations for YUM and YaST sources. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=227136 jsrain@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |lslezak@novell.com, dmacvicar@novell.com ------- Comment #7 from jsrain@novell.com 2006-12-21 00:39 MST ------- The problem is a bit deeper 1. Even if ZYPP profided its own function to provide license data, the media backend doesn't check directory.yast if it is asked for a specific file. Therefore this error would occurre anyway 2. Directory.yast doesn't exist at all paths, only where getting whole directory is expected 3. When adding any repository (which may be 3rd party), we must check whether a license exists, and show it to user 4. If there was not proxy, user would have got 404 and error would be ignored (no license required). However, in this case there was another error, and we don't know whether the license exists, and therefore it is OK to give user an error. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=227136 mvidner@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |ASSIGNED Info Provider|aj@novell.com | Summary|Failure by adding update |Failure on adding update repo in yast (license) |repo in yast | -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=227136 ------- Comment #14 from sh@novell.com 2007-02-07 06:13 MST ------- Somebody please assume ownership of this bug. yast2-maintainers@suse.de is only an inbox for reassigning bugs. It is not a permanent place for bugs. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=227136 sh@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|yast2-maintainers@suse.de |lslezak@novell.com Status|ASSIGNED |NEW ------- Comment #15 from sh@novell.com 2007-02-07 06:18 MST ------- pkg-bindings or pkg source management - one way or the other -> lszezak -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=227136 lslezak@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=227136 ------- Comment #16 from jw@novell.com 2007-02-07 07:45 MST ------- I cannot find any URL containing /media.1/license.zip -- Do we actually have one? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=227136 ------- Comment #17 from lslezak@novell.com 2007-02-07 08:09 MST ------- AFAIK the license file is only on shipped media, update sources are YUM which don't have any license file. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=227136 lslezak@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|lslezak@novell.com |dmacvicar@novell.com Status|ASSIGNED |NEW Component|YaST2 |libzypp ------- Comment #21 from lslezak@novell.com 2007-02-23 01:45 MST ------- According to comment #6 and #7 this should be solved in libzypp (new license API). -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=227136#c26
Duncan Mac-Vicar
participants (1)
-
bugzilla_noreply@novell.com