error : qemudWritePidFile:498 : Failed to open pid file '/var/run/libvirtd.pid' : File exists
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
libvirt (Ubuntu) |
Fix Released
|
Medium
|
Dustin Kirkland | ||
Lucid |
Fix Released
|
Medium
|
Dustin Kirkland |
Bug Description
Libvirt is not robust against failures.
For some reason libvirt segfaulted on me (separate bug):
[12031.895269] libvirtd[1374]: segfault at 10 ip 00007f68357a4224 sp 00007fff49a8aed0 error 4 in libpthread-
upstart tried to restarts it but fails:
Jan 21 14:40:05 rhea init: libvirt-bin main process (1374) killed by SEGV signal
Jan 21 14:40:05 rhea init: libvirt-bin main process ended, respawning
Jan 21 14:40:06 rhea init: libvirt-bin main process (4886) terminated with status 1
Jan 21 14:40:06 rhea init: libvirt-bin main process ended, respawning
Jan 21 14:40:06 rhea init: libvirt-bin main process (4891) terminated with status 1
Jan 21 14:40:06 rhea init: libvirt-bin main process ended, respawning
Jan 21 14:40:06 rhea init: libvirt-bin main process (4896) terminated with status 1
Jan 21 14:40:06 rhea init: libvirt-bin main process ended, respawning
Jan 21 14:40:06 rhea init: libvirt-bin main process (4901) terminated with status 1
Jan 21 14:40:06 rhea init: libvirt-bin main process ended, respawning
Jan 21 14:40:06 rhea init: libvirt-bin main process (4906) terminated with status 1
Jan 21 14:40:06 rhea init: libvirt-bin main process ended, respawning
Jan 21 14:40:06 rhea init: libvirt-bin main process (4911) terminated with status 1
Jan 21 14:40:06 rhea init: libvirt-bin main process ended, respawning
Jan 21 14:40:06 rhea init: libvirt-bin main process (4916) terminated with status 1
Jan 21 14:40:06 rhea init: libvirt-bin main process ended, respawning
Jan 21 14:40:06 rhea init: libvirt-bin main process (4921) terminated with status 1
Jan 21 14:40:06 rhea init: libvirt-bin main process ended, respawning
Jan 21 14:40:06 rhea init: libvirt-bin main process (4926) terminated with status 1
Jan 21 14:40:06 rhea init: libvirt-bin main process ended, respawning
Jan 21 14:40:06 rhea init: libvirt-bin main process (4931) terminated with status 1
Jan 21 14:40:06 rhea init: libvirt-bin respawning too fast, stopped
only after I tried to manually start libvirtd I found out what the problem is:
root@rhea:/var/log# sudo libvirtd
14:51:53.380: error : qemudWritePidFi
root@rhea:/var/log# cat /var/run/
1374
Obviously libvirtd should have removed the stale pidfile (process not longer running), by itself on
subsequent restart.
Furthermore an warning should have been emitted in some logfile, that the stale pidfile was removed.
Best regards,
Arnd
ProblemType: Bug
Architecture: amd64
Date: Thu Jan 21 14:48:15 2010
DistroRelease: Ubuntu 10.04
Package: libvirt-bin 0.7.2-4ubuntu6
ProcEnviron:
LANG=de_DE.UTF-8
SHELL=/bin/bash
ProcVersionSign
SourcePackage: libvirt
Uname: Linux 2.6.32-11-generic x86_64
Related branches
Changed in libvirt (Ubuntu): | |
status: | Confirmed → Triaged |
assignee: | nobody → Dustin Kirkland (kirkland) |
Changed in libvirt (Ubuntu): | |
assignee: | nobody → Dustin Kirkland (kirkland) |
Changed in libvirt (Ubuntu Lucid): | |
status: | Triaged → In Progress |
status: | In Progress → Fix Committed |
Looks like pid file is not being removed after it crashes in the upstart script. Can you try remove the /var/run/ libvirt. pid file?
chuck