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.
Recommended Order
- Confirm that the operating-system service is running.
- Call the external HTTPS health endpoint:
GET https://sdk-runtime.localhost:18082/healthz. - Open anonymous Command WSS:
wss://sdk-runtime.localhost:18090, then sendsystem.ping. - Continue to the business flow
auth.create_session -> device.list -> device.open -> video.startonly after both protocol checks pass.
Status mapping:
| Status | Rule | Meaning |
|---|---|---|
healthy | Both HTTPS healthz and Command WSS system.ping pass. | Runtime is alive and the command channel is ready. |
degraded | Exactly one protocol check passes. | Runtime is partially reachable; TLS, port, or Command WS readiness may still be wrong. |
unavailable | Both 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.
Get-Service sdk-open
sc.exe query sdk-opensystemctl status sdk-open.service --no-pagerlaunchctl print gui/$(id -u)/com.czur.sdk-openIf 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:
| Platform | Service/runtime model | CA and TLS files |
|---|---|---|
| Windows | Service 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. |
| Linux | systemd 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. |
| macOS | Runs 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.localhostshould resolve to127.0.0.1. - Windows: the NSIS installer registers the
sdk-openservice, which runs asLocalSystemin Session 0. Runtime configuration isC:\ProgramData\CZUR\sdk-open\runtime.env. The default service certificate, private key, and root CA are underC:\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-openand startssdk_open_appfor 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:
curl --fail --show-error --silent https://sdk-runtime.localhost:18082/healthzA successful response is 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:
wss://sdk-runtime.localhost:18090After the connection opens, send:
{
"request_id": "req-ping-001",
"method": "system.ping",
"params": {},
"client": {
"source": "your-app",
"protocol_version": "2.0.0"
}
}Successful response:
{
"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:
czur-open doctor
czur-open doctor --jsonFor a custom TLS deployment, pass explicit endpoints and a CA file:
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 5000doctor 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.localhostresolves locally, whether the HTTPS port is occupied, and whether the certificate chain is trusted by the client. - healthz passes but
system.pingfails: check the Command WSS port, TLS hostname, proxy configuration, and Runtime logs. system.pingpasses but business APIs fail: continue withauth.create_session, API key validity, device authorization, device-open state, and the returned error code.