Bug 17836 - drakrpm-update crashed / drakrpm crashed (undefined value for mandatory argument 'uri')
Summary: drakrpm-update crashed / drakrpm crashed (undefined value for mandatory argum...
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 5
Hardware: x86_64 Linux
Priority: Normal major
Target Milestone: ---
Assignee: Thierry Vignaud
QA Contact:
URL:
Whiteboard:
Keywords:
: 17833 17835 17840 17841 17946 17977 18052 18073 18078 18152 18166 18170 18179 18180 18200 18212 18213 18313 18586 18846 18967 19071 19081 19142 (view as bug list)
Depends on:
Blocks:
 
Reported: 2016-02-28 16:57 CET by Claire Revillet
Modified: 2017-03-13 18:28 CET (History)
25 users (show)

See Also:
Source RPM: rpmdrake-6.20-1.mga5
CVE:
Status comment:


Attachments

Description Claire Revillet 2016-02-28 16:57:57 CET
The "drakrpm-update" program crashed. Drakbug-16.103 caught it.

Hi!

I saw in the very first column of drakrpm-update some icon I did not recognise
(was there an icon already or did the icon change?)
As no help popup appeared when I put my cursor on it, I tried right-click... seems like it was a bad idea: it crashed

I hope my report will help some way

undefined value for mandatory argument 'uri' encountered at /usr/lib/perl5/vendor_perl/5.20.1/Gtk3.pm line 901.
Perl's trace:
drakbug::bug_handler() called from /usr/lib/perl5/vendor_perl/5.20.1/Gtk3.pm:295
Gtk3::__ANON__() called from /usr/lib/libDrakX/mygtk3.pm:1521
mygtk3::main() called from /usr/lib/libDrakX/ugtk3.pm:859
ugtk3::main() called from /usr/libexec/drakrpm-update:282
main::run_treeview_dialog() called from /usr/libexec/drakrpm-update:293

Theme name: Adwaita
Kernel version = 4.1.15-desktop-2.mga5
Distribution=Mageia release 5 (Official) for x86_64
CPU=Intel(R) Core(TM) i5-2410M CPU @ 2.30GHz
Comment 1 Claire Revillet 2016-02-28 17:00:28 CET
It has in fact nothing to do with my right-click: left click on a package to look at the description gives the same behaviour.

Severity: normal => major

Comment 2 Pascal Terjan 2016-02-28 17:16:20 CET
This is likely due to the descriptions files. I removed them from the mirrors for now.

CC: (none) => pterjan

Manuel Hiebel 2016-02-28 18:42:46 CET

CC: (none) => thierry.vignaud

Comment 3 Manuel Hiebel 2016-02-28 18:43:48 CET
*** Bug 17833 has been marked as a duplicate of this bug. ***

CC: (none) => jm.sarat

Marja Van Waes 2016-02-28 23:22:41 CET

CC: (none) => marja11
Summary: drakrpm-update crashed => drakrpm-update crashed (undefined value for mandatory argument 'uri')

Comment 4 Marja Van Waes 2016-02-28 23:24:19 CET
*** Bug 17835 has been marked as a duplicate of this bug. ***

CC: (none) => laidlaws

Comment 5 Marja Van Waes 2016-02-28 23:25:27 CET
*** Bug 17840 has been marked as a duplicate of this bug. ***

CC: (none) => repacjp-magg

Marja Van Waes 2016-02-28 23:27:34 CET

Summary: drakrpm-update crashed (undefined value for mandatory argument 'uri') => drakrpm-update crashed / drakrpm crashed (undefined value for mandatory argument 'uri')

Comment 6 Marja Van Waes 2016-02-29 08:42:16 CET
*** Bug 17841 has been marked as a duplicate of this bug. ***

CC: (none) => bill

Comment 7 Marja Van Waes 2016-02-29 08:52:34 CET
(In reply to Pascal Terjan from comment #2)
> This is likely due to the descriptions files. I removed them from the
> mirrors for now.

So is the bug in those files, or should rpmdrake be able to handle them without crashing?
Angelo Naselli 2016-02-29 09:44:08 CET

CC: (none) => anaselli

Comment 8 Pascal Terjan 2016-02-29 10:50:00 CET
I unfortunately failed to debug this more as I couldn't find a way to start rpmdrake over ssh.
I will probably upload a package like null to updates_testing and generate a fake advisory for it so that it does not impact users.
Comment 9 Marja Van Waes 2016-03-01 22:22:34 CET
(In reply to Pascal Terjan from comment #8)
> I unfortunately failed to debug this more as I couldn't find a way to start
> rpmdrake over ssh.
> I will probably upload a package like null to updates_testing and generate a
> fake advisory for it so that it does not impact users.

Thanks :-)

I saw:

  commit 69d785fc6d7147c29ff261b7674d70b62fe9fd55
  Author: Pascal Terjan <pterjan@gmail.com>
  Date:   Mon Feb 29 17:01:04 2016 +0000

      Add URL to descriptions

But didn't see null land in updates_testing... is it too early for tests, or too late? ;-)
Comment 10 Pascal Terjan 2016-03-01 23:10:01 CET
Too early :)
I have a few other local changes I haven't pushed yet
Comment 11 Marja Van Waes 2016-03-12 20:00:21 CET
*** Bug 17946 has been marked as a duplicate of this bug. ***

CC: (none) => monsteriname

Comment 12 Marja Van Waes 2016-03-14 10:01:01 CET
*** Bug 17977 has been marked as a duplicate of this bug. ***

CC: (none) => khangyi

Comment 13 Marja Van Waes 2016-03-22 07:40:01 CET
*** Bug 18052 has been marked as a duplicate of this bug. ***

CC: (none) => oboschini

Comment 14 Pierre Fortin 2016-03-23 12:46:30 CET
I've been seeing this bug also.  Based on a sample of one, disabling local (HD) repo, install of virtualbox now works.  It was crashing by simply selecting virtualbox.  HTH

CC: (none) => pf

Comment 15 Pascal Terjan 2016-03-23 13:13:41 CET
The file has been removed from the mirrors a month ago, I don't know why this is still happening :(
It may remain in the local cache...
Comment 16 Pierre Fortin 2016-03-23 13:25:18 CET
I don't see what file you're referring to...  can i get a clue? If said file is still in my local repo, I can remove it and retest...
Comment 17 Pascal Terjan 2016-03-23 13:57:55 CET
The file is called "descriptions"
Comment 18 Pierre Fortin 2016-03-23 14:29:28 CET
Hmmm....   turns out my local repo was not mounted (external drive)...  Gotta go to work -- will dig into this more this evening...  Could this file be cached?
Comment 19 Manuel Hiebel 2016-03-27 15:18:06 CEST
*** Bug 18073 has been marked as a duplicate of this bug. ***

CC: (none) => lloyd.osten

Comment 20 Marja Van Waes 2016-03-28 12:30:25 CEST
*** Bug 18078 has been marked as a duplicate of this bug. ***
Comment 21 Marja Van Waes 2016-03-28 12:31:59 CEST
(In reply to Marja van Waes from comment #20)
> *** Bug 18078 has been marked as a duplicate of this bug. ***


From that report:
(from Sam Khangyi's description):

> 
> I do think this is package related, it crashes with some packages and it
> doesn't with others consistently. 
> 
> Installed kdevelop4-php the older version, crashes with kdevelop4-php 1.7.3
> 1.mga5 x86_64 to pinpoint a crashing package for testing
>
Comment 22 Marja Van Waes 2016-04-09 10:53:53 CEST
*** Bug 18152 has been marked as a duplicate of this bug. ***

CC: (none) => rolfpedersen

Comment 23 Rolf Pedersen 2016-04-09 15:21:41 CEST
I experienced this bug on one machine but not on another, at the same time, both running Mageia release 5 (Official) for x86_64, while clicking on the same rpm in the list of updates, sourced from, afaict, the same mirror.  So, I'm not seeing how the DESCRIPTIONS file would be the trigger, unless there is an intermittent condition or some other factor.

On one machine, drakrpm-update crashed when I clicked on java-1.8.0-openjdk-1.8.0.77-1.b03.1.mga5.x86_64 in the list.  Update succeeded when I didn't click on a package:

[rolf@localhost ~]$ rpm -qa --last | grep java-1.8.0-openjdk-1.8.0.77-1.b03.1.mga5.x86_64
java-1.8.0-openjdk-1.8.0.77-1.b03.1.mga5.x86_64 Wed 06 Apr 2016 05:33:28 PM PDT

[rolf@localhost ~]$ urpmq --sources java-1.8.0-openjdk-1.8.0.77-1.b03.1.mga5.x86_64

http://mirror.easthsia.com/mageia/distrib/5/x86_64/media/core/updates/java-1.8.0-openjdk-1.8.0.77-1.b03.1.mga5.x86_64.rpm

[rolf@localhost ~]$ cat /etc/release
Mageia release 5 (Official) for x86_64


On the machine where clicking on java-1.8.0-openjdk-1.8.0.77-1.b03.1.mga5.x86_64 and viewing the Changelog did not cause a crash, the rsync protocol is being used at mirror.easthsia.com but would that make a difference?

[rolf@p8z68 ~]$ rpm -qa --last | grep java-1.8.0-openjdk-1.8.0.77-1.b03.1.mga5.x86_64
java-1.8.0-openjdk-1.8.0.77-1.b03.1.mga5.x86_64 Wed 06 Apr 2016 05:14:50 PM PDT

[rolf@p8z68 ~]$ urpmq --sources java-1.8.0-openjdk-1.8.0.77-1.b03.1.mga5.x86_64
rsync://mirror.easthsia.com/mageia/distrib/5/x86_64/media/core/updates/java-1.8.0-openjdk-1.8.0.77-1.b03.1.mga5.x86_64.rpm

[rolf@p8z68 ~]$ cat /etc/release
Mageia release 5 (Official) for x86_64



If this seems relevant, I've written more information in my now-discredited https://bugs.mageia.org/show_bug.cgi?id=18152 ;p
Comment 24 Marja Van Waes 2016-04-11 16:25:33 CEST
*** Bug 18166 has been marked as a duplicate of this bug. ***

CC: (none) => bliss-SF4ever

Comment 25 Marja Van Waes 2016-04-11 16:25:51 CEST
*** Bug 18170 has been marked as a duplicate of this bug. ***

CC: (none) => Gchoyman

Comment 26 Marja Van Waes 2016-04-11 16:26:25 CEST
*** Bug 18179 has been marked as a duplicate of this bug. ***
Comment 27 Marja Van Waes 2016-04-11 16:28:47 CEST
*** Bug 18180 has been marked as a duplicate of this bug. ***
Comment 28 Marja Van Waes 2016-04-11 16:33:30 CEST
(In reply to Pascal Terjan from comment #15)
> The file has been removed from the mirrors a month ago, I don't know why
> this is still happening :(
> It may remain in the local cache...

Is there a way to remove it with a rpmdrake update?

Assigning to rpmdrake maintainer, even if he didn't cause this.

Assignee: bugsquad => thierry.vignaud

Comment 29 Doug Laidlaw 2016-04-11 17:18:38 CEST
I can't test it right now, because there are no updates.  I rarely look at descriptions for updates.
Comment 30 Marja Van Waes 2016-04-15 12:19:31 CEST
*** Bug 18200 has been marked as a duplicate of this bug. ***

CC: (none) => paul

Christian Prior 2016-04-15 23:41:11 CEST

CC: repacjp-magg => (none)

Comment 31 Marja Van Waes 2016-04-17 11:09:54 CEST
(In reply to Pascal Terjan from comment #17)
> The file is called "descriptions"

Where should that file be, in /var/lib/rpm/ or somewhere else?

Can anyone still affected by this bug now, please give the output of (as root):

   find / | grep -i descriptions
Comment 32 Rolf Pedersen 2016-04-17 11:44:08 CEST
I encountered the bug once.  Subsequently, I have clicked on packages in the updater and viewed the Changelog without triggering the crash, again.  FWIW:

[root@HP-Kodi rolf]# find / | grep -i descriptions
/var/lib/urpmi/Core 32bit Updates/descriptions
/var/lib/urpmi/Core Updates/descriptions
/usr/share/doc/HTML/en/digikam/menu-descriptions.docbook
Comment 33 Marja Van Waes 2016-04-17 11:57:48 CEST
(In reply to Rolf Pedersen from comment #32)


> /var/lib/urpmi/Core 32bit Updates/descriptions
> /var/lib/urpmi/Core Updates/descriptions

@ pterjan

IIUC, he should not have those two files, correct?
Comment 34 Garth Hoyman 2016-04-18 18:33:29 CEST
as requested
[root@localhost dash]# find / | grep -i descriptions
/home/dash/Calibre Library/Fearing Burr/The Field and Garden Vegetables of America Containing Full Descriptions of Nearly Eleven Hundre (130)
/home/dash/Calibre Library/Fearing Burr/The Field and Garden Vegetables of America Containing Full Descriptions of Nearly Eleven Hundre (130)/metadata.opf
/home/dash/Calibre Library/Fearing Burr/The Field and Garden Vegetables of America Containing Full Descriptions of Nearly Eleven Hundre (130)/cover.jpg
/home/dash/Calibre Library/Fearing Burr/The Field and Garden Vegetables of America Containing Full Descriptions of Nearly Eleven Hundre (130)/The Field and Garden Vegetables of America - Fearing Burr.azw
find: â/run/user/1000/gvfsâ: Permission denied
/usr/share/doc/HTML/en/digikam/menu-descriptions.docbook
[root@localhost dash]# $ cd LibreOffice_*_Linux_x86-64_rpm/RPMS
bash: $: command not found
[root@localhost dash]# $ wget http://download.documentfoundation.org/libreoffice/stable/5.0.4/rpm/x86/LibreOffice_5.0.4_Linux_x86_rpm.tar.gz
bash: $: command not found
[root@localhost dash]# googleearth
bash: googleearth: command not found
[root@localhost dash]#
Comment 35 Doug Laidlaw 2016-04-18 20:42:22 CEST
I am no longer seeing this bug.  It must have moved to the vegetables!
In reply to Comment 31, I can find no relevant files containing "descriptions."  But I have reinstalled at least once, and I format /var each time.  That may be what is different.
Comment 36 Marja Van Waes 2016-04-19 08:56:18 CEST
*** Bug 18213 has been marked as a duplicate of this bug. ***

CC: (none) => herakles

Comment 37 Marja Van Waes 2016-04-19 09:00:19 CEST
@ William Moses

Please run (as root)

  find /var/lib/urpmi/ | grep descriptions

and give us the output.

Thanks :-)
Comment 38 William Moses 2016-04-20 15:58:14 CEST
(In reply to Marja van Waes from comment #37)
> @ William Moses
> 
> Please run (as root)
> 
>   find /var/lib/urpmi/ | grep descriptions
> 
> and give us the output.
> 
> Thanks :-)

Here is what showed up:

"[root@localhost bill948]# find  /var/lib/urpmi/ | grep description
/var/lib/urpmi/Core Updates (distrib3)/descriptions
/var/lib/urpmi/Core 32bit Updates (distrib32)/descriptions"

I worked around this issue with Thunderbird by installing the previous version then a day later running an update which updated my Thunderbird to the version, I had originally was trying to get.
Comment 39 Marja Van Waes 2016-04-20 20:04:09 CEST
(In reply to William Moses from comment #38)

> 
> Here is what showed up:
> 
> "[root@localhost bill948]# find  /var/lib/urpmi/ | grep description
> /var/lib/urpmi/Core Updates (distrib3)/descriptions
> /var/lib/urpmi/Core 32bit Updates (distrib32)/descriptions"

Those files should no longer be there. You can remove both with, as root:

  rm -v /var/lib/urpmi/Core*/descriptions 


> 
> I worked around this issue with Thunderbird by installing the previous
> version then a day later running an update which updated my Thunderbird to
> the version, I had originally was trying to get.

I'm glad you managed :-)
Comment 40 Pascal Terjan 2016-04-20 20:06:59 CEST
We can probably put some empty ones to get those replaced but that needs to be tested
Comment 41 Marja Van Waes 2016-04-20 20:31:25 CEST
(In reply to Pascal Terjan from comment #40)
> We can probably put some empty ones to get those replaced but that needs to
> be tested

I just added some empty description files in my cauldron:

[root@cldrn_64 urpmi]# find | grep descriptions
./Nonfree 32bit Release (RedHD236)/descriptions
./Nonfree Release (RedHD211)/descriptions
./Core Release (RedHD21)/descriptions
./Core 32bit Release (RedHD231)/descriptions
[root@cldrn_64 urpmi]#

And then installed pidgin from Core Release.  It installed (+dependencies/recommends) without problems
Comment 42 Pascal Terjan 2016-04-20 20:36:30 CEST
Thanks. 
I hope they don't get ignored on non update media, I think I'll first add them to updates_testing to be safe
Comment 43 Marja Van Waes 2016-04-20 20:50:35 CEST
(In reply to Pascal Terjan from comment #42)
> Thanks. 
> I hope they don't get ignored on non update media, 

Thanks for thinking of that!

> I think I'll first add
> them to updates_testing to be safe

Good :-)
Comment 44 Marja Van Waes 2016-04-21 22:18:23 CEST
*** Bug 18212 has been marked as a duplicate of this bug. ***
Comment 45 Marja Van Waes 2016-04-30 15:22:33 CEST
*** Bug 18313 has been marked as a duplicate of this bug. ***

CC: (none) => contact

Marja Van Waes 2016-04-30 15:25:47 CEST

Depends on: (none) => 18306

Marja Van Waes 2016-04-30 15:27:58 CEST

Depends on: 18306 => (none)

Comment 46 Pascal Terjan 2016-04-30 15:29:09 CEST
This file has been in updates_testing for a week, I guess we would have heard if people testing updates could no longer use rpmdrake, so I'll create it in updates too now
Florian Hubold 2016-05-01 17:51:54 CEST

CC: (none) => doktor5000

Comment 47 Marja Van Waes 2016-05-23 23:26:54 CEST
(In reply to Pascal Terjan from comment #46)
> This file has been in updates_testing for a week, I guess we would have
> heard if people testing updates could no longer use rpmdrake, so I'll create
> it in updates too now

Thanks, Pascal :-)

It's weeks later, now, and there were no more reports of users hitting this bug, closing.

Resolution: (none) => FIXED
Status: NEW => RESOLVED

Comment 48 Thierry Vignaud 2016-07-03 15:52:28 CEST
*** Bug 18846 has been marked as a duplicate of this bug. ***

CC: (none) => vibranium12

Comment 49 Thierry Vignaud 2016-07-17 15:11:05 CEST
*** Bug 18967 has been marked as a duplicate of this bug. ***

CC: (none) => kmmos1

Comment 50 Marja Van Waes 2016-07-28 08:20:44 CEST
*** Bug 19071 has been marked as a duplicate of this bug. ***

CC: (none) => ktech_wa

Comment 51 Marja Van Waes 2016-07-28 08:23:05 CEST
Reopening, because there were 3 duplicates since this bug was closed.

@ anyone still hitting this:

Please run, as root, the following command in a konsole/terminal, and tell us what the output is:

    find /var/lib/urpmi/ | grep descriptions

Status: RESOLVED => REOPENED
Resolution: FIXED => (none)

Comment 52 Doug Laidlaw 2016-07-28 16:04:44 CEST
I had an early duplicate of this from the bug catcher.  Haven't had any problem for a while, but I usually install updates from mgaapplet.

# find /var/lib/urpmi/ | grep descriptions
/var/lib/urpmi/Core Updates/descriptions
/var/lib/urpmi/Core Updates (distrib3)/descriptions
/var/lib/urpmi/Core 32bit Updates/descriptions
/var/lib/urpmi/Core 32bit Updates (distrib32)/descriptions
Comment 53 Doug Laidlaw 2016-07-28 16:12:46 CEST
The file
/var/lib/urpmi/Core Updates/descriptions

seems to have a newline and nothing else, "file" returns:

/var/lib/urpmi/Core Updates/descriptions: very short file (no magic)
Comment 54 Thierry Vignaud 2016-07-29 20:54:17 CEST
*** Bug 19081 has been marked as a duplicate of this bug. ***

CC: (none) => cdillahay

Comment 55 Marja Van Waes 2016-08-07 10:57:12 CEST
@ Doug

Thx for the feedback. I've been mixing things up: removing the original description files locally fixed the problem for me, but removing them from the mirrors did not remove them on local systems.

So, other than I remembered pterjan replaced them with empty files, which works, too.

Maybe the problem is with some users (and mirrors?) still having the not-empty description files?

I just checked on my local mirror, and
/mageia/distrib/5/i586/media/core/updates/media_info/descriptions
/mageia/distrib/5/x86_64/media/core/updates/media_info/descriptions
/mageia/distrib/5/i586/media/core/updates_testing/media_info/descriptions
/mageia/distrib/5/x86_64/media/core/updates_testing/media_info/descriptions

are all empty, as they should be.

However, there are mirrors that still have original description files, like this one when I write this
ftp://mirrors-usa.go-parts.com/mageia/distrib/5/x86_64/media/core/updates/media_info/descriptions

(They seem to be currently trying to sync their mirror again, btw: the time stamp of their Mageia mirror changed for the first time since many months ago!)

So, if someone still hits this: please check whether one of your description files still contains text.
Comment 56 Marja Van Waes 2016-08-07 10:58:34 CEST
*** Bug 19142 has been marked as a duplicate of this bug. ***
Comment 57 Doug Laidlaw 2016-08-07 11:12:02 CEST
(In reply to Marja van Waes from comment #55)
> @ Doug
> 
> Thx for the feedback. I've been mixing things up: removing the original
> description files locally fixed the problem for me, but removing them from
> the mirrors did not remove them on local systems.
> 

> (They seem to be currently trying to sync their mirror again, btw: the time
> stamp of their Mageia mirror changed for the first time since many months
> ago!)
> 
> So, if someone still hits this: please check whether one of your description
> files still contains text.

After a reinstall, I now have only 2 description files left.  Both contain nothing more than a newline.  I have no problem with that.
Comment 58 David Locklear 2016-09-21 21:09:54 CEST
9-21-16


Could someone please email me instructions as to what I need to do to fix this rmpdrak error.   I am in Mageia 6 sta 1.

dlocklear01@gmail.com

I went to the terminal and used a urmpi command that I found somewhere, but it
did not help.

CC: (none) => dlocklear01

Comment 59 Marja Van Waes 2016-09-22 15:36:32 CEST
(In reply to David Locklear from comment #58)
> 9-21-16
> 
> 
> Could someone please email me instructions as to what I need to do to fix
> this rmpdrak error.   I am in Mageia 6 sta 1.
> 
<snip>
> 
> I went to the terminal and used a urmpi command that I found somewhere, but
> it
> did not help.


Did you get a crash and see this message:

undefined value for mandatory argument 'uri' encountered at /usr/lib/perl5/vendor_perl/5.20.1/Gtk3.pm

?

If so, then run, in a terminal/konsole as root:

   LC_ALL=C rm /var/lib/urpmi/*/descriptions

You'll be asked several times for confirmation. Press the Y key to continue.


However, if you're not sure you got the 'uri' error, then you may just have hit bug 19406.
Comment 60 Marja Van Waes 2016-09-22 15:38:41 CEST
s/this message/such a message/ ;-)
Comment 61 Rémi Verschelde 2017-03-13 16:42:53 CET
*** Bug 18586 has been marked as a duplicate of this bug. ***

CC: (none) => sebateo78

Comment 62 Doug Laidlaw 2017-03-13 18:07:23 CET
I haven't seen it for a while.  I thought it was fixed!
Comment 63 Marja Van Waes 2017-03-13 18:28:46 CET
(In reply to Rémi Verschelde from comment #61)
> *** Bug 18586 has been marked as a duplicate of this bug. ***

(In reply to Doug Laidlaw from comment #62)
> I haven't seen it for a while.  I thought it was fixed!

It is fixed.

Bug 18586 was filed on 2016-05-30 13:10:12 CEST 

The really last filed bug report that was closed as duplicate of this one, was bug 19142, filed at 2016-08-07 07:59 CEST

Closing

Status: REOPENED => RESOLVED
Resolution: (none) => FIXED


Note You need to log in before you can comment on or make changes to this bug.