Orthanc logs and troubleshooting

A practical guide to finding Orthanc logs, using verbose and trace levels without flooding disks, fixing a busy DICOM port at startup and gathering what support needs.

On this page

Orthanc logs and troubleshooting: where to look first when Orthanc misbehaves

When Orthanc fails to start, stops accepting DICOM associations or fills a disk with logs, the fastest route to a fix is to read the evidence in a fixed order: the startup output, the log files, then the configuration that produced them. This page covers where that evidence lives on Windows and Linux, how to raise verbosity for a short investigation, how to keep log growth from becoming a second incident, the common startup failures and the material to collect before asking for help. A busy DICOM port is the classic first failure, and it is covered here because the first check is always whether another process already holds the port.

Log behavior depends on the Orthanc version and the packaging in use. A Windows service, a Debian or Ubuntu package, a Docker container and a manually run binary each write output to different places, and log settings have changed between releases. Before you rely on any path or level named in a runbook, confirm it against the version your team runs and the configuration file that version actually loads. Your own notes from the last successful start are often the most reliable reference.

Adjacent topics own the work that follows from a diagnosis. Health checks and automatic restart, Prometheus metrics, job monitoring and disk recycling each have their own page, and the database and storage settings that cause many slow-down reports are covered under storage and performance. This section stays on the first hour of investigation: locate the evidence, decide whether it points to configuration, network, storage or the database, and know what to send to the Orthanc community or to your support provider. The Orthanc Book troubleshooting FAQ is the natural next read for the project's own guidance.

Where Orthanc writes logs on Windows, Linux and Docker

On Windows, Orthanc usually runs as a service, so there is no console window to read. Where the service writes its log, and whether the log directory is set in the configuration file or left to a default, depends on the installer and the version you run. Treat any folder listed in an older runbook as a starting point to verify, not a fact about your server.

  • Service account: the service runs under a Windows account, and that account needs write access to the log folder. A permission problem can stop file logging without any visible error.
  • Configuration file: check the Orthanc configuration file for the log directory and log level settings. Confirm the exact key names and their defaults in the Orthanc Book for your version.
  • Event logs: a failure that happens before file logging starts may only appear in the Windows event logs, so check there as well.
  • Installed version: record the exact version from the installed package before you read the troubleshooting guidance, because logging behavior can change between releases.

Before you rely on any path, change a logging setting in a test copy, restart the service and confirm which file is written.

Choosing verbose and trace levels without flooding the disk

Verbose and trace output exist to answer a specific question about what Orthanc is doing at a given moment, and that is the only reason to turn them on. Default logging is usually enough to show startup failures, configuration errors and plugin load problems. Raising the level is a diagnostic step that adds detail for a short window, so treat every increase as a change that needs an owner, a reason and an end time. Write the reason down before you change anything: the symptom, the time it started, and the component you suspect, such as DICOM association handling, a database plugin or a storage area.

The risk on a busy archive is volume. Trace output records far more events per second than normal logging, and on a server handling constant DICOM traffic and REST calls the log directory can grow faster than anyone expects. A full log volume can stop the service or the logs needed to diagnose it, and heavy logging adds I/O and CPU load that can slow the server during the very problem you are chasing. Before enabling anything, check free space on the log volume, confirm where the log files go under your configuration, and confirm that the volume is not shared with the database or DICOM files. Ask your vendor or the Orthanc documentation which settings control the log level and whether they take effect on restart or on a configuration reload in your version, and test that behavior on a non-production instance.

Use a time-boxed capture plan. Set the higher level in the Orthanc configuration file, restart or reload as your version and deployment require, reproduce the problem, collect the logs, then revert to the default level and confirm that the log growth returns to normal. Schedule the revert before you start, for example in your change ticket, so it does not depend on memory. Keep the captured window short, watch free disk space while it runs, and move the captured files off the server once you have them. If a problem needs a longer capture, consider whether a narrower change, such as enabling a single component's logging, answers the question with less output.

How to manage log growth on a busy archive

A busy Orthanc archive writes logs continuously, and verbose settings can fill a disk faster than the archive itself grows. The five controls below work together: rotation keeps individual files small, separate volumes stop logs from starving storage, central shipping keeps history searchable, verbosity discipline limits what gets written, and free-space monitoring warns you before either volume fills.

Rotate logs through the host or runtime

Confirm how your packaging rotates Orthanc output before you rely on it. A Linux package may hand logs to the system logging service, while a Docker container writes to the runtime's log driver, and each has its own size and file limits. Windows installs typically write to files that you must rotate yourself. Set explicit limits, then test them by forcing a rotation and checking that old files are compressed or removed as expected. Do not assume the default limits suit a high-volume archive.

Troubleshooting FAQ

Keep logs on a separate volume

Place log directories on a volume that is not shared with the DICOM files or the database index. When logs share a disk with the archive, a runaway log can block DICOM storage and database writes, which is often the first symptom users notice. Confirm where your installation writes logs, since the location depends on the package and the service account. Size the volume for the retention window you have agreed, not for the default.

Ship logs to a central system

Forward Orthanc logs to a central log platform so that history survives a host rebuild and can be searched across instances. This matters most when several Orthanc nodes share one database, because an incident can span them. Decide which fields you need to correlate, such as time, instance name and request identifiers, and confirm your shipping agent can parse the format your Orthanc version writes. Test that a restart does not lose or duplicate entries.

Set verbosity by purpose

Keep routine operation at the standard level and raise verbosity only for a defined investigation, then return it to normal. Verbose and trace output can produce large volumes quickly, and trace output can include details you may not want stored in shared logs. Record who changed the level, when, and why. Check the Troubleshooting FAQ for the current option names in your version before changing anything on a production node.

Monitor free space on both volumes

Alert on free space for the log volume and the storage volume separately, with thresholds set well before either is full. Track growth rate as well as absolute free space, because a steady climb can signal a logging loop, a stuck job or a retry storm. Include the database volume in the same review. When an alert fires, check the largest log files first, then confirm whether the archive itself is growing as expected before deleting anything.

Fixing a startup failure when the DICOM port is busy

This sequence takes Orthanc from a failed start with a DICOM port error to a running instance, by identifying what holds the port, deciding whether to free it or move Orthanc, and confirming the fix.

  1. Read the startup error and confirm the port

    Open the Orthanc log from the start attempt and find the line that names the DICOM port and the failure, such as a port that is in use or a privileged port. Then open the configuration file and note the DicomPort value (the Orthanc Book uses 4242 as the common default example). Confirm the port in the log matches the port in the configuration, so you know you are chasing the right conflict. Done when you can state the port number and the exact error in one sentence.

  2. Find the process listening on the port

    From a terminal with administrator or root rights, list the listener on the DICOM port. On Linux, use a socket tool such as ss with the listening and process flags and filter for the port number. On Windows, run netstat with the listening and process flags and match the port, then look up the owning process ID in Task Manager or with tasklist. Record the process name, its ID and the account that runs it. Done when you have a single owner for the port or confirmed that nothing is listening.

  3. Identify the likely holder of the port

    Match the owner to the usual suspects. Another Orthanc instance is the most common case, often a service left running after an upgrade or a second copy started by hand from a different folder. Network client software is the other frequent cause, and the Orthanc Book names a Juniper VPN client as a known holder of port 4242. Check whether the owner is an Orthanc process by its executable path and its own configuration. Done when you can say whether the holder is Orthanc, a VPN or other client, or an unrelated service.

  4. Choose between freeing the port and moving Orthanc

    If the holder is a stale Orthanc instance or an application you do not need on this host, stop it through the service manager, not by force-killing a process that a supervisor will restart. If the holder is a client that must keep running, such as a VPN that your staff depend on, change the DicomPort value in the Orthanc configuration to a free port that your modalities and peers can reach, and update each remote peer and modality entry that points to this server. Confirm with the network or security team before changing a port that other sites use. Done when you have one agreed change written down.

  5. Apply the change and restart Orthanc

    Make the chosen change in one place only: stop the conflicting service, or edit the DicomPort value in the configuration file and save it. Restart Orthanc through its service manager or your container runtime so the configuration is reloaded. Watch the startup log for the line that reports the DICOM server listening on the port. Done when the log shows a clean start with no port error.

  6. Verify the listener and the DICOM association

    Repeat the listener check from the earlier step and confirm that exactly one process owns the intended port and that it is the Orthanc process. Then test a DICOM association from a known client, such as a modality or a DICOM echo tool, to the new or restored port. Check the Orthanc log for the incoming association. Done when the listener is correct and an echo from a known peer succeeds, which confirms the port is reachable end to end.

  7. Record the fix and the remote changes

    Write down the original error, the process that held the port, the decision you made, and the configuration values before and after. If you changed the port, list every modality, peer and firewall rule that now needs the new value, and confirm each one with its owner. Keep this record with the server's configuration so the next person can tell whether a future conflict is new. Done when the change record names every dependent system and has been reviewed by the person who runs the server.

Common startup errors and what each one usually means

Why does Orthanc fail to start because the DICOM port is already in use?

The DICOM port is usually held by another process, most often a second Orthanc instance or other software. The Orthanc Book names port 4242 as a common case and notes that a Juniper VPN client can hold it. The first check is to find which process owns the port on the host, using a tool such as netstat or ss on Linux or netstat -ano on Windows, then stop it or change the DicomPort value in the configuration file. Confirm the port number your modalities and peers expect before changing it, because a new port means every remote system must be updated.

What does it mean when Orthanc cannot bind to a privileged DICOM port?

Ports below 1024 are privileged on Linux and macOS, so a process started without elevated rights cannot listen on them. The symptom is a startup failure during socket binding, and the log entry usually reflects a permission denial rather than a conflict. The likely cause is that Orthanc runs as a regular service account while DicomPort is set to a low number. The first check is whether the port is below 1024 and which account runs the service. Either use a non-privileged port with your modalities updated to match, or grant the service the rights your platform requires. Confirm the approach with your platform team, since service privilege changes affect the whole host.

How do I troubleshoot an HTTP port conflict when Orthanc starts?

The REST API and Orthanc Explorer listen on a separate HTTP port, so an HTTP conflict fails independently of the DICOM listener. Startup fails when another web server, reverse proxy, or second Orthanc already uses the configured HttpPort. The first check is to identify the owner of that port and confirm whether your reverse proxy points to the correct backend. Remember that by default Orthanc only accepts HTTP connections from localhost, so a proxy on another host needs the configuration described in the security documentation. Change HttpPort only after confirming which clients, health checks and proxies depend on the current value.

What causes an Orthanc configuration file syntax or path error?

Orthanc reads its settings from a JSON configuration file, and a single misplaced comma, quote or bracket stops the server before it starts. Path errors happen when the file is not where the service expects it, or when a configured folder such as the storage directory does not exist. The first check is to validate the JSON with a parser and confirm the file path passed to Orthanc on the command line or in the service definition. Also compare the file with the version your installation expects, because a key renamed between releases can be rejected. Keep the last working copy under version control so a rollback takes minutes, not an afternoon.

Why does Orthanc fail when its database or index cannot be opened?

Database failures occur when the configured index cannot be opened or initialized, for example when the SQLite file is locked, corrupted, or stored on a path the service cannot write to. When a database plugin such as PostgreSQL is used, the cause is often a wrong host, port, credential, or a database user without schema rights. The first check is the database configuration section, then whether the database server is reachable from the Orthanc host. Confirm that no other process holds a lock on the SQLite file and that the database user has the privileges your Orthanc version needs. Check the database plugin documentation for the exact requirements before changing grants.

