Re: [ldm-users] LDM and systemd(8) 219

  • To: Steven Emmerson <emmerson@xxxxxxxx>, LDM <ldm-users@xxxxxxxxxxxxxxxx>
  • Subject: Re: [ldm-users] LDM and systemd(8) 219
  • From: "Herzmann, Daryl E [AGRON]" <akrherz@xxxxxxxxxxx>
  • Date: Sat, 28 Jan 2023 22:45:19 +0000
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=iastate.edu; dmarc=pass action=none header.from=iastate.edu; dkim=pass header.d=iastate.edu; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=xNwJuAjgSu5yQMMs2punkDQ5Zm7c2oswqAO/Cm6aMYM=; b=VipzVYpXtZNCSWSXBvFJsGniWPQzuuGMvVgnJRewds4urZ0EpTrKtTbxV1ujbPH4n0yMjpiiVg2kRM54P4rbKCRSmM90SKdvCvwvGjDTb5oNiNAGjchx3cRmsuBSXLpknj3wX2vdiFaMYfoZhdaZCfm9JuBpjoxD1zpy9hYyoHc2lO/b6ZTrvlainWa6EF1XDrkvn8GwxmZw7li5SZrdyizcz1A8Y56HsRnbcVSCIV4yx8K4hzC/Hfu/6VcHB40cls9AbpxQ0ijZPlADfOqNGmu3e75Ow5QLkZYLG9WGuIMqyyjEXJjwa2P3lWBl2DnsuTuoVK9n5MR/iEK82ar7xQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=fhF/8D5bBFuUtI59gkDV00f9bu9vEsBoPbQxM35llcb5jcLznXOiASBQwCRDu4LQcgVw9eOh9YUnKSTRZr7rGKJ6x4ixjlCyl1+Ti5bcKO9i/E+GYtyMfuGzo5vYIxW0RrBYDYEXOd1PywKpyFORoRWsWu5+mC3VS466wik5p/5On4rS3Cr64ypEvkyv3jF872b1IXsu11ZKC0jiZFrGrUfgi/s3GmM48i9NNYWFJCZgwAm6Y7f/csdhSGqfgSM1Tv8DZyX6UnkHz0HceRQRg+VQm0iYFeNPF8uPoUbphHnUU44nm91BlGAofB91GCU4koQl1S66zt3h5PVyL7QcRQ==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=iastate.edu;
  • Msip_labels:
Hi Steve,

Is this issue against systemd version 219 or version 219 and later or ?  
Version 219 of systemd is from 2015!?!

https://github.com/systemd/systemd/releases/tag/v219

daryl

________________________________________
From: ldm-users <ldm-users-bounces@xxxxxxxxxxxxxxxx> on behalf of Steven 
Emmerson <emmerson@xxxxxxxx>
Sent: Saturday, January 28, 2023 3:49 PM
To: LDM
Subject: [ldm-users] LDM and systemd(8) 219

Hello LDMer,

This email is to make you aware of an issue with the LDM on systems running 
version 219 of the daemon systemd(8). If you don't run systemd(8), then you may 
ignore this email until you do.

Version 219 of systemd(8) -- depending on how it was compiled for your 
operating system -- can, by default, cause all upstream LDM processes feeding 
downstream LDM processes to terminate due to an error. The downstream LDM 
processes will reconnect and this process will repeat indefinitely. This 
behavior is revealed by searching the upstream LDM's log file for the string 
"uldb.c". For example

$ fgrep uldb.c ~/var/logs/ldmd.log | head -2
20230111T183527.886480Z xxx.xxx.xxx(feed)[73820] uldb.c:db_lock:1742 ERROR 
Couldn't lock database for writing
20230111T183527.886488Z xxx.xxx.xxx(feed)[73820] uldb.c:uldb_addProcess:2152 
ERROR Couldn't lock database
$

This problem results from the LDM using a shared-memory segment to hold its 
list of active upstream LDM processes and systemd(8) deleting all of a user's 
inter-process communication objects (which includes shared-memory segments) 
when the user exits any session -- including ones launched via a crontab(1) 
entry!

Don't get me started on what I think about this behavior.

The solution is to stop systemd(8) from doing this by ensuring that the 
parameter "RemoveIPC" is set to "no" in the file "/etc/systemd/logind.conf":

# grep IPC -i /etc/systemd/logind.conf
#RemoveIPC=yes

If the value is "no", then nothing need be done, even if it's commented-out; 
otherwise, set its value to "no", make sure it's not commented-out, execute the 
command

systemctl restart systemd-logind

and then restart your LDM.

You can read more on this issue in the rant https://knzl.at/systemd-removeipc/ 
or by googling "systemd RemoveIPC".

Contact support-ldm@xxxxxxxxxxxxxxxx<mailto:support-ldm@xxxxxxxxxxxxxxxx> if 
you have any questions.

Regards,
Steve Emmerson


  • 2023 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the ldm-users archives: