Skip to content

Runtime Status Checks ​

Use this page before integration to confirm that the SDK Open local runtime is running, TLS is trusted, and Command WS can answer the system heartbeat. All checks are read-only; they do not install, upgrade, restart, or modify Runtime configuration.

  1. Confirm that the operating-system service is running.
  2. Call the external HTTPS health endpoint: GET https://sdk-runtime.localhost:18082/healthz.
  3. Open anonymous Command WSS: wss://sdk-runtime.localhost:18090, then send system.ping.
  4. Continue to the business flow auth.create_session -> device.list -> device.open -> video.start only after both protocol checks pass.

Status mapping:

StatusRuleMeaning
healthyBoth HTTPS healthz and Command WSS system.ping pass.Runtime is alive and the command channel is ready.
degradedExactly one protocol check passes.Runtime is partially reachable; TLS, port, or Command WS readiness may still be wrong.
unavailableBoth protocol checks fail.Runtime is not running, endpoints are unreachable, or the local certificate/host mapping is invalid.

1. Read-only Service Checks ​

These commands only inspect service state. They do not start, stop, or restart services.

powershell
Get-Service sdk-open
sc.exe query sdk-open
bash
systemctl status sdk-open.service --no-pager
bash
launchctl print gui/$(id -u)/com.czur.sdk-open

If your installer or enterprise deployment guide uses another service name, follow that package-specific document. Do not restart, reinstall, or modify system services as part of a connection probe.

Confirmed Certificate and Installation Facts ​

The protocol checks are the same on Linux, Windows, and macOS, but certificate trust and service hosting are owned by the installer. Currently confirmed facts:

PlatformService/runtime modelCA and TLS files
WindowsService name is sdk-open, running as a local system service.The default root CA is imported into the system trust store, and a public CA copy is available at C:\Users\Public\Documents\CZUR\local-runtime-root-ca.cer.
Linuxsystemd service name is sdk-open.service.The root CA public certificate is installed at /usr/local/share/ca-certificates/local-runtime-root-ca.crt, and sdk-runtime.localhost maps to 127.0.0.1.
macOSRuns for the logged-in user through the com.czur.sdk-open LaunchAgent.Runtime initializes the service certificate and private key under ~/Library/Application Support/CZUR/sdk-open/tls.

If a client uses an independent certificate store, import the confirmed CA above or the CA provided by your enterprise deployment. --ca-file should be an explicit trust setting for the current process only; it should not modify the system certificate store.

Platform troubleshooting facts ​

The following details are manual troubleshooting hints only. They do not replace the healthz and system.ping protocol checks:

  • Linux: the Debian installer enables and starts sdk-open.service. Runtime configuration is /etc/czur/sdk-open/runtime.env; the service certificate and key are under /etc/czur/sdk-open/tls/. sdk-runtime.localhost should resolve to 127.0.0.1.
  • Windows: the NSIS installer registers the sdk-open service, which runs as LocalSystem in Session 0. Runtime configuration is C:\ProgramData\CZUR\sdk-open\runtime.env. The default service certificate, private key, and root CA are under C:\ProgramData\CZUR\sdk-open\tls; the installer also adds the root CA to LocalMachine Root and provides the public copy listed above.
  • macOS: the PKG places Runtime under /Library/CZUR/sdk-open and starts sdk_open_app for the logged-in user through /Library/LaunchAgents/com.czur.sdk-open.plist. The first run initializes the service certificate and private key under ~/Library/Application Support/CZUR/sdk-open/tls. Current source and packaging materials do not confirm automatic Keychain import or a fixed macOS CA file path, so do not guess a path or provide an automatic import command.

2. Check HTTPS healthz ​

The external SDK uses the TLS endpoint by default:

bash
curl --fail --show-error --silent https://sdk-runtime.localhost:18082/healthz

A successful response is JSON:

json
{
  "ok": true,
  "service": "sdk_open",
  "ts": 1710000000
}

This endpoint only proves that the local HTTPS Runtime service is alive. It does not prove that a device is connected, an API key is valid, providers are ready, or an account has quota for a specific capability. The endpoint does not require Authorization, and responses should not be cached. See Local HTTP(S) API for the full contract.

If a certificate error occurs, install or import the Runtime official certificate chain or the CA for your custom deployment. Do not use curl -k, --insecure, disabled TLS verification, or automatic downgrade to http://127.0.0.1:17082.

3. Check Command WSS Heartbeat ​

Command WS can be opened anonymously. The handshake URL does not include an API key, session token, or business parameters:

text
wss://sdk-runtime.localhost:18090

After the connection opens, send:

json
{
  "request_id": "req-ping-001",
  "method": "system.ping",
  "params": {},
  "client": {
    "source": "your-app",
    "protocol_version": "2.0.0"
  }
}

Successful response:

json
{
  "request_id": "req-ping-001",
  "code": 0,
  "message": "ok",
  "data": {
    "pong": true
  },
  "ts": 1710000000
}

system.ping only proves that Command WS can process anonymous system requests. Device, capture, image, OCR, and file-conversion calls still require a connection-bound session created with auth.create_session.

Use czur-open doctor ​

If CZUR Open Toolkit CLI is installed, run the same protocol checks:

bash
czur-open doctor
czur-open doctor --json

For a custom TLS deployment, pass explicit endpoints and a CA file:

bash
czur-open doctor \
  --health-url https://runtime.example.test:18082/healthz \
  --command-url wss://runtime.example.test:18090 \
  --ca-file /path/to/runtime-ca.pem \
  --timeout 5000

doctor only checks Runtime reachability. It never downloads, installs, upgrades, restarts, or changes system configuration. In JSON mode, stdout contains exactly one JSON document for scripts or CI; diagnostic text is written to stderr.

Common Next Steps ​

  • Service is not running: start it according to the installer documentation; business applications should not silently start or reinstall Runtime.
  • healthz fails but the service exists: check whether sdk-runtime.localhost resolves locally, whether the HTTPS port is occupied, and whether the certificate chain is trusted by the client.
  • healthz passes but system.ping fails: check the Command WSS port, TLS hostname, proxy configuration, and Runtime logs.
  • system.ping passes but business APIs fail: continue with auth.create_session, API key validity, device authorization, device-open state, and the returned error code.

CZUR Open Platform Documentation