fission icon indicating copy to clipboard operation
fission copied to clipboard

Failed setup creates key that blocks user creation

Open bmann opened this issue 5 years ago • 2 comments

Problem

When running fission setup, if you attempt to sign up as a username that already exists, it creates a key.

But then, trying to create a user fails.

Screen Shot 2020-11-10 at 7 50 58 AM

To reproduce:

Run fission setup, sign up as a username that exists, then try and sign up as one that doesn't exist.

Impact

User can't create an account.

Solution

Workaround: delete the key at ~/.config/fission/key/machine_id.ed25519

Actual solution is to either put the key somewhere in a temp file, and don't actually copy it into place until the username / account is successfully registered.

  • MacOS Catalina
  • fission-cli 2.9.0.0

bmann avatar Nov 10 '20 15:11 bmann

Hmm, trickier? I deleted the key while still in setup flow, then got 🚫 Unknown Error Please try again or contact Fission support at https://fission.codes

Now, trying to register borisfission is showing that it already exists. OK, something subtle in this flow.

Picked a new username, registered no problem.

bmann avatar Nov 10 '20 16:11 bmann

Two options:

  1. Create a temp directory, and change the go-ipfs prefix during setup
  2. Use a bracket or ResourceT to clean up in the case of a failure

expede avatar Dec 20 '21 17:12 expede