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.

Fleet units stuck after updating, with "No such file or directory." #1160

@scole-scea

Description

@scole-scea

I'd left a comment on coreos/bugs#8 about this, but @bcwaldon asked me to make a new issue here in fleet instead.

We've been seeing many services get stuck in an invalid/dead state, and when querying their status, see a "No such file or directory" error.

My testcase is here: https://github.com/scole-scea/coreos_service_bug, but the TL;DR version is that services linked by Wants= wind up in this state:

scole@scole-kobold:~/devops/issue8 (master)$ fleetctl status other-helper@2.service
● other-helper@2.service
   Loaded: not-found (Reason: No such file or directory)
   Active: inactive (dead) since Fri 2015-03-20 20:11:16 UTC; 2min 53s ago
 Main PID: 1593
   CGroup: /system.slice/system-other\x2dhelper.slice/other-helper@2.service
           ├─1593 /bin/bash -c while true; do sleep 120; done
           └─1743 sleep 120

Mar 20 20:10:31 ci8-host-a.c.ace-ripsaw-671.internal systemd[1]: Starting CoreOS/bugs/issues/8 helper service...
Mar 20 20:10:31 ci8-host-a.c.ace-ripsaw-671.internal systemd[1]: Started CoreOS/bugs/issues/8 helper service.
Mar 20 20:11:16 ci8-host-a.c.ace-ripsaw-671.internal systemd[1]: Stopping CoreOS/bugs/issues/8 helper service...
Mar 20 20:11:16 ci8-host-a.c.ace-ripsaw-671.internal systemd[1]: Stopped CoreOS/bugs/issues/8 helper service.
Mar 20 20:11:20 ci8-host-a.c.ace-ripsaw-671.internal systemd[1]: Cannot add dependency job for unit other-helper@2.service, ignoring: Unit other-helper@2.service failed to load: No such file or directory.
scole@scole-kobold:~/devops/issue8 (master)$ 

I'm about to begin testing with the workaround from https://gist.github.com/sukrit007/574bfb21fea7bdf1711f, which looks promising, in initial testing.

It's also highly likely, based on reading the comments and looking at the errors, that this is related to #1158.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions