Setup and licence
The setup page, registering the server with the portal, and what a lapsed licence does. How it all fits together is in How licensing works.
Two questions settle most cases. On the server: ./joobqui license:status. On the portal: is the server listed on Deployments & licensing, and when was its Last Heartbeat?
The server opens the setup page, or will not start without a licence
What you see. The log says "JoobQ is not set up yet" and the server serves only the setup page; or, with JOOBQUI_SETUP=off, it exits saying it is not connected to JoobQ or that the saved licence cannot be used.
Why. The server has no licence: it was never connected, its /data volume is new or was lost, or another server was connected at the same address and replaced it.
What to do. Start it without JOOBQUI_SETUP=off, enter the setup code from the log, choose Sign in with JoobQ and have an admin of your organization approve the code on the portal (or run ./joobqui connect --url https://...). Check that /data is a mounted volume that outlives the container.
Connecting the server does not finish
What you see. The setup page (or ./joobqui connect) says the code was denied, expired, or could not reach the portal; or the server stopped with "Connecting with JOOBQUI_ENROLLMENT_TOKEN failed".
What to do.
- Denied: an admin chose Deny. Get a new code and approve it yourself. If nobody in your organization denied it, tell your admins.
- Expired: a code lasts 10 minutes. Choose Get a new code.
- The portal could not be reached: the server, not your browser, must reach app.joobq.io over HTTPS. Check its outbound network and proxy.
- Your organization has connected as many servers as its licence allows: disable an old server on the licensing page.
- The enrollment token is not valid: it expired, was revoked, was used up, or is limited to another address. Create a new one on the licensing page; check that
JOOBQUI_PUBLIC_URLis the address the token allows.
The setup code is lost, or the setup page asks for it again
What you see. You no longer have the setup code, the page says "That is not the setup code", or after a while the setup page asks for the code again.
Why. The code lives only in the running process: every start prints a new one, and the old one stops working. A right code lets this browser in for 30 minutes; after that, enter the code again.
What to do. Read the current code in the log (docker compose ... logs app, or docker logs <container>; look for "JoobQ is not set up yet"). Restarting the server prints a new code. After 20 wrong tries in a minute the page asks you to wait a minute.
Reconnecting a server that is running
What you see. The Licence card on the Settings page says not connected, or the server lost its licence (it was disabled on the licensing page, or replaced by another server at its address).
What to do. Choose Reconnect (Connect when it has none) on the Licence card: it shows a short code; an admin of your organization approves it at app.joobq.io, and the server restarts by itself to use the new licence. From a terminal: ./joobqui connect --reconnect. See Licence and Pro key.
Disconnect says the clock is off
What you see. Disconnect on the Licence card, or ./joobqui disconnect --yes, fails with "This server's clock is off by about … (ahead of / behind the portal's)", code signature_clock_skew. The licence is kept.
Why. The server signs the request with the time; the portal refuses a time too far from its own. The server tries once more with the portal's time, and the portal still refused it.
What to do. Fix the host's clock (enable NTP, for example timedatectl set-ntp true) and disconnect again. --force does not help here: it is for a portal that no longer knows the server.
The licensing page says a licence is used by more instances than expected
More instances of one server checked in within the last hour than its tier expects, or they came from more than one network. Replicas and blue/green deploys explain it; so does a copy of the server's /data volume running somewhere else. If you do not recognise the instances, disable the server on the licensing page and connect it again: the copy stops being licensed. If you need more instances, ask us to raise the limit.
402 paid_license_required (licence expired)
What you see. The console and the operations routes of /api/v1, and /metrics, answer 402 paid_license_required. Workers keep running.
Why. The deployment licence is unpaid, expired, unverifiable or the deployment is disabled in the portal. The SDK gateway is not gated by the licence.
What to do. ./joobqui license:status (prints eligible, status, paid_until); renew or re-enable it in the portal, then ./joobqui license:refresh (or wait up to 15 minutes for the next heartbeat). 402 sso_upgrade_required means the tier does not include single sign-on.
402 pro_required
What you see. An SDK call (start or signal a workflow, register a blueprint, rate_limit, create_batch or get_batch, a client read, a workflow schedule, an enqueue with unique_mode until_executing or until_executed) answers 402 with the code pro_required. The console has no workflow or alert pages.
Why. The deployment has no valid JoobQ Pro key, or it had none when the server started. A key issued to another deployment or organization does not count: the server ignores it and logs a line. Core is unaffected. The two batch calls also answer it when the key's licence does not cover batches (the message says so).
What to do.
GET /api/v1/capabilities(no sign-in needed):features.prosays whether this server has Pro on.- Give the server a key: connected to the portal it arrives with the licence heartbeat (
./joobqui license:refreshruns one). A key set by hand inJOOBQ_PRO_LICENSEorJOOBQ_PRO_LICENSE_FILEis used only if it was issued to this deployment. - Restart the web process if it started before it had the key: it turns its Pro features on when it starts (a first start checks in for the key first). See Licensing: Core and Pro.
402 pro_required with a message that the key expired
What you see. Starting a workflow run, a workflow schedule change or create_batch answers 402 pro_required, and the message says when the key expired. The console shows a banner and still has its workflow pages. Workflow schedules did not fire. At each start the log warned that the key was in its grace, with the date the grace ends.
Why. The server's Pro key ran out and was not renewed: the licence is unpaid, or the server could not reach the portal for longer than the key lasts. A paid key is honoured for 7 days after its expiry; after that it has lapsed. Runs in flight, signals, reads, rate limits, unique jobs and timeouts keep working; only new Pro work is refused.
What to do.
GET /api/v1/capabilities:features.pro_lapsed: trueconfirms it, on a server that started during the lapse. One that was running when the key lapsed still reportspro: true; the message of the402is the proof there.- Pay the licence, or let the server reach the portal again, then
./joobqui license:refresh(or wait up to 15 minutes): a new key arrives with the check-in and calls work again without a restart. Workers pick it up at their next refresh. Restart the web process to clear the banner. - Schedules: fire times inside each schedule's catch-up window (60 seconds by default) run by themselves; backfill the schedule over the lapse to run the older ones. See When a key expires.
409 deployment_limit_reached
What you see. A server that tries to connect is refused: the organization has connected as many servers as its licence allows.
What to do. On Deployments & licensing, disable a server you no longer use (disabled servers free their slot), or move to a tier with more slots. Replacing a server at the same address needs no slot: see Replace a server.
The Approve button is missing, or approving is refused
Only an organization admin, signed in themselves, can approve a server. A viewer or an operator sees the code but cannot approve it: ask an admin, or have one change your role on the Members page.
A server shows an old Last Heartbeat
The server is down, or it cannot reach app.joobq.io over HTTPS. Its console keeps working for up to 7 days after the last check-in, and Pro until its key runs out (8 days from issue). Check the server's outbound network and proxy, then run ./joobqui license:refresh on it.
A renewal failed
The licence stays active for 7 days from the start of the unpaid period. Update the payment method under Upgrade or change plan before then. After it, every server's console answers 402 paid_license_required; workers keep running. Once paid, servers recover at their next check-in.
A connection mail arrived for a server you do not know
Someone approved a code, or used an enrollment token. Disable the server on Deployments & licensing, revoke any enrollment token you do not recognise, and check the Audit page for who approved it (license.device.approve).
The portal sign-in is refused
429 rate_limited: five sign-in attempts for one email from your address within five minutes. Wait, then try again.- You never got the verification mail: check the spam folder. The link lasts 24 hours.
- A lost authenticator: use one of the 10 recovery codes shown when two-factor was set up.