yum clean all returns "listed more than once" error (RHEL5.2)

View: New views
3 Messages — Rating Filter:   Alert me  

yum clean all returns "listed more than once" error (RHEL5.2)

by denis-67 :: Rate this Message:

| View Threaded | Show Only this Message

Hi list,

For some reason or other yum has started to complain about my
repositories being listed more than once.

This might, or might not, be related to an update occuring last week:

"Aug 15 12:59:01 Updated: yum-rhn-plugin - 0.5.3-12.el5_2.9.noarch"

(Systems where this error appears are all RHEL5u2, and yum package is
yum-3.2.8-9.el5_2.1)

I have tried to remove the individual .repo files from my
/etc/yum.repos.d/, but unless that folder is empty yum complains with
the same error (for the repo that remains).

I tried to see if someone/something had added configuration to yum with
repoinfo somewhere else by using strace :

(strace -e trace=all 2> yumdebug.log ; grep reponame yumdebug.log)

stat("///etc/yum.repos.d/reponame.repo", {st_mode=S_IFREG|0644,
st_size=175, ...}) = 0
stat("/etc/yum.repos.d/reponame.repo", {st_mode=S_IFREG|0644,
st_size=175, ...}) = 0
open("/etc/yum.repos.d/reponame.repo", O_RDONLY) = 4
read(4, "[reponame]\nname=RepoName"..., 4096) = 175
write(2, "\n\nRepository reponame is li"..., 73
Repository reponame is listed more than once in the configuration

>From the above it does not seem to me that "reponame" is actually
defined more than once, if it was surely [reponame] would appear in more
than one read?

The last strace output before yum dies is :

open("//var/cache/yum", O_RDONLY|O_NONBLOCK|O_DIRECTORY) = 5
fstat(5, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
fcntl(5, F_SETFD, FD_CLOEXEC)           = 0
getdents(5, /* 15 entries */, 4096)     = 584
getdents(5, /* 0 entries */, 4096)      = 0
close(5)                                = 0
gettimeofday({1219227761, 177787}, NULL) = 0

Any hints / tips to what to do to debug this further?


Regards
--
Denis Braekhus

_______________________________________________
Yum mailing list
Yum@...
https://lists.dulug.duke.edu/mailman/listinfo/yum

Re: yum clean all returns "listed more than once" error (RHEL5.2)

by Jack Neely-3 :: Rate this Message:

| View Threaded | Show Only this Message

On Wed, Aug 20, 2008 at 12:34:23PM +0200, denis wrote:

> Hi list,
>
> For some reason or other yum has started to complain about my
> repositories being listed more than once.
>
> This might, or might not, be related to an update occuring last week:
>
> "Aug 15 12:59:01 Updated: yum-rhn-plugin - 0.5.3-12.el5_2.9.noarch"
>
> (Systems where this error appears are all RHEL5u2, and yum package is
> yum-3.2.8-9.el5_2.1)
>
> I have tried to remove the individual .repo files from my
> /etc/yum.repos.d/, but unless that folder is empty yum complains with
> the same error (for the repo that remains).
>
> I tried to see if someone/something had added configuration to yum with
> repoinfo somewhere else by using strace :
>
> (strace -e trace=all 2> yumdebug.log ; grep reponame yumdebug.log)
>
> stat("///etc/yum.repos.d/reponame.repo", {st_mode=S_IFREG|0644,
> st_size=175, ...}) = 0
> stat("/etc/yum.repos.d/reponame.repo", {st_mode=S_IFREG|0644,
> st_size=175, ...}) = 0
> open("/etc/yum.repos.d/reponame.repo", O_RDONLY) = 4
> read(4, "[reponame]\nname=RepoName"..., 4096) = 175
> write(2, "\n\nRepository reponame is li"..., 73
> Repository reponame is listed more than once in the configuration
>
> >From the above it does not seem to me that "reponame" is actually
> defined more than once, if it was surely [reponame] would appear in more
> than one read?
>
> The last strace output before yum dies is :
>
> open("//var/cache/yum", O_RDONLY|O_NONBLOCK|O_DIRECTORY) = 5
> fstat(5, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
> fcntl(5, F_SETFD, FD_CLOEXEC)           = 0
> getdents(5, /* 15 entries */, 4096)     = 584
> getdents(5, /* 0 entries */, 4096)      = 0
> close(5)                                = 0
> gettimeofday({1219227761, 177787}, NULL) = 0
>
> Any hints / tips to what to do to debug this further?
>
>
> Regards
> --
> Denis Braekhus
>
> _______________________________________________
> Yum mailing list
> Yum@...
> https://lists.dulug.duke.edu/mailman/listinfo/yum
 
This is a known issue with yum-rhn-plugin that shipped with RHEL 5.2.
There's a BZ with a patch if you are interested.  I think it slated to
be included in RHEL 5.3 but not before.

    https://bugzilla.redhat.com/show_bug.cgi?id=448012

Jack
--
Jack Neely <jjneely@...>
Linux Czar, OIT Campus Linux Services
Office of Information Technology, NC State University
GPG Fingerprint: 1917 5AC1 E828 9337 7AA4  EA6B 213B 765F 3B6A 5B89
_______________________________________________
Yum mailing list
Yum@...
https://lists.dulug.duke.edu/mailman/listinfo/yum

Re: yum clean all returns "listed more than once" error (RHEL5.2)

by denis-67 :: Rate this Message:

| View Threaded | Show Only this Message

Jack Neely wrote:
> On Wed, Aug 20, 2008 at 12:34:23PM +0200, denis wrote:
>> Hi list,
>>
>> For some reason or other yum has started to complain about my
>> repositories being listed more than once.
>>
>> This might, or might not, be related to an update occuring last week:
>>
>> "Aug 15 12:59:01 Updated: yum-rhn-plugin - 0.5.3-12.el5_2.9.noarch"
<SNIP>
>> Any hints / tips to what to do to debug this further?
>
> This is a known issue with yum-rhn-plugin that shipped with RHEL 5.2.
> There's a BZ with a patch if you are interested.  I think it slated to
> be included in RHEL 5.3 but not before.
>
>     https://bugzilla.redhat.com/show_bug.cgi?id=448012

Thanks Jack. I should have searched the RH bugzilla ofcourse. This
confirmed my suspicion this was caused by the info being duplicated in
the cache (which is not cleaned due to the linked bug) giving the error..

It does seem a "yum clean all --noplugins" will clean the external
repoinfo for me though, and this is mostly what I need to do anyway.

Regards
--
Denis Braekhus

_______________________________________________
Yum mailing list
Yum@...
https://lists.dulug.duke.edu/mailman/listinfo/yum