How to suppress 'leaked on vgs invocation' warning on pacman update

Every time I run pacman -Suy the following warnings show up like 50 times:

File descriptor 6 (socket:[196741]) leaked on vgs invocation. Parent PID 33080: /usr/bin/grub-probe
File descriptor 7 (socket:[196742]) leaked on vgs invocation. Parent PID 33080: /usr/bin/grub-probe
File descriptor 8 (socket:[196745]) leaked on vgs invocation. Parent PID 33080: /usr/bin/grub-probe
File descriptor 6 (socket:[196741]) leaked on vgs invocation. Parent PID 33080: /usr/bin/grub-probe
File descriptor 7 (socket:[196742]) leaked on vgs invocation. Parent PID 33080: /usr/bin/grub-probe
File descriptor 8 (socket:[196745]) leaked on vgs invocation. Parent PID 33080: /usr/bin/grub-probe
File descriptor 6 (socket:[196741]) leaked on vgs invocation. Parent PID 33102: /usr/bin/grub-probe
File descriptor 7 (socket:[196742]) leaked on vgs invocation. Parent PID 33102: /usr/bin/grub-probe
File descriptor 8 (socket:[196745]) leaked on vgs invocation. Parent PID 33102: /usr/bin/grub-probe
File descriptor 6 (socket:[196741]) leaked on vgs invocation. Parent PID 33102: /usr/bin/grub-probe
...

Some google searches indicated that these warning are only cosmetic and can be turned off using export LVM_SUPPRESS_FD_WARNINGS=1

However, when I set this flag, the warnings still show up… what am I missing here?

:+1: Welcome to Manjaro! :+1:

That flag is for another error message:

leaked on lvextend invocation

And your error is a bug that should have been fixed years ago, so can you provide an inxi --admin --verbosity=7 --filter --no-host --width would be the minimum required information… (Personally Identifiable Information like serial numbers and MAC addresses will be filtered out by the above command)

:thinking:

System:
  Kernel: 5.10.15-1-MANJARO x86_64 bits: 64 compiler: gcc v: 10.2.1 
  parameters: BOOT_IMAGE=/@/boot/vmlinuz-5.10-x86_64 
  root=/dev/mapper/vg0-lvroot ro rootflags=subvol=@ 
  cryptdevice=UUID=25b0e4b2-e88a-4014-acaf-42511e30c342:cryptroot quiet 
  udev.log_priority=3 
  Desktop: GNOME 3.38.3 tk: GTK 3.24.24 wm: gnome-shell dm: GDM 3.38.2.1 
  Distro: Manjaro Linux 
Machine:
  Type: Laptop System: LENOVO product: 20TLS0UV00 v: ThinkPad X1 Extreme Gen 3 
  serial: <filter> Chassis: type: 10 serial: <filter> 
  Mobo: LENOVO model: 20TLS0UV00 serial: <filter> UEFI: LENOVO 
  v: N2VET27W (1.12 ) date: 12/21/2020 
Battery:
  ID-1: BAT0 charge: 75.2 Wh condition: 79.5/80.4 Wh (99%) volts: 16.9/15.4 
  model: SMP 5B10X19049 type: Li-poly serial: <filter> status: Discharging 
  cycles: 4 
Memory:
  RAM: total: 46.86 GiB used: 3.14 GiB (6.7%) 
  RAM Report: permissions: Unable to run dmidecode. Root privileges required. 