How do I diagnose storage path permission errors on startup?

A storage permission error means the Orthanc service account cannot read or write the folder that holds DICOM files, usually because the folder was created by another user or mounted with restrictive rights. Typical causes include a new volume, a container that runs as a different user ID, or a directory copied from a backup with altered ownership. The first check is the owner and permissions of the storage directory compared with the account that runs Orthanc, using ls -ld on Linux or the folder properties on Windows. Fix ownership rather than broadening permissions to everyone, and confirm the path in the storage section of the configuration file matches the mounted location.

What should I check first when Orthanc stops right after launch?

Start with the log, because most startup errors are recorded there before the process exits. Read the first error rather than the last, since later messages are often a consequence of the first failure. Then work through the categories in order: port ownership, configuration syntax and paths, database access, and storage permissions. Running Orthanc in the foreground from a terminal makes the error visible immediately, which helps when the service manager hides output. Whatever you find, record the exact message and the configuration change that preceded it so the cause can be reproduced and reported if you need outside help.

What to collect before asking Orthanc support for help

A support request is only as useful as the evidence behind it. The cards below cover the artifacts a vendor or partner will ask for first, and each one should be gathered and sanitized before anything leaves your network. Work through them in order so the person helping you can reproduce the problem instead of guessing at it.

Exact version and packaging

Record the Orthanc version, the build (Windows installer, Linux package, or Docker image tag), and any database or storage plugin versions loaded alongside it. Note whether the server was upgraded recently, since a plugin that does not match the core version is a common source of startup failures. Copy the version from the server itself or the Explorer interface rather than from memory, and state the packaging in the first line of your request.

Orthanc downloads

Sanitized configuration file

Share the configuration file with passwords, tokens, API keys and connection strings removed before sending it. Replace each secret with a placeholder that shows the key existed, and keep the rest of the settings intact, including the DICOM port, HTTP port, remote access and authentication flags. Ask whether the support contact needs any environment overrides from your container or service definition as well.

Log window at the right verbosity

Capture the log lines from a window that covers the failure, starting a little before the first symptom. Raise verbosity only for the time needed to reproduce the problem, because verbose and trace output grow quickly and can contain patient-related details. Confirm the verbosity you used so the reader knows whether a missing line means it did not happen or was not logged.

Operating system and container details

Name the operating system and version, the kernel or Windows build, and for containers the image tag, the container runtime, and resource limits such as memory and CPU. Include the mounted volumes and their paths, since a permission or missing mount often looks like an Orthanc fault. Mention any firewall, VPN client or security agent running on the same host, because another process holding a port can block startup.

Database engine and version

State which index engine Orthanc uses, whether the default SQLite index or a plugin such as PostgreSQL, MySQL or MariaDB, and the exact engine version. Note where the database runs, whether on the same host, in a container, or on a separate server, and whether the index and the DICOM files are on the same storage. Database errors are often the first clue in a log, so include the engine details with the log window.

Recent changes and reproduction steps

List what changed in the period before the problem began, including upgrades, configuration edits, new plugins, certificate renewals, network changes and host patches. Then write the shortest sequence of actions that reproduces the fault, with the exact requests or DICOM operations sent and the time each one ran. A numbered sequence that another person can follow is usually worth more than a long description of symptoms.

How to move from symptom to evidence to fix

The path starts with an observed symptom and first asks whether Orthanc starts at all. If it does not, the port and configuration are checked, since a busy DICOM port (for example, port 4242 held by another Orthanc or a VPN client) is a common cause. If Orthanc runs, the logs are read at the default level first. Verbosity is raised only for a bounded time, the support bundle is collected, and only then is the fix applied and verified.

Decision path from a symptom to a verified fix.

Protecting patient data inside logs and support bundles

Orthanc logs and traces can reveal patient-related details, study activity and network information, so they deserve the same access control as the archive itself. The cards below cover where that exposure comes from, how to restrict it and what to check before anything leaves your network.

