| Summary: | show error on invalid media.cfg | ||
|---|---|---|---|
| Product: | Mageia | Reporter: | AL13N <alien> |
| Component: | RPM Packages | Assignee: | Mageia tools maintainers <mageiatools> |
| Status: | NEW --- | QA Contact: | |
| Severity: | enhancement | ||
| Priority: | Low | CC: | alien, anssi.hannula, fri, mageia, marja11, misc, shikamaru, thierry.vignaud |
| Version: | Cauldron | ||
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Source RPM: | urpmi-proxy | CVE: | |
| Status comment: | |||
| Attachments: |
the exact perl error
urpmi --debug ssh 2> urpmi_output.log duplicated media.cfg patch for MDV::Distribconf new patch for MDV::Distribconf /etc/urpmi/mediacfg.d/Official-1-x86_64/media.cfg |
||
|
Description
AL13N
2011-02-26 18:22:31 CET
it was "2\n2" could you paste the complete error message please ? also, running urpmi with the --debug switch would probably help urpmi maintainers to understand whatâs going on Keywords:
(none) =>
NEEDINFO Created attachment 62 [details]
the exact perl error
Created attachment 63 [details]
urpmi --debug ssh 2> urpmi_output.log
Thierry Vignaud
2011-03-03 16:44:35 CET
CC:
(none) =>
thierry.vignaud The log in comment#4 says: Argument "2\n2" isn't numeric in numeric ge (>=) at /usr/lib/perl5/vendor_perl/5.12.2/MDV/Distribconf.pm line 532, <$URLS> line 1. Cauldron is on perl-5.12.3 now; does this issue still happen with latest cauldron? Component:
RPM Packages =>
Installation perl version is irrelevant: $ rpm -qpl /mageia/media/core/release/perl-MDV-Distribconf-4.02-5.mga1.noarch.rpm | head -2 /usr/lib/perl5/vendor_perl/5.12.2/MDV/Distribconf /usr/lib/perl5/vendor_perl/5.12.2/MDV/Distribconf.pm Right. However -6.mga1 is available in the repos since today. which doesn't solve the problem i traced the problem to 2 things: 1. the media.cfg file i have seems to be doubled for some reason? how did this happen? 2. the default mediacfg version should be '4.02', but somehow media.cfg files are shipped with version 2 ? is that correct? possibly 3 fixes: - find out why media.cfg is doubled and fix - check if version=2 is correct? shouldn't it be 4? - if it _IS_ duplicated, get only the first or last one. attached duplicated media.cfg and patch for fix 3 Created attachment 92 [details]
duplicated media.cfg
Created attachment 93 [details]
patch for MDV::Distribconf
i took the first value, but maybe it should be the last, i don't know.
Thierry Vignaud
2011-03-09 09:07:36 CET
Component:
Installation =>
RPM Packages still present on mageia 1 alpha 2 during upgrade, so i'm blocking the upgrade tracker Blocks:
(none) =>
56
Thierry Vignaud
2011-03-18 01:18:51 CET
Assignee:
bugsquad =>
dmorganec can someone apply patch on /soft ?
Ahmad Samir
2011-03-29 23:47:44 CEST
CC:
(none) =>
mageia we need to import MDV-DistribConf in soft before :). well, then i'll just patch it in the package is it a blocker bug ? does it break features ? is it a blocker bug ? does it break features ? it gives ugly messages with urpmi (but you don't have to ask twice :-) ) why do you ask? it's a small patch that doens't do anything major at all. I guess it is better to give errors, since duplicated media.cfg is certainly not valid ? CC:
(none) =>
anssi.hannula Created attachment 177 [details]
new patch for MDV::Distribconf
Ok, after some more investigations it looks like /etc/urpmi/mediacfg.d/Cauldron-1-x86_64/media.cfg (for a reason which is likely my own fault) has duplicated content, or in particular dual [media_info] sections with each a mediacfg_version=2 section.
This new patch disables the perl warnings in such a case and displays a warning message instead, but only 1 time, so at least urpmq is functional.
Michael Scherer
2011-04-28 11:12:07 CEST
Priority:
Normal =>
Low @ AL13N Is this solved in current cauldron? CC:
(none) =>
m.van.waes afaik, it isn't. no response from maintainers about this patch, if it's wanted or not.
Thierry Vignaud
2011-09-26 09:49:07 CEST
Keywords:
(none) =>
PATCH Jérôme, something for you ? CC:
(none) =>
jquelin no, this is about urpmi internals - so it's more for thierry. that would be me if there was a packaging problem. Ah ok sorry. Keywords:
NEEDINFO =>
(none) Created attachment 1446 [details]
/etc/urpmi/mediacfg.d/Official-1-x86_64/media.cfg
I have the same problem, i.e: # urpmi --auto-update Argument "2\n2" isn't numeric in numeric lt (<) at /usr/lib/perl5/vendor_perl/5.12.3/MDV/Distribconf.pm line 265. Argument "2\n2" isn't numeric in numeric ge (>=) at /usr/lib/perl5/vendor_perl/5.12.3/MDV/Distribconf.pm line 532, <$URLS> line 1. Argument "2\n2" isn't numeric in numeric ge (>=) at /usr/lib/perl5/vendor_perl/5.12.3/MDV/Distribconf.pm line 532, <$URLS> line 1. Argument "2\n2" isn't numeric in numeric ge (>=) at /usr/lib/perl5/vendor_perl/5.12.3/MDV/Distribconf.pm line 532, <$URLS> line 1. etc, etc same if i call drakrpm The only unusual thing i remember i have done is i once remove all media and then added them again (this time pointing to my urpmi-proxy machine) This is on mga1, so it is probably on both mga1 and cauldron according to above, but i refrain from adding a separate bug for now. I attached my /etc/urpmi/mediacfg.d/Official-1-x86_64/media.cfg CC:
(none) =>
fri As you can see in the attachment. there are 2 [media_info] sections. This is due to having 2 sources listed in urpmi-proxy. atm this is still unsupported. The fallback mechanism isn't good yet. So people using urpmi-proxy, please read https://wiki.mageia.org/en/Urpmi-proxy and not configure 2 sources atm. The patch I made in comment 20 would show a better warning, but it's still not applied... So Morgan, for now you'll have to just use only 1 source, until i find some time to implement dual source fallback. in the mean time, i'd like it if this patch would be applied... Thanks AL13N I apparently forgot to change sources on this client while i removed them from urpmi-proxy config. Removed all, added all i wanted made it OK :) Yes better warning will be nice. Bump. Would be nice to get the existing patch in before next beta. Hi, This bug was filed against cauldron, but we do not have cauldron at the moment. Please report whether this bug is still valid for Mageia 2. Thanks :) Cheers, marja Keywords:
(none) =>
NEEDINFO
Manuel Hiebel
2012-06-12 21:44:38 CEST
Keywords:
NEEDINFO =>
(none) @thierry @dmorgan can this patch be applied?
D Morgan
2013-09-17 23:56:04 CEST
Assignee:
dmorganec =>
thierry.vignaud No. urpmi-proxy should be fixed instead. CC:
(none) =>
alien
Thierry Vignaud
2015-02-11 09:04:13 CET
Attachment 93 is obsolete:
0 =>
1 This is not a perl-MDV-Distribconf issue Source RPM:
perl-MDV-Distribconf, urpmi-proxy =>
urpmi-proxy
Thierry Vignaud
2015-02-11 09:07:01 CET
Attachment 177 is obsolete:
0 =>
1
Thierry Vignaud
2015-02-11 09:07:11 CET
Keywords:
PATCH =>
(none) (In reply to Thierry Vignaud from comment #34) > This is not a perl-MDV-Distribconf issue And you're not the urpmi-proxy maintainer, so reassigning ;-) Assignee:
thierry.vignaud =>
mageiatools |