Skip to content
This repository was archived by the owner on Jan 30, 2020. It is now read-only.
This repository was archived by the owner on Jan 30, 2020. It is now read-only.

Periodic failures due to "No such file or directory" #900

@bcwaldon

Description

@bcwaldon

Playing around with deis, I noticed that sometimes when you deis scale up, some of the containers wouldn't launch. Digging through the logs, I found this:

Sep 15 18:19:17 deis-1 fleetd[579]: INFO manager.go:222: Writing systemd unit madras-stickpin_v3.cmd.10-announce.service (1235b)
Sep 15 18:19:17 deis-1 fleetd[579]: INFO reconcile.go:274: AgentReconciler completed task: type=LoadUnit job=madras-stickpin_v3.cmd.10-announce.service reason="unit scheduled here but not loaded"
Sep 15 18:19:17 deis-1 fleetd[579]: ERROR manager.go:113: Failed to start systemd unit madras-stickpin_v3.cmd.10-announce.service: Unit madras-stickpin_v3.cmd.10.service failed to load: No such file or director
y.
Sep 15 18:19:17 deis-1 fleetd[579]: INFO reconcile.go:274: AgentReconciler completed task: type=StartUnit job=madras-stickpin_v3.cmd.10-announce.service reason="unit currently loaded but desired state is launch
ed"

Manually calling systemctl start madras-stickpin_v3.cmd.10-announce.service worked fine, so clearly there's some race condition here between writing the file to disk and starting it in systemd.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions