Skip to Content
WorkersOperating Workers

Operating Workers

Everything you need day to day lives on the worker’s detail page and its three sub-pages: Builds, Application logs, and Environment.

Process Status

The Process status card reports what pm2 sees on the worker host:

  • Running — the process is up
  • Not running — the process is registered but stopped or crashed
  • Process status unknown — the platform couldn’t get an answer

Use Refresh to re-check. The card is disabled until the worker is active, since there is no process before provisioning completes.

When the process is deployed but Not running, the card shows the common causes: a crash loop, a missing or empty .env, or an ecosystem.config.js with the wrong app name. For a missing .env, use Prefill recommended values on the Environment page, then Save & restart.

Process Controls

The Process status card has four controls. Each one requires the Developer role or above on the project and an active worker.

ControlWhat it does
RestartRestarts the pm2 process. It picks up the current environment file.
StartStarts a stopped process. Disabled while the process is running.
StopStops the process. Disabled while the process is not running.
RedeployRuns the pipeline again on the current main. Watch the Builds page.

Restart when you have:

  • Saved changes on the Environment page with Save .env
  • A process wedged on a bad connection or a stuck consumer
  • A deploy that reported success but left the process unhealthy

To take a worker out of service for a while, click Stop. Messages for its job types stay in their queues until you start it again. To take a worker out of service permanently, delete it.

If a runtime action can’t reach the worker host, the page says so instead of showing stale information. That’s a transport problem, not a verdict on your worker — retry, and check the enablement panel on the project’s Workers page if it persists.

Application Logs

The Application logs page streams what your process wrote to stdout and stderr, newest first, in pages of 500 lines. Load older lines walks backwards through history without gaps or duplicates, even while the worker keeps logging.

“No logs yet — the worker has not written any output” means exactly that: the log stream doesn’t exist. Either the process has never produced output, or it never started. Check Process status to tell those apart.

Application logs are your worker’s own output. Build output is separate and lives on the Builds page. If a deploy succeeded but the worker misbehaves, the answer is here; if the deploy itself failed, it’s there.

Practical logging advice, since this page is your only runtime window:

  • Log the job type and a correlation ID on every message you handle
  • Log both the start and the outcome, so a missing outcome line marks the hang
  • Log connection lifecycle events — connect, disconnect, reconnect attempts
  • Don’t log secrets or full message payloads; they’ll sit in the log stream

Builds

Every push to main triggers the pipeline. The Builds page lists up to the 25 most recent runs with status, timing, trigger, and the source revision that produced them.

Click Logs on a run to open its build log. The dialog shows:

  • The build status in its title, for example SUCCEEDED or FAILED
  • One badge for each build phase, with its duration in seconds. A green badge marks a phase that succeeded, a red badge marks a phase that failed, and a blue badge marks all other phase statuses.
  • Up to the first 1000 lines of the build log

The page does not link to the full log in the AWS console.

The Status column of the list shows the pipeline status as CodePipeline reports it, for example Succeeded, Failed, InProgress or Stopped.

An empty build list on a worker that isn’t finished provisioning is normal — the pipeline doesn’t exist yet.

Reading a Failed Build

Where it failedUsual cause
INSTALL phaseA dependency won’t resolve on a clean checkout, or npm install fails
BUILD phaseNo build script, or the build command errored
UPLOAD_ARTIFACTS phaseThe build produced nothing to ship
Deploy stage, after buildArtifacts were built, but shipping them or starting pm2 failed

A deploy that succeeds while the process never comes up is almost always the pm2 naming rule. See Writing a Worker.

Deleting a Worker

In the worker list, click Delete on the worker’s row, then click Delete worker in the confirmation dialog. This requires the Admin role on the project. Without it, Delete does not show.

Deletion tears down the pipeline, the build project, the git repository, and the pm2 app, then removes the worker from the project.

Deleting a worker is irreversible, and it destroys the worker’s source repository. If the repository holds work that isn’t mirrored anywhere else, clone it first.

Deleting a worker does not affect the project’s RabbitMQ broker, sibling workers, or any data in the project’s data backend. Messages already queued for the deleted worker’s job types stay in their queues with nothing consuming them.

Troubleshooting

Enablement stuck, then failed. Project enablement has a 15-minute deadline. Past that the project is marked Failed with a timeout reason. Retry is safe.

Worker sits at provisioning for a long time. Worker creation has a 30-minute deadline. After 30 minutes, the worker changes to failed the next time the worker list loads. Click Retry. Contact support if it fails again.

Worker shows failed. Click Retry on the row. The page does not show why creation failed. You need the Developer role or above on the project to see Retry. Contact support if Retry fails again.

Build succeeds, process never runs. Check for an ecosystem.config.js whose app name isn’t ${PROJECT_ID}-${WORKER_ID}. That combination fails silently — success everywhere, nothing running. Removing the file is the fastest fix.

Process restarts in a loop. Your start script is exiting. A worker must stay running; pm2 restarts anything that exits. Check the application logs for the error just before each restart.

Configuration changes have no effect. Save .env doesn’t restart the process. Use Save & restart, restart the worker, or push a deploy.

Worker can’t reach RabbitMQ. Confirm the project enablement badge reads Active, then check RABBITMQ_URL on the Environment page. The platform seeds it when it creates the worker. If it’s empty, use Prefill recommended values, then Save & restart.

These apply to a Buildpad Engine project:

“The worker’s token is unavailable” (503). The platform cannot read the project’s worker token, so it refuses to create, retry, prefill, or download. Contact support if it keeps happening.

“The project has no Engine address yet” (409). The project is not fully created yet. Wait for project creation to finish, then try again.

401 when the worker adds a field or deletes a collection. Expected. The worker token cannot change structure. Make structure changes in the Studio instead.

403 when the worker reads a system table. Expected. Among system tables, the worker token reads only its own user (/api/users/me) and its role.

404 from the Engine. The path usually lacks the /api prefix. Use /api/items/<collection>, not /items/<collection>.

Duplicate name rejected on a name you don’t see. Names are compared case-insensitively and ignore surrounding whitespace, and the check covers the whole project.

Last updated on