Treat log folders as sensitive data

Orthanc logs can include identifiers, request details and network information that point back to patient activity. Restrict read access on the log directory to the service account and the few administrators who troubleshoot, and do not leave logs world-readable on shared servers. Check that backups and file-sync tools do not copy log folders to places with weaker controls than the archive. Confirm the exact contents of your log level with your own test instance before you decide what to retain.

Set log retention on purpose

Verbose and trace logs grow quickly and keep data longer than most teams plan for. Define a retention period in your policy, rotate files on a schedule, and delete old copies on the same schedule across every node. Retention should match your records and privacy obligations, which your compliance lead must confirm. Keep the period short enough to limit exposure and long enough to investigate an incident that was noticed late.

Keep risky routes disabled

The Orthanc security FAQ warns that the /tools/execute-script route can let a malicious user run system commands, and that the export route can overwrite files. Keep both disabled in production so a troubleshooting session or an attacker cannot use them to alter the host or its logs. Review your configuration after each upgrade, because defaults and route behavior can change between releases.

Orthanc security FAQ

Restrict remote access before sharing logs

Orthanc accepts HTTP connections only from localhost by default. If RemoteAccessAllowed is enabled, set AuthenticationEnabled to true, define users in RegisteredUsers, and place the server behind HTTPS and a reverse proxy. Logs are easier to pull from a remote host, so an open REST interface turns a support request into an exposure path. Verify that only the intended networks can reach the port before you open a remote session to a vendor.

Redact before a bundle leaves

A support bundle may include configuration files, log excerpts and sample request data. Before you send anything outside your organization, remove patient names, identifiers, hostnames, internal IP addresses and credentials from every file, including the configuration. Use a checklist, have a second person review the bundle, and record who approved it. Ask your vendor which fields they need, so you send the minimum rather than a full dump of the server.

Transfer bundles over approved channels

Send support bundles only through channels your security and privacy policies approve, such as an encrypted file share or a secure ticket attachment that your organization controls. Avoid personal email, public file-sharing links and chat tools that retain copies outside your governance. Agree on how the vendor will delete the bundle after the case closes, and ask for that commitment in writing. Confirm the transfer method with your own security team before the first incident.

What troubleshooting Orthanc costs and what it needs from your team

Can an internal team handle routine Orthanc log diagnosis on its own?

Yes, most routine log diagnosis can be done by an internal team that has Linux or Windows administration skills and basic familiarity with DICOM. Startup failures, port conflicts, permission errors and database connection problems are usually visible in the log once the team knows where the log files are and which verbosity level to use. The harder cases are intermittent failures, DICOM association problems between modalities and Orthanc, and issues that only appear under load. For those, the team needs network captures, configuration files and version details, and it helps to have someone who understands the DICOM side of the exchange. Confirm early whether your staff have the time and access to run these investigations during business hours.

What drives the effort of troubleshooting an Orthanc problem?

Effort rises with the number of environments, the plugin mix, the database choice and the access restrictions around the server. Each environment (development, test, production, disaster recovery) may run a different version, configuration and plugin set, so the team has to confirm which one produced the failure. Plugins such as the PostgreSQL, S3 or DICOMweb plugins add their own log output and failure modes. A SQLite index is simpler to inspect than a shared PostgreSQL database used by several instances. Restricted access to the host, the log files or the change window adds delay because every test needs approval. Ask any partner to price the work from the written scope and the number of environments involved.

How long does a first Orthanc diagnosis take?

The time to a first diagnosis depends mostly on the quality of the evidence available when the problem is reported. A clear log excerpt with the timestamp, the Orthanc version, the operating system, the configuration file with secrets removed and a description of what changed recently usually narrows the cause quickly. Without that material, the work becomes a series of requests for information, and each round adds time. Intermittent problems can take longer because they must be reproduced or caught in the act with higher logging enabled. Ask any provider to state its assumptions about evidence and access in the quote, and do not plan a production fix on an estimate that does not list them.

