Bug 903009 - Failed at step EXEC spawning /usr/bin/systemd-tmpfiles-keep: No such file or directory
Summary: Failed at step EXEC spawning /usr/bin/systemd-tmpfiles-keep: No such file or ...
Status: RESOLVED FIXED
Alias: None
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: Basesystem (show other bugs)
Version: NO 13.2 BUGS!!
Hardware: All openSUSE 13.2
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: systemd maintainers
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-10-29 09:04 UTC by Martin Pluskal
Modified: 2016-02-03 14:41 UTC (History)
5 users (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---
thomas.blume: needinfo? (support)


Attachments
proposed patch to enable user based exclude statements (2.78 KB, patch)
2014-12-12 12:12 UTC, Thomas Blume
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Pluskal 2014-10-29 09:04:17 UTC
With systemd from obs://build.opensuse.org/Base:System (systemd-210-872.4) I have noticed following:
# dmesg
...
[  833.538753] systemd-coredump[15532]: Failed to log coredump: Connection refused
[  833.641093] systemd-coredump[15470]: Failed to log coredump: Connection refused
[  900.226178] systemd[22527]: Failed at step EXEC spawning /usr/bin/systemd-tmpfiles-keep: No such file or directory

While is indeed not present on system systemd-tmpfiles-keep:
# file /usr/bin/systemd-tmpfiles-keep
/usr/bin/systemd-tmpfiles-keep: cannot open `/usr/bin/systemd-tmpfiles-keep' (No such file or directory)
Comment 1 Dr. Werner Fink 2014-10-29 09:19:49 UTC
Can not reproduce, on a  *older* factory

  e161:~ # rpm -qf /usr/bin/systemd-tmpfiles-keep
  aaa_base-13.2+git20140604.9f4be6e-3.1.x86_64
  e161:~ # file /usr/bin/systemd-tmpfiles-keep
  /usr/bin/systemd-tmpfiles-keep: POSIX shell script, ASCII text executable
  e161:~ # 
  e161:~ # grep -rs systemd-tmpfiles-keep /usr/lib/systemd/system/
  /usr/lib/systemd/system/systemd-tmpfiles-clean.service:ExecStart=-/usr/bin/systemd-tmpfiles-keep

also on a SLES12

  linux:~ # rpm -qf /usr/bin/systemd-tmpfiles-keep
  aaa_base-13.2+git20140310.a57750d-3.1.x86_64
  linux:~ # file /usr/bin/systemd-tmpfiles-keep
  /usr/bin/systemd-tmpfiles-keep: POSIX shell script, ASCII text executable
  linux:~ # 
  linux:~ # grep -rs systemd-tmpfiles-keep /usr/lib/systemd/system/
  /usr/lib/systemd/system/systemd-tmpfiles-clean.service:ExecStart=-/usr/bin/systemd-tmpfiles-keep

I'd like to know *who* has removed the script /usr/bin/systemd-tmpfiles-keep *without* dropping a note to systemd maintainers. The file belongs to FATE #314974 and has to added to git repository of aaa_base and should not be removed!
Comment 2 Dr. Werner Fink 2014-10-29 09:27:49 UTC
Git repository is upto date as well as there is a SR#258788 for factory
Comment 5 Bernhard Wiedemann 2014-10-29 10:00:15 UTC
This is an autogenerated message for OBS integration:
This bug (903009) was mentioned in
https://build.opensuse.org/request/show/258788 Factory / aaa_base
Comment 10 Don Hughes 2014-11-14 19:59:58 UTC
It looks like this factory update was declined.  What is the work-around?
Comment 11 Thomas Blume 2014-11-17 08:34:16 UTC
(In reply to Don Hughes from comment #10)
> It looks like this factory update was declined.  What is the work-around?

I'm working on an implementation of user based tmpfiles removal directly into the systemd-tmpfiles binary.
This will replace the /usr/bin/systemd-tmpfiles-keep script.
Would you be willing to test when testpackages are available?
Comment 12 Don Hughes 2014-11-21 12:00:19 UTC
Sure.
Comment 13 Thomas Blume 2014-12-12 12:12:13 UTC
Created attachment 616898 [details]
proposed patch to enable user based exclude statements
Comment 14 Thomas Blume 2014-12-12 12:26:09 UTC
(In reply to Don Hughes from comment #12)
> Sure.

Test packages implementing user based exclude statements into systemd-tmpfiles are available here: 

https://build.opensuse.org/package/binaries/home:tsaupe/systemd?repository=openSUSE_13.2

you can now add usernames in the argument field of ignore statements (type x and X).
For single paths, it accepts one username, for example:

x /tmp/probefile3 - - - - testuser

would exclude probefile3 below /tmp if it is owned by testuser.
For paths using globs (e.g. ignoring directory contents) it supports a comma separated list of user names, e.g.:

X /tmp/* - - - - testuser3,testuser2

would exlude paths and directories, owned by the given users, below /tmp.
The content of subdirectories owned by the given users, won't be excluded, since capital X was given.

After creating some test entries in /etc/tmpfiles.d/tmp.conf, you can use the command:

systemd-tmpfiles --clean

in order to check them.
Please test and report feedback.
Comment 16 Don Hughes 2014-12-20 13:12:47 UTC
I tried to apply the updated systemd from https://build.opensuse.org/package/binaries/home:tsaupe/systemd?repository=openSUSE_13.2 but it requires libcrypt.so.20 which is not available for my 13.1 system.
Comment 17 Thomas Blume 2015-01-02 11:38:36 UTC
(In reply to Don Hughes from comment #16)
> I tried to apply the updated systemd from
> https://build.opensuse.org/package/binaries/home:tsaupe/
> systemd?repository=openSUSE_13.2 but it requires libcrypt.so.20 which is not
> available for my 13.1 system.

Owner based ignore statements have been implemented in systemd version 210 with OpenSUSE 13.2.
13.1 only ships systemd 208 and doesn't have it.
Please update to 13.2 in order to use this feature.
Comment 18 Bernhard Wiedemann 2015-01-26 15:00:07 UTC
This is an autogenerated message for OBS integration:
This bug (903009) was mentioned in
https://build.opensuse.org/request/show/282857 Factory / aaa_base
Comment 19 Dr. Werner Fink 2015-01-28 13:04:07 UTC
This fixed a long time ago
Comment 20 Swamp Workflow Management 2015-02-04 17:06:41 UTC
openSUSE-RU-2015:0214-1: An update that has 16 recommended fixes can now be installed.

Category: recommended (important)
Bug References: 897799,897803,898233,901481,902240,902901,903009,903963,904517,904828,906709,907318,907393,908476,910643,912030
CVE References: 
Sources used:
openSUSE 13.2 (src):    systemd-210-25.12.1, systemd-mini-210-25.12.1
Comment 21 Swamp Workflow Management 2015-03-31 14:06:38 UTC
SUSE-RU-2015:0638-1: An update that has 21 recommended fixes can now be installed.

Category: recommended (moderate)
Bug References: 897799,897803,898233,901481,902240,902901,903009,903963,904517,904828,905550,906709,907318,907393,908476,910315,910643,911347,912030,916420,918118
CVE References: 
Sources used:
SUSE Linux Enterprise Software Development Kit 12 (src):    aaa_base-13.2+git20140911.61c1681-3.1, systemd-210-55.2
SUSE Linux Enterprise Server 12 (src):    aaa_base-13.2+git20140911.61c1681-3.1, systemd-210-55.2
SUSE Linux Enterprise Desktop 12 (src):    aaa_base-13.2+git20140911.61c1681-3.1, systemd-210-55.2
Comment 22 Swamp Workflow Management 2015-11-12 13:13:28 UTC
openSUSE-RU-2015:1969-1: An update that has 21 recommended fixes can now be installed.

Category: recommended (moderate)
Bug References: 897799,897803,898233,901481,902240,902901,903009,903963,904517,904828,905550,906709,907318,907393,908476,910315,910643,911347,912030,916420,918118
CVE References: 
Sources used:
openSUSE Leap 42.1 (src):    aaa_base-13.2+git20140911.61c1681-7.1
Comment 23 Swamp Workflow Management 2016-02-03 14:41:59 UTC
openSUSE-RU-2016:0320-1: An update that has 146 recommended fixes can now be installed.

Category: recommended (moderate)
Bug References: 737690,742774,750845,818044,838475,841544,849870,852015,852021,852232,853293,854884,856389,856392,856858,857204,858864,859072,859365,860574,860937,861316,861489,863217,864745,864904,865834,866732,866933,867128,867663,867664,867840,868019,868230,868439,868931,869142,869603,872929,873432,873444,874665,875502,876587,876694,877021,877674,878525,880438,880732,881125,881559,881942,882393,882714,883565,884271,884403,885232,885288,886211,886599,886852,888178,888215,888612,889297,889357,890977,892096,892162,892300,893797,895087,896664,897799,897801,897803,898233,898240,898432,900558,901481,902240,902901,903009,903963,904214,904517,904828,905550,906709,906900,907318,907393,908476,909358,910643,911347,912030,912334,913517,916420,918118,919095,920195,921831,921898,921920,926169,927250,927457,928265,931388,932284,933365,933512,933521,933533,934077,934901,937512,937900,938908,939571,940264,941576,944132,944799,945282,947212,948458,948555,948705,949574,949683,949739,950510,951265,951663,953241,954336,954781,955635,961576
CVE References: 
Sources used:
openSUSE 13.1 (src):    systemd-210-40.1, systemd-mini-210-40.1