-
Notifications
You must be signed in to change notification settings - Fork 302
unit with lengthy deactivation procedure remains inactive (No such file or directory bug) #1158
Comments
Just curious, is it possible to write a unit test to detect this error? (I guess that would require a mock dbus api?) |
It would likely be difficult to reproduce this without testing against an actual systemd instance. However, we do already have a functional testing platform against which we can design a repeatable test case.
|
Is this issue also related to this: #1159 |
+1 to this. Currently running Deis and this sporadically occurs when it is scaling (scheduling units in fleet). Presently am manually resolving by logging in to each box and issuing systemctl daemon-reload then systemctl start for each failed unit. |
@wsimmonds: The hack at https://gist.github.com/scole-scea/177a367c51d0b93d51f6 may be a useful workaround for your issue. (It's automation for what you're doing by hand.) |
Great news! What's the ETA for the next alpha build? |
Just merged the update into github.com/coreos/coreos-overlay, and I believe the next Alpha is slated for Thursday. |
Is it possible to test this before the new alpha is released? I tried manually overwriting the binaries but got this error:
|
You can try this out with a systemd dropin. What this does is append/overwrite just part of the fleet unit on disk. After copying the binary on disk somewhere:
or just create
To revert back, just remove
|
FWIW, I'm pretty new to this all, and couldn't get the append/overwrite method @robszumski suggested to work (I kept getting a
Followup question: now that I'm using the 0.9.2 version of
Thanks! |
@PaulCapestany Sorry about that, it was appending two
I've updated my example above. Everyone else, let me know if this works, or you can create a entirely new file like the post above. That version warning is there because in the early days of fleet the version on the client (like your laptop) had to match what was on the server for it to function correctly. This change didn't impact anything compatibility-wise so it is safe to ignore. |
This commit introduces a systemd unit to upgrade fleet to 0.9.2 before the daemon is started. This is intended to address coreos/fleet#1158 which was a regression from fixes introduced in fleet 0.9.1, which is included for the first time in CoreOS 607.0.0.
This commit introduces a systemd unit to upgrade fleet to 0.9.2 before the daemon is started. This is intended to address coreos/fleet#1158 which was a regression from fixes introduced in fleet 0.9.1, which is included for the first time in CoreOS 607.0.0.
This commit introduces a systemd unit to upgrade fleet to 0.9.2 before the daemon is started. This is intended to address coreos/fleet#1158 which was a regression from fixes introduced in fleet 0.9.1, which is included for the first time in CoreOS 607.0.0.
I'm scheduling the following units
bar.service
andbaz.service
to a single-node cluster:First, start the two units:
Check the status of fleet and systemd:
Everything is OK. Now unload the units:
fleetctl stops reporting state for the units immediately, but
baz.service
is stilldeactivating
. Now start the two units again beforebaz.service
finishes itsExecStop
:Check the status of fleet and systemd immediately:
baz.service
is still not done deactivating, but oddly enough, it's stillnot-found
. Checking the status after deactivation is complete:Now
baz.service
isinactive
. Given that I just calledfleetctl start
on it, though, I would expect it to beactive
. Checking the logs, I see the dreadedNo such file or directory
error (fifth from the bottom):The text was updated successfully, but these errors were encountered: