zypper ps hangs forever

Hello,

zypper ps on my 11.4 box hangs forever and so does zypper up.

I’m quite sure it’s something I did wrong because my 5 other machines are doing fine with zypper ps.

I’ve tried “strace zypper ps” on a working machine and compare to my broken one. It show me it hangs just before those lines:

read(7, “p1\0R0\0cinit\0u0\0Lroot\0
fcwd\0tDIR\0”…, 4096) = 4096
read(7, “o.1\0
fmem\0tREG\0k1\0n/lib64/ld-2.1”…, 4096) = 4096
read(7, “11\0tunix\0nsocket\0
f12\0tFIFO\0k1\0n”…, 4096) = 4096
read(7, “/ld-2.11.3.so\0
f0\0tunix\0n/dev/lo”…, 4096) = 4096

On my broken machine it stops there and wait forever:
read(7,

I don’t really know whereto start to sort this one out.

Any zypper guru to point me on which packages and tools are involved in this
or maybe somebody to explain what this line means in strace:
read(7, “p1\0R0\0cinit\0u0\0Lroot\0
fcwd\0tDIR\0”…, 4096) = 4096

Thank you.

Maybe a bug. Could you give your features of your operating system?

Please post result of

zypper lr -d

uname -a:
Linux devil 2.6.37.1-1.2-xen #1 SMP 2011-02-21 10:34:10 +0100 x86_64 x86_64 x86_64 GNU/Linux

cat /etc/SuSE-release:
openSUSE 11.4 (x86_64)
VERSION = 11.4
CODENAME = Celadon

zypper if zypper:
Dépot: @System
Nom: zypper
Version: 1.5.3-3.2
Arch: x86_64
Fabricant: openSUSE

sorry could’nt find a way to attach file so I pasted here
zypper lr -d:

| Alias | Nom | Activé | Rafraîchir | Priorité | Type | URI | Service

–±------------------------------±-------------------------------±-------±-----------±---------±---------±--------------------------------------------------------------------------------±-------
1 | backup | backup | Oui | Non | 99 | rpm-md | Index of /repositories/Archiving:/Backup/openSUSE_11.4 |
2 | download.opensuse.org-non-oss | Dépôt principal (NON-OSS) | Oui | Non | 99 | yast2 | Index of /distribution/11.4/repo/non-oss |
3 | download.opensuse.org-oss | Dépôt principal (OSS) | Oui | Non | 99 | yast2 | Index of /distribution/11.4/repo/oss |
4 | download.opensuse.org-update | Dépôt principal de mise à jour | Oui | Oui | 99 | rpm-md | Index of /update/11.4 |
5 | perldevel | perldevel | Oui | Non | 99 | rpm-md | Index of /repositories/devel:/languages:/perl/openSUSE_11.4 |
6 | repoperso | repoperso | Oui | Non | 99 | plaindir | dir:///root/repo |

Use Yast > Software > Repositories
to delete number 6

Then do

zypper clean --all

Is it ok now

I did
zypper rr 6
zypper clean --all

zypper ps still hangs.

As su do

rpmdb --rebuilddb

Is zypper working otherwise?

did rpmdb --rebuilddb

zypper ps still hangs

Maybe it was not clear I just have issue for zypper ps.
The other functionalities of zypper are working.
zypper se, zypper ls work ok

zypper rm will remove package and then hang (I guess there is a zypper ps after removal of a pacakge)
zypper hang when he search for the running processes using deleted files.

Had the same problem. Zypper stalled with five timezone rpm’s and a wine update. The solution was to:
(1) create a local directory
(2) Using YaST->system->Software Repositories->add. Choose “local directory” in the media screen, then specify the local directory as a repository.
(3) Run zypper update and record the URL listed as the offending file in the zypper update error message.
(4) Abort zypper update
(5) Manually download the listed file by entering the URL in Firefox.
(6) Move or copy the file into the local repository. (You may wish to temporarily redefine the default download directory in Firefox).
(7) Repeat from step 3. until all the offending files have been manually downloaded.
(8) Zypper update will be able to complete the update session using the files in the local repository.

This seems to be isolated to a few. I certainly have not experienced this.

Me neither my updates work ok.

It’s just when zypper search for the running processes using deleted files that he hangs.
Does anyone know what zypper uses to find these running process?

Hum… I thought I reboot my virtual machine because I rebooted its host. But it turn out I didn’t.

After reboot it properly I’m not experiencing “zypper ps hang” any more
Sorry for the mistake.

Thank for your help.

On 2011-04-01 12:06, alexispellicier wrote:
>
> Me neither my updates work ok.
>
> It’s just when zypper search for the running processes using deleted
> files that he hangs.
> Does anyone know what zypper uses to find these running process?

lsof, and lsof can hang when some of the files it wants to list are remote
nad has to resolve dns ro something.


Cheers / Saludos,

Carlos E. R.
(from 11.2 x86_64 “Emerald” at Telcontar)