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

[Bug]: Unable to create blockchain if previous attempt failed #2334

Open
RodrigoVillar opened this issue Nov 14, 2024 · 2 comments · May be fixed by #2380
Open

[Bug]: Unable to create blockchain if previous attempt failed #2334

RodrigoVillar opened this issue Nov 14, 2024 · 2 comments · May be fixed by #2380
Assignees
Labels
bug Something isn't working

Comments

@RodrigoVillar
Copy link
Collaborator

Describe the bug

When using avalanche blockchain create, if the commands fails, then running the command again with the same blockchain name is not possible because the corresponding folder in .avalanche-cli/subnets already exists, but is malformed.

To Reproduce

  1. Via the README, install Avalanche-CLI using the following:
curl -sSfL https://raw.githubusercontent.com/ava-labs/avalanche-cli/main/scripts/install.sh | sh -s
  1. Call avalanche blockchain create morpheusvm
  2. For the genesis, use an empty JSON file
  3. For the VM binary, use the MorpheusVM binary
  4. After the prior two steps, you should get an error relating to a field in the genesis not being specified. This is fine.
  5. Call avalanche blockchain create morpheusvm. This should result in an error

Expected behavior

I expected for the CLI to clean up the malformed folder, thus allowing me to execute the command again.

Screenshots

Logs

Operating System

macOS 14.5

Additional context
To create the binary for MorpheusVM, go to the HyperSDK repo and run the following in examples/morpheusvm:

go build -o ./build/morpheusvm ./cmd/morpheusvm
@felipemadero
Copy link
Collaborator

for more context, the particular error message is subnet %s has inconsistent configuration. there is no %s file present on directory %s. please backup any file and then remove the subnet, has can happen if the subnet directory was created but by failure the sidecar not.

@felipemadero felipemadero self-assigned this Nov 14, 2024
@felipemadero
Copy link
Collaborator

working on a fix so automatically clean up is made by CLI

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Backlog 🗄️
Development

Successfully merging a pull request may close this issue.

2 participants