package libvirt-bin 1.2.16-2ubuntu11.15.10.1 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1

Bug #1531833 reported by Misi
60
This bug affects 11 people
Affects Status Importance Assigned to Milestone
libvirt (Ubuntu)
Confirmed
High
Unassigned

Bug Description

Gnome-boxes

ProblemType: Package
DistroRelease: Ubuntu 15.10
Package: libvirt-bin 1.2.16-2ubuntu11.15.10.1
ProcVersionSignature: Ubuntu 4.2.0-23.28-generic 4.2.6
Uname: Linux 4.2.0-23-generic x86_64
NonfreeKernelModules: nvidia
ApportVersion: 2.19.1-0ubuntu5
Architecture: amd64
Date: Thu Jan 7 12:37:14 2016
DuplicateSignature: package:libvirt-bin:1.2.16-2ubuntu11.15.10.1:subprocess installed post-installation script returned error exit status 1
ErrorMessage: subprocess installed post-installation script returned error exit status 1
InstallationDate: Installed on 2015-02-22 (318 days ago)
InstallationMedia: Ubuntu-GNOME 14.10 "Utopic Unicorn" - Release amd64 (20141022.1)
ProcCmdline: BOOT_IMAGE=/boot/vmlinuz-4.2.0-23-generic root=UUID=8540717e-f7db-4df1-8d3e-2cebe075571b ro quiet nomodeset splash
SourcePackage: libvirt
Title: package libvirt-bin 1.2.16-2ubuntu11.15.10.1 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1
UpgradeStatus: Upgraded to wily on 2015-08-22 (138 days ago)
modified.conffile..etc.libvirt.qemu.networks.default.xml: [modified]
mtime.conffile..etc.libvirt.qemu.networks.default.xml: 2015-04-04T13:26:11.985540

Revision history for this message
Misi (ne-ebresz-fel) wrote :
Revision history for this message
Serge Hallyn (serge-hallyn) wrote :

Thanks for reporting this bug.

Please show the results of

sudo systemctl status libvirt-bin.service
and
sudo journalctl -xe

and attach the file /etc/libvirt/qemu/networks/default.xml

Revision history for this message
Misi (ne-ebresz-fel) wrote :

sudo systemctl status libvirt-bin.service:

libvirt-bin.service - Virtualization daemon
   Loaded: loaded (/lib/systemd/system/libvirt-bin.service; enabled; vendor preset: enabled)
   Active: failed (Result: start-limit) since Fri 2016-01-08 11:48:57 CET; 2min 6s ago
     Docs: man:libvirtd(8)
           http://libvirt.org
  Process: 16325 ExecStart=/usr/sbin/libvirtd $LIBVIRTD_ARGS (code=exited, status=1/FAILURE)
 Main PID: 16325 (code=exited, status=1/FAILURE)

Jan 08 11:48:57 localhost.localdomain systemd[1]: Failed to start Virtualizat...
Jan 08 11:48:57 localhost.localdomain systemd[1]: libvirt-bin.service: Unit e...
Jan 08 11:48:57 localhost.localdomain systemd[1]: libvirt-bin.service: Failed...
Jan 08 11:48:57 localhost.localdomain systemd[1]: libvirt-bin.service: Servic...
Jan 08 11:48:57 localhost.localdomain systemd[1]: Stopped Virtualization daemon.
Jan 08 11:48:57 localhost.localdomain systemd[1]: libvirt-bin.service: Start ...
Jan 08 11:48:57 localhost.localdomain systemd[1]: Failed to start Virtualizat...
Jan 08 11:48:57 localhost.localdomain systemd[1]: libvirt-bin.service: Unit e...
Jan 08 11:48:57 localhost.localdomain systemd[1]: libvirt-bin.service: Failed...
Hint: Some lines were ellipsized, use -l to show in full.

Revision history for this message
Misi (ne-ebresz-fel) wrote :

And /etc/libvirt/qemu/networks/default.xml file

tags: removed: need-duplicate-check
Changed in libvirt (Ubuntu):
importance: Undecided → High
Revision history for this message
Serge Hallyn (serge-hallyn) wrote :

Hi,

could you please show the output of both:

sudo journalctl -xe

and

sudo systemctl status libvirt-bin.service -l

Revision history for this message
Misi (ne-ebresz-fel) wrote :

sudo systemctl status libvirt-bin.service -l:

libvirt-bin.service - Virtualization daemon
   Loaded: loaded (/lib/systemd/system/libvirt-bin.service; enabled; vendor preset: enabled)
   Active: failed (Result: start-limit) since Mon 2016-01-11 21:13:10 CET; 5min ago
     Docs: man:libvirtd(8)
           http://libvirt.org
  Process: 877 ExecStart=/usr/sbin/libvirtd $LIBVIRTD_ARGS (code=exited, status=1/FAILURE)
 Main PID: 877 (code=exited, status=1/FAILURE)

Jan 11 21:13:09 localhost systemd[1]: libvirt-bin.service: Unit entered failed state.
Jan 11 21:13:09 localhost systemd[1]: libvirt-bin.service: Failed with result 'exit-code'.
Jan 11 21:13:10 localhost systemd[1]: libvirt-bin.service: Service hold-off time over, scheduling restart.
Jan 11 21:13:10 localhost systemd[1]: Stopped Virtualization daemon.
Jan 11 21:13:10 localhost systemd[1]: libvirt-bin.service: Start request repeated too quickly.
Jan 11 21:13:10 localhost systemd[1]: Failed to start Virtualization daemon.
Jan 11 21:13:10 localhost systemd[1]: libvirt-bin.service: Unit entered failed state.
Jan 11 21:13:10 localhost systemd[1]: libvirt-bin.service: Failed with result 'start-limit'.

sudo journalctl -xe:
In attachment

Revision history for this message
Serge Hallyn (serge-hallyn) wrote :

Ok, I don't know why that won't give us the error output we're looking for.

What happens when you just do

sudo /usr/sbin/libvirtd

Revision history for this message
Misi (ne-ebresz-fel) wrote :

/usr/sbin/libvirtd: initialization failed

Revision history for this message
Serge Hallyn (serge-hallyn) wrote : Re: [Bug 1531833] Re: package libvirt-bin 1.2.16-2ubuntu11.15.10.1 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1

Do you get more if you add '-v' ?

Also try setting

log_level = 1

in /etc/libvirt/libvirtd.conf

Revision history for this message
Misi (ne-ebresz-fel) wrote :

sudo /usr/sbin/libvirtd -v:
/usr/sbin/libvirtd: initialization failed

Revision history for this message
Misi (ne-ebresz-fel) wrote :

log_level = 1 & sudo systemctl status libvirt-bin.service -l:
In attachment

Revision history for this message
Misi (ne-ebresz-fel) wrote :

log_level = 1 & sudo journalctl -xe:

Revision history for this message
Serge Hallyn (serge-hallyn) wrote :

Anything more from

 sudo journalctl -u libvirt-bin

How about

 sudo strace -f /usr/sbin/libvirtd -v

for pete's sake.

Revision history for this message
Misi (ne-ebresz-fel) wrote :
Download full text (3.9 KiB)

