Why OpenProject background jobs stall and when to troubleshoot them
Background jobs run in worker processes separate from web requests, so a healthy web tier can hide a stuck worker. If emails have stopped, a project copy never finishes or a backup stays in progress while pages load normally, the queue is the first place to look. Notifications, project copies, exports and backups are the symptoms that usually point to jobs, because the web server only hands these tasks off and returns. A user who clicks a button and sees a confirmation has not proven that the work ran.
Start with the checks that cost nothing. Confirm the worker service is running and read its recent output, which on packaged installs is logged under the openproject-worker-1 unit in journalctl. Then use the worker health endpoints: /health_checks/worker reports whether jobs are being processed, and /health_checks/worker_backed_up reports whether workers are falling behind. A failing first check points to a stopped or crashed worker. A passing first check with a failing second check points to a backlog, which is a capacity question rather than a fault. Ask your team which of these checks they already monitor, because a stalled worker often goes unnoticed until a user reports it.
Escalate when a single restart does not clear the symptom, when the backlog keeps growing, or when a planned upgrade is near. The upgrading guidance states that OpenProject 17.0 upgrades good_job, so jobs pending from 16.6 should finish before that upgrade starts. Plan that drain window before any upgrade to 17.0 or later, and confirm the exact sequence in the upgrade documentation for your install type. Record the time of the first failed notification or backup so the support conversation starts from evidence rather than from the end-user report.
How web requests, workers and the job queue fit together
The diagram starts at the web process, which handles user requests and enqueues background jobs into the good_job queue stored in PostgreSQL. The openproject-worker-1 service on the application host polls that queue, runs the jobs and writes results back to the database. The health check endpoints read worker state from the same database, so when a job stalls, check the worker service first, then the backlog endpoint, then the queue tables. The database sits behind the trust boundary between the application tier and the data tier.
Web enqueues jobs, workers consume them, and health checks read the same queue state.
Checking worker services and logs first
This sequence confirms whether the background worker is running at all, reads what it logged when it stopped or stalled, and records the evidence needed before any configuration change or escalation.
Confirm which install type you run
The administrator starts by identifying how OpenProject was deployed: a packaged install on a Linux host, a Docker or Docker Compose setup, or a Kubernetes release with Helm. The checks differ for each, so the team records the install type, the OpenProject version and the host or cluster name in the incident ticket. The step is done when every person working the incident uses the same environment description and the version is confirmed from the running instance rather than from memory.
Check the packaged worker service status
On a packaged install, the administrator runs a status check on the worker unit, for example with systemctl status against openproject-worker-1, to see whether the service is active, failed or restarting. A stopped or failed unit explains missing emails and stalled jobs immediately. An active unit does not prove that jobs are being processed, so the result only rules the process in or out. Record the unit state and the time of the last state change.
Read the worker journal for the failure window
The administrator reads the worker's log with journalctl -u openproject-worker-1, filtered to the period when the symptom started. Repeated restarts, database connection errors, mail delivery exceptions or out-of-memory messages point to different causes. The team should look for the first error in the window, not only the most recent line. The step closes when the first relevant error, its timestamp and any repeating pattern are copied into the ticket.
Check worker containers in Docker or Compose
For Docker or Docker Compose installs, the administrator lists the containers and confirms that the worker container is running and has not restarted repeatedly. The container logs are then read with docker logs for the worker service over the same time window. If the worker container is missing or exited, the team checks the exit status and whether the container shares the database and cache settings used by the web container. Record the container state, restart count and exit code.
Check worker pods in Kubernetes
For Kubernetes deployments, the administrator checks the worker pods in the OpenProject namespace for status, restart count and recent events, then reads the logs from the worker pod using the cluster's standard log command. Pending pods point to scheduling or resource limits, while CrashLoopBackOff points to startup or configuration failures. The team confirms that the worker deployment has the expected replica count. The step is done when pod state, restart history and the relevant log lines are recorded.
Use the worker health checks to confirm processing
The administrator queries the worker health check endpoint to see whether background jobs are being processed, and the worker backed-up endpoint to see whether the queue is falling behind. A healthy service with a failing processing check points to jobs being picked up incorrectly or to database trouble, while a passing processing check with a backed-up result points to capacity or a stuck job. Record both responses with the time of the check, since a single reading shows only one moment.
Capture evidence before escalating
Before contacting DeployOpen or changing settings, the administrator assembles a short evidence bundle: the install type and version, the worker unit or container state, the relevant log excerpt with timestamps, the health check responses, and any recent change such as an upgrade, configuration edit or host reboot. Restarting the worker before this capture can erase the evidence, so the team should record the state first. The step is done when another engineer could reproduce the reasoning from the bundle alone.
Using /health_checks/worker and /health_checks/worker_backed_up
The /health_checks/worker endpoint answers the first question: is any background worker picking up and completing jobs right now? It is the check to use when a symptom looks binary, such as password reset emails never arriving or a project copy that stays in progress. A failing result here usually means the worker process is down, hung or disconnected from the database, so the first step is to inspect the service rather than the queue size.
- Binary signal: the endpoint indicates whether jobs are being processed, not how many are waiting.
- Typical trigger: no jobs complete at all over the check window, which points to a stopped or wedged worker.
- First action: confirm the worker service is running and review its recent log output for database or Redis connection errors.
- Alert suitability: a good candidate for a paging alert, because a failure here means work has stopped entirely.
- Protection: the endpoint should not be left open on a public address, a point covered on the sibling health check page.
Before you rely on this endpoint in production, confirm with your OpenProject release notes and admin documentation how the check window and response are defined for your installed version.
The /health_checks/worker_backed_up endpoint answers a different question: are jobs being processed, but more slowly than they arrive? A backlog can build while workers still run, for example after a burst of notifications, a large bulk import, or a backup job that occupies a worker for a long time. Here the cause is usually capacity or a slow job, so the response is to examine what is queued and whether the worker count fits the load.
- Lagging signal: the endpoint reports a backlog, so it can be true while the worker still processes some jobs.
- Typical trigger: the queue grows faster than workers drain it, often after load increases or a long-running job blocks progress.
- First action: identify which job classes are occupying workers and whether a single long job is the cause.
- Alert suitability: better as a warning or ticket-level alert with a sustained-duration condition, since short bursts are normal.
- Capacity: adding workers is covered on the scaling page, so check the cause before increasing counts.
Confirm with your OpenProject release notes whether the backlog threshold is configurable in your version, and set alert windows based on your own observed load.
Because the two endpoints fail for different reasons, they should not share the same alert rule. Mapping each to a severity and response time prevents on-call teams from being paged for a normal backlog while still catching a fully stopped worker quickly. Both endpoints should be polled from a monitoring system you control, and the results should be logged alongside service events so the timeline is clear during an incident.
- Page on processing failure: route
/health_checks/workerfailures to an urgent alert, since no job completing means user-visible work has stopped. - Warn on backlog: route
/health_checks/worker_backed_upto a non-urgent queue that requires the backlog to persist before notifying anyone. - Poll interval: choose an interval that matches how quickly your users would notice a delay, and confirm the expected response codes with your monitoring tool.
- Correlate with logs: pair alerts with worker log entries so you can see whether a failure followed a deployment or upgrade.
- Test the alerts: stop a worker in a non-production environment to confirm the processing alert fires and the backlog alert does not fire prematurely.
Check that your monitoring tool can send authentication headers if you protect the endpoints, as described on the sibling health check page.
A result from either endpoint is only useful when read together with the other one and with the worker service state. The combinations tell you where to look next, and reading them in isolation leads to restarting services that do not need restarting or ignoring a stalled worker because the backlog number looks small. Record the response and the time when you check, so you can compare it with log timestamps later.
- Processing fails, backlog fails: the worker is likely stopped or unable to reach its dependencies, so start with the service status and recent errors.
- Processing passes, backlog fails: workers are alive but behind, so look for long-running jobs and load changes before adding capacity.
- Processing fails, backlog passes: unusual, and worth checking that the endpoint itself is reachable and that your monitor is calling the correct path.
- Both pass but users report delays: the problem may sit in email delivery or a specific job class, so review job-level logs.
- Record each result: note the endpoint, status and time so incidents can be reconstructed.
When you are unsure what a specific response means for your version, ask OpenProject support or your implementation partner to confirm it against your installation.
Common causes of stuck emails, hung copies and unfinished backups
Emails, project copies and backups all run as background jobs, so one stalled worker can look like three unrelated faults. The causes below share one first question: are jobs being picked up, processed and finished. Work through them in order, because a missing worker hides every other symptom.
Worker service not running
The most common cause of stuck emails is a worker that has stopped or never started. On packaged installs, check the worker unit and read its output with journalctl -u openproject-worker-1. Then call the /health_checks/worker endpoint to confirm that jobs are being processed at all. If the unit is down, the fix is to restart it and find out why it stopped, usually from the log lines just before the exit.
Backlog from long-running jobs
A worker can be running but still behind. Large backups, project copies and bulk notifications occupy workers, so queued emails wait behind them. Use /health_checks/worker_backed_up to tell a healthy queue from one that is falling behind. Look at which job types are in the queue before adding capacity, since one slow job type may be the real cause.
Failed and retried jobs
A job that raises an error is retried, and repeated failures can keep a queue busy while the visible symptom looks like a stall. Read the worker log for the job class and the error message rather than restarting services blindly. Typical causes include an unreachable mail server, a missing storage target for backups, or a file that the job cannot read. Fix the underlying dependency, then confirm the retried jobs finish.
Database connectivity and extensions
Workers use the same PostgreSQL database as the web application, so connection limits, network drops or a missing extension stop job processing. Check the worker log for connection errors and confirm the database has the pg_trgm, btree_gist and unaccent extensions that OpenProject requires. Verify that the database connection settings given to the worker match the web service. Fixes belong in the database layer, not in the worker code.
System requirementsThread and concurrency limits
Each worker runs a fixed number of threads that process jobs in parallel. If the thread count is too low for the job volume, jobs queue even though the service is healthy. If it is set too high for the database connection pool, workers compete for connections and slow down. Check the configured thread count against the backlog health check before changing it, and change one setting at a time so the effect on the database is visible.
Jobs blocked during upgrades
Major upgrades can change how jobs are stored and processed. OpenProject 17.0 upgrades good_job, so jobs queued under 16.6 should finish before the upgrade starts. Before upgrading, drain the queue and confirm the backlog health check is clear. If jobs are left pending after an upgrade, check the worker log for schema or job-class errors and follow the upgrade guide for the affected version.
Upgrading docsHow good_job threads affect job throughput
OpenProject runs its background jobs through good_job, a PostgreSQL-backed job queue for Ruby on Rails. Jobs such as sending notification emails, copying projects and creating backups are written to the database and then picked up by worker processes. Each worker process can run several threads, and each thread takes one job at a time. The number of jobs a worker can finish in a given period depends on how many threads are available, how long each job runs, and whether the jobs compete for the same database connections. When a job type stalls, the first question is whether the queue is slow to drain or whether jobs are failing and being retried. A growing backlog with idle threads points to a different cause than a backlog where every thread is busy.
Thread counts and worker counts are sizing decisions, and they belong to the scaling guidance covered on the scaling page. Before you change any setting, confirm the current keys, default values and their valid ranges in the OpenProject documentation for your version, because the names and defaults in your installation may differ from what you remember. Also confirm how your packaged or Docker install passes those settings to the worker containers or services. Raising thread counts without enough database connections or CPU can shift the bottleneck to PostgreSQL or the host and make slow jobs slower. Record the backlog and job durations before the change so you can tell whether it helped.
Thread settings also matter during an upgrade window. Before a major upgrade, let the queue drain and confirm that the worker health check reports no backlog, because the upgrade path changes how good_job is handled. The OpenProject upgrade documentation states that pending jobs from 16.6 should finish before upgrading to 17.0. If you run a scheduled backup or a large project copy near a maintenance window, plan the timing so it completes before the upgrade starts. Ask your vendor or check the release notes for any further queue requirements for the version you are moving to.
Questions about OpenProject background job problems
How long should we wait before escalating a stuck OpenProject background job?
Escalate as soon as a job type has stopped completing for longer than your own users can tolerate, such as invitation emails not arriving or a project copy staying queued during a working day. Do not wait for a fixed interval from a vendor. Before escalating, check the worker health endpoints and the worker logs so you can hand over evidence rather than symptoms. Record when the problem started, which job types are affected, whether an upgrade or configuration change happened just before it, and whether the web application still responds. A short internal window for triage is reasonable, but a backup that never finishes is a data protection issue and should be escalated the same day.
Can our internal administrator fix background job problems alone?
Often yes for common causes such as a stopped worker service, a full disk, or a database connection that dropped after a restart. Your administrator needs shell access to the host or container, the ability to read service logs, and permission to restart services in a maintenance window. Problems that are harder to diagnose include jobs that fail repeatedly with the same error, backlogs that grow after an upgrade, and workers that stop without a clear log entry. For those, an experienced operator or a partner usually saves time because they know which log lines matter and which settings interact. Confirm internally who has the access and on-call coverage before the next incident.
What should we prepare before a consultant looks at our OpenProject jobs?
Prepare the installation method, the OpenProject version and the version you were on before any recent upgrade, and a description of the symptom with timestamps. Include the output of the worker health checks if you have already run them, the relevant service logs for the period, and the database and storage layout. Share the configuration with secrets removed, the reverse proxy and email setup, and any recent changes to hosts, containers, or Kubernetes replicas. Confirm who will provide access and how logs can leave your network. Give the consultant a read-only path first, so the initial review does not change production.
What drives the scope and effort of a troubleshooting engagement?
The main drivers are the deployment model, the number of hosts and services involved, how reproducible the fault is, and how much access and change control your environment requires. A single packaged install with clear logs is a smaller task than a Kubernetes deployment with separate worker pods, an external database and strict change windows. Air-gapped networks, shared hosts, and compliance evidence requirements also add time. Ask for a written scope that states what will be reviewed, which environments are covered, what changes are made, and how the fix is verified. Ask the provider whether follow-up work such as monitoring or documentation is included. DeployOpen agrees the scope and deliverables in writing before work starts, and provides a quote from that scope.
Is it safe to re-run failed OpenProject background jobs?
It depends on the job type and on what the job already changed. Some jobs, such as sending a notification, can produce duplicate messages if re-run, while others, such as a backup, should be restarted from a clean state with the previous partial output removed. Before re-running anything, check the logs to see whether the job failed before or after it wrote data. Take a current backup of the database and attachments, and make sure the worker that will run the job is healthy. Re-run one job type at a time and confirm the result before moving to the next. If you are unsure, treat the job as not safe to re-run until someone has verified it against your environment.
How do we prevent background job problems from coming back?
Prevention combines monitoring, capacity planning, and an upgrade routine. Alert on the worker health checks so a stopped or backed-up worker is noticed before users report missing emails. Forward worker logs to a central place and keep them long enough to investigate an incident. Size worker counts for your user load and review them after growth, and check the job queue before every upgrade so pending jobs can finish under the previous release. OpenProject 17.0 upgrades good_job, so the documentation advises letting pending jobs from 16.6 finish before that upgrade. Document the runbook, test it in a non-production copy, and schedule a review after each release.
Do we need an Enterprise plan to get help with background jobs?
Troubleshooting the worker services and logs does not depend on the edition you run, because the Community edition uses the same background job system. Licensing matters for other reasons, such as the Enterprise features your teams need. OpenProject publishes Enterprise on-premises prices per named user per month, starting with Basic at 5.95 euros per user per month, with a 25-user minimum for Professional, so check the current pricing page before budgeting. Support contracts from OpenProject and from partners are separate from the software license, so ask each provider what is covered.
Security and operational considerations for worker troubleshooting
Worker troubleshooting touches logs, health endpoints, database access and the job queue itself, so each of these needs the same care as the application. The cards below cover what to protect, who should see it and which fixes can damage data if run without a plan.
Restrict access to worker logs
Worker logs record job activity, and job activity can include personal data such as names, email addresses and the content of notifications that were sent. Limit read access to the operators who need it, and check where journalctl output is forwarded or copied. Before you share a log excerpt in a ticket, remove or mask personal data. Confirm your retention period for these logs with your privacy team, since the logging documentation covers the log levels and format you need to decide that.
- Packaged worker unit
- openproject-worker-1
Protect the worker health checks
The /health_checks/worker and /health_checks/worker_backed_up endpoints reveal whether jobs are processing and whether the queue is falling behind. Those signals are useful to an attacker planning a disruption, so they should not be open to the public internet. Confirm in the monitoring documentation how the endpoints are protected with a password, then configure your monitoring system to send that credential. Test the check from your monitoring host only.
Handle worker database credentials
Background workers connect to the same PostgreSQL database as the web application, so they hold database credentials with the same reach. Store these values in your secrets manager or protected environment files, not in shell history, tickets or chat. Restrict file permissions on configuration files that contain them, and rotate them through a planned change that restarts the workers. Ask your DBA to confirm which database role the workers use and what privileges it has.
Avoid unsafe manual job deletion
Deleting rows from the job queue by hand can remove work that was never run, such as email notifications, project copies or backup tasks, and the application will not recover it for you. Before removing anything, capture the queue state, take a database backup and confirm the job type and its effect with the OpenProject documentation or support. Prefer restarting the worker service and letting it drain the backlog over direct table edits. Record every manual action in your change log.
Let pending jobs finish before upgrades
Upgrades can change the job processing library, so a queue that still holds work during an upgrade is a risk. The upgrade documentation says that OpenProject 17.0 upgrades good_job, and that pending jobs from 16.6 should finish before that upgrade. Check the backlog health check, wait for it to clear, and only then start the upgrade. Schedule this check into your maintenance runbook so it is not skipped under time pressure.
Upgrade docsLimit network exposure of workers
Worker processes usually need outbound access to the database, mail relay and file storage, but they should not accept inbound connections from users. Review firewall rules and reverse proxy paths so that only the monitoring host reaches the health endpoints. Confirm the mail server and storage targets the workers use, and restrict those destinations to the ones you have approved. Document this network map so an auditor or new operator can verify it.
What a DeployOpen troubleshooting engagement covers
A DeployOpen background job troubleshooting engagement starts with a written scope that names the symptoms you are seeing, such as emails that stop sending, project copies that never finish or backups that stay in progress, along with the installation type, the OpenProject version and the hosting environment. Engagements are fixed-scope and agreed in writing before any work begins, so you know which systems will be reviewed, what access is needed and what the deliverables are. Confirm with us early whether the work covers only diagnosis or also includes the fix and a retest.
The first working phase is a review of the worker services and their logs. On packaged installs, this means checking the openproject-worker-1 unit with journalctl alongside the worker health checks at /health_checks/worker and /health_checks/worker_backed_up, and comparing what the logs show with the good_job threads and the queue backlog. On Docker or Kubernetes installs, the equivalent is the worker container logs and the replica state. We also look at the upgrade history, because pending jobs left over from a release before the one that moved good_job forward can change what is stuck and what should be left to finish.
The output is a documented fix plan that states the root cause, the change proposed for each affected component, the risks of each change and the checks that prove the jobs are processing again. Ongoing support, upgrades and continuous testing are available as a retainer if your team wants DeployOpen to watch the worker backlog after the fix. Ask for the fix plan in writing and confirm who on your side approves changes to production workers before the engagement starts.
How DeployOpen scopes, delivers and supports OpenProject operations
DeployOpen works on background job problems as a fixed-scope piece of OpenProject operations inside your own infrastructure. We start from the symptoms your teams see, such as stalled emails or backups that never complete, and work through worker services, logs and health checks before changing anything.
How we scope
- Written scope names the affected installation, package or Docker method, and the job types that are failing.
- We agree which worker services, log sources and health check endpoints the investigation will cover.
- Scope states whether an upcoming upgrade is in play, since job handling changes around major releases.
How we build
- We confirm worker processes, queue depth and recent failures against the health check endpoints first.
- Fixes such as worker restarts, configuration corrections or thread settings are applied in a planned change window.
- Each change is tested with a real job of the affected type, such as a notification email or a project copy.
How we hand over
- You receive a written runbook covering where worker logs live and how to read the backlog health check.
- The handover lists each change made, its reason, and the checks used to confirm the job queue is clearing.
- Your team walks through a dry run of the checks so the next incident does not depend on one person.
How we support
- Ongoing support, upgrades and continuous testing are available as retainers for OpenProject installations.
- Retainer work can include checking pending jobs before each OpenProject upgrade and confirming the queue afterward.
- Ask any partner for a quote that itemizes scope, deliverables and what recurs versus what is one-time.