CPU:
  Info: 6-Core model: Intel Core i7-10750H bits: 64 type: MT MCP 
  arch: Comet Lake family: 6 model-id: A5 (165) stepping: 2 microcode: E2 
  L2 cache: 12 MiB bogomips: 62431 
  Speed: 808 MHz min/max: 800/5000 MHz Core speeds (MHz): 1: 808 2: 846 3: 839 
  4: 836 5: 842 6: 843 7: 844 8: 862 9: 845 10: 840 11: 840 12: 839 
  Flags: 3dnowprefetch abm acpi adx aes aperfmperf apic arat arch_capabilities 
  arch_perfmon art avx avx2 bmi1 bmi2 bts clflush clflushopt cmov constant_tsc 
  cpuid cpuid_fault cx16 cx8 de ds_cpl dtes64 dtherm dts epb ept ept_ad erms 
  est f16c flexpriority flush_l1d fma fpu fsgsbase fxsr ht hwp hwp_act_window 
  hwp_epp hwp_notify ibpb ibrs ibrs_enhanced ida intel_pt invpcid 
  invpcid_single lahf_lm lm mca mce md_clear mmx monitor movbe mpx msr mtrr 
  nonstop_tsc nopl nx ospke pae pat pbe pcid pclmulqdq pdcm pdpe1gb pebs pge 
  pku pln pni popcnt pse pse36 pts rdrand rdseed rdtscp rep_good sdbg sep smap 
  smep ss ssbd sse sse2 sse4_1 sse4_2 ssse3 stibp syscall tm tm2 tpr_shadow 
  tsc tsc_adjust tsc_deadline_timer vme vmx vnmi vpid x2apic xgetbv1 xsave 
  xsavec xsaveopt xsaves xtopology xtpr 
  Vulnerabilities: Type: itlb_multihit status: KVM: VMX disabled 
  Type: l1tf status: Not affected 
  Type: mds status: Not affected 
  Type: meltdown status: Not affected 
  Type: spec_store_bypass 
  mitigation: Speculative Store Bypass disabled via prctl and seccomp 
  Type: spectre_v1 
  mitigation: usercopy/swapgs barriers and __user pointer sanitization 
  Type: spectre_v2 mitigation: Enhanced IBRS, IBPB: conditional, RSB filling 
  Type: srbds status: Not affected 
  Type: tsx_async_abort status: Not affected 
Graphics:
  Device-1: Intel UHD Graphics vendor: Lenovo driver: i915 v: kernel 
  bus ID: 00:02.0 chip ID: 8086:9bc4 class ID: 0300 
  Device-2: NVIDIA TU117M [GeForce GTX 1650 Ti Mobile] vendor: Lenovo 
  driver: nvidia v: 460.39 alternate: nouveau,nvidia_drm bus ID: 01:00.0 
  chip ID: 10de:1f95 class ID: 0300 
  Device-3: Chicony Integrated Camera type: USB driver: uvcvideo bus ID: 1-8:2 
  chip ID: 04f2:b6cb class ID: fe01 serial: <filter> 
  Display: x11 server: X.org 1.20.10 compositor: gnome-shell driver: 
  loaded: modesetting,nvidia alternate: fbdev,intel,nouveau,nv,vesa 
  resolution: <missing: xdpyinfo> 
  OpenGL: renderer: Mesa Intel UHD Graphics (CML GT2) v: 4.6 Mesa 20.3.4 
  direct render: Yes 
Audio:
  Device-1: Intel Comet Lake PCH cAVS vendor: Lenovo driver: sof-audio-pci 
  alternate: snd_hda_intel,snd_soc_skl,snd_sof_pci bus ID: 00:1f.3 
  chip ID: 8086:06c8 class ID: 0401 
  Sound Server: ALSA v: k5.10.15-1-MANJARO 
Network:
  Device-1: Intel Wireless-AC 9462/9560 driver: iwlwifi v: kernel port: 4000 
  bus ID: 00:14.3 chip ID: 8086:06f0 class ID: 0280 
  IF: wlp0s20f3 state: up mac: <filter> 
  IP v4: <filter> type: dynamic noprefixroute scope: global 
  broadcast: <filter> 
  IP v6: <filter> type: noprefixroute scope: link 
  WAN IP: <filter> 
Bluetooth:
  Device-1: Intel type: USB driver: btusb v: 0.8 bus ID: 1-14:4 
  chip ID: 8087:0026 class ID: e001 
  Message: Required tool hciconfig not installed. Check --recommends 
RAID:
  Message: No RAID data was found. 
Drives:
  Local Storage: total: 953.87 GiB used: 33.22 GiB (3.5%) 
  SMART Message: Required tool smartctl not installed. Check --recommends 
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Toshiba model: N/A 
  size: 953.87 GiB block size: physical: 512 B logical: 512 B speed: 31.6 Gb/s 
  lanes: 4 rotation: SSD serial: <filter> rev: 5107AGLA temp: 25.9 C 
  scheme: GPT 
  Message: No Optical or Floppy data was found. 
