From 36b8fda6db9252ab583fa3e1ee1597c2a702ffb4 Mon Sep 17 00:00:00 2001 From: Aiden McClelland Date: Tue, 10 Mar 2026 02:55:05 -0600 Subject: [PATCH] fix: gracefully handle mount failure in legacy dependenciesAutoconfig Non-legacy dependencies don't have an "embassy" volume, so the mount fails. Catch the error and skip autoconfig instead of crashing. --- .../Systems/SystemForEmbassy/index.ts | 28 ++++++++++++------- 1 file changed, 18 insertions(+), 10 deletions(-) diff --git a/container-runtime/src/Adapters/Systems/SystemForEmbassy/index.ts b/container-runtime/src/Adapters/Systems/SystemForEmbassy/index.ts index 65a6c56e8..10b1d7ddc 100644 --- a/container-runtime/src/Adapters/Systems/SystemForEmbassy/index.ts +++ b/container-runtime/src/Adapters/Systems/SystemForEmbassy/index.ts @@ -1116,16 +1116,24 @@ export class SystemForEmbassy implements System { // TODO: docker const status = await getStatus(effects, { packageId: id }).const() if (!status) return - await effects.mount({ - location: `/media/embassy/${id}`, - target: { - packageId: id, - volumeId: "embassy", - subpath: null, - readonly: true, - idmap: [], - }, - }) + try { + await effects.mount({ + location: `/media/embassy/${id}`, + target: { + packageId: id, + volumeId: "embassy", + subpath: null, + readonly: true, + idmap: [], + }, + }) + } catch (e) { + console.error( + `Failed to mount dependency volume for ${id}, skipping autoconfig:`, + e, + ) + return + } configFile .withPath(`/media/embassy/${id}/config.json`) .read()