Jetson remote reboot and recovery: what to do when a Jetson hangs in the field
To recover Jetsons remotely, stack the fixes: reboot over SSH or your fleet tool while the Jetson still answers, let the Orin hardware watchdog (systemd's RuntimeWatchdogSec) and kernel.panic reboot it when it doesn't, and flash with ROOTFS_AB=1 so a bad update falls back to the other root filesystem after three failed boots. Force recovery mode and reflashing need someone on site with a USB cable. With PhysicalFleet, Reboot machine in the ⋯ menu waits while your app holds pf busy, the Guardian restarts a stuck agent, and Last reset tells you whether a Jetson came back from a watchdog, a power-on or a thermal shutdown.
What you need
- Jetson Orin modules on JetPack 6.2.x (Jetson Linux 36.x, Ubuntu 22.04) or JetPack 7.2.x (Jetson Linux 39.2.x, Ubuntu 24.04). As of December 2026 the latest are JetPack 6.2.3 and 7.2.2.
- A way in while things work: SSH or an agent, with sudo.
- Flash access at provisioning for A/B root filesystems: an Ubuntu host with the Jetson Linux BSP and a USB-C cable.
- Optional: a switched outlet or a relay on the Jetson's DC input.
- A PhysicalFleet account for the PhysicalFleet steps, free for up to 3 machines.
The work happens in advance: a Jetson that has already hung can't be told to turn on its watchdog. Set up every layer while the fleet is healthy, and test each on a bench unit.
"Hung" means different things
When a Jetson stops responding, something stopped at one layer, and each layer has its own way back. From outside they look alike, which is why you want all of them:
| What hung | What you see | What brings it back |
|---|---|---|
| Your app: alive, its loop stuck | Online, the robot idle | A service watchdog, an app health check |
| The network or the agent | Offline, the Jetson still working | The link returning; the agent's rescue program |
| User space overloaded: memory gone, tasks stuck on storage | SSH times out, ping may answer | A reboot from outside, the hung-task detector |
| The kernel: soft lockup, oops, panic | Silent; a serial console shows it | kernel.panic set to reboot |
| Everything: CPUs stop servicing | Silent, nothing on the console | The hardware watchdog |
| The next boot, after a bad update | Never comes back | A/B root filesystem fallback |
| Heat or power | Silent, may return alone | Cooling or a better supply |
| The bootloader: no bootable slot | Won't boot | Force recovery and a reflash, on site |
Ways to recover a Jetson remotely
| Method | Best for | Downsides on a Jetson |
|---|---|---|
SSH and sudo reboot | A Jetson that still answers | Needs a network path; useless once it hangs |
Forced reboot: systemctl reboot --force, SysRq | A reboot stuck stopping services | Needs a working shell; the hardest forms can lose data |
| Hardware watchdog via systemd | Kernel and full-system hangs | Off by default, one owner per device, blind to a stuck app |
| Kernel panic reboots | Panics, oopses, soft lockups | Linux's default (0) loops forever on a panic |
| A/B root filesystems | An update that won't boot | Set at flash time, halves each rootfs, rules out Debian package OTA |
| Remote power switch | A dead module | Hardware per robot; does not advance A/B fallback; a cut mid-write can damage the filesystem |
| Someone on site with USB | A bricked bootloader, a reflash | A trip, a host computer and a cable |
| An agent with a relay, which is how PhysicalFleet works | Reboots from anywhere, knowing when and why a Jetson went down | An account with the provider; like anything on the Jetson, it relies on the layers above for kernel hangs |
Step 1: Reboot cleanly, and what to do when reboot itself hangs
A normal reboot stops every service, unmounts the filesystems and resets the module. When a service refuses to stop, systemd has escalating forms, down to the equivalent of pulling the plug:
sudo systemctl reboot # orderly: stop services, unmount, reboot
sudo systemctl reboot --force # skip stopping services; still kills processes and unmounts
sudo systemctl reboot --force --force # immediate, without unmounting: may lose data
# when systemd itself is stuck but the kernel answers: sync, remount read-only, reboot
echo s | sudo tee /proc/sysrq-trigger
echo u | sudo tee /proc/sysrq-trigger
echo b | sudo tee /proc/sysrq-trigger/proc/sysrq-trigger works for root even when the SysRq keys are disabled; b reboots without syncing, which is why s and u go first. systemd also arms the hardware watchdog for the last phase of a reboot (RebootWatchdogSec=, 10 minutes by default), so a reboot that hangs after services stopped still completes.
Two Jetson details. Some nvpmodel changes need a reboot, so plan one with every power mode change. And NVIDIA's Jetson Linux 39.2 release notes list a known issue (6236259): a power mode whose memory clock is below its maximum, applied during boot, can make a reboot fail, especially with a display connected. The notes name the Orin Nano 8GB 7W mode, and the fix is listed in 39.2.1 and 39.2.2. On 39.2, test a reboot in each power mode you ship.
Step 2: Turn on the Orin hardware watchdog with systemd
A hardware watchdog is a timer in the SoC that resets the module unless software restarts it in time. NVIDIA lists it for the Orin series in Jetson Linux 36.x and 39.2.x: system reset on CPU hang, reset when the watchdog expires, and start, stop and ping from user space. The reset comes from hardware, so it works when the kernel is too wedged to do anything, the one case no other layer covers.
systemd can do the pinging with RuntimeWatchdogSec=, off by default:
ls /dev/watchdog* # watchdog devices the kernel offers
sudo wdctl # driver, timeout, and whether something already holds it
sudo mkdir -p /etc/systemd/system.conf.d
sudo tee /etc/systemd/system.conf.d/watchdog.conf >/dev/null <<'EOF'
[Manager]
RuntimeWatchdogSec=60s
RebootWatchdogSec=5min
EOF
sudo reboot # then run sudo wdctl again to see the timeout in use- Reboot to apply it. Don't use
systemctl daemon-reexecto change the watchdog on a running Jetson: one NVIDIA forum report links that to an unclean watchdog close and a hard reset. - How it decides. systemd pings at least twice per timeout; if PID 1 or the kernel stalls for 60 seconds, the SoC resets. If the hardware can't do exactly 60 seconds, systemd picks the closest it supports, so read it back with
wdctl. - One owner. If another daemon already holds
/dev/watchdog0, use it or systemd, not both. - Test on a bench unit.
sudo sysctl kernel.panic=0, thenecho c | sudo tee /proc/sysrq-triggercrashes the kernel on purpose; the kernel stops pinging and the SoC resets after the timeout. Withkernel.panicpositive (step 3) you test the panic reboot instead. Time both.
This keeps the Jetson alive, not your robot: PID 1 keeps pinging while your inference loop is stuck. Give the service its own watchdog. It sends WATCHDOG=1 through sd_notify from its main loop, and systemd kills and restarts it when the pings stop:
[Service]
ExecStart=/usr/local/bin/my-inference
WatchdogSec=30s
Restart=on-watchdogStep 3: Make the kernel reboot itself after a panic or lockup
After a panic, kernel.panic decides what happens: 0 loops forever, a positive number reboots after that many seconds. With 0 the Jetson waits until someone pulls the power. Read sysctl kernel.panic on your image to see what you have:
sysctl kernel.panic kernel.panic_on_oops kernel.softlockup_panic kernel.hung_task_timeout_secs kernel.hung_task_panic
sudo tee /etc/sysctl.d/90-reboot-on-panic.conf >/dev/null <<'EOF'
kernel.panic = 10
kernel.panic_on_oops = 1
kernel.softlockup_panic = 1
EOF
sudo sysctl --systempanic_on_oopsturns an oops, a kernel bug it tries to survive, into a panic and a reboot instead of a half-broken system.softlockup_panicpanics when a CPU is stuck long enough to logwatchdog: BUG: soft lockup.hung_task_panicpanics when tasks stay blocked pasthung_task_timeout_secs. It catches wedged storage but also reboots on a slow disk, so enable it only after reading your fleet's hung-task warnings.
These need the kernel to run. A hang that stops the CPUs never reaches the panic code; that is the hardware watchdog's job.
Step 4: Find out why it reset
The previous boot's log only exists if the journal is kept on disk:
journalctl --list-boots # a single line means the journal doesn't survive reboots
sudo mkdir -p /var/log/journal # with Storage=auto, journald keeps logs on disk once this exists
sudo systemctl restart systemd-journald
journalctl -b -1 -e # the end of the previous boot
journalctl -b -1 -k | tail -n 50 # its kernel messages: lockups, oopses, OOM kills
ls /sys/fs/pstore /var/lib/systemd/pstore 2>/dev/null # a saved crash record, if your kernel keeps one- A clean shutdown at the end means software asked: a person, an update, or the 104.5 °C software thermal shutdown.
- A log that just stops means power loss, a watchdog reset or the 105 °C hardware thermal shutdown; the last seconds of a hard hang never reach the disk.
- The reset cause is latched by the SoC's power management controller. NVIDIA doesn't document one Linux file for it on Orin, and where it shows differs per module and release, but the early bootloader prints
rst_sourceandrst_levelon the debug serial console at every boot.
Step 5: Let A/B root filesystems catch a bad boot
Every Orin keeps two bootloader slots, A and B, by default. Root filesystem redundancy adds a second root filesystem, APP_b beside APP, tied to them: bootloader A boots rootfs A, B boots B. The kernel and device tree belong to the rootfs slot, so a bad kernel is covered too.
The fallback works by counting. A retry count sits in a scratch register; after a good boot, nv-l4t-bootloader-config runs nvbootctrl verify and clears it. If the system fails to reach that point three times in a row (0 to 3, set at flash time), the bootloader marks the slot unbootable and boots the other. If both fail, it boots the recovery kernel; without A/B, three failures go straight there. You can add your own definition of "booted" through l4t-rootfs-validation-config.service, which runs before the verify and does nothing by default.
The count only moves on a warm reset. A power cycle is a cold boot and resets the count to its maximum, so cutting power to a hung boot never reaches the fallback (NVIDIA staff confirm this on the forums). Once systemd runs, the hardware watchdog from step 2 turns a hung boot into a warm reset and a retry. A hang before that point stays hung until someone is on site, so test a deliberately broken root filesystem on a bench unit before you rely on this. A/B is set when you flash:
# on the host, from Linux_for_Tegra (r39.2.2 layout), Jetson in force recovery mode
# AGX Orin (internal storage), as in NVIDIA's guide: the retry count can be 0 to 3
sudo ROOTFS_AB=1 ROOTFS_RETRY_COUNT_MAX=3 ./flash.sh jetson-agx-orin-devkit mmcblk0p1# on the Jetson
sudo nvbootctrl get-current-slot # 0 = A, 1 = B
sudo nvbootctrl dump-slots-info # bootloader slots, version and capsule status
sudo nvbootctrl -t rootfs dump-slots-info # rootfs slots and their status
sudo systemctl status nv-l4t-bootloader-config # 0/SUCCESS: this boot was marked good
sudo nvbootctrl -t rootfs set-active-boot-slot 1 # boot rootfs B next timeEach root filesystem gets half the space. NVIDIA doesn't support Debian package OTA with rootfs redundancy, so updates go through image-based OTA (see Jetson Orin remote update). Before you reboot a freshly updated Jetson on purpose, check that nv-l4t-bootloader-config shows 0/SUCCESS.
Step 6: Know what needs hands on site
Reflashing and recovering a bricked bootloader happen in force recovery mode, where the Jetson waits for a host on USB:
| Developer kit | Entering force recovery | lsusb on the host |
|---|---|---|
| Orin Nano, Orin NX (Orin Nano carrier) | Power off, short REC and GND on the button header (pins 9 and 10), apply power | 0955:7523 Nano 8GB, 7623 Nano 4GB, 7323 NX 16GB, 7423 NX 8GB |
| AGX Orin | Powered off: hold Force Recovery, press and release Power, release Force Recovery | 0955:7023, or 7223 for AGX Orin 32GB (P3701-0004) |
NVIDIA's Orin Nano developer kit guide also documents sudo reboot --force forced-recovery. Never send it to a Jetson in the field without a host on its USB port: it drops off the network and waits for a flash nobody can start. A reflash wipes the module, your apps and any agent included.
For the rest, a switched outlet or a relay on the DC input is the last resort. Check that your carrier powers the module on when power returns, or a power cycle leaves it off, and remember that a cut during a write can damage the filesystem.
Step 7: Install the PhysicalFleet agent on each Jetson
In the dashboard, open Fleet, press Add machine and run the command on the Jetson's host OS:
# paste the command from Fleet › Add machine: it carries your installer link and key
curl -fsSL <installer-link> | sudo sh -s -- --token <enrollment-key> --name amr-12 --group warehouse-a --tags jetson,orin-nxIt shows Machine online within about 10 seconds and installs as a systemd service with its rescue program, the Guardian. It connects out over an encrypted connection on port 443, so NAT and cellular need no open port. The installer's --image option bakes it into your image next to your watchdog and sysctl settings.
Step 8: Reboot or restart from the dashboard
The ⋯ menu on a Jetson's page has Ping, Restart agent, Reboot machine and Update agent…. Every command is signed for that one machine. Ping first: if it answers, the agent and link are fine and the problem is in your software. Restart agent leaves your apps running. Reboot machine waits while your app holds a pf busy lock, so a robot mid-task isn't cut off:
pf busy --reason 'picking' --for 30m # reboots and updates wait until it ends or is cleared
pf busy -- ./run-calibration.sh # held only while the command runs
pf busy --clearGive --for an end time, so an app that crashes while holding the lock can't block a reboot for good. For many Jetsons, ship a reboot or a settings change (the watchdog drop-in, the sysctl file) as a release with a script or Reboot step: Preview on a machine first, then phases. Steps are journaled, so after the reboot the agent finishes the release or rolls it back, and a Jetson silent for 30 minutes after a release starts counts as failing, which stops the rollout before the next phase.
Step 9: Know when a Jetson stops answering, and why it came back
- Going silent. A clean shutdown shows Offline at once; a hang or power loss after about 2 minutes. Turn on Machine offline under Suggested for your fleet in Observability › Alerts › Rules and send it to Slack, email, Teams, PagerDuty or a webhook.
- The agent, not the Jetson. The Guardian checks the agent every 30 seconds and restarts it if it stopped or hung. After 10 minutes without a connection, if the Jetson has some network, it checks in over HTTPS and the machine page says why, for example that the agent runs but can't reach the platform.
- The minutes before. Logs and metrics are sent as the Jetson runs, or kept on disk while the link is down, so a reboot doesn't wipe the lines that explain it.
- Why it came back. Last reset in the Hardware tab's NVIDIA section shows power on, a reboot, a watchdog, a thermal shutdown or a voltage fault, highlighting unexpected ones. Unexpected resets in Debugging › Investigate › Parameters counts them per Jetson.
- What changed. Debugging › Investigate › Timeline shows the outage, and What changed before lists packages, kernel changes and reboots, including those made while the agent was off.
Know the limit: the Guardian is a rescue program for the agent. If the kernel hangs, nothing on the Jetson runs, the Guardian included. Steps 2 and 3 bring the module back; PhysicalFleet tells you it happened, when and why.
Who catches what
| Failure | What recovers it | What PhysicalFleet adds |
|---|---|---|
| App loop stuck | Service WatchdogSec= | An app health check that goes stale; a flight recording around a crash |
| Agent stopped or hung | The Guardian, within 30 seconds | The reason on the machine page after 10 minutes offline |
| Memory exhausted | The OOM killer, or a reboot | Memory almost exhausted at 95 %, the kill on the Timeline, Reboot machine |
| Kernel panic or soft lockup | kernel.panic, softlockup_panic | Offline alert, Last reset, the logs from before already off the device |
| Full hang | Hardware watchdog via systemd | Last reset shows the watchdog; Unexpected resets counts it |
| Update won't boot | A/B fallback after three tries | The rollout counts the silent Jetson as failing and stops |
| Overheating | Throttling at 99 °C, shutdown at 104.5 °C | Running hot at 80 °C for 2 minutes, before either |
| Bootloader gone | Force recovery and USB, on site | Which Jetson, since when, and what changed before |
For heat, power and throttling before they turn into resets, see Jetson remote monitoring.
Doing this on many Jetsons
- Bake it into the image. Put the watchdog drop-in, the sysctl file and
/var/log/journalin your golden image, flash withROOTFS_AB=1, and add the agent with--image. - Change it by release, one Jetson first. A wrong watchdog setting can reboot-loop a fleet; roll out in phases with a failure threshold.
- Tag what is special. Tag Jetsons with a remote power switch or a wired serial console, so whoever is on call knows the options.
- Put the runbook in the alert. A rule's Message and runbook link option carries the steps: check Last reset, try Reboot machine, then the power switch.
Common errors and fixes
watchdog: BUG: soft lockup - CPU#0 stuck for 22s! [swapper/0:0]Why: A CPU stayed in kernel code past the soft-lockup threshold without scheduling anything else. Despite the name, this is the kernel's lockup detector, not the hardware watchdog.
Fix: Set kernel.softlockup_panic = 1 and a positive kernel.panic so the Jetson reboots instead of limping on, keep the journal on disk, and check NVIDIA's release notes for a newer Jetson Linux.
Kernel panic - not syncing: softlockup: hung tasksWhy: The kernel was set to panic on a soft lockup and did. Whether the board then reboots depends on kernel.panic.
Fix: Make kernel.panic positive, and enable the hardware watchdog for hangs that never reach the panic code.
INFO: task <name>:<pid> blocked for more than 120 seconds.
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.Why: A task waited in uninterruptible sleep, usually on storage, longer than hung_task_timeout_secs. Often the first sign of a Jetson that later stops answering.
Fix: Check the storage and its driver in the kernel log. Consider kernel.hung_task_panic only once you know the pattern, since it also reboots on a slow disk.
ERROR: might be timeout in USB write.Why: The host lost contact with the Jetson during a force recovery flash: the cable, the host port, the module not fully in recovery, or the carrier board.
Fix: Use a short, known-good cable on another host port, confirm lsusb shows 0955: and your module's ID, and capture the serial console during the flash.
tegra-pmc: ### PMC reset source: BCCPLEXWDTWhy: Seen in the kernel log of Jetsons on JetPack 5: the power management controller recorded that the CPU complex watchdog reset the module, so the system had hung.
Fix: Treat it as a hang: read the previous boot's log and check power and heat. On Orin with JetPack 6 or 7 the cause may print differently; look for rst_source in the bootloader's serial output.
- Hardware watchdog on through RuntimeWatchdogSec, timeout read back with wdctl
- kernel.panic positive, panic_on_oops and softlockup_panic set
- Your app's service has WatchdogSec and Restart=on-watchdog
- Journal kept on disk, so the previous boot's log survives
- Flashed with ROOTFS_AB=1, and nv-l4t-bootloader-config showing 0/SUCCESS
- A remote power path, with the carrier set to power on when power returns
- Offline alert on, and Last reset checked after every unexpected return
PhysicalFleet gives every Jetson a signed Reboot machine and Restart agent in the ⋯ menu that wait while your app is busy, and ships reboots and settings changes as phased releases that stop if Jetsons go silent. The Guardian keeps the agent itself alive and, after 10 minutes offline, reports over HTTPS why the machine can't connect.
When a Jetson goes down, the Machine offline rule tells your team, its logs from the minutes before are already off the device, and when it returns, Last reset says whether a watchdog, a power-on or a thermal shutdown did it, with unexpected resets counted per Jetson. It is free for up to 3 machines.
See remote commands and fleet management- NVIDIA Jetson Orin Nano Developer Kit guide: how-to (force recovery, pins 9 and 10)
- NVIDIA developer forum: reset timing of boot retry count (cold boot resets the count)
- NVIDIA developer forum: rootfs A/B retry count and cold reboots
- NVIDIA Jetson Linux Developer Guide r39.2.2: Root File System Redundancy (retry count, fail-over, ROOTFS_AB, nvbootctrl -t rootfs)
- NVIDIA Jetson Linux Developer Guide r39.2.2: Bootloader Update and Redundancy (A/B slots, nvbootctrl, boot log)
- NVIDIA Jetson Linux Developer Guide r39.2.2: Jetson Orin Series (watchdog support)
- NVIDIA Jetson Linux Developer Guide r39.2.2: Quick Start (force recovery mode, lsusb IDs)
- systemd-system.conf: RuntimeWatchdogSec and RebootWatchdogSec
- Linux kernel documentation: /proc/sys/kernel (panic, panic_on_oops, softlockup_panic, hung_task_panic)
Written for PhysicalFleet as of December 5, 2026.
How do I reboot a Jetson remotely?
Over SSH, run sudo systemctl reboot, or add --force if services won't stop. With PhysicalFleet, use Reboot machine in the Jetson's ⋯ menu, which works behind NAT and waits while your app holds a pf busy lock.
Does the Jetson Orin have a hardware watchdog?
Yes. NVIDIA's Jetson Linux guide lists watchdog support for the Orin series, including a system reset when it expires and pinging from user space. systemd uses it when you set RuntimeWatchdogSec, which is off by default.
How do I make a Jetson reboot automatically after a kernel panic?
Set kernel.panic to a positive number of seconds, such as 10, in a file under /etc/sysctl.d and run sudo sysctl --system. With 0, the kernel loops forever after a panic.
How can I tell why my Jetson rebooted?
Read the previous boot's log with journalctl -b -1, which needs a persistent journal, and the bootloader's rst_source on the serial console. PhysicalFleet shows each Jetson's Last reset and counts unexpected resets.
Can I put a Jetson into recovery mode remotely?
NVIDIA's Orin Nano developer kit guide documents sudo reboot --force forced-recovery, but the Jetson then waits for a host on USB. Without one plugged in on site, it just goes offline.
What happens if a Jetson update fails to boot?
With root filesystem A/B enabled at flash time, the bootloader switches to the other slot after three failed boots by default, and boots the recovery kernel if both fail. The failed boots must be warm resets (a watchdog reset or a reboot), not power cycles.
Will PhysicalFleet reboot a Jetson while my robot is working?
Not while your app holds a pf busy lock: reboots and updates wait until it ends or is cleared. Give the lock an end time with --for.
- Raspberry Pi remotely
- Jetson Orin remote access
- Robot web UI remotely
- Robot camera remotely
- Update many devices
- Logs on remote devices
- ROS 2 remotely
- Offline alerts
- Jetson remote update
- Jetson remote desktop
- Jetson camera remotely
- Jetson remote monitoring
- Jetson fleet management
- Docker on many Jetsons
- TensorRT on many Jetsons
- Jetson remote debugging
- SO-101 remotely
- All how-to guides →
From the lab bench. To the entire fleet.
Connect your first machine in minutes, develop it in the lab and run your whole fleet in production from one place.
Free for up to 3 machines · Then pay as you go