Skylark SDK on this machine: troubleshooting
What to do when the Skylark SDK won't start, stays on "Loading models", refuses your key or your camera, and the files, ports and limits behind it.
This page is for the SDK you start from the Hub, described in
Run the Skylark SDK on this machine. Find your symptom below; the wording
matches what hubctl and the Library show. Where a fix needs a terminal on a desktop
machine, hubctl is installed with the Linux desktop Hub.
First look
hubctl sdk status # active? URL? AI: ok / down / degraded
sudo hubctl sdk logs -n 100 # the SDK and the AI server, most recent last
curl -s http://127.0.0.1:8092/healthzOn the desktop Hub, Stopped with an error on the card has a See what happened link, and with developer mode on, the Logs page shows the same log.
Starting
Your hubctl predates the SDK. Update it, then try again:
sudo hubctl self-updateor run the one-line install command from Skylark Central again; it installs the latest release and keeps your activation.
The SDK is a product of its own, installed from Skylark Central. Install it:
sudo hubctl install skylark-sdkOn the desktop, select Install on the Skylark SDK card under Developers. The card is always listed on Linux; while it reads Needs an AI service, you can install the SDK but not start it until a Kepler AI build is installed. If Install is disabled with No download is available right now, Central has no SDK release for this machine yet; check the catalog banner and try later.
The SDK needs /etc/skylark/license.json, which it uses to fetch its models and as the
API key. A desktop Hub signed in with an account doesn't write that file. Activate
the machine once, with your organization's key:
sudo hubctl activate <org-key>Use the long organization key (64 characters), not a per-license
XXXXX-XXXXX-XXXXX-XXXXX key and not an skl_… console key. See
Activation. No restart is needed; the SDK re-reads the file when
it changes.
The SDK runs on the Kepler AI the Hub installed and found none under
/opt/kepler-ai-<profile>. Install it:
hubctl doctor # which profile fits this machine
sudo hubctl install aiIf doctor finds no supported accelerator there is nothing to install: the SDK needs a
Jetson Orin, an NVIDIA GPU with driver 525 or newer, or a Hailo-8 card. See
Hardware and AI profiles.
The installed Kepler AI is older than 1.1 and doesn't carry the SDK server. Update it:
sudo hubctl update --yes # or Update on its row in the LibraryKepler AI must be stopped to update; the Hub tells you if it is running.
You asked for a different listen address while it runs. Stop it, then start it with the new address:
sudo hubctl sdk stop
sudo hubctl sdk start --listen 0.0.0.0:8092Starting it again on the same address is harmless and answers already running.
The service exited right away. The message includes its last log lines; the usual causes are the ones above (no license, no AI package, old Kepler AI), or port 8092 or 50053 already taken (see Ports below). Fix the cause and start again; a failed earlier run doesn't block the next start.
Models and the AI
The log lives in the system journal, which only root and members of the
systemd-journal group can read; without permission journalctl shows nothing rather
than an error. Run sudo hubctl sdk logs, or add your account to that group once
(sudo usermod -aG systemd-journal $USER, then sign in again).
Give the first start time: it downloads the SDK's models from Skylark Central (gigabytes) and loads them onto the accelerator. Watch it:
sudo hubctl sdk logs -fYou should see model downloads, then the models loading, then
Skylark SDK gRPC service started; AI: ok follows within half a minute. Lines
saying AI health check failed … Unavailable every few seconds until then are normal.
If the log shows Cloud delivery failed, a
401 or a 403, Central rejected the machine's key: check that
/etc/skylark/license.json holds the organization key (not a per-license key) and that
your organization's license is active. If it shows connection errors, the machine can't
reach https://central.skylarklabs.ai; check the network and any proxy. A Python
ImportError or CUDA/TensorRT error points at the Kepler AI install itself; update
Kepler AI, and if it persists, raise a support ticket with the log.
The AI server is up but some or all models failed to load, most often because their
download was refused (a rejected key, see above) or the accelerator ran out of memory.
sudo hubctl sdk logs names the models and the reason. Stop other GPU work, or on a shared
machine pin the AI to one GPU (see Pin a GPU below), then
sudo hubctl sdk stop and start again.
That is by design: the machine runs the SDK or Kepler's AI service, not both. Stop the
SDK (sudo hubctl sdk stop, or Stop on the card) and Kepler's AI service starts
again. Run the SDK on a machine Kepler doesn't depend on if you need both at once.
The SDK was started while Kepler's AI service was still starting (loading its
models), and a service in that state is not paused. Stop the SDK, let Kepler AI finish
starting (its row reads Running, or systemctl is-active says active), then start
the SDK again; or stop Kepler AI first. Stopping the SDK in this state leaves Kepler AI
as it is.
The SDK starts Kepler's AI service again when it ends, even after a crash, if that
service was running when the SDK started. If Kepler AI was stopped before, it stays
stopped; start it from its row or with hubctl start. If it was running and is still
stopped, start it yourself and read the SDK's log for the reason:
sudo hubctl start kepler-ai-workstation # or kepler-ai-jetson / kepler-ai-hailo
sudo hubctl sdk logs -n 50Calls from your code
The key in your Authorization: Bearer header isn't the one in
/etc/skylark/license.json. skl_… console keys and per-license keys don't work on a
device; use the organization key the machine was activated with. If someone activated
the machine with a new key, running streams end and new calls need the new key.
The SDK isn't running (hubctl sdk status), or you are calling from another machine
while it listens on loopback only. Start it, or start it with
--listen 0.0.0.0:8092 for the network; see
Reach it from other machines.
Check hubctl sdk status says AI: ok (while it says degraded, calls answer with
empty results), then try a clear, camera-sized frame: a small thumbnail of a street may
legitimately contain nothing the model recognizes. counts lists every class the model
looked for, so an empty detections with all counts at 0 is a real "nothing found",
not an error.
Install it and try again; no restart is needed:
sudo apt install ffmpegImages never need it; video files and camera streams always do. hubctl sdk start
warns when it is missing.
The SDK refuses stream addresses that point back at the machine itself: localhost,
127.0.0.1, and every address the machine has on its own interfaces. Link-local,
multicast and broadcast addresses are refused too. Use the camera's own address on your
network. A test stream must run on another host, for example a second machine or a
container with its own address.
stopReason in the stream's final state says why. The common ones: nobody read its
events for a couple of minutes (idle), it reached its maximum duration (24 hours, or the
max_minutes you gave), the camera stopped answering for too long, or the machine's
license key changed. Start it again when you need it.
One machine, one accelerator: the SDK runs a handful of requests at a time and queues
the rest, and the model warms up on its first calls. Camera streams share the same
accelerator, so lower their fps or run fewer of them when you also send images.
Expected. A device has no accounts, API keys, usage or billing pages; those exist only in the cloud. The organization key is the only credential.
Machine
The SDK API listens on 8092, the AI server it runs on 50053. Find what holds them:
sudo ss -ltnp | grep -E ':8092|:50053'A left-over AI server from a previous attempt, or another copy of the SDK server, is the
usual culprit; stop it. If 8092 is taken by something you need, start the SDK on
another port: sudo hubctl sdk start --listen 127.0.0.1:9000.
The SDK's AI runs with the same environment as Kepler AI's service, so the standard CUDA variable works. Add it to Kepler AI's environment file and start the SDK again:
echo 'CUDA_VISIBLE_DEVICES=1' | sudo tee -a /etc/kepler-ai-workstation/environment
sudo hubctl sdk stop && sudo hubctl sdk startAn account sign-in with hubctl login is stored per user, so root doesn't see yours.
Activation with the organization key is shared by everyone on the machine, and is what
the SDK needs:
sudo hubctl activate <org-key>By design. The SDK never starts by itself, so a Kepler site always comes back with
Kepler's AI. Start it again when you need it: sudo hubctl sdk start, or Start on
the card.
A running SDK can't be updated, because its service would carry on from the replaced program. Stop it, update, start it again:
sudo hubctl sdk stop
sudo hubctl update --yes
sudo hubctl sdk startThe Library's Update button says the same: Stop the SDK to update it.
Reference
Files, services and ports
| The SDK program | /usr/lib/skylark-sdk/skylark-sdk, from the skylark-sdk package |
| The running SDK | systemd unit kepler-ai-sdk.service, created on start, gone on stop |
| Kepler AI | /opt/kepler-ai-<profile> and kepler-ai-<profile>.service, where <profile> is jetson, workstation or hailo |
| Activation | /etc/skylark/license.json |
| Downloaded models | Kepler AI's own models folder, owned by its kepler user |
| Temporary uploads | /var/cache/kepler-ai-sdk, cleaned by the SDK |
| API | 127.0.0.1:8092 (--listen changes it) |
| AI server | 50053, used by the SDK on the same machine |
| Logs | sudo hubctl sdk logs, or sudo journalctl -u kepler-ai-sdk |
Limits on a device
| Metering | None. Responses keep a credits block: cost counts frames, costMicros is 0, remaining is unlimited. |
| Requests in flight | A handful at a time per machine; the rest queue. |
| Camera streams | 4 at once; 24 hours each at most; stopped after a couple of minutes without a reader. |
| Video files | As in the cloud: a job you poll, frames with timestamps back. |
| Models | The catalog's five models, loaded on this machine's accelerator. |
Still stuck?
Raise a support ticket with the output of hubctl sdk status --json,
hubctl doctor and sudo hubctl sdk logs -n 200, and say what you called and what came
back.
Run the Skylark SDK on this machine
Install the Skylark SDK from the Hub and call Skylark's detection models from your own code on this machine, with the same API and clients as the cloud SDK and nothing leaving the machine.
Tray and startup
Skylark Hub runs in the system tray, starts with your computer and keeps checking for updates in the background.