Partition:
  ID-1: / raw size: 880 GiB size: 880 GiB (100.00%) used: 33.19 GiB (3.8%) 
  fs: btrfs dev: /dev/dm-1 maj-min: 254:1 mapped: vg0-lvroot label: N/A 
  uuid: N/A 
  ID-2: /boot/efi raw size: 512 MiB size: 511 MiB (99.80%) 
  used: 24.8 MiB (4.9%) fs: vfat dev: /dev/nvme0n1p1 maj-min: 259:1 label: N/A 
  uuid: 39F8-01ED 
  ID-3: /home raw size: 880 GiB size: 880 GiB (100.00%) used: 33.19 GiB (3.8%) 
  fs: btrfs dev: /dev/dm-1 maj-min: 254:1 mapped: vg0-lvroot label: N/A 
  uuid: N/A 
  ID-4: /run/timeshift/backup raw size: 880 GiB size: 880 GiB (100.00%) 
  used: 33.19 GiB (3.8%) fs: btrfs dev: /dev/dm-1 maj-min: 254:1 
  mapped: vg0-lvroot label: N/A uuid: N/A 
Swap:
  Kernel: swappiness: 60 (default) cache pressure: 100 (default) 
  ID-1: swap-1 type: partition size: 73.36 GiB used: 0 KiB (0.0%) priority: -2 
  dev: /dev/dm-2 maj-min: 254:2 mapped: vg0-lvswap label: N/A 
  uuid: 81ac7dd1-5eb2-4ffc-b8f5-7c0910cb9190 
Unmounted:
  Message: No Unmounted partitions found. 
USB:
  Hub-1: 1-0:1 info: Full speed (or root) Hub ports: 16 rev: 2.0 
  speed: 480 Mb/s chip ID: 1d6b:0002 class ID: 0900 
  Device-1: 1-8:2 info: Chicony Integrated Camera type: Video driver: uvcvideo 
  interfaces: 5 rev: 2.0 speed: 480 Mb/s chip ID: 04f2:b6cb class ID: fe01 
  serial: <filter> 
  Device-2: 1-9:3 info: Synaptics Prometheus MIS Touch Fingerprint Reader 
  type: <vendor specific> driver: N/A interfaces: 1 rev: 2.0 speed: 12 Mb/s 
  chip ID: 06cb:00bd class ID: ff00 serial: <filter> 
  Device-3: 1-14:4 info: Intel type: Bluetooth driver: btusb interfaces: 2 
  rev: 2.0 speed: 12 Mb/s chip ID: 8087:0026 class ID: e001 
  Hub-2: 2-0:1 info: Full speed (or root) Hub ports: 10 rev: 3.1 
  speed: 10 Gb/s chip ID: 1d6b:0003 class ID: 0900 
  Hub-3: 3-0:1 info: Full speed (or root) Hub ports: 2 rev: 2.0 
  speed: 480 Mb/s chip ID: 1d6b:0002 class ID: 0900 
  Hub-4: 4-0:1 info: Full speed (or root) Hub ports: 2 rev: 3.1 speed: 10 Gb/s 
  chip ID: 1d6b:0003 class ID: 0900 
Sensors:
  System Temperatures: cpu: 35.0 C mobo: 32.0 C 
  Fan Speeds (RPM): cpu: 0 fan-2: 0 
Info:
  Processes: 439 Uptime: 9d 52m wakeups: 49 Init: systemd v: 247 Compilers: 
  gcc: 10.2.0 Packages: pacman: 1186 lib: 276 flatpak: 0 Shell: Zsh v: 5.8 
  running in: gnome-terminal inxi: 3.3.01 

Yeah, you’re booting from an LVM. Makes sense now. Sorry, I can’t help you any further except edit your title and add a tag to your question to attract smarter people than me…

:sob:

Just found out: adding export LVM_SUPPRESS_FD_WARNINGS=1 to the top of /usr/bin/timeshift-autosnap does suppress these warnings in most cases…
But this of course does not fix the actual issue.