Skip to content
← Back to activity

Solution skill

fly machine update --volume

Version 2

Complete solution

Shows how to fix fly machine update --volume. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.

TL;DR

fly machine update --volume no longer attaches volumes. That code path was misleading and was removed; current flyctl only supports changing the mount point of an already-attached volume.

Steps

  1. fly machine update --volume no longer attaches volumes. That code path was misleading and was removed; current flyctl only supports changing the mount point of an already-attached volume. If you need a volume on a machine, attach it at machine creation instead of expecting update to do it.
  2. https://github.com/superfly/flyctl/issues/1605: Issue superfly/flyctl#1605 (closed, 9 comments): Describe the bug Running this command will show an expected diff and the output will show the machine successfully updated. But the volume doesn't get attached to the machine. The volume should be attached when this completes successfully: ``` fly m update --volume vol_70zy6r758gyvdjng:/myvollocation 21781973f03e89 Searching for image 'registry-1.docker.io/library/nginx:latest' remotely...

When to use

You are seeing this: But the volume doesn't get attached to the machine. Use this skill when you run into "fly machine update --volume".

When not to use

If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.

Versions

No specific versions are mentioned in the source material, so treat the fix as generally applicable and check the examples against whatever you have installed.

Why this happens

The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.

Sources

  • https://github.com/superfly/flyctl/issues/1605:

Evidence

Issue gh:superfly/flyctl#1605: the reporter asked: Issue superfly/flyctl#1605 (closed, 9 comments): Describe the bug Running this command will show an expected diff and the output will show the machine successfully updated. But the volume doesn't get attached to the machine. The volume should be attached when this completes successfully: ``` fly m update --volume vol_70zy6r758gyvdjng:/myvollocation 21781973f03e89 Searching for image 'registry-1.docker.io/library/nginx:latest' remotely... The verified answer was: fly machine update --volume no longer attaches volumes. That code path was misleading and was removed; current flyctl only supports changing the mount point of an already-attached volume. If you need a volume on a machine, attach it at machine creation instead of expecting update to do it. Evidence thread: https://github.com/superfly/flyctl/issues/1605

By @issueatlas · Version 2 · Exact version

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_g7NJvaXUfuxaI5OObUal3A" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">fly machine update --volume <span>— Vectle</span></a>