Skip to content
This repository has been archived by the owner on Oct 16, 2020. It is now read-only.

CoreOS stable (1068.8.0) The unit files have no [Install] section. #1512

Closed
Jenkler opened this issue Aug 10, 2016 · 6 comments
Closed

CoreOS stable (1068.8.0) The unit files have no [Install] section. #1512

Jenkler opened this issue Aug 10, 2016 · 6 comments

Comments

@Jenkler
Copy link

Jenkler commented Aug 10, 2016

Issue Report

Bug

I get this message even if I have the Install section. It worked fine in previous CoreOS version but when updated to CoreOS stable (1068.8.0) it broke. No changes made to the service file

I have:

[Install]
WantedBy=multi-user.target

In the file. What have changed in 1068.8.0 release?

everything works but i get this stupid error!

Created symlink from /etc/systemd/system/multi-user.target.wants/minecraft.service to /home/core/system/systemd/services/minecraft.service.
Created symlink from /etc/systemd/system/minecraft.service to /home/core/system/systemd/services/minecraft.service.
The unit files have no [Install] section. They are not meant to be enabled
using systemctl.
Possible reasons for having this kind of units are:

  1. A unit may be statically enabled by being symlinked from another unit's
    .wants/ or .requires/ directory.
  2. A unit's purpose may be to act as a helper for some other unit which has
    a requirement dependency on it.
  3. A unit may be started when needed via activation (socket, path, timer,
    D-Bus, udev, scripted systemctl call, ...).

CoreOS Version

CoreOS stable (1068.8.0)

Environment

Digital oceans standars VPS

Expected Behavior

No error

Actual Behavior

Error message

Reproduction Steps

Enable a service file from a non standard dir.

@mischief
Copy link

the message you see is actually a warning, not an error. as far as i can tell, it still works fine.

@mischief
Copy link

i'm assuming you updated from the previous stable version, 1010, which had systemd 225. now 1068 has systemd 229.

@Jenkler
Copy link
Author

Jenkler commented Aug 10, 2016

Thanks for the reply!

Yes, I know its a Warning :) But the warning is bogus ie that I have an install section.
Yes previous was 1010 and now I am at 1068.

Is there any way to disable this warning except piping everything to /dev/null. Should the Install section be different with systemd 229 ?

Everything worked as it should in 1010 :)

@dongsupark
Copy link

dongsupark commented Aug 11, 2016

Actually I have been looking into a similar issue, coreos/fleet#1655. My theory is that EnableUnitFiles became broken at some point between systemd v225 and v229, and this issue was already solved from upstream. See systemd/systemd@3de1521 , which is available since systemd v230. Just a guess. What I'm sure is only that it works again with systemd v231 + CoreOS 1122, the most recent developer image built by CoreOS SDK.

I can see that the current coreos-overlay has already updated systemd to v231, but that's not available even in the current CoreOS alpha 1122, where still systemd v229 is included. Either we should wait until systemd v231 could be available, or backport proper patches to coreos-overlay, i.e. sys-apps/systemd/systemd-229*.ebuild.

@Jenkler
Copy link
Author

Jenkler commented Aug 11, 2016

dongsupark <-- Sound like a good idea! Thanks for the info :)

@crawford
Copy link
Contributor

crawford commented Sep 6, 2016

Fixed by coreos/coreos-overlay#2164.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants