Operating System - HP-UX
1845486 Members
3078 Online
110244 Solutions
New Discussion

315583: error : virPidFileAcquirePath:422 : Failed to acquire pid file '/var/run/libvirtd

 
HB3
Occasional Advisor

315583: error : virPidFileAcquirePath:422 : Failed to acquire pid file '/var/run/libvirtd

Dears, 

i'm facing an issue with libvirtd, when issuing the command "libvirtd" i'm getting the following error:

# libvirtd
2022-11-14 15:00:53.981+0000: 315583: info : libvirt version: 3.2.0, package: 14.el7_4.7 (Red Hat, Inc. <http://bugzilla.redhat.com/bugzilla>, 2017-12-19-04:58:04, x86-041.build.eng.bos.redhat.com)
2022-11-14 15:00:53.981+0000: 315583: info : hostname: XXX
2022-11-14 15:00:53.981+0000: 315583: error : virPidFileAcquirePath:422 : Failed to acquire pid file '/var/run/libvirtd.pid': Resource temporarily unavailable


# ps -ef | grep libvirtd
root 3225 1 0 2020 ? 00:00:10 /usr/sbin/libvirtd
root 315640 315134 0 18:04 pts/6 00:00:00 grep --color=auto libvirtd

# virsh -c qemu: /// system list --all

Id Name State
----------------------------------------------------
1 XXXX running

any idea or help is welcoming.

thanks.

3 REPLIES 3
avd437
HPE Pro

Re: 315583: error : virPidFileAcquirePath:422 : Failed to acquire pid file '/var/run/libvirtd

That means either there already is another libvirtd running or the previous one died unexpectedly without removing this PID file. You can distinguish these two via 'pgrep libvirtd' which either gives you the very same PID as the one in the PID file (=libvirtd is running) or nothing and than you should be safe to remove the file and start libvirtd again. However, if libvirtd keeps failing to initialize, there might be a misconfiguration problem (and libvirt bug as well since we ought to remove PID file before quiting).


I work for HPE.
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]
Accept or Kudo
HB3
Occasional Advisor

Re: 315583: error : virPidFileAcquirePath:422 : Failed to acquire pid file '/var/run/libvi

Thanks alot!

i have the same PID process  using "pgrep libvortd" however, i still have the error occuring almost every day, could it be because of Libvird bug or for ex: libvirt wend a short  period sleep?

avd437
HPE Pro

Re: 315583: error : virPidFileAcquirePath:422 : Failed to acquire pid file '/var/run/libvi

Might be it is a bug, suggested open a ticket with vendor


I work for HPE.
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]
Accept or Kudo