sudo journalctl -u libvirt-bin:
-- Logs begin at Tue 2016-01-12 18:37:59 CET, end at Tue 2016-01-12 18:41:33 CET. --
Jan 12 18:38:19 localhost systemd[1]: Starting Virtualization daemon...
Jan 12 18:38:27 localhost libvirtd[775]: /usr/sbin/libvirtd: initialization failed
Jan 12 18:38:27 localhost systemd[1]: libvirt-bin.service: Main process exited, code=exited, status=1/FAILURE
Jan 12 18:38:27 localhost systemd[1]: Failed to start Virtualization daemon.
Jan 12 18:38:27 localhost systemd[1]: libvirt-bin.service: Unit entered failed state.
Jan 12 18:38:27 localhost systemd[1]: libvirt-bin.service: Failed with result 'exit-code'.
Jan 12 18:38:28 localhost systemd[1]: libvirt-bin.service: Service hold-off time over, scheduling restart.
Jan 12 18:38:28 localhost systemd[1]: Stopped Virtualization daemon.
Jan 12 18:38:28 localhost systemd[1]: Starting Virtualization daemon...
Jan 12 18:38:28 localhost libvirtd[871]: /usr/sbin/libvirtd: initialization failed
Jan 12 18:38:28 localhost systemd[1]: libvirt-bin.service: Main process exited, code=exited, status=1/FAILURE
Jan 12 18:38:28 localhost systemd[1]: Failed to start Virtualization daemon.
Jan 12 18:38:28 localhost systemd[1]: libvirt-bin.service: Unit entered failed state.
Jan 12 18:38:28 localhost systemd[1]: libvirt-bin.service: Failed with result 'exit-code'.
Jan 12 18:38:28 localhost systemd[1]: libvirt-bin.service: Service hold-off time over, scheduling restart.
Jan 12 18:38:28 localhost systemd[1]: Stopped Virtualization daemon.
Jan 12 18:38:28 localhost systemd[1]: Starting Virtualization daemon...
Jan 12 18:38:28 localhost libvirtd[873]: /usr/sbin/libvirtd: initialization failed
Jan 12 18:38:28 localhost systemd[1]: libvirt-bin.service: Main process exited, code=exited, status=1/FAILURE
Jan 12 18:38:28 localhost systemd[1]: Failed to start Virtualization daemon.
Jan 12 18:38:28 localhost systemd[1]: libvirt-bin.service: Unit entered failed state.
Jan 12 18:38:28 localhost systemd[1]: libvirt-bin.service: Failed with result 'exit-code'.
Jan 12 18:38:28 localhost systemd[1]: libvirt-bin.service: Service hold-off time over, scheduling restart.
Jan 12 18:38:28 localhost systemd[1]: Stopped Virtualization daemon.
Jan 12 18:38:28 localhost systemd[1]: Starting Virtualization daemon...
Jan 12 18:38:28 localhost libvirtd[875]: /usr/sbin/libvirtd: initialization failed
Jan 12 18:38:28 localhost systemd[1]: libvirt-bin.service: Main process exited, code=exited, status=1/FAILURE
Jan 12 18:38:28 localhost systemd[1]: Failed to start Virtualization daemon.
Jan 12 18:38:28 localhost systemd[1]: libvirt-bin.service: Unit entered failed state.
Jan 12 18:38:28 localhost systemd[1]: libvirt-bin.service: Failed with result 'exit-code'.
Jan 12 18:38:28 localhost systemd[1]: libvirt-bin.service: Service hold-off time over, scheduling restart.
Jan 12 18:38:28 localhost systemd[1]: Stopped Virtualization daemon.
Jan 12 18:38:28 localhost systemd[1]: Starting Virtualization daemon...
Jan 12 18:38:28 localhost libvirtd[877]: /usr/sbin/libvirtd: initialization failed
Jan 12 18:38:28 localhost systemd[1]: libvirt-bin.service: Main process exited, code=exited, status=1/FAILURE
Jan 12 18:38:28 localhost systemd[1]: ...

Read more...

Revision history for this message
Serge Hallyn (serge-hallyn) wrote :

Thanks - it looks like libvirt is upset about something relating to locales. What do

dpkg -l | grep language-pack

env | grep LANG

sudo env | grep LANG

show?

Revision history for this message
Misi (ne-ebresz-fel) wrote :

dpkg -l | grep language-pack:
ii language-pack-en 1:15.10+20151016 all translation updates for language English
ii language-pack-en-base 1:15.10+20151016 all translations for language English
ii language-pack-gnome-en 1:15.10+20151016 all GNOME translation updates for language English
ii language-pack-gnome-en-base 1:15.10+20151016 all GNOME translations for language English

env | grep LANG:
LANG=en_US.UTF-8

sudo env | grep LANG
LANG=en_US.UTF-8

Revision history for this message
Misi (ne-ebresz-fel) wrote :

I guess here 's the problem:
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
 LANGUAGE = (unset),
 LC_ALL = (unset),
 LC_TIME = "hu_HU.UTF-8",
 LC_MONETARY = "hu_HU.UTF-8",
 LC_ADDRESS = "hu_HU.UTF-8",
 LC_TELEPHONE = "hu_HU.UTF-8",
 LC_NAME = "hu_HU.UTF-8",
 LC_MEASUREMENT = "hu_HU.UTF-8",
 LC_IDENTIFICATION = "hu_HU.UTF-8",
 LC_NUMERIC = "hu_HU.UTF-8",
 LC_PAPER = "hu_HU.UTF-8",
 LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_ALL to default locale: No such file or directory

