Troubleshooting
Every object the operator reconciles says what is wrong with it in its conditions. Start at the Company, and follow the first condition that is not True.
The Company’s Ready condition, when False, carries the reason of the first
of Accepted, RuntimeReady, Exposed and ConfigApplied that is not
True, and the message says what to do:
kubectl get crewlet -n acmekubectl get company acme -n acme \ -o jsonpath='{range .status.conditions[*]}{.type}={.status} {.reason}: {.message}{"\n"}{end}'kubectl get seats,units,llmproviders,mcpservers,integrations,schedules -n acme \ -o jsonpath='{range .items[*]}{.kind}/{.metadata.name}{range .status.conditions[?(@.status!="True")]} {.type}={.status} {.reason}: {.message}{end}{"\n"}{end}'kubectl events -n acme --for company/acmeWhere each one leads, below:
Each condition’s observedGeneration says which generation of the object it
describes; a condition older than metadata.generation has not caught up
with your last change yet.
Conditions and reasons
Section titled “Conditions and reasons”Company
Section titled “Company”| Condition | Status | Reason | What it means, and what to do |
|---|---|---|---|
Ready | True | Available | The engine runs the current revision and is reachable as the class asks. |
| False | Suspended | spec.suspend is set: the engine is stopped, its volume kept. | |
| False | ConfigPending | The engine runs and is exposed; the document of the Company’s current generation has not been reported applied yet. Wait a few seconds. | |
| False | any other | The reason of the first condition below that is not True. | |
Accepted | True | Valid | The class exists and the company is within its limits. |
| False | EngineClassNotFound | spec.engineClassName names no class, or it is unset and there is not exactly one class annotated crewlet.ai/is-default-class: "true". Create the class or name one. | |
| False | ClassNotAllowed | The class’s spec.allowedNamespaces does not select the Company’s namespace (or is not a valid selector; the message says which). Name another class, or have the platform label the namespace. | |
| False | LimitExceeded | The company has more Seats or MCPServers than the class’s limits allow. Remove some or move to a larger class. Nothing new is applied meanwhile. | |
RuntimeReady | True | PodsReady | The data pod runs the current template and is ready. |
| False | PodsNotReady | The data pod is missing, starting or failing its readiness check. See The data pod is not ready. | |
| False | Suspended | spec.suspend is set, and the engine’s pods are stopped. | |
| False | Suspending | spec.suspend is set, and the seat pods are still stopping; the data pod stops once they have. Seat pods finish the turn segments they run in their own process first, for up to their grace period; a seat’s Direct executor run on one ends with it. | |
| False | DowngradeRefused | The image asked for is an older version than the data was last written by; the engine migrates forward only. The pod keeps the newer image; every other change still applies. | |
| False | VersionOverrideNotAllowed | spec.runtime.version is set and the class’s engine.allowVersionOverride is not. | |
| False | KeyringInvalid | The <company>-keyring Secret is not a keyring the engine can open. The operator never rewrites it: repair it from a backup, keeping the key ids, and set crewlet.ai/active-key-id to the key that seals new writes. The pod is held as it is. | |
| False | KeyringMissing | The <company>-keyring Secret is gone while the company’s data StatefulSet or volume claims exist. A new keyring could not open the data, so none is generated. Restore the Secret from a backup, with its crewlet.ai/active-key-id annotation; or, to discard the data, delete the data volume claims, after which a new keyring is generated. The pod is held as it is. | |
| False | PreviousCompanyObjects | The keyring or tokens Secret of an earlier Company of the same name, deleted with deletionPolicy: Delete, has not been removed by the garbage collector yet. The pod starts once it is gone; nothing to do unless it stays, in which case check that the garbage collector runs. | |
| False | NameConflict | An object the operator writes for the Company (a Service, Secret, ConfigMap, ServiceAccount, StatefulSet, PodDisruptionBudget or NetworkPolicy named after it) exists and is someone else’s. The message names it. The operator never changes or adopts it: rename or delete it, or give the Company another name. The pod is held as it is. | |
| False | SecretNotFound | A Secret the pods are given values from is missing: one the class references (telemetry headers, podTemplate.spec.env) in the platform’s namespace, or the Company’s own object-store keys (spec.objects.credentialsSecretRef). The pod is held as it is. | |
| False | ObjectCredentialsInvalid | A key of the Company’s spec.objects.credentialsSecretRef holds a ${NAME} reference. The operator writes the object store’s keys into the engine’s crewlet.yaml as they are, and Crewlet replaces every reference there with a value of the pod’s environment, so the engine would reach the bucket with another key. The message names the Secret and the key, never the value: issue a key without one. The pod is held as it is. | |
| False | APITokensInvalid | <company>-api-tokens, as a platform supplied it, lacks a token or holds one shorter than 43 characters or outside base64, base64url and hex. Repair it, or delete it to have the operator generate it. The pod is held as it is. | |
| False | InsecureSignInNotAcknowledged | The class lets its companies allow sign-in with a password alone (spec.signIn.secondFactor: Optional), and the Company is reached at an address Crewlet does not read as loopback, which the message names: Crewlet refuses to start so without the class’s spec.signIn.acceptInsecure: true. The platform acknowledges it on the class or requires a second factor again (Two-step verification). The pod is held as it is. | |
| False | AddressRefused | An address the engine would be told it is reached at is one Crewlet refuses to start on; the message names it, its key in crewlet.yaml, and where it came from. In practice it is the class’s API route, whose host name template’s last label holds {{namespace}} or {{name}}, and the Company’s namespace is a number, such as 4711 or 0x1f, or its namespace or name makes one with the characters beside it (0x{{name}} for a Company named cafe), so the host’s last label is a number, which a browser reads as an IPv4 address. The platform ends the template in a domain of its own ({{name}}.{{namespace}}.crewlet.example.com), or the Company runs in a namespace of another name (Reach the API from elsewhere). A template that repeats {{name}} or {{namespace}} can also expand past the 2,048 characters Crewlet takes in an address: name each once. An address the Company states is refused by the API when it is written instead, unless it was admitted before the API refused it: the message then says to correct the Company’s field. An artifact origin that meets the dashboard’s is refused here too: give artifacts a domain of their own. The pod is held as it is. | |
| False | DataVolumeTooSmall | The data volume gives the engine an event stream, three quarters of it, under what a fresh node reserves on it, its state logs at their floors and, with the files in the stream’s own bucket, that bucket beside them. The class’s data.storage.size admits no less than 16Gi (12Gi with the files in S3), so this is a volume sized under an older floor, and the message names what to grow. A company that has its claim (one that kept it, or one created again over the claim a company deleted before kept) is told the volume and the claim: grow the claim to at least the size the message names, and the pod runs once the expansion lands. Until then it is held as it is, which keeps an engine that still starts on the volume running, though not one whose image has already moved to an engine that cannot reserve its state logs there. A new company made from a class stored before the floor rose has no claim yet and is told the class: set its spec.data.storage.size to at least that size, and the operator creates the company’s volume at that size. | |
Exposed | True | RouteAccepted | Every route the class asks for was accepted. When the message adds that the engine is told people reach it at http://localhost:8080, every link it gives a person, an invitation’s included, leads there through a port-forward: set the Company’s spec.exposure.dashboardBaseURL, or route the API (Where people reach the dashboard). |
| True | NoRoutes | The class routes nothing (webhooks None or External, API ClusterInternal, artifacts None). The message says the same about the dashboard’s address as under RouteAccepted. | |
| False | RouteNotAccepted | A Gateway has not attached the HTTPRoute, or the Ingress controller has not published an address. The message carries the controller’s own reason; a Gateway listener’s allowedRoutes that does not admit the tenant’s namespace is the usual cause. | |
| False | NameConflict | An HTTPRoute or Ingress of the route’s name (<company>-webhooks, <company>-api, <company>-artifacts) exists and is someone else’s; rename or delete it. | |
| False | GatewayAPINotInstalled | The class routes through Gateways and the cluster had no Gateway API when the operator started. Install it and restart the operator. | |
| False | PublicBaseURLMissing | The class’s webhooks mode is External and the Company has no spec.exposure.publicBaseURL. | |
| False | RouteNotHTTPS | No Gateway listener the artifacts route attaches to is HTTPS, so the data pod opens no artifact origin; add one with a certificate for the route’s host. | |
SecretsSynced | True | Synced | The engine’s secret store holds every referenced value. The message counts the values a tool server or a seat’s executor run may go without whose Secret or key does not exist, which the store does not hold, so the engine leaves each out (A key that may go without its value); names, in a sentence of its own, those the store keeps as they were for the revision the engine runs, because that revision reads them as required or is one whose reading the operator does not know (another document somebody else activated), or for the engine’s active revision, where that is one stored without a seal, which nobody can read while its nodes run the revision before it, each to go once a revision that lets it go runs; names, in another, those it keeps only for a revision an engine pod runs or would start on other than the fleet’s, or for a pod whose revisions the operator does not know, with the pods, each to go once no pod runs or would start on a revision that references it (The engine did not apply a revision); and, the Company having no ResolvedRefs, names the values of its own setup steps a run goes without, under a key a step’s optionalKeys lists, and a value of theirs that holds nothing under a key none lists, which every executor run starts without. |
| False | SecretNotFound | A referenced Secret or key is missing; the message names each. | |
| False | SecretTooLarge | A value is over the 64 KiB the store accepts. | |
| False | EngineUnavailable | Writing to the store failed; the message says why. Retried. | |
| False | NameConflict | A Secret <company>-secret-sync, where the operator keeps what it pushed, exists and is someone else’s. Rename or delete it; nothing is applied meanwhile. | |
| Unknown | NotManaged | The management policy keeps the operator out of the store (Observe; Seed once seeded). | |
SeatsPlaced | True | AllPoolsServing | Every pool an agent seat is placed in, data included, has a ready pod. Not part of Ready. |
| False | PoolEmpty | A pool with a seat has no ready pod: a Shared pool at zero replicas, a PerSeat seat’s pods down, or seat pods not created yet because the data pod is not ready. Their seats’ messages wait. See Seat pods do not run. | |
| False | PoolNotFound | An agent Seat is placed in a pool the Company does not declare, whose pods never start, so the seat does not run in it. A seat that ran elsewhere keeps running there (its Applied is PlacementPending); no pod runs any other. The message names each such Seat and pool. Declare the pool, or place the Seat in another. | |
| False | RolloutBlocked | The seat pods keep their template until the data pod is ready on its new one; they roll right after it. | |
| False | SeatPoolsNotAllowed | The class does not allow seat pools, so the operator runs none, and the seats placed in them run nowhere. | |
| False | PoolCapacityExceeded | The Shared pools’ replicas alone pass the class’s seatPools.maxPods; the operator keeps the seat pods as they are and starts none. Lower the replicas. | |
| False | Suspended | The Company is suspended. | |
EngineHealthy | True | NoAlarms | No pod of the engine raises an alarm. |
| False | Alarms | A pod of the engine raises alarms, a data pod or a seat pod; the message says how many on how many pods and names the one standing longest and its pod. backup_age and trim_blocked mean it has no recent verified backup and trims no log: see Backups. log_ceiling_short on the log executor means the company’s seats outgrow it: see The executor log is too small for a week of turns. | |
| Unknown | AlarmsNotReported | A pod, named in the message, has not evaluated its alarms yet, or the engine’s fleet could not be read. | |
IdentityClaimed | True | PersonEnrolled | A person has joined the company. Not part of Ready. |
| False | Unclaimed | Nobody has joined the company yet: the engine signs nobody in until a person is invited or added onto a Human seat. The message names the seats and the Secret holding the access token to do it with. The operator asks the engine again every 30 seconds while it reads so. | |
| False | NoHumanSeat | Nobody can join: the company the engine runs has no Human seat. Add a Seat of kind Human for each person who signs in. | |
| Unknown | IdentityNotReported | The engine could not read its identity directory, did not say, or could not be asked. | |
ConfigApplied | True | Applied | The engine runs the rendered document: it reports the epoch of the revision status.config.revisionID names applied. |
| True | DriftCorrected | Under Enforce, someone changed the document in the engine and the operator applied the rendered one over it. A Drifted event names what differed. | |
| True | InSync | Under Observe, the engine runs exactly the rendered document. | |
| True | Seeded | Under Seed, the engine has a document and owns it from now on. | |
| False | RefNotFound, Cycle, Conflict, ReferenceNotAllowed, HumanSeat, AgentSeat, SecretNotFound, SecretTooLarge, PerSeatNotAllowed, HarnessAuthNotPortable, OptionalKeyUnused | An object of the company keeps the document from rendering. The object at fault reports the same reason on Applied; fix it there (What blocks a document). Meanwhile, under Enforce, the operator still takes out of the engine’s secret store the value of a deleted Secret the document lets go without, and activates the running revision again so the engine reads the store without it, with a Reactivated event, where the running revision lets the value go too, or a Warning Reactivated when the revision activated again is not the document it read, or when its request failed and another document, activated after the deletion, runs instead, and it activated nothing again; one that reads it as required, or another document somebody else activated, keeps it until the next document runs, with a SecretKept event, the only report of it here, since the Secrets are not read (A key that may go without its value). | |
| False | NameConflict | The Secret <company>-secret-sync, where the operator keeps what it pushed to the engine’s store, exists and is someone else’s; SecretsSynced says the same. Rename or delete it; nothing is applied meanwhile. | |
| False | SeatPoolsNotAllowed | The Company declares spec.topology.seatPools, and its class’s seatPools.policy is not Allowed. Remove the pools, or run the company with a class that allows them. | |
| False | PoolCapacityExceeded | The company’s seat pods would number more than its class’s seatPools.maxPods: its Shared pools’ replicas alone (the message says so; lower them), or with the pods of its PerSeat seats, each of which reports it too. | |
| False | Invalid | The engine’s dry run refused the document, in its own words, every problem in this message. A problem at a place a part rendered (a Seat, Unit, LLMProvider, MCPServer, Integration or Schedule) is also reported on that part, as Applied=False Invalid; one at a place the Company renders itself (its own fields, spec.embeddings, spec.sandbox and its setup steps) is in this message alone. A document the engine refuses for its size (413 body_too_large) is reported here alone too, the message naming the sizes the engine measured; see The document is too large. | |
| False | Drifted | Under Observe, the engine runs another document; the message names the places that differ. | |
| False | Applying | The operator activated the revision and the engine has not applied it yet; it runs the previous one meanwhile. Usually gone within seconds; it turns into ApplyFailed when the engine fails the revision or has not applied it 72 seconds after the write, or after the operator found it running where it adopts a revision it did not write. | |
| False | ApplyFailed | The engine’s first data pod, the one the operator reaches, did not apply the revision: it keeps running the one it ran before, and starts on the one its volume names if it restarts, the same one unless the engine is still moving it (the message says which), and the engine’s secret store keeps every value of either meanwhile. The message carries the engine’s status, its posture (isolated on a single node, shed or stuck beside peers that applied it) and its own account of the failure; see The engine did not apply a revision. | |
| False | EngineUnavailable | The operator cannot reach the engine, the engine does not know its token, or the engine answered 503: it asked to be asked again later (it is starting, cannot read the coordination store that holds the fleet’s revision, or met a condition of its own that clears, such as a store busy with other writes), met something on its side that waiting doesn’t clear, or stored the operator’s write and couldn’t confirm activating it. Looked at again every ten seconds, or sooner when the engine says when, and a write it couldn’t confirm is not sent again until a read shows it did not land; see The operator cannot reach the engine. | |
| False | WriteRefused | The engine refuses the operator’s own token a change to the document (403 config_managed): its api.auth.company_writers names other tokens. See The engine refuses a change to the document. | |
| False | NotGranted | The engine knows the operator’s token and will not let it make a request the operator needs (403): the token lacks the grant the message names, or the engine’s identity directory binds it to a seat the company no longer has. See The engine refuses a change to the document. | |
| False | SeatHeld | The document takes a human seat out of the company, or makes it an agent’s, while a person, a service account or an open invitation holds it in the engine (409 seat_held). The message names each seat and what holds it; the engine keeps running the revision it runs. See The engine refuses a change to the document. | |
| False | RevisionUnreadable | The engine cannot open the fleet’s revision of the company document (409 unreadable_revision, unreadable_fleet_revision, unknown_seal_revision, unsealed_revision or unsealed_fleet_revision), so the engine shows the document to nobody and takes no write built from it. No wait changes that: the operator writes nothing, and looks again when the data pods restart and every five minutes besides. A revision stored without a seal is reported under Seed and Observe; under Enforce the operator replaces it with the rendered document, and reports it only for one that lands after the operator’s read, until the next look ten seconds on replaces it. The message names the revision and quotes the engine’s account and remedy; see The engine cannot open its company document. |
EngineClass
Section titled “EngineClass”Accepted checks what the class’s schema cannot: that the objects it names
in other namespaces exist. It is advisory; Companies of a class that is not
accepted still run, and report what the problem does to them on their own
conditions. kubectl get engineclasses shows it.
| Condition | Status | Reason | What it means, and what to do |
|---|---|---|---|
Accepted | True | Valid | Every Secret, Secret key and Gateway the class names exists. |
| False | SecretNotFound | A Secret the class references (a platform model provider’s key, the telemetry headers, a pod environment value) does not exist or lacks the key; the message names each, never a value. Create it in the namespace the reference names. | |
| False | GatewayAPINotInstalled | The class routes through Gateways, and the cluster had no Gateway API when the operator started. Install it and restart the operator. | |
| False | GatewayNotFound | A Gateway a route names with its namespace does not exist. A parentRef without a namespace is in each Company’s namespace and is not checked here. |
Unit, Seat, LLMProvider, MCPServer, Integration, Schedule
Section titled “Unit, Seat, LLMProvider, MCPServer, Integration, Schedule”| Condition | Status | Reason | What it means, and what to do |
|---|---|---|---|
Accepted | True | Valid | Its Company exists and nothing collides with it. |
| False | CompanyNotFound | spec.companyRef names no Company in the namespace. | |
| False | CompanyNotAccepted | Its Company is not Accepted (its class is gone, or it is over its class’s limits); the message carries why. Nothing of the company is applied until it is. | |
| False | Conflict | Crewlet would read it and another object as one: two Seats with one handle, email address or contact account; two Integrations for one vendor; an LLMProvider named like a platform provider of the class; a Seat’s header for an HTTP tool server spelled unlike its Unit spells it (authorization beside Authorization), which Crewlet would send either of. The message names the other object. | |
ResolvedRefs | True | Resolved | Every object and Secret key it references exists; or the message names the values it gives a tool server or a seat’s executor run that it goes without, whose Secret or key does not exist or holds an empty value, under a key an optionalKeys list lets the engine leave out, and that list: the MCPServer’s for a value of a tool server’s, a Seat’s or Unit’s included (A key that may go without its value). A line that adds that the engine keeps the value it held for the revision it runs names a deleted Secret’s value that revision reads as required, or whose reading the operator does not know; one that says it keeps it for its active revision names one kept for a revision stored without a seal, which nobody can read while the nodes run the revision before it. Either goes once a revision that lets it go runs. It says so while a Secret another object requires holds the document too; while another object keeps the document from rendering, the Secrets are not read, and the message says only that every object it references exists. |
| False | RefNotFound | It references an object that does not exist (a Unit, a Seat, an LLMProvider, an MCPServer); the message names it. | |
| False | Cycle | A Unit’s parentRef chain leads back to itself. | |
| False | PoolNotFound | A Seat’s spec.placement.pool is neither data nor one of its Company’s spec.topology.seatPools. The seat is applied all the same, pinned to the label crewlet.ai/undeclared-pool, which no pod carries: it runs nowhere (Ready=False, PoolNotFound), or keeps running where it ran (Applied=False, PlacementPending), until the Company declares the pool or the Seat names another. Nothing else is held. | |
| False | HumanSeat | A Schedule’s target.seatRef or a Datadog Integration’s routeTo.seatRef names a Human seat, for whom the engine runs no turn, which holds the document. Name an Agent seat (a Schedule may target the person’s unit with fanOut: Each). | |
| False | AgentSeat | A Google Analytics, Google Ads, Search Console, Google Play, AdMob or AdSense Integration’s approverRefs names an Agent seat, which holds the document: only a person is asked to approve an agent’s held acts. Name Human seats alone. | |
| False | NoProvisioner | A Seat’s spec.sandbox.env names a credential the engine mints at a vendor, and its company has no Integration of that vendor with provisioning: Engine, so nothing mints the value: the seat’s executor runs start without it. The seat is applied all the same, and gets the value once the vendor’s Integration provisions. Give the value from a Secret, or provision the vendor with the engine (Connecting integrations). | |
| False | NotAnAccountID | A person’s Seat sets contact.atlassianAccount to something that is no Atlassian account id, such as an email address, while its company reaches Jira or Confluence on Atlassian Cloud, which names a person by account id alone: what the person does there reaches no seat, and an agent’s mention of them names nobody. The message names each product on Cloud. The seat is applied all the same. Give the person’s account id (A person’s accounts). | |
| False | ReferenceNotAllowed | A string it renders into the document holds a ${NAME} reference. The operator refuses every one it did not write, since in many fields the engine resolves one from its own secret store and environment (What blocks a document). The message names the place in the document. Give a credential with a Secret reference; in a sandbox command, write a variable as $NAME, which the sandbox’s shell expands. | |
| False | SecretNotFound | A Secret or key it references is missing, where it does not let a tool server or a seat’s executor run go without the value. | |
| False | SecretValueEmpty | A value it gives a tool server or a seat’s executor run is read from a Secret key that holds an empty value, under a key no optionalKeys lists, and it is the value the engine starts with (not one every seat replaces with its own). Crewlet starts no tool server with a value that resolves to nothing, so the server it is given to is not started, for the company or the seat (A tool server does not start); each of the seat’s executor runs starts without it, which the engine logs as a gap of the run (sandbox_env_unresolved). The object is applied all the same, with a Warning event. Give the key a value, or list it in the optionalKeys the message names: the MCPServer’s spec.optionalKeys for a server’s own value, the Seat’s spec.sandbox.optionalKeys or the step’s for a run’s (A value a run may go without). A Seat’s or a Unit’s value for a tool server is the identity the seat’s instance acts as, and the message offers no list for it. | |
| False | OptionalKeyUnused | An MCPServer’s optionalKeys names a key no value read from a Secret, or provisioned, is written under, not by its own env or headers nor by any Seat’s or Unit’s spec.mcp for it: none at all, or literal values only, which the message names. It leaves nothing out, and Crewlet refuses it, which holds the document. Remove the entry, name the key it was meant for (a Stdio server’s keys are compared as written, and the message names the spelling a key is written in), or read one of the literals from a Secret. Removing a Seat’s value, or the Seat, can cause it. | |
| False | SecretTooLarge | A value it references is over 64 KiB. | |
Applied | True | InRevision | It is in the revision the engine runs, which the message names; the condition’s observedGeneration is the generation that revision holds. |
| False | Invalid | The engine refused its part of the document; the message is the engine’s. One only the engine’s dry run sees: a Seat’s tokenBudget window below turn_engine.executor_min_budget_tokens (65000 unless the Company’s spec.engineConfig sets turn_engine), the room an executor launch needs, so the seat would park as starved before its first run (the Company’s own tokenBudget is refused on ConfigApplied the same way). Raise the ceiling, or lower the floor in spec.engineConfig. Another: a setup step’s file a box the step reaches refuses, such as an absolute path in a seat whose executor runs Direct (Where a seat’s executor runs). | |
| False | PerSeatNotAllowed | A Seat is placed in a PerSeat pool, and its Company’s class does not set seatPools.allowPerSeat. Place it in data or a Shared pool. | |
| False | PoolCapacityExceeded | A Seat is placed in a PerSeat pool, and its pods would take the company’s seat pods past the class’s seatPools.maxPods. The seats already running in pods of their own are admitted first, then the rest oldest first; the first seat that does not fit is refused, and every seat after it. Place it in a Shared pool, or lower a pool’s replicas. | |
| False | PlacementPending | The Seat moves to another pool, whose StatefulSet has no ready pod yet: it keeps running where the revision the engine runs pins it, and is moved once a pod of its new pool is ready. A pool at replicas: 0 never gets one, and neither does a pool the Company does not declare (ResolvedRefs=False, PoolNotFound). | |
| False | HarnessAuthNotPortable | A Seat is placed in a seat pool, and runs on an LLMProvider signed in with a credential bundle, which every seat pod would restore and refresh on its own. Sign the harness in with tokenSecretRef (Claude Code), auth.mode: APIKey or, for Hermes, Pi or OpenCode, its model provider’s key in env, in place of the bundle (Signing in), or place the seat in data. | |
| False | SeatHeld | A Human Seat turned Agent while a person, a service account or an open invitation holds the seat in the engine’s identity directory: the engine refuses the document until an admin of the company frees the seat, and the Company’s ConfigApplied says how (The engine refuses a change to the document). | |
| False | Blocked | It is fine, and another object keeps the document from being applied (a document is applied whole). Fix the object the Company’s ConfigApplied names. A part whose current generation already runs keeps True meanwhile. | |
| False | Applying | Its current generation is in a revision the engine is applying. | |
| False | ApplyFailed | Its current generation is in a revision the engine did not apply; the Company’s ConfigApplied says why. | |
| False | Drifted | Under Observe, the engine’s document differs from this object’s part. | |
| False | NotManaged | Under Seed, the engine owns the document; changes to this object are not applied. | |
Paused (Agent Seat) | True | SeatPaused | The engine holds the seat paused: it starts no new turn and its mail waits. The message and status.pause say who paused it, when and why. To let it work, set spec.paused: false (or, with spec.paused unset, resume it in the engine’s dashboard). |
| False | SeatRunning | The engine runs the seat. | |
| True or False | PauseNotManaged | The seat’s pause differs from spec.paused, and the Company’s policy is Observe or Seed, under which the operator changes no pause. | |
| Unknown | PauseUnknown | The engine may or may not have recorded the operator’s pause or resume, or did not answer; the operator asks again in ten seconds. | |
| Unknown | PauseRefused | The engine refused the operator’s pause or resume; the message is the engine’s. The operator asks again in ten seconds: a refusal for contention passes by itself. | |
Ready (agent Seat) | True | LeaseHeld | An engine pod holds the seat and runs it; status.placement.node names the pod. The message says so when the pod is not one of the seat’s StatefulSet yet: the engine moves it there once it runs the revision that places it. It names the provider and the harness the seat’s executor runs on, the pod its box is on, the providers a launch falls back to, and any in its chain that never run it. |
| False | Unplaced | No engine pod holds the seat; its messages wait. The message says why: the seat is not in the revision the engine runs yet (see Applied); its pool runs no pod (see the Company’s SeatsPlaced, and A seat runs nowhere); or a pod that may run it is up and the engine has not claimed it yet, which takes seconds. | |
| False | PoolNotFound | No engine pod holds the seat, and none can: its pool is not one the Company declares, so no pod carries the label it is pinned to (see ResolvedRefs). | |
| False | Suspended | The Company is suspended. | |
| Unknown | EngineUnavailable | The operator could not read the engine’s fleet; the message says why, and the Company’s ConfigApplied usually does too. status.placement.node is what the engine said last. | |
Healthy (Integration) | True | CheckPassed | The engine reports the vendor connected. |
| False | CheckFailed | The engine’s check against the vendor failed; the message carries why (a revoked token, a missing scope). | |
| False | NotExposed | The Company has no public address, so no webhook can reach it: the class’s webhooks mode is None. Mattermost and an Atlassian organization deliver no webhooks and never report it. |
The data pod is not ready
Section titled “The data pod is not ready”An engine is ready only once it runs a document, so a new company’s pod is
not ready until ConfigApplied is True. When ConfigApplied is True and
RuntimeReady stays False, read the engine’s log:
kubectl describe pod acme-data-0 -n acmekubectl logs acme-data-0 -n acme | grep -E 'WARN|ERROR' | tailkubectl logs acme-data-0 -n acme | grep -E 'api_bound|engine_recovered|api_listening'the broker refused to reserve the … log's ceiling, endinginsufficient storage resources available: the engine could not reserve what a fresh node keeps on its event stream. The stream is given three quarters of the data volume, and a fresh node reserves at least 12616466431 bytes of it, or 9462349824 when the class keeps its files in S3; the message names the figure it needed and breaks it down. The class’sdata.storage.sizeadmits no less than16Gi(12Giwith the files in S3), so this is a company whose volume was made smaller: under an older floor, or before an engine that keeps more on its stream. The operator holds such a company’s pods as they are (RuntimeReady=False DataVolumeTooSmall, above), which cannot stop a pod whose image moved under it from restarting. Grow its volume. A company made at the floor before Crewlet’s chat, Ask Crewlet and code host logs (12Gi, or9Giwith the files in S3) is one: the engine that adds them reserves them beside the logs the node already holds, whether or not the company uses them. Ask Crewlet’s log gives way to its 64 MiB floor and fits, and the chat log,CREWLET_CHAT_LOG, at its 1 GiB floor, finds no room (the broker refused to reserve the chat log's ceiling); grow its volume to the floor. Raise every EngineClass stored below the floor as well: each Company created under it gets a volume of its size, on which no fresh node boots, and the API refuses a change to the class’s spec until itsdata.storage.sizereaches the floor (with the files in S3, only a change of the size that leaves it below).config_apply_failed: the revision was stored but this node could not start it; the message says why. The engine keeps running the previous revision, and the Company reportsConfigApplied=False ApplyFailed(see The engine did not apply a revision).- The pod restarts (
kubectl get podshows restarts): the engine refused its own configuration at boot, and the first lines of the previous log say why (kubectl logs acme-data-0 -n acme --previous). Or its broker did not answer a request the boot waits on: the engine gives each up within a bound the startup window counts (a read of a state log, which it asks again while nobody answers and logs nothing for, after thirty seconds, or for a record thirty and the time its reply takes to be built and read, at most eleven seconds more), and the previous log ends oncrewlet:and the request nobody answered, such as a state log’sread "…"'s state. What the broker itself reported is in the previous log underqueue.nats.server(kubectl logs acme-data-0 -n acme --previous | grep queue.nats.server; The embedded broker’s own logs). - The pod restarts, its events saying
Startup probe failed, and the previous log has noengine_recoveredline: the recovery of what the volume holds took longer than the startup probe allows, and every restart starts it again. The window is 1,747 seconds (1,887 when the class keeps files in S3) plus six seconds per GiB of the volume; a disk that reads slower than that needs a longer one. Set the class’sdata.startupSeconds(up to a day), which rolls the data pods once, and let the next boot finish. A broker that does not answer is not this case: the window counts every bound the engine puts on a boot’s requests, so the engine ends such a boot itself, as the row above says. - The log has
engine_recoveredand noapi_listeningafter it: the engine has recovered what the volume holds and is starting what the company configures. It reads the company’s secrets first, and while the secret store does not answer it logssecret_store_unreadableand asks again for as long as it runs; then come its shared tool servers above all./healthanswers200there, so no probe restarts the pod, and a restart would wait on the same thing: the lines afterengine_recoveredsay what the engine is starting. A tool server that never answers is its MCPServer’s to fix (A tool server does not start). - The pod restarts after its log has
engine_recovered, and the previous log ends onthe secret store holds a value this node cannot open, naming the secret: a key was removed from<company>-keyringbefore what it sealed was sealed again under another. No engine of the company starts while its secret store holds a value its keyring cannot open, so its seat pods restart the same way, and no restart changes the answer. Put the key back in the Secret, keeping its id; the data pod rolls onto it and starts, and the seat pods follow it (The engine’s own Secrets). - The pod restarts, and the previous log refuses a setting of its
crewlet.yamlby name:"external_url" isn't a setting. Check the spelling and the block it's under, or, for a setting Crewlet has removed,`api.auth.bootstrap` was removedfollowed by what replaced it. The engine and the operator come from different points of Crewlet’smain. The operator writes the pod’screwlet.yamlin the settings of the engine it was tested against, and this engine refuses one of them: it is older than that engine and does not know the setting yet, or newer, and Crewlet has renamed or removed it since. The image the pod runs is the class’sengine.image, with the Company’sspec.runtime.versionas its tag when that is set. Run the engine the operator was tested against (Engine image): with a release of the operator, the engine image its notes name; with an operator built from a commit of this repository, a copy of Crewlet’smainimage of the day that commit’s CI ran, whose log names the Crewlet commit. A class that namesghcr.io/crewlet/crewlet:mainitself runs an engine newer than an operator built before Crewlet’s change: build the operator from this repository’s newestmaininstead, or move the class to the engine the operator was tested against. The data pod rolls to the image and starts. Pending: the volume claim is not bound (no default StorageClass, or the class’sstorageClassNamedoes not exist), or no node fits the class’s resources, tolerations or affinity.
Seat pods do not run
Section titled “Seat pods do not run”Seat pods are created, and gain replicas, only while the data pod is ready on
its current template, so a company whose data pod is not ready runs none;
start with The data pod is not ready. A seat
pod is ready once it has joined the company’s fleet and may claim seats; one
that runs and is not ready says why in the body of its /ready, which the
kubelet does not show. Ask the pod itself, and read its log:
kubectl port-forward -n acme pod/acme-seats-general-159f80d7-0 8080 &curl -s localhost:8080/ready# {"ready":false,"node":"acme-seats-general-159f80d7-0","configured":true,"draining":false,"posture":"serve","reason":"admission_withheld"}kubectl logs -n acme acme-seats-general-159f80d7-0reason | What it means for a seat pod |
|---|---|
starting | /health answers, and it is still building what the company configures, the company’s secrets first: while the secret store does not answer, its log has secret_store_unreadable and it asks again for as long as it runs, as a data pod does (The data pod is not ready). |
broker_unlinked | Its data path to the fleet’s JetStream, or its lease link, is down or unanswered; detail names which and why. See below. |
unconfigured | No company document has reached it yet: it has just joined. |
shed, stuck | It cannot apply the revision the data pod runs; its log has config_apply_failed. |
no_presence | It does not hold its presence lease, so the fleet does not count it. |
admission_withheld | No data pod has answered that its copy of the company’s records admits a seat (the data pod is starting, catching up, or unreachable), or the pod cannot serve the seats it holds. It claims nothing until then. |
A seat pod restarted every 21 minutes or so (22 when the class keeps files
in S3), its events saying Startup probe failed with connection refused
while its log shows it running, binds no
port for its probes: the engine it runs (the class’s engine.image, with the
Company’s spec.runtime.version as its tag when that is set) and the
operator come from different points of Crewlet’s main, older or newer than
the engine the operator was tested against. Run that engine, as for a data
pod that refuses a setting
(The data pod is not ready).
A seat pod that cannot join the data pod’s leaf listener within a minute
exits, and Kubernetes restarts it with a growing back-off: after a data pod
outage, a seat pod can take up to about five minutes to rejoin. A leaf that
never joins is usually stopped by a NetworkPolicy: <company>-broker admits
the company’s own seat pods to port 7422 of its data pod, and a policy of
yours that selects the data pod or the seat pods may refuse what it admits
by adding isolation of its own.
A seat pod’s leaf can also reach the data pod and be refused. Its log says
the same made no link to any member, naming the secrets.keys id it
presents, and the data pod logs broker_peer_refused with listener leaf
and presented unknown, at most once a minute; that line names the leaf’s
public nkey rather than the id. A seat pod presents a key derived from its
keyring’s active key, and a data pod admits only the keys of the keyring it
started with. The operator moves the seat pods onto a new keyring only once
every data pod is ready on it, so this follows an edit of <company>-keyring
that removed the key the seat pods presented: the data pods rolled onto a
keyring without it, and each seat pod is refused until it rolls onto the new
keyring after them. A key added and made active in one edit does not cause
it. The data pods do not boot at all while the secret store holds a value
sealed under the removed key
(The engine’s own Secrets).
In a cluster with a service mesh, a seat pod that makes no link may have its
dial still captured by its sidecar while the data pod’s listener is not. The operator leaves port 7422
out of a mesh’s capture on both ends (Out of a service mesh’s
capture), and the
upgrade that added that rolls the data pod first: until the seat pods roll
after it, a seat pod’s sidecar sends its mutual TLS to a listener that reads
plain TCP, and each seat pod turns unready (broker_unlinked) and restarts.
They roll once the data pod is ready on its new template, and nothing needs
doing. One that still fails after it carries a skip list the mesh does not
read: an installation-wide exclusion the pod’s annotation replaced, or an
Istio includeInboundPorts on the class that names 7422.
Engine pods that are never created, the StatefulSet’s events naming an
admission policy or webhook that refuses config.linkerd.io/skip-inbound-ports,
skip-outbound-ports or Istio’s excludeInboundPorts or
excludeOutboundPorts, meet a cluster policy that forbids skipping a mesh’s
capture (Kyverno’s prevent-linkerd-port-skipping, say). The operator
writes those annotations on every engine pod, whether or not the cluster
runs the mesh: exempt the company’s namespace from that policy. Istio’s own
injector refuses a pod whose list holds an entry that is not a port, which
comes from the class’s podTemplate.metadata.annotations: correct it there.
After a pool is removed, its StatefulSet keeps running until a revision that
pins no seat to it runs: SeatsPlaced names it, and the Company’s
status.config.placement says what the running revision pins.
A seat runs nowhere
Section titled “A seat runs nowhere”A Seat with Ready=False Unplaced is held by no engine pod, and its messages
wait for one. Its status.placement says which pool and StatefulSet should
run it; the engine’s own view is its GET /fleet, with the API token
(nodes lists every engine pod with its labels, seats the holder of every
seat, unplaceable the seats no running pod may take):
kubectl get seat triage -n acme -o jsonpath='{.status.placement}{"\n"}'kubectl get statefulset acme-seats-general-159f80d7 -n acme- The StatefulSet has no ready pod: a Shared pool at zero replicas, a PerSeat seat’s pod restarting, or seat pods not started because the data pod is not ready (Seat pods do not run). The seat runs once a pod does.
- The pods run, and the message says the engine has not claimed it yet: a
pod that has just started claims no seat before a data pod reports its copy
of the company current, then a few every five seconds; a seat whose pod
was killed waits out its 45-second lease. The operator looks again every
fifteen seconds while this lasts. After three minutes it is no longer
settling: read the pods’ logs for
seats_unplaceableand for errors joining the data pod. - The seat is not in the revision the engine runs: its
Appliedcondition says why.
The operator cannot reach the engine
Section titled “The operator cannot reach the engine”ConfigApplied=False EngineUnavailable while the pod runs means the operator’s
requests to http://<company>-data-0.<company>-data.<namespace>.svc:8080 fail:
- A NetworkPolicy of your own refuses the operator’s namespace. The operator’s own policy admits it; check others selecting the data pods.
- The operator’s pods do not carry the labels its
--operator-pod-labelsflag names (the default isapp.kubernetes.io/name=crewlet-operator, control-plane=controller-manager), so the engine’s policy does not admit them: a chartnameOverridechanges the first. - The operator runs outside the cluster (
make run): it cannot resolve the pod’s DNS name. - The
<company>-api-tokensSecret was changed by hand and the pod has not restarted yet: it rolls on its own once the operator sees the change. - The engine is still starting: the message names
starting. Until the engine serves, it answers every request but its probes503 starting, with aRetry-Afterthe operator follows, soConfigAppliedturns once the boot is over. One that never ends is The data pod is not ready. - The engine cannot read its coordination store, which holds the activation
pointer naming the fleet’s revision:
GET /configanswers503 unavailable, with aRetry-Afterthe operator follows, rather than a document it cannot vouch for, and the engine logsconfig_request_unavailable. It clears once the engine’s broker is back; the data pod’s log says why it is not. - The engine met a condition of its own that clears: its store busy with
other writes, closed while the node adopts a peer’s snapshot or shuts
down, or a request out of time.
/configand/secretsanswer503 unavailablewith aRetry-Afterthe operator follows, and the condition in the engine’s words, which the message quotes. - The engine met something on its side that waiting doesn’t clear. It
answers
503with noRetry-After, saying waiting won’t change that and, where it can tell, who has to act, and the condition says so before it quotes the engine, rather than promise a retry that changes nothing. The engine’s log names what it met. The operator keeps asking every ten seconds, soConfigAppliedturns once that is cleared in the engine. - The engine stored the operator’s write and couldn’t confirm that it
activated it: the message names the revision. The engine may run it or may
not. Nothing needs doing: the operator keeps the write in
status.config.unconfirmed, reads which revision the engine runs before it writes again, and records the write as its own if the engine runs it, with aNormaleventActivatedand, where it replaced a revision somebody else wrote,ConfigApplied=True DriftCorrectedand a WarningDrifted, or one the engine stores without a seal,ConfigApplied=True Appliednaming it and a WarningRevisionUnreadable, as for a write the engine confirmed, dated when it found it running. The message of the write it could not confirm names such a revision already. It never writes the document a second time on top of one that landed, nor on top of one that landed and was activated again before it looked (a reload): that revision activated after every value the write was made with, so where it is the rendered document the engine runs it with them, and it is in sync. UnderSeeda write into an engine that had no document is kept instatus.config.overtakenonce another revision runs, and reported as the seed, whatever revision runs now. A request to activate the operator’s own revision again, for the value of a deleted Secret or one written since, that the engine stored and couldn’t confirm is kept the same way, whatever the operator could read back after it, beside theSecretWithdrawalFailedorSecretRefreshFailedWarning, and recorded as the operator’s once it runs that revision’s document; one found running another document reloaded a revision somebody activated before the request landed, and is not the operator’s.
Nobody can sign in
Section titled “Nobody can sign in”A new company has nobody in it, and the engine signs nobody in until a person
is invited or added onto a Human seat: the Company reports
IdentityClaimed=False Unclaimed, naming its Human seats and the Secret of
the access token to do it with. Sign in to the dashboard with that token and
add yourself on your seat, or invite yourself with crewlet iam
(Bringing people in). NoHumanSeat instead
means the company has no Human seat to put anybody on: add a Seat of kind
Human first.
A person who has joined and cannot sign in is usually at the wrong address.
The engine accepts a sign-in only from the origin of
status.endpoints.dashboardBaseURL: through a port-forward, exactly
http://localhost:8080, and not 127.0.0.1 or another local port
(Where people sign in). A link the engine
sent (an invitation, a password link) leads to that address too.
The engine refuses a change to the document
Section titled “The engine refuses a change to the document”Under Enforce the engine lets only the operator’s token change the company
document: a change made with any other credential, the published access
token and a person signed in at the dashboard included, is answered
403 config_managed, and the engine’s dashboard shows the document
read-only. That is the policy working, not a fault. Change the
objects, or switch the Company to Observe or Seed to hand the document to
the dashboard (Choosing a management policy); the
switch restarts the data pod, and the dashboard may edit again once it has.
ConfigApplied=False WriteRefused is the other direction: the engine refuses
the operator’s own token, so its crewlet.yaml names writers the operator did
not render. The operator renders <company>-bootstrap from the Company alone
and writes it back when it differs, so this is an engine that has not
restarted since the Secret changed, or an image whose entrypoint reads another
crewlet.yaml. The message names the writers the engine reported.
kubectl get secret acme-bootstrap -n acme -o jsonpath='{.data.crewlet\.yaml}' | base64 -d | grep -A2 company_writerskubectl rollout restart statefulset/acme-data -n acmeConfigApplied=False NotGranted is the engine refusing the operator’s token
a request for want of authority rather than for the document’s sake. The
message says which of two things it is:
- The token lacks a grant, which the message names (
admin). The operator renders its token withadminin<company>-bootstrap, so this too is an engine that runs acrewlet.yamlthe operator did not render: check the token’sgrantsthere and restart the data pod as above. - The engine’s identity directory binds the token, which it knows as
token:operator, to a seat the company no longer has, so every request made with it is refused (403 seat_unavailable). Someone made the token a service account on a seat; an admin of the company unbinds it in the engine’s dashboard or withcrewlet iam unbind. The operator’s token needs no seat.
ConfigApplied=False SeatHeld is a valid document the engine will not
apply yet: it removes a human seat, or turns a Human Seat into an Agent one,
while something in the engine’s identity directory holds that seat. A person
holds a human seat for as long as they are in the company, an open invitation
holds the seat it invites to, and a service account may be bound to one. The
engine keeps running the revision it runs, and the operator tries again every
ten seconds. When it removes a value from the store meanwhile, the value of a
deleted Secret that revision lets go without, it activates that revision
again so that the engine reads the store without it, as for any document the
engine refuses (step 3 of
What one reconcile does).
The message names each seat and what kind of thing holds it, never who; a
Seat that still exists and is held reports Applied=False SeatHeld too. An admin of the company frees each seat first, in the engine’s
dashboard or with crewlet iam:
moves the person to another human seat or removes them, unbinds the service
account, or cancels the invitation. crewlet iam seats lists what holds each
seat. The operator does neither for you: whoever holds a seat is a person, or
something a person set up. Or keep the seat: restore its Seat as a Human seat.
The engine cannot open its company document
Section titled “The engine cannot open its company document”ConfigApplied=False RevisionUnreadable means the engine cannot open the
fleet’s revision of the company document. The engine refuses every read of the
document with 409, and every write built from it too; it keeps running what
it applied, and shows no document until it can open that revision. No wait
changes that. A revision that is sealed, under a key the keyring lacks or in a
form the engine’s build does not read, is somebody’s document, which no write
replaces, since that would discard it unread: nothing the operator sends opens
it, so the operator writes nothing and does not ask again every ten seconds.
It looks again when the data pods restart, and every five minutes besides. The
message names the revision, quotes the engine’s account and its remedy, and
says which of five it is:
unreadable_revision: the revision is sealed under a key the data pod’s keyring does not hold. The keyring is the Secret<company>-keyring, which the operator generates once and never rewrites, so a key gone from it was taken out by somebody else, or the Secret was restored from an older backup than the volumes. Put the key back in that Secret from the backup kept with the volumes, with itscrewlet.ai/active-key-idannotation as it was: the data pods restart with it, and their restart runs the reconcile again.unreadable_fleet_revision: the revision the fleet’s activation pointer names is sealed under a key the data pod’s keyring was never given. Every pod of the company has its keyring from<company>-keyring, so the data pod lacks a key the Secret gained after it started, and takes it when it restarts (the pods roll on their own once the operator sees the change), or a pod that held the key sealed a revision under it and the key has since gone from the Secret: put it back as above.unknown_seal_revision: the revision, the data pod’s own copy or the one the fleet’s activation pointer names, is sealed in a form the engine’s build does not read, most likely by a newer build of Crewlet than the data pod runs. The keyring is not at fault, and putting a key back changes nothing: run the data pods on the build that sealed it, the engine image their EngineClass names (with the Company’sspec.runtime.versionas its tag where the class allows that). A data pod still rolling onto that image takes it when it restarts; one taken back to an older image than it ran needs the newer one again. The engine’s hint says which.unsealed_revision: the revision is stored without a seal, which no keyring opens and no engine reads; only an engine older than the keyring every engine now requires stored one.unsealed_fleet_revision: the revision on the fleet’s activation pointer carries no seal. Every engine seals what it activates, so it was put there from outside the fleet.
A revision without a seal is the one the engine lets a write replace: a whole
document (PUT /config), which reads nothing from it, as the engine’s hint
says. Under Enforce the operator does exactly that, as soon as nothing holds
the rendered document: it writes the rendered document over the revision,
conditioned on it, and reports ConfigApplied=True Applied naming the
revision it replaced, with a Warning RevisionUnreadable event saying so. A
document held for a missing Secret, refused by the engine or by the render
keeps the revision in place, and ConfigApplied carries the hold’s own
reason. Nothing is read from the revision, so nothing in the engine’s secret
store is deleted before the write: the engine’s nodes go on running, and boot
again when they restart, the revision they applied before it, which may read
any value the store holds; the sync after the write removes what the
replacement lets go. So under Enforce, RevisionUnreadable reports a
revision without a seal only where one lands after the operator’s read, until
its next look ten seconds on replaces it. Under Seed and Observe, which
write no document over the fleet’s revision, it stays reported: an admin of
the company replaces it with a whole document, or the Company’s
managementPolicy is set to Enforce, under which the operator replaces it
with the rendered one. Should the rendered document drop a human seat somebody
holds in the engine, the replacement is refused as any write is
(SeatHeld), naming every
seat the document does not keep as a human seat that a person, a service
account or an open invitation holds, since nobody can read which seats the
revision it replaces had.
To see which keys the keyring holds without printing them:
kubectl get secret acme-keyring -n acme -o go-template='{{range $k, $v := .data}}{{$k}}{{"\n"}}{{end}}'kubectl get events -n acme --field-selector involvedObject.name=acme,reason=RevisionUnreadablekubectl logs acme-data-0 -n acme | grep config_revision_unreadable | tailThe document is too large
Section titled “The document is too large”ConfigApplied=False Invalid whose message starts The engine refused the
rendered document for its size is a document the engine will not store,
however long the operator waits. The operator renders the Company and every
object of the company into one company document, and the engine hands each
revision to every node sealed, as its activation’s body, one value of its
coordination store, which holds a value only up to a bound
(What one key holds).
The engine refuses the write, and the dry run before it, with
413 body_too_large before it stores anything, and the message names what
it measured:
- the document as the engine stores it, its own encoding of what the operator sent, which can be larger than the YAML; the document sealed, a third larger; and the most one value holds; or
- the bytes the operator sent, where the document is past what the engine reads of one request.
No object is at fault, so no part reports Invalid: a part whose change
waits on the document reports Blocked. The engine keeps running the
revision it runs. No wait changes the refusal, so the operator does not
retry it on a timer, as it does an engine that cannot answer: a change to an
object of the company renders the document again. Make the document
smaller: shorten the longest texts the
Company and its Seats, Units, LLMProviders, MCPServers, Integrations and
Schedules carry, or remove objects the company can do without. Meanwhile the
value of a deleted Secret the running revision lets go without still goes,
and a value somebody rotated still reaches it: the running revision is
activated again for either, as for any document the engine refuses (step 3
of What one reconcile does).
Should the engine refuse that activation for the running document’s size
too, a Warning SecretWithdrawalFailed or SecretRefreshFailed names the
sizes, and the operator asks again every five minutes, until the document
changes.
kubectl get company acme -n acme \ -o jsonpath='{.status.conditions[?(@.type=="ConfigApplied")].message}{"\n"}'kubectl get events -n acme --field-selector involvedObject.name=acme,reason=InvalidThe engine did not apply a revision
Section titled “The engine did not apply a revision”ConfigApplied=False ApplyFailed means the engine activated a revision of
the rendered document and then could not apply it, or never did: the revision
the operator wrote, or one with the same document it found running and
adopted without a write (a person’s crewlet config reload, or the engine’s
own reload after it minted a credential). The revision stays the fleet’s:
GET /config answers it, and every pod tries it again. A pod that did not
apply it keeps serving the revision it ran before, and a data pod starts on
the revision its volume names if it restarts, that same one unless the
engine is still moving it (a seat pod starts on nothing and tries the
fleet’s revision again); the dry run accepted the document, so what failed
is something only applying it meets on this engine: a subsystem it could not
start (Worklet, the code sandbox, the inbound edge), a value it resolves
when the revision activates, or a rule that needs the data pod’s own
configuration. The condition’s message carries the engine’s account of the
failure, its status and its posture:
isolated: the only node, or every node, failed the revision. It keeps serving and stays ready, and retries the revision three times at most.shedorstuck: peers applied it and this node cannot, or its apply has run longer than 45 seconds while they did; it refuses new work and fails/ready(stuckonce out of retries). On a data pod the peers are the company’s seat pods, which apply the revision too.
The engine’s /fleet gives each pod the revision it last attempted
(config_revision_id), the revision it runs (config_serving_revision_id)
and the revision it would start on if it restarted (config_boot_revision_id):
the first two differ on a pod that refused the fleet’s revision, and the last
two only while the engine retries moving what a data pod starts on, which a
seat pod, whose store is discarded at every start, never names. ApplyFailed
is the account of the data pod the operator reaches, so a seat pod that
refuses a revision the data pod applied leaves ConfigApplied as it was: it
shows in /fleet, and in SecretsSynced while the store keeps a value for
it. For as long as a pod runs another revision, or would start on one, the
operator keeps in the engine’s secret store every value that revision
references, the value of a Secret since deleted included: the pod, a seat
pod as much as a data pod, reads the store again at every attempt to apply a
revision and resolves the revision it runs from what it read, and a data pod
does not start on a revision without a value it requires. The Company’s
SecretsSynced names those values and the pods, and the values go once no
pod runs or would start on a revision that references them. A pod that runs
no company and would start on none keeps no value back, such as a seat pod
that refused the revision after a restart: a seat pod always starts on
nothing. So does a seat pod /fleet does not list whose engine container
is not running, Pending where no node has room for it or restarting: it runs
nothing, and starts on nothing. A pod whose revisions the operator cannot
learn keeps every value, and SecretsSynced names it once, as one whose
revision the operator does not know
(What one reconcile does):
- A data pod
/fleetdoes not list, until/fleetlists it again, whether itsenginecontainer runs (it runs while the engine's fleet does not list it) or not (it is not running, and the engine's fleet does not say which revision its volume starts it on). It moves the revision its volume starts it on after every apply that succeeds, so what the operator saw of it before does not say what it runs or starts on now. So every deletion waits while a data pod is down, Pending or cut off from the fleet, and the values go once it is back and/fleetlists it. In v1alpha1 the one data pod is the one the operator reaches: when/fleetanswers at all, it lists that pod. - A seat pod whose
enginecontainer runs while/fleetdoes not list it, cut off from the data pod, until/fleetlists it again. A Pod on a node whose kubelet stopped reporting staysRunning, so it holds every deletion back until the Pod is removed: once the node is gone for good, deleting its Node object removes the Pod. - A pod that has not yet recorded an attempt to apply a revision.
Read the log for config_apply_failed, fix the cause in the objects (or in
the class, for the pod’s own configuration), and the next change is a new
revision the engine tries afresh. When the message says the engine
has neither applied the revision nor concluded that it failed within 72
seconds (its posture still reads wait), the engine is not polling its
activation pointer at all, or an apply hangs with no peer to compare it
against; its log says which, and a restart of the data pod is the usual
remedy. The 72 seconds run from status.config.appliedAt: when the operator
activated the revision, or found one it adopted running, never from its last
write of another revision, which may be days old.
kubectl logs acme-data-0 -n acme | grep -E 'config_apply_failed|reconcile_tick_failed' | tailkubectl get events -n acme --field-selector involvedObject.name=acme,reason=ApplyFailedChanges are not applied
Section titled “Changes are not applied”- The object’s
Appliedcondition isBlocked: another object keeps the document back; the Company’sConfigAppliedmessage names it. - The object’s
Appliedcondition isApplyingfor more than a few seconds, orApplyFailed: see The engine did not apply a revision. - The Company is under
ObserveorSeed(Choosing a management policy). - A change made in the engine’s dashboard or API under
Enforceis refused, not lost: see The engine refuses a change to the document. - A Secret change that leaves the value as it was writes nothing; a change to a value is applied as a new revision.
- Changes are coalesced: the operator waits for two quiet seconds after the last one, and ten seconds at most for a burst that never pauses.
Webhooks do not arrive
Section titled “Webhooks do not arrive”Check Exposed on the Company and Healthy on the Integration, then that the
vendor has the address the status gives (Seat.status.integrations,
Integration.status.webhookURL) — they never change for a seat, and
publicBaseURL changes only with the class’s host name template or the
Company’s own spec.exposure.publicBaseURL.
Exposure and network policy covers the routes.
Webhooks reach the engine’s public listener, port 8081 of the
<company>-engine Service (port name public), never port 8080:
- The vendor reports
404with a body namingapi.public: the delivery reached port 8080, the API, which does not serve webhooks. UnderExternal, forward to port 8081. - The vendor reports
404 no_routewith a generic hint: the delivery reached the public listener on a path that is not a public route, such as a webhook URL registered by hand with a typo; compare it with the URL the status gives. - The vendor’s requests time out under
networkPolicy.mode: Isolated: the policy<company>-engineadmits port 8081 only from where the class says webhooks arrive (gateway.proxyNamespaces, the Gateways’ namespaces,ingress.controllerNamespaces, orexternal.forwarders). AnExternalforwarder must be listed inexposure.webhooks.external.forwarders;networkPolicy.apiConsumersadmits port 8080 only. - The load balancer reports every backend unhealthy (
502or503from the load balancer itself, never reaching the engine): it health-checks the port it routes to, where the public listener answers/and the probe paths404. Point the check at port 8080, path/ready(Load balancer health checks).
A tool server does not start
Section titled “A tool server does not start”An agent that receives its Mattermost or Slack messages, runs its turns and
never answers has no chat tool server, or one it cannot post through: it
posts only through one. An MCPServer reports Applied=True once the engine
runs the document that names it; whether its process starts is the engine’s
to see, at run time, and a server that does not start costs the seats its
tools and nothing else. The engine logs each failure, with the last lines the
server wrote, on the pod that started it. A server with shared: false, as
each integration’s server is, runs for each seat on the pod that holds the
seat, which the Seat’s status.placement.node names (unset while none does:
A seat runs nowhere); a shared one runs on every
engine pod:
pod=$(kubectl get seat triage -n acme -o jsonpath='{.status.placement.node}')kubectl logs "$pod" -n acme | grep -E 'mcp_server_(failed|credential_missing|awaiting_credential)|server_stderr_tail|empty_env_vars'kubectl logs acme-data-0 -n acme | grep -E 'mcp_server_(failed|credential_missing)|server_stderr_tail|empty_env_vars' # a shared serverThe engine’s dashboard shows every server’s state on every pod, as does its
API’s GET /mcp-servers.
- The command is not in the engine image. Crewlet’s image has no Python or Node.js: build one with the server installed and name its command (Running Tool Servers).
- The server reads a variable it is not given. The engine hands a stdio
server only the part of its environment Crewlet’s allowlist names, and
the server’s
envand the seat’s values (Stdio and HTTP). A variable the image sets withENV, or the class or the Company sets on the pod, does not reach it otherwise, and the server fails or behaves as though it were unset, often naming the variable inserver_stderr_tail. Give it in the server’senv. - The server waits for a value, or is not started without it. The
engine starts a server, shared or a seat’s, only once every value it is
started with from a Secret or a provisioning pass has one, its own
envorheadersand what the Seat, or its Unit, gives it inspec.mcp: handed an empty token, a vendor’s server refuses to start, or starts and acts as nobody. One the engine’s own provisioning has yet to mint is waited for (mcp_server_awaiting_credential, at info, and Waiting for credentials on the engine’s dashboard), and the server starts once the value is sealed. Any other ismcp_server_credential_missing, an error naming the variable,K8S_…for a Secret’s key and<VENDOR>_<FIELD>_<HANDLE>for a credential the engine mints (Names in the engine’s secret store): a Secret key that holds an empty value, which the object that gives it reports asResolvedRefs=False SecretValueEmpty; a credential of a vendor the company’s Integration does not provision; or one its Integration cannot mint until somebody acts, such as by giving it a working administrator credential, which the line says in the integration’s own words. A setting the server can run without, rather than a seat’s own credential, is listed in the MCPServer’soptionalKeys, whichever object gives it, and left out instead (A key that may go without its value). Once the value is there the server starts: at the next revision for a Secret’s, which the operator applies once it has pushed the new value (Rotating a credential), and as soon as the engine has sealed a provisioned one. A running server whose credential stops resolving is stopped, itsmcp_server_retiredline naming the variable (Crewlet’s Shared vs per-role servers). empty_env_varsnames a variable. Avaluewritten empty, which the engine starts the server with: one written so on purpose needs nothing, such as the Atlassian server’s per-product proxy variables beside a proxy auto-config (Jira and Confluence). A value read from a Secret never arrives empty: it holds the server back, or is left out (above).- The server started without a tool you expected. Some servers offer a tool only when a setting asks for it, such as Slack’s posting tool (Slack).
- Mattermost’s server runs, and no post arrives. Mattermost does not
answer its API at the server’s
MATTERMOST_URL, which is then not the Integration’surl: the engine fails at such an address too, and no seat would receive a message. A path outside the Site URL’s path is redirected, and the server follows no redirect; a longer path reaches the web app, which answers a write405; and the other scheme is redirected or refused, as by Mattermost’s ownForward80To443, which answers a write overhttp://with400 Use HTTPS. Give it the Integration’surl(Mattermost).
A seat on a harness runs signed out
Section titled “A seat on a harness runs signed out”An LLMProvider reports Applied=True once the engine runs the
document that names it; whether its harness signs in is the engine’s to see, at
run time, and a provider signed in to nothing fails every call, so its
seats’ chains move on to the next provider. The engine restores a
credential bundle on the data pod, when it starts and at every revision it
applies, and runs the harness on the pod that holds each seat, which the Seat’s
status.placement.node names (a seat on a bundle runs in data:
Seat pools):
pod=$(kubectl get seat triage -n acme -o jsonpath='{.status.placement.node}')kubectl logs "$pod" -n acme | grep -E 'harness_(carry_out_failed|sweep_failed|login_superseded)'kubectl logs acme-data-0 -n acme | grep -E 'harness_bundle_(restore_failed|withheld)'harness_bundle_restore_failednames the provider whose bundle did not restore, and why, and the provider runs signed out. An OpenCode bundle holding a login OpenCode 1.x made (itsauth.json) is refused: export it again from OpenCode 2 (An OpenCode login in a bundle). So is a bundle exported from another harness than the provider’sharness, as it is after the provider moved to another one: put a bundle exported from the new harness in the Secret (Signing in). The login is still empty, so a good bundle in the Secret is restored at the next revision the operator applies, with no restart.harness_bundle_withheldnames a provider somebody logged out withcrewlet llm logouton the data pod. The logout is recorded in the provider’s login directory on the data volume, and while it stands the engine restores the bundle there at no start and no revision, until a login is written there again, by one of the commands the warning names for that harness (a headless token does not end it). To run the provider on its bundle without one, give it, and every provider sharing its login, a newloginName(Rotating a credential).- Every call fails, saying the harness refused to import the shared login.
OpenCode cannot read the login the bundle restored, usually because
another 2.x release than the image’s exported it. The error names three
ways out, each run on the data pod (
kubectl exec), and none fits a pod:crewlet llm login, which replaces the login (and logsharness_shared_login_refused), signs in at a terminal;-from-hostadopts a login made at one in the pod’s own home; andcrewlet llm logout, which needs neither, empties the login and then keeps the bundle out of it, as above. Export the bundle again with the OpenCode release the image runs, and move the provider onto it with a newloginName. - Every call of an OpenCode provider fails, the harness rejecting
--standalone. The image has npm’sopencode-ai, OpenCode 1.x, where Crewlet drives OpenCode 2.3.2 alone (OpenCode). - An OpenCode automation never fires during a seat’s run. A run’s
OpenCode configuration turns automations off (
experimental.automations: false), above anyopencode.jsonthat turns them on, so neither a schedule the model makes nor one you made yourself in OpenCode fires while Crewlet drives it. A schedule a run left behind would otherwise fire at the box’s next run with no turn behind it. Run your own automations from an OpenCode session of your own (Crewlet’s OpenCode runner). harness_carry_out_failednames a seat whose home was left open (its last call could not carry its login out, or the engine stopped mid-call) and which another seat of the provider, sweeping such homes before its own call, could not carry out either, such as an OpenCode export that failed, whether or not the harness had refreshed anything; it says when the other seats try again (retry_in), after a minute, doubling to half an hour. The seat’s own next call tries every time and is refused meanwhile, so its chain moves on. If it repeats, the export cannot succeed, as after an image moved to an OpenCode that broke it; Crewlet’s Token refresh across seats says how to discard a login that can never be handed back.harness_sweep_failed: the engine could not list the provider’s seat homes on the volume to hand their logins back, and says why.harness_login_supersedednames the provider, the login file and how its shared login moved (shared=changedorremoved): a seat’s refreshed login was dropped because the shared login moved after the seat started from it, at another seat’s refresh, acrewlet llm loginor-from-host, or acrewlet llm logout. The newer login is kept, so it is informational; a run of them on one provider is worth a look.- An OpenCode executor run ends at once
with
this box runs OpenCode 1.…in the run’s report, which the engine’s dashboard shows on the run. The engine image has OpenCode 1.x: build it with@opencode/cli(Where a seat’s executor runs). No condition of the operator’s can see it. - A seat’s executor run fails at once, every launch, the run’s report
saying its harness was not found (
claudeoropencode): the engine image has no such harness. Nothing validates that before a run: build the class’s image with it (The image needs the harness). - A seat’s executor run starts again, its run’s record saying it was cut
off before it finished, after its pod’s engine restarted or its pod was
replaced, by a rolling update, a drain or an eviction: a seat’s executor run
is a process of the engine’s container, and Crewlet carries the round it was
working on in a fresh run (the engine’s log says
sandbox_run_lost_carried_on), in its box where the pod kept it and in a fresh one, from what the run pushed, where the pod’ssandboxesemptyDirwent with it, the new run there continuing the newest save Crewlet took of the lost run’s session as it worked or as its pod drained, where one landed; a pod gone for longer than the Company’sspec.sandbox.hostGraceSecondshas its runs carried on by the pod that holds the seat next, and so does a pod that stayed up but could not read the coordination store for that long while the pod holding the seat could, which logssandbox_collect_lost_with_host. A round lost a third time ends the seat’s turn (When a Direct run’s pod stops): a run that keeps taking its pod down, past its memory limit say, is one to size the pod for. An eviction for asandboxesvolume past itssandboxSizeLimit, or ascratchvolume past itsscratchSizeLimit, is in the pod’s events: raise the class’s limit, or have the seat’s work clean up after itself, in its box and in/tmp, which a command that names it outright writes to rather than the box (Box storage). The scratch volume also holds the executor sessions Crewlet keeps and saves while each is uploaded, each a sealed text of 48 MiB at most, and each large payload it keeps apart sealed beside it, 94 MiB at most together, in one room of 481 MiB a pod, which the 561Mi minimum holds: an eviction at a limit near the minimum is the rest, the processes’ files or the temporary files a data pod’s store writes as it copies itself for a snapshot, which grow with the store. A run’s session Crewlet found no room for within a minute is not kept, logged asexecutor_session_not_keptnaming the room, and the turn’s next run says it did not continue it,no_spool_room, counted increwlet.executor.session.not_continued(A run did not continue its session): the object store took the sessions before it too slowly.
A run did not continue its session
Section titled “A run did not continue its session”A seat’s executor run continues the harness session its turn, or its
conversation’s last turn, left, so the seat goes on where it stopped. A run
that cannot says so, and why, in one sentence, such as “The run did not
continue turn 4f1a…‘s session: its session was larger than one is kept at:
94 MiB in all, at most 48 MiB of it text. It continued turn 9d8e…‘s older
session instead, which ends before that work.” The run still does its work, in a session of its own
(fresh) or an older one (older); what the seat lost is what it learned
since.
It is said:
-
On the engine’s dashboard: above the turn’s tabs and on each launch’s card, on the executor’s page, and beside the turn in the seat’s Sessions.
-
In the turn’s conversation, once per turn and in the sentence alone: on Chatlet, as a line of Crewlet’s own in the thread, which wakes nobody; to a colleague who asked over A2A, beside the answer. A reply the seat posts on Slack, Mattermost or an issue is its own words, and carries none of it.
-
In the log of the pod that held the seat (the Seat’s
status.placement.node):executor_session_not_continuedat the launch, withloss,instead, the sentence (said) and the engine’sdetail; and, where the session was never kept,executor_session_not_keptwithlosson the pod that took it, which is where a fault began:Terminal window pod=$(kubectl get seat triage -n acme -o jsonpath='{.status.placement.node}')kubectl logs "$pod" -n acme | grep -E 'executor_session_not_(continued|kept)' -
In the engine’s metrics, where the class sends them to a collector (
spec.telemetry):crewlet.executor.session.not_continuedbyreasonandinstead, and thesession_carryobjective, which only a fault counts against. The pod holding the seat, a data pod or a seat pod, raisesobjective_burnwhen its seats’ faults spend that objective’s error budget fast (EngineHealthy=FalsewithAlarms, naming that pod).
The loss says why
(Crewlet’s losses).
Five are the engine’s choice, and no fault:
context_exhausted,request_refused: the session ran out of its model’s context, or its provider refused it, and is retired.harness_changed: the Seat’s executor chain picked an LLMProvider on another harness, as when it moves past one sitting out a spent plan; only the harness that wrote a session continues it.entry_changed: the run is on another LLMProvider than the session ran on, or on the same one with another auth mode or route (A metered key).budget_floor: the Seat’s or the Company’sspec.tokenBudgetcannot carry what the session sends again.
Every other loss is a fault:
| Loss | What to do |
|---|---|
no_spool_room, capture_late | The object store takes sessions too slowly: the pod’s spool room stayed full for a minute, or a relaunch started while the newer session was still uploading. Read crewlet.executor.spool.wait and the store’s own latency. |
store_refused | The object store refused the upload, or the seat’s turn_engine.conversation_session.max_bytes_per_seat is spent: The files bucket fills, or the S3 bucket’s own errors. |
log_refused | The executor log refused the session’s record: The executor log is too small for a week of turns. |
box_lost | The run’s pod stopped before any session of it was kept (When a Direct run’s pod stops): size the pod for what the run takes, or find what evicts it. |
release_floor | The session was written by a harness release Crewlet does not continue, so it was not kept when its run ended (executor_session_not_kept), or a later box could not take it up. Run the release Crewlet supports: The image needs the harness. |
box_refused, restore_failed | The box could not take the session up: its image’s harness is not the release that wrote it (The image needs the harness), or the session could not be read back from the object store. The detail says which. |
too_large, keep_failed | The session was past what Crewlet keeps of one, 94 MiB in all and 48 MiB of its text, engine constants, or its take failed or its pod stopped before the upload; the log lines say which. A run of them is worth reporting (Collecting what to report). |
The executor log is too small for a week of turns
Section titled “The executor log is too small for a week of turns”The Company’s EngineHealthy is False with Alarms, and among them the
engine raises log_ceiling_short on its executor log: at the rate the
company’s seats recorded their sessions over the last day, the log’s byte
ceiling holds less than the seven days of records the engine’s trim always
keeps, so the log fills however the trim runs. The condition’s message names
only the alarm standing longest and its pod, which on a new company is
backup_age on a data pod, so read the data pod’s log for this one: an alarm_raised line with the alarm
log_ceiling_short and the domain executor, whose detail is the
measurement. The remedy beside it is the engine’s own, which a company the
operator runs cannot take (below).
kubectl logs acme-data-0 -n acme | grep alarm_raised | grep log_ceiling_shortThe executor log is where the engine records, turn by turn, which session each
seat’s harness left behind (the session itself is kept in the object store),
so that the seat’s next turn on the same conversation can continue it
(Crewlet’s conversation sessions).
A full log refuses to record a session, so that seat’s next turn does not
continue it, says so (log_refused, A run did not continue its
session), and does its work all the
same. Nothing already
recorded is lost: the log refuses the new record rather than dropping an old
one (A full log refuses; it does not shed),
and sessions are recorded again once the trim has freed room, which it does
only behind a verified backup (Backups).
A log’s ceiling is fixed when the engine creates the log, from the room the
event stream has then. On the smallest volumes a class admits, 16Gi (12Gi
with the files in S3), the executor log gets its least, 64 MiB: by Crewlet’s
measure about three weeks of a ten-seat company’s turns and about two days of
a hundred-seat one’s, so a company of more than about thirty seats outgrows it
there
(the minimum room for a fresh node).
Growing the data volume afterwards
(Growing a company’s data volume)
gives the stream more room, and no log that already exists a larger ceiling.
- A company yet to be created that expects more than about thirty seats:
create it from a class with a larger
data.storage.size, since a class’s size applies only to the volumes of companies created after it is set. The engine sizes the executor log from the stream it finds at its first start, and gives it more of its 512 MiB default the larger that is (How the byte ceilings are sized). - A company that runs: Crewlet changes a running log’s ceiling only with
crewlet retention set-capacity CREWLET_EXECUTOR_LOG <bytes> -confirm <bytes>inside a maintenance window, which restarts the engines that hold the company’s data withcrewlet run -mode maintenanceand then withcrewlet run -mode seal; on an engine in the normal mode the command is refused (Changing a log’s ceiling). The operator runs every engine in the normal mode and has no way to run that window, and the data pods’crewlet.yamlit writes leavesstream.tracker_retention.min_age, which the alarm’s other remedy would shorten, at its seven days. So this is a limit of the operator today: such a company runs on with the log it has, recording its seats’ sessions while the log has room and starting their next turns fresh while it has none.
The files bucket fills
Section titled “The files bucket fills”The Company’s EngineHealthy is False with Alarms, and the data pod’s log
has an alarm_raised line for objects_bucket_near_ceiling: the object
store’s bucket on the event stream, which a class with objects.backend
NATS (the default) keeps the company’s files in, holds more than four fifths
of what it reserves. Once it is full the engine refuses every upload, a seat’s
executor session (whose next run says store_refused) and the company’s files
alike.
kubectl logs acme-data-0 -n acme | grep alarm_raised | grep objects_bucket_near_ceilingA seat’s executor sessions, with the saves of its runs that newer ones
replaced, reach up to twice Crewlet’s
turn_engine.conversation_session.max_bytes_per_seat, 128 MiB at its
default, so a company of twenty seats or more can fill the bucket a 16Gi
data volume gives with its sessions alone (Crewlet’s Choosing a
backend).
- A company yet to be created that expects twenty seats or more: create
it from a class whose
objects.backendisS3. - A company that runs: Crewlet moves a company’s files to an S3 bucket
with
crewlet objects migrate, whose last pass needs every engine in maintenance mode (Moving the files to a bucket), which the operator has no way to run, and changing the class’s backend moves no file. Until it can, lowerturn_engine.conversation_session.max_bytes_per_seatin the Company’sspec.engineConfig, 49 MiB at the least, so each seat holds less.
Read what the engine is worth telling you
Section titled “Read what the engine is worth telling you”Some settings the engine runs are still worth knowing about. Plain http on
a routable address sends passwords unencrypted. An https address with no
proxy listed shows every caller as the proxy. A class may let people sign in
with a password alone at a routable address, which it acknowledged. A company
may have no human seat anyone can sign in to, a token ceiling another leaves
idle, a person on Slack or Mattermost nobody can mention there, or, on
Chatlet, no unit with a channel, and so no team with a room the chart
keeps. It also notes a company whose agent seats hold no health_tools, the
grant that wakes an agent for a node’s alarm, which a Seat does not offer in
v1alpha1, so every company with agent seats draws it; and a seat whose
reflection and summaries run on the model its executor runs on, which the
Seat’s spec.llm.auxiliary moves to a smaller one; and a seat’s chain or the
assistant’s model naming a fleet with no members (<fleet> has no members yet: <seat> waits until one joins), which runs once the Company’s spec.llm.fleets
gives that fleet a member. None of these stops the
engine. It says so in two places:
- The Company’s events: the engine’s answer to each revision the operator
writes, as an
EngineWarningsevent (The engine runs revision … with warnings: …). - The data pod’s log: a
config_advisoryline atWARNfor each one.config=company: the company’s, again each time the node applies a revision.config=bootstrap: those of the pod’s owncrewlet.yaml, once per start. No write answers for that file: the operator renders it from the class and the Company, and only the engine reads it.
kubectl events -n acme --for company/acme | grep EngineWarningskubectl logs acme-data-0 -n acme | grep config_advisoryA line’s path is the Crewlet setting at fault, and detail says what to do.
The operator writes the crewlet.yaml settings from the objects:
api.external_url: the Company’s address (Where people reach the dashboard).api.trusted_proxies: the class’sspec.exposure.trustedProxies(Name the proxies in front of the engine).api.auth.accept_insecure: the class’sspec.signIn.acceptInsecure, which the engine says at every start while it is set (Two-step verification).
Collecting what to report
Section titled “Collecting what to report”kubectl get crewlet,statefulsets,pods,pvc,services,networkpolicies -n acme -o widekubectl get company acme -n acme -o yamlkubectl events -n acmekubectl logs acme-data-0 -n acme --tail=300kubectl logs -n crewlet-operator-system -l control-plane=controller-manager --prefix --tail=300The manager runs two replicas by default and only the leader reconciles, so
read every replica’s log (-l ... --prefix, as above), or the leader’s alone:
the Lease 839a0df8.crewlet.ai names it, as its pod’s name and a suffix.
kubectl get lease 839a0df8.crewlet.ai -n crewlet-operator-system -o jsonpath='{.spec.holderIdentity}{"\n"}'Conditions, events and logs name Secrets and keys, never their values, so they are safe to paste into an issue. Do not paste Secrets.
See also
Section titled “See also”- How the Document Is Applied — what every condition means
- How a Company’s Engine Runs — who writes which status field
- Crewlet’s alarms — what
EngineHealthy=False Alarmsnames
Part of Crewlet. Generated from crewlet/crewlet-operator main at 5aacd1b.