Skip to content

Troubleshooting

Exit 75, 124, 3 and 127 come from the queue, not from your tests. Each section says what happened and the one thing to do.

On this page

Exit 75: the job gave up waiting

It waited in line longer than --max-wait (60 minutes by default). The gave up: line names what held it: no free slot, or the health gate.

dotime-queue: gave up: exit 75, position 1, 60 min waited; memory too low: 9% free, 20% needed; hint: --max-wait 0 waits without limit
  • Run dotime-queue status to see who holds the slots and whether the gate is shut.
  • Pass --max-wait 0 to wait without limit, or raise maxWaitMin.

Exit 124: stopped at the run limit

The job ran past its limit and was stopped with everything it started. A new command gets the limit its kind has learned in that project, which can be as short as 10 minutes, or 30 minutes until the kind has five passed runs. A command that normally takes longer is stopped every time, never builds a history, and after two stops on unchanged code is refused.

Shell
dotime-queue run --max-run 45 --label "shop-api: e2e" -- npm run e2e

Or raise limits.defaultMin in config.json. Many quick partial runs of the same command (npm test -- a.test.js) can pull the learned limit of the full suite down; give the full suite --max-run.

Exit 3: refused after two failures

The same check failed twice in a row within 6 hours, and neither the commit nor the uncommitted or untracked files changed. Running it a third time would give the same answer. Change the code, or say why it should run again:

Shell
dotime-queue run --after-fix "raised the test timeout" --label "shop-api: unit tests" -- npm test

A fix that changes only untracked images, logs or build output counts as unchanged code; pass --after-fix. Renaming the label does not reset the count.

Exit 127: the command could not start

A misspelled program name, for example. run prints a start failed: line. It counts neither as a failure nor towards the refusal. A command that starts and then exits 127 by itself, such as a script calling a missing program, is an ordinary failed run.

The gate stays shut

By default a job waits below 20% free memory, below 10 GB free disk, at or below 15% battery while unplugged, and while the load per core is above 1.0 with the CPU at least 90% busy. dotime-queue status names the reading. On a small machine, lower the limits:

~/.dotime/config.json
{ "health": { "minFreeMemPct": 5, "minFreeDiskGB": 2 } }

The load average lags for up to a minute after heavy work ends; the queue measures the CPU right now before it holds a job on load, so a high load with an idle CPU lets jobs through.

A check was skipped when it should run

A test or lint job that already passed on this clean commit, in this folder, is skipped. Installed packages, tools, the environment and live targets are not part of that check, so after changing one of them, or to run a flaky test again, pass --no-skip. End-to-end tests against a deployed site should get --no-skip or --kind other.

A check is never skipped

Skipping needs a clean git checkout and a pass on this exact commit in the same folder, with the same label and command. A job whose label or command also names a build or a deploy always runs, unless you give --kind test or --kind lint. The journal's cwd, cmd, head, clean, fp and outcome fields show which condition did not hold.

Nested runs wait or exit 75

One job runs at most 2 nested runs at once. Runs that only work side by side, such as a server and the tests that call it, both started through the queue, wait for a place none of them gives up. Raise nestedPerJob to the number that must run at once, or start only one side through the queue. An outer job's own limit keeps counting while its shards wait: give it --max-run.

~/.dotime/config.json
{ "nestedPerJob": 4 }

A job asks for a password and hangs

A queued job runs in a session of its own and has no controlling terminal, so a program that opens /dev/tty to prompt cannot. Give such a tool its credentials another way, or run that step outside the queue.

Agents in containers or virtual machines

The queue decides whether a job is alive by its process id, so a state folder may only be shared by processes that see the same process list. An agent in a container or a VM must use its own state folder: it gets a queue of its own.

No desktop notices

Notices always reach ~/.dotime/notify.log. On macOS they show through osascript: check the notification settings in System Settings. On Linux they need notify-send and a desktop session. DOTIME_NOTIFY_CMD can forward them anywhere you choose.

Install fails with a permission error on Linux

Your Node was installed for all users. Use a Node from a version manager, or run npm config set prefix ~/.local and put ~/.local/bin on your path. Still stuck? Open an issue on GitHub (opens in a new tab).

Written from the public repository's main branch and its queue manual.