Revision history for this message
Stefan Bader (smb) wrote :

Something seems odd with what locale is set and what not... Not sure this is a "normal" state. Maybe the start service needs to always override LANG with C. Otherwise likely a locale-gen hu + locale-gen en works around this ...

Changed in libvirt (Ubuntu):
status: New → Confirmed
Revision history for this message
Tom importepeu (aliasprotect-ubuntu) wrote :
Download full text (14.2 KiB)

Hi,

I got the same message and error state following an apt-get upgrade. This is related to the same package 1.2.16-2ubuntu11.15.10.2

When no process libvirtd is running, a /usr/sbin/libvirtd -v start without error. The problem seems to happen because the libvirtd process doesn't stop correctly when the package is upgraded.

# ps -ef |grep libvirt
root 1535 1 0 10:34 ? 00:00:03 /usr/sbin/libvirtd -l -d

# apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] Y
Setting up libvirt-bin (1.2.16-2ubuntu11.15.10.3) ...
Job for libvirt-bin.service failed because the control process exited with error code. See "systemctl status libvirt-bin.service" and "journalctl -xe" for details.
invoke-rc.d: initscript libvirt-bin, action "restart" failed.
dpkg: error processing package libvirt-bin (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 libvirt-bin
E: Sub-process /usr/bin/dpkg returned an error code (1)

# systemctl status libvirt-bin.service
● libvirt-bin.service - Virtualization daemon
   Loaded: loaded (/lib/systemd/system/libvirt-bin.service; enabled; vendor preset: enabled)
  Drop-In: /etc/systemd/system/libvirt-bin.service.d
           └─override.conf
   Active: failed (Result: start-limit) since Mon 2016-10-10 14:43:54 CEST; 23s ago
     Docs: man:libvirtd(8)
           http://libvirt.org
  Process: 12628 ExecStart=/usr/sbin/libvirtd -l -d (code=exited, status=1/FAILURE)
 Main PID: 12628 (code=exited, status=1/FAILURE)
   CGroup: /system.slice/libvirt-bin.service
           ├─1535 /usr/sbin/libvirtd -l -d
           ├─3745 qemu-system-x86_64 -enable-kvm -name ipplan -S -machine pc-i440fx-vivid,accel=kvm,usb=off -cpu Westmere -m 2048 -realtime mlock=off -smp 2,sockets=2,cores=1,threads=1 -uuid 4878fcdb-44...
           └─3885 qemu-system-x86_64 -enable-kvm -name gitlab -S -machine pc-i440fx-vivid,accel=kvm,usb=off -cpu Westmere -m 1024 -realtime mlock=off -smp 1,sockets=1,cores=1,threads=1 -uuid d789bd49-fd...

Oct 10 14:43:54 uytrtst99 systemd[1]: Failed to start Virtualization daemon.
Oct 10 14:43:54 uytrtst99 systemd[1]: libvirt-bin.service: Unit entered failed state.
Oct 10 14:43:54 uytrtst99 systemd[1]: libvirt-bin.service: Failed with result 'exit-code'.
Oct 10 14:43:54 uytrtst99 systemd[1]: libvirt-bin.service: Service hold-off time over, scheduling restart.
Oct 10 14:43:54 uytrtst99 systemd[1]: Stopped Virtualization daemon.
Oct 10 14:43:54 uytrtst99 systemd[1]: libvirt-bin.service: Start request repeated too quickly.
Oct 10 14:43:54 uytrtst99 systemd[1]: Failed to start Virtualization daemon.
Oct 10 14:43:54 uytrtst99 systemd[1]: libvirt-bin.service: Unit entered failed state.
Oct 10 14:43:54 uytrtst99 systemd[1]: libvirt-bin.service: Failed with result 'start-limit'.

# journalctl -xe
Oct 10 14:43:54 uytrtst99 systemd[1]: libvirt-bin.service: Main process exited, code=...

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.