Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Guest API would crash due to FileNotFound #583

Merged
merged 1 commit into from
Mar 21, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions src/aleph/vm/controllers/firecracker/executable.py
Original file line number Diff line number Diff line change
Expand Up @@ -296,8 +296,12 @@ async def load_configuration(self):
return

async def start_guest_api(self):
logger.debug(f"starting guest API for {self.vm_id}")
vsock_path = f"{self.fvm.vsock_path}_53"
vsock_path = Path(f"{self.fvm.vsock_path}_53")

# Ensure that the directory where the VSOCK socket will be created exists
vsock_path.parent.mkdir(parents=True, exist_ok=True)
logger.debug(f"starting guest API for {self.vm_id} on {vsock_path}")

vm_hash = self.vm_hash
self.guest_api_process = Process(
target=run_guest_api,
Expand Down
Loading