What does the work need from our team to start?

The work needs four things from your side: access, sample evidence, a change window and a named contact who can approve actions. Access means read access to the log files and configuration, and, for a fix, the ability to restart the service and change settings in the environment. Sample logs should cover the failure itself plus the period before it, collected at the verbosity level that the team has agreed is safe for production. Change windows matter because raising log levels, restarting Orthanc or changing the port can interrupt modalities and viewers. Confirm your change process, record approvals in writing and keep copies of the original configuration before any edit.

What should we collect before asking for help with Orthanc?

Collect the Orthanc version, the operating system and its version, the installation method (Windows package, Linux package or Docker image), the full startup or error log around the failure, and the configuration file with passwords and tokens removed. Add the database plugin in use and its version, a list of recent changes including upgrades and certificate renewals, and the network path between Orthanc and its clients. For DICOM problems, record the calling and called application entity titles, the port and the time of each failed association. Do not send patient data in logs or captures without the approval of your privacy or compliance team, and confirm how any third party will store the material.

Can a port conflict stop Orthanc from starting, and how do we check it?

Yes, Orthanc may fail to start if its DICOM port is privileged or already in use. The Orthanc Book notes that another Orthanc instance or other software, such as a Juniper VPN client, may hold port 4242, which is the default DICOM port. Check the startup log for the bind error, then identify the process holding the port with the operating system's network tools. Either stop the conflicting process or change the DICOM port in the configuration, and make sure every modality and peer is updated to match. Confirm the change with the people who manage those devices before you restart anything in production.

When does a partner add value to Orthanc troubleshooting?

A partner adds value when the problem spans several systems, when the internal team lacks DICOM or database depth, or when an outage has a clear deadline. Orthanc Team SRL, the company that sells deployment, configuration and development services for Orthanc, offers pre-paid dedicated support hours that are valid for 12 months and quoted on request. DeployOpen implements, hardens, backs up, upgrades and supports self-hosted open-source platforms inside your infrastructure, and it can work alongside that support. Ask any provider for a written scope, the hours or days it expects to need, the access it requires and who carries the change risk. Pre-paid hours suit occasional issues, while a retainer suits ongoing operations.

How DeployOpen scopes and delivers Orthanc troubleshooting

A troubleshooting engagement for Orthanc starts with a written scope that names the instances, operating systems, Docker or package installs, and log destinations involved, and states what the work will not cover, such as changes to the database engine or the storage layout. DeployOpen works inside the client's own cloud accounts, data centers or air-gapped networks, so the scope also records who grants access to the hosts, where the logs are kept, and which people approve configuration changes. Because most engagements are fixed-scope, the deliverables and the verification steps are agreed before anyone touches a server. Clients should ask for that document to name each symptom being investigated and the evidence expected for each one.

The evidence collection plan comes first. For each Orthanc node, it lists the log files to capture on Windows or Linux, the current LogLevel and any verbose or trace settings in use, the orthanc.json configuration as deployed, the Orthanc version, the database plugin and its version, and the host's port and service state at the time of failure. Logs from a failing startup are gathered before any restart, because a restart may overwrite the evidence. The configuration review then checks the same files for ports such as the DICOM port, log rotation or retention, and any settings that would expose the REST API. Fixes follow from that review and are applied one at a time so each change can be verified against the original symptom.

Verification uses the same evidence that exposed the problem, and the handover delivers runbooks that the client's own team can follow. Runbooks cover where logs live, how to change verbosity safely and then revert it, how to rotate or archive logs without losing the record of an incident, and what to collect before opening a support request. Clients who want continued help can add a retainer for ongoing support, upgrades and continuous testing. Those terms, and the cost of each component, are set out in the written scope. DeployOpen does not issue audit reports or certifications, so any compliance evidence produced here is prepared for the client's own assessors.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.