File descriptors leaked on lvs invocation
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
grub2 (Debian) |
New
|
Unknown
|
|||
grub2 (Ubuntu) |
Triaged
|
Low
|
Unassigned |
Bug Description
While upgrading to Kubuntu 14.04 yesterday, I got the following error messages over and over again:
Generating grub configuration file ...^M
File descriptor 3 (pipe:[4852522]) leaked on vgs invocation. Parent PID 6438: grub-probe^M
File descriptor 59 (/var/log/
The file descriptors appeared random, and the "Parent PID" was either /bin/sh, grub-install, grub-probe or /usr/sbin/
grep leaked ./dist-
53 /bin/sh
72 grub-install
106 grub-probe
1484 /usr/sbin/
Paul Tomblin (ptomblin) wrote : | #1 |
affects: | udisks2 (Ubuntu) → grub-installer (Ubuntu) |
SatPhil (satphil) wrote : | #2 |
- My full /var/log/dist-upgrade/apt-term.log Edit (480.1 KiB, application/octet-stream)
I also have these messages when upgrading from Ubuntu 13.10 to 14.04.
$ grep leaked ./dist-
37 /bin/sh
84 /usr/sbin/
Don't know if this is relevant but I am also affected by bug 1289977 (https:/
Launchpad Janitor (janitor) wrote : | #3 |
Status changed to 'Confirmed' because the bug affects multiple users.
Changed in grub-installer (Ubuntu): | |
status: | New → Confirmed |
Dwaine Gonyier (dgonyier) wrote : | #6 |
I see this error after upgrading to 14.10
gronaix (2-ubuntuine-d) wrote : | #7 |
I'm also retrieving this message durig apt-get dist-upgrade multiple times.
while installing new kernel image, i recognized first apperance.
System is Ubuntu 14.10 amd64
Alvin (alvind) wrote : | #8 |
Here, these errors appear on upgrading kernel in 14.10 (on encrypted LVM)
Ronald Bruintjes (rbruintjes) wrote : | #9 |
Doing a dist-upgrade for the new kernel, the same errors occur. It looks like they're generated after starting the grub configuration file update:
Generating grub configuration file ...
File descriptor 40 (/dev/pts/5) leaked on vgs invocation. Parent PID 15019: /usr/sbin/
File descriptor 40 (/dev/pts/5) leaked on vgs invocation. Parent PID 15019: /usr/sbin/
File descriptor 40 (/dev/pts/5) leaked on vgs invocation. Parent PID 15030: /usr/sbin/
File descriptor 40 (/dev/pts/5) leaked on vgs invocation. Parent PID 15030: /usr/sbin/
File descriptor 40 (/dev/pts/5) leaked on vgs invocation. Parent PID 15041: /usr/sbin/
File descriptor 40 (/dev/pts/5) leaked on vgs invocation. Parent PID 15041: /usr/sbin/
File descriptor 40 (/dev/pts/5) leaked on vgs invocation. Parent PID 15052: /usr/sbin/
File descriptor 40 (/dev/pts/5) leaked on vgs invocation. Parent PID 15052: /usr/sbin/
File descriptor 40 (/dev/pts/5) leaked on vgs invocation. Parent PID 15105: /usr/sbin/
File descriptor 40 (/dev/pts/5) leaked on vgs invocation. Parent PID 15105: /usr/sbin/
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
File descriptor 40 (/dev/pts/5) leaked on vgs invocation. Parent PID 15557: /usr/sbin/
File descriptor 40 (/dev/pts/5) leaked on vgs invocation. Parent PID 15557: /usr/sbin/
Found memtest86+ image: /memtest86+.elf
Found memtest86+ image: /memtest86+.bin
File descriptor 40 (/dev/pts/5) leaked on lvs invocation. Parent PID 15721: /bin/sh
done
Cheers,
Ron.
TranceaddicT (scottmccarthy66) wrote : | #10 |
Has there been progress on this? I was repairing my LVM and installing postfix when this occurred. Below is the CLI from the time I started the install with apt-get to final postfix updatings.
Also, just prior to this I had reduced my swap lvm size to 8MB. I've included that process as well, at the bottom; below ***, just in case.
root@Jupiter:~# apt-get install lvm2 dmsetup mdadm reiserfsprogs xfsprogs
Reading package lists... Done
Building dependency tree
Reading state information... Done
dmsetup is already the newest version.
lvm2 is already the newest version.
reiserfsprogs is already the newest version.
xfsprogs is already the newest version.
The following package was automatically installed and is no longer required:
python-roman
Use 'apt-get autoremove' to remove it.
The following extra packages will be installed:
postfix
Suggested packages:
procmail postfix-mysql postfix-pgsql postfix-ldap postfix-pcre sasl2-bin dovecot-common postfix-cdb postfix-doc
Recommended packages:
default-mta mail-transport-
The following NEW packages will be installed:
mdadm postfix
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 1,500 kB of archives.
After this operation, 4,936 kB of additional disk space will be used.
Do you want to continue? [Y/n]
Get:1 http://
Get:2 http://
Fetched 1,500 kB in 5min 17s (4,726 B/s)
Preconfiguring packages ...
Selecting previously unselected package mdadm.
(Reading database ... 369614 files and directories currently installed.)
Preparing to unpack .../mdadm_
Unpacking mdadm (3.3-2ubuntu1) ...
Selecting previously unselected package postfix.
Preparing to unpack .../postfix_
Unpacking postfix (2.11.1-1ubuntu1) ...
Processing triggers for man-db (2.7.0.2-2) ...
Processing triggers for doc-base (0.10.6) ...
Processing 4 added doc-base files...
Registering documents with scrollkeeper...
Processing triggers for ureadahead (0.100.0-16) ...
ureadahead will be reprofiled on next reboot
Processing triggers for ufw (0.34~rc-0ubuntu4) ...
Setting up mdadm (3.3-2ubuntu1) ...
Generating mdadm.conf... done.
update-initramfs: deferring update (trigger activated)
Generating grub configuration file ...
File descriptor 3 (pipe:[1702559]) leaked on vgs invocation. Parent PID 11460: /usr/sbin/
File descriptor 185 (/dev/pts/8) leaked on vgs invocation. Parent PID 11460: /usr/sbin/
File descriptor 3 (pipe:[1702559]) leaked on vgs invocation. Parent PID 11460: /usr/sbin/
File descriptor 185 (/dev/pts/8) leaked on vgs invocation. Parent PID 11460: /usr/sbin/
File descriptor 3 (pipe:[1702559]) leaked on vgs invocation. Parent PID 11470: /usr/sbin/
File descriptor 185 (/dev/pts/8) leaked on vgs invocation. Parent PID 11470: /usr/sbin/
File descriptor 3 (pipe:[1702559]) leaked on vgs invocation. Parent PID 11470: /usr/sbin/
F...
hurricaneharry (harold-de-bruijn) wrote : | #11 |
Occored for me when removing a kernel with autoremove.. (ubuntu 14.10)
Removing linux-image-
Examining /etc/kernel/
run-parts: executing /etc/kernel/
Examining /etc/kernel/
run-parts: executing /etc/kernel/
update-initramfs: Deleting /boot/initrd.
run-parts: executing /etc/kernel/
Grub-instelling
File descriptor 62 (/dev/pts/11) leaked on vgs invocation. Parent PID 7372: /usr/sbin/
Colin Watson (cjwatson) wrote : | #12 |
This is largely pointless whining from the lvm tools and is entirely cosmetic. At some point we should dig out the environment variable that suppresses this and have GRUB pass it.
affects: | grub-installer (Ubuntu) → grub2 (Ubuntu) |
Changed in grub2 (Ubuntu): | |
importance: | Undecided → Low |
status: | Confirmed → Triaged |
Scott Moser (smoser) wrote : | #13 |
Debian bug https:/
documents LVM_SUPPRESS_
Phillip Susi (psusi) wrote : | #14 |
Any idea why lvm engages in such seemingly pointless winging and why we can't just get them to take out the message?
Alexander List (alexlist) wrote : | #15 |
Still visible on 16.04 LTS today.
atimonin (atimonin) wrote : | #16 |
Also hit this doing apt-get upgrade
navgust (oid) wrote : | #17 |
Upgrading from 15.10 to 16.04.1: my last messages on the terminal is:
<code>
update-initramfs: deferring update (trigger activated)
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
UUID = vom Btrfs-Dateisystem gefunden
Startmenü für ein Btrfs-Dateisystem eingefügt
Found memtest86+ image: /memtest86+.elf
Found memtest86+ image: /memtest86+.bin
File descriptor 3 (pipe:[9852102]) leaked on lvs invocation. Parent PID 18816: /bin/sh
</code>
After that the upgrade hangs, I am still investigating&
Mikkel Kirkgaard Nielsen (mikini) wrote : | #18 |
Still got this today on dist-upgrading a 16.04 Server. Not very neat and caused some concern for bootability until reading here and the Debian bug made me realize that it is caused by the way triggers invocate lvm tools:
Setting up mdadm (3.3-2ubuntu7.4) ...
update-initramfs: deferring update (trigger activated)
Generating grub configuration file ...
File descriptor 3 (pipe:[379519083]) leaked on vgs invocation. Parent PID 2303: /usr/sbin/
File descriptor 3 (pipe:[379519083]) leaked on vgs invocation. Parent PID 2303: /usr/sbin/
File descriptor 3 (pipe:[379519083]) leaked on vgs invocation. Parent PID 2316: /usr/sbin/
File descriptor 3 (pipe:[379519083]) leaked on vgs invocation. Parent PID 2316: /usr/sbin/
File descriptor 3 (pipe:[379519083]) leaked on vgs invocation. Parent PID 2329: /usr/sbin/
File descriptor 3 (pipe:[379519083]) leaked on vgs invocation. Parent PID 2329: /usr/sbin/
File descriptor 3 (pipe:[379519083]) leaked on vgs invocation. Parent PID 2342: /usr/sbin/
File descriptor 3 (pipe:[379519083]) leaked on vgs invocation. Parent PID 2342: /usr/sbin/
File descriptor 3 (pipe:[379519083]) leaked on vgs invocation. Parent PID 2402: /usr/sbin/
File descriptor 3 (pipe:[379519083]) leaked on vgs invocation. Parent PID 2402: /usr/sbin/
Found linux image: /boot/vmlinuz-
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
File descriptor 3 (pipe:[379519083]) leaked on vgs invocation. Parent PID 3125: /usr/sbin/
File descriptor 3 (pipe:[379519083]) leaked on vgs invocation. Parent PID 3125: /usr/sbin/
File descriptor 3 (pipe:[379519083]) leaked on lvs invocation. Parent PID 3241: /bin/sh
done
update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults
Scott Stensland (scottstensland) wrote : | #19 |
I own several remote VPS servers and I see this error on many of them ... here is one example which happend on May 22 2019
Ubuntu 18.04.2 LTS
Linux-4.
DEBIAN_
Hit:1 http://
Get:2 http://
Hit:3 https:/
Get:4 http://
Get:5 http://
Get:6 http://
Get:7 http://
Fetched 692 kB in 1s (647 kB/s)
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
0 upgraded, 0 newly installed, 0 to remove and 11 not upgraded.
DEBIAN_
Reading package lists...
Building dependency tree...
Reading state information...
0 upgraded, 0 newly installed, 0 to remove and 11 not upgraded.
sudo env DEBIAN_
Reading package lists...
Building dependency tree...
Reading state information...
Calculating upgrade...
The following packages will be upgraded:
curl libcurl3-gnutls libcurl4 mdadm netplan.io nplan python3-distupgrade
python3-
ubuntu-
11 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 643 kB/1,314 kB of archives.
After this operation, 17.4 kB of additional disk space will be used.
Get:1 http://
Get:2 http://
Get:3 http://
Get:4 http://
Get:5 http://
Get:6 http://
Get:7 http://
Preconfiguring packages ...
Fetched 643 kB in 1s (598 kB/s)
(Reading database ... 30%
Preparing to unpack .../00-
Unpacking netplan.io (0.97-0ubuntu1~
Preparing to unpack .../01-
Unpacking nplan (0.97-0ubuntu1~
Preparing to unpack .../02-ubunt...
Laurent Bonnaud (laurent-bonnaud) wrote : | #20 |
I see this error in Ubuntu 19.10:
# grub-install
Installing for x86_64-efi platform.
File descriptor 4 (/dev/nvme0n1p1) leaked on vgs invocation. Parent PID 6830: grub-install
File descriptor 4 (/dev/nvme0n1p1) leaked on vgs invocation. Parent PID 6830: grub-install
Installation finished. No error reported.
Package: grub2-common
Version: 2.04-1ubuntu11
tags: | added: eoan |
Changed in grub2 (Debian): | |
status: | Unknown → New |
iGadget (igadget) wrote : | #21 |
Glad I found this bugreport. The message got me worried, and I can imagine it will keep on creating the same thought with many more people until it (finally!) gets suppressed.
Just got this on 20.04 today while running apt autoremove:
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
File descriptor 10 (/var/lib/
done
MarcH (marc-h38) wrote : | #22 |
Still happening with 20.04
# sudo apt autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
linux-
linux-
linux-
linux-
linux-
0 upgraded, 0 newly installed, 15 to remove and 0 not upgraded.
After this operation, 959 MB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 232284 files and directories currently installed.)
Removing linux-modules-
Removing linux-image-
/etc/kernel/
update-initramfs: Deleting /boot/initrd.
/etc/kernel/
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Adding boot menu entry for UEFI Firmware Settings
done
Removing linux-modules-
Removing linux-image-
/etc/kernel/
update-initramfs: Deleting /boot/initrd.
/etc/kernel/
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
File descriptor 10 (/var/lib/
Adding boot menu entry for UEFI Firmware Settings
done
Removing linux-modules-
Removing linux-image-
/etc/kernel/
update-initramfs: Deleting /boot/initrd.
/etc/kernel/
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/
Generating grub configuration file ...
Fo...
Laurent Bonnaud (laurent-bonnaud) wrote : | #23 |
In Ubuntu 23.04/lunar those are gone on my system:
# update-initramfs -u -k all
update-initramfs: Generating /boot/initrd.
update-initramfs: Generating /boot/initrd.
# grub-install
Installing for x86_64-efi platform.
Installation finished. No error reported.
# update-grub
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Found linux image: /boot/vmlinuz-
Found initrd image: /boot/initrd.
Adding boot menu entry for UEFI Firmware Settings ...
done
My full /var/log/ dist-upgrade/ apt-term. log: