umbreld aborts inside the V8 garbage collector, and the restart recreates every container on the machine
Summary
umbreld aborted inside the V8 garbage collector after 3 days and 18 hours of
uptime. systemd restarted the service as configured. On restart,
umbrel_main_network was recreated, and every container on the machine (37,
across all installed apps) was recreated along with it.
The crash itself may be rare. The part worth discussing is the blast radius: a single daemon restart takes down every app, including ones that were healthy and had nothing to do with the failure.
Environment
- umbrelOS 1.7.4
- Beelink SER8, Ryzen 7 8745HS (16 threads), 32 GB RAM
- Host uptime at the time of the crash: 3 days, 18 hours (no reboot involved)
umbrel.serviceuptime before the crash: 3 days, 18 hours
What was observed
The service exited with status 133 on a V8 internal assertion:
# Check failed: page_->ContainsLimit(object_address + current_size_).
3: 0x15387f9 v8::internal::Sweeper::RawSweep(v8::internal::PageMetadata*, v8::internal::FreeSpaceTreatmentMode, v8::internal::Sweeper::SweepingMode, bool, bool) [/usr/local/bin/node]
4: 0x153b072 [/usr/local/bin/node]
5: 0x153b27c v8::internal::Sweeper::MajorSweeperJob::RunImpl(v8::JobDelegate*, bool) [/usr/local/bin/node]
6: 0x224b548 v8::platform::DefaultJobWorker::Run() [/usr/local/bin/node]umbrel.service: Main process exited, code=exited, status=133/n/a
umbrel.service: Failed with result 'exit-code'.
umbrel.service: Consumed 1h 41min 10.950s CPU time, 1.8G memory peak, 329.5M memory swap peak.
umbrel.service: Scheduled restart job, restart counter is at 1.The file watcher had been logging errors and recovering in the minutes leading up to it:
14:52:30 [files:watcher] [error] Failed to watch directory '/Trash'
14:52:30 [files:watcher] [error] Failed to watch directory '/Home'
14:53:57 [files:watcher] [error] Health check failed: watcher did not deliver sentinel event within timeout. Recovering...
14:53:57 [files:watcher] [error] Failed to watch directory '/Apps'
14:53:57 [Error: inotify_add_watch on '<app-data>/jellyfin/data/metadata/livetv/<id>' failed: No such file or directory]Those ENOENT paths are Jellyfin cache directories that are created and deleted continuously while the watcher is walking the tree.
Ruled out by inspection:
- Not memory pressure. No OOM events in the kernel log, and the service peaked at 1.8 GB on a 32 GB host.
- Not the inotify watch limit.
max_user_watcheswas 1048576 with roughly 90 watches in use. - Not a host reboot. The machine had been up for over three days and stayed up.
The restart behaviour
After the restart:
Network umbrel_main_network Created
Container auth Created
Container tor_proxy Created
... (37 containers across every installed app)docker network inspect umbrel_main_network shows it carries
com.docker.compose.project=umbrel and com.docker.compose.network=default,
and its creation timestamp matches the daemon restart.
Reading packages/umbreld/source/modules/apps/legacy-compat/app-script, each
app is brought up as its own compose project with
compose "${app}" up --detach --build. That command on its own would leave
already-running, unchanged containers alone. What appears to force the
recreation is that the network they were attached to no longer exists, since it
belongs to the daemon's own compose project rather than being an external
network with an independent lifecycle.
There were no Stopping or Removing lines in the log for the app containers,
which is consistent with them being recreated as a side effect rather than
deliberately cycled.
Questions
- Is the V8 abort something you have seen before? I could not find an existing
issue matching the
Sweeper::RawSweeptrace. The closest open issue I found is #2205, which is a different failure mode in the same daemon. - Is the coupling between
umbrel_main_networkand the daemon's compose project intentional? From the outside it looks like declaring it as an external network, created once and outliving the daemon, would let apps survive a daemon restart. I have not opened a PR because CONTRIBUTING asks for the approach to be agreed first, and I expect there are migration implications here that are not visible from outside the project. - Is there an existing option to keep apps running across a daemon restart that I have missed?
Reproduction
I cannot reproduce the crash on demand. It happened once in 30 days of journal
history. The container recreation on daemon restart, however, is deterministic
and reproducible with systemctl restart umbrel.
Notes
This host runs several community app store apps alongside the official ones, so the workload is not a stock install. I am happy to provide more of the journal or run any diagnostics that would help.
Source: getumbrel/umbrel