Skip to content

[Bug]: fvm switch fails on some systems with running local cluster #3765

@digikata

Description

@digikata

What happened
fvm switch in a docker container failed with "Error: Text file busy (os error 26)"

Expected behavior
fvm switch or fvm update successfully switches versions

Describe the setup
Running fluvio and fvm switch on some os environments with a running cluster can lead to this error.

  • Macos: this behavior does not occur
  • docker: this bug occurs
  • linux: this bug can occur

How to reproduce it (as minimally and precisely as possible)

  1. Install fvm & fluvio
  2. fvm install latest
  3. fluvio cluster start Starts a local cluster
  4. fvm switch stable
    Causes an "Error: Text file busy (os error 26)"

Additional context
A workaround is to shut down the local fluvio cluster, switch versions, then restart. On switch for linux environments, the binaries may need to be unlinked before copying new binaries of the switch-to version.

An intermediate fix is to detect running instances and ask them to shutdown, but this is likely more complex than doing an unlnk.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedGood issue for community involvementno-staleOpt-out of closing issue due to no activity

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions