fission
fission copied to clipboard
Attempting to auth after entering username during setup waits forever, and leaves config directory in a broken state when inevitably interrupted
Summary
During fission setup
, entering your username before going to auth.fission.codes causes things to wait forever. Interrupting the setup with ^C
leaves ~/.config/fission
in a half-initialized state which causes silent failures when run without --verbose
Impact
This issue is easily worked around (just blow away the config directory and then auth at the right time), but shows up basically first thing in the developer introduction to the Fission Experienceβ’. If someone assumes that the immediate exit after re-running fission setup
means that they're authenticated, they will be very confused when fission app register
immediately exits with no output thanks to #538.
Detail
Reproduction steps
- Run
fission setup
- Answer
Y
to "Do you have an existing account" - Enter account name
- Go to auth.fission.codes
- Observe as
fission setup
waits forever(?), and auth.fission.codes does not show an authentication code -
^C
to exitfission setup
- Run
fission setup
and observe that it immediately exits after "Configuring managed IPFS" with no additional output, as though it was successfully set up
verbose logs
fission setup -v
output
na@pu:/tmp/bup$ fission setup -v
2022-01-07 23:35:21.069352: [debug] ππ Reading global config.yaml
2022-01-07 23:35:21.069837: [debug] ππ Reading YAML from "/home/na/.config/fission/config.yaml"
2022-01-07 23:35:21.069928: [debug] π Path does not exist
2022-01-07 23:35:21.069975: [warn] π Cannot find file
2022-01-07 23:35:21.070518: [debug] No cached server DID. Fetching from _did.runfission.com
2022-01-07 23:35:21.097253: [debug] DID retrieved did:key:z6MkgYGF3thn8k1Fv4p4dWXKtsXCnLH7q9yw4QgNPULDmDKB
2022-01-07 23:35:21.097453: [debug] Setup (Options {forceOS = Nothing, maybeUsername = Nothing, maybeEmail = Nothing, maybeKeyFile = Nothing})
2022-01-07 23:35:21.097530: [debug] ππ Reading global config.yaml
2022-01-07 23:35:21.097589: [debug] ππ Reading YAML from "/home/na/.config/fission/config.yaml"
2022-01-07 23:35:21.097666: [debug] π Path does not exist
2022-01-07 23:35:21.097708: [warn] π Cannot find file
2022-01-07 23:35:21.097756: [debug] Unable to parse config
2022-01-07 23:35:21.097813: [user] π± Setting up environment
2022-01-07 23:35:21.097912: [user] πͺ Downloading managed IPFS for Linux
2022-01-07 23:35:21.098002: [debug] β¬οΈ Downloading go-ipfs v0.9.0 for Linux
π2022-01-07 23:35:21.098127: [debug] π±π Making request to GitHub
π2022-01-07 23:35:23.740470: [debug] π Unpacking archive...
2022-01-07 23:35:23.741541: [debug] π Moving IPFS into place...
2022-01-07 23:35:23.741644: [debug] βοΈ Writing to /home/na/.config/fission/bin/fission-ipfs
2022-01-07 23:35:24.678392: [user] ποΈ Configuring managed IPFS
2022-01-07 23:35:24.678633: [debug] ππ¬ Running local IPFS
2022-01-07 23:35:24.678829: [debug] π Writing temp ignore file /home/na/.config/fission/tmp with: []
2022-01-07 23:35:24.679014: [debug] βοΈ Writing to /home/na/.config/fission/tmp/9c9fbce3befe7d450fc16ee701d2168e49537d3d5f62b38abf73244c1fa90bc4
2022-01-07 23:35:24.737051: [debug] πβοΈ Running: IPFS_PATH=/home/na/.config/fission/ipfs /home/na/.config/fission/bin/fission-ipfs init --timeout=3600s with arg Nothing
2022-01-07 23:35:24.829547: [debug] π IPFS process completed successfully
2022-01-07 23:35:24.829653: [debug] ππ¬ Running local IPFS
2022-01-07 23:35:24.829707: [debug] π Writing temp ignore file /home/na/.config/fission/tmp with: []
2022-01-07 23:35:24.829755: [debug] βοΈ Writing to /home/na/.config/fission/tmp/9c9fbce3befe7d450fc16ee701d2168e49537d3d5f62b38abf73244c1fa90bc4
2022-01-07 23:35:24.830920: [debug] πβοΈ Running: IPFS_PATH=/home/na/.config/fission/ipfs /home/na/.config/fission/bin/fission-ipfs config --bool Swarm.EnableRelayHop true --timeout=3600s with arg Nothing
2022-01-07 23:35:24.869792: [debug] π IPFS process completed successfully
2022-01-07 23:35:24.869891: [debug] ππ¬ Running local IPFS
2022-01-07 23:35:24.869945: [debug] π Writing temp ignore file /home/na/.config/fission/tmp with: []
2022-01-07 23:35:24.869995: [debug] βοΈ Writing to /home/na/.config/fission/tmp/9c9fbce3befe7d450fc16ee701d2168e49537d3d5f62b38abf73244c1fa90bc4
2022-01-07 23:35:24.871288: [debug] πβοΈ Running: IPFS_PATH=/home/na/.config/fission/ipfs /home/na/.config/fission/bin/fission-ipfs config Addresses.API /ip4/0.0.0.0/tcp/10235 --timeout=3600s with arg Nothing
2022-01-07 23:35:24.909775: [debug] π IPFS process completed successfully
2022-01-07 23:35:24.909869: [debug] ππ¬ Running local IPFS
2022-01-07 23:35:24.909924: [debug] π Writing temp ignore file /home/na/.config/fission/tmp with: []
2022-01-07 23:35:24.909980: [debug] βοΈ Writing to /home/na/.config/fission/tmp/9c9fbce3befe7d450fc16ee701d2168e49537d3d5f62b38abf73244c1fa90bc4
2022-01-07 23:35:24.911522: [debug] πβοΈ Running: IPFS_PATH=/home/na/.config/fission/ipfs /home/na/.config/fission/bin/fission-ipfs bootstrap add /dns4/node.runfission.com/tcp/4001/ipfs/QmVLEz2SxoNiFnuyLpbXsH6SvjPTrHNMU88vCQZyhgBzgw --timeout=3600s with arg Nothing
2022-01-07 23:35:24.949115: [debug] π IPFS process completed successfully
2022-01-07 23:35:24.949215: [debug] ππ¬ Running local IPFS
2022-01-07 23:35:24.949271: [debug] π Writing temp ignore file /home/na/.config/fission/tmp with: []
2022-01-07 23:35:24.949330: [debug] βοΈ Writing to /home/na/.config/fission/tmp/9c9fbce3befe7d450fc16ee701d2168e49537d3d5f62b38abf73244c1fa90bc4
2022-01-07 23:35:24.950791: [debug] πβοΈ Running: IPFS_PATH=/home/na/.config/fission/ipfs /home/na/.config/fission/bin/fission-ipfs bootstrap add /ip4/3.226.224.78/tcp/4001/p2p/QmPeeeZZXxMBAPxxba7a6ggjDr5jLuD3RAFnmPPcvJ9fMS --timeout=3600s with arg Nothing
2022-01-07 23:35:24.988968: [debug] π IPFS process completed successfully
2022-01-07 23:35:24.989064: [debug] ππ¬ Running local IPFS
2022-01-07 23:35:24.989122: [debug] π Writing temp ignore file /home/na/.config/fission/tmp with: []
2022-01-07 23:35:24.989188: [debug] βοΈ Writing to /home/na/.config/fission/tmp/9c9fbce3befe7d450fc16ee701d2168e49537d3d5f62b38abf73244c1fa90bc4
2022-01-07 23:35:24.990417: [debug] πβοΈ Running: IPFS_PATH=/home/na/.config/fission/ipfs /home/na/.config/fission/bin/fission-ipfs bootstrap add /ip4/3.226.224.78/udp/4001/quic/p2p/QmPeeeZZXxMBAPxxba7a6ggjDr5jLuD3RAFnmPPcvJ9fMS --timeout=3600s with arg Nothing
2022-01-07 23:35:25.028874: [debug] π IPFS process completed successfully
2022-01-07 23:35:25.028972: [debug] ππ¬ Running local IPFS
2022-01-07 23:35:25.029026: [debug] π Writing temp ignore file /home/na/.config/fission/tmp with: []
2022-01-07 23:35:25.029089: [debug] βοΈ Writing to /home/na/.config/fission/tmp/9c9fbce3befe7d450fc16ee701d2168e49537d3d5f62b38abf73244c1fa90bc4
2022-01-07 23:35:25.030428: [debug] πβοΈ Running: IPFS_PATH=/home/na/.config/fission/ipfs /home/na/.config/fission/bin/fission-ipfs config Addresses.Gateway /ip4/0.0.0.0/tcp/11235 --timeout=3600s with arg Nothing
2022-01-07 23:35:25.067605: [debug] π IPFS process completed successfully
2022-01-07 23:35:25.067706: [debug] ππ¬ Running local IPFS
2022-01-07 23:35:25.067759: [debug] π Writing temp ignore file /home/na/.config/fission/tmp with: []
2022-01-07 23:35:25.067819: [debug] βοΈ Writing to /home/na/.config/fission/tmp/9c9fbce3befe7d450fc16ee701d2168e49537d3d5f62b38abf73244c1fa90bc4
2022-01-07 23:35:25.069140: [debug] πβοΈ Running: IPFS_PATH=/home/na/.config/fission/ipfs /home/na/.config/fission/bin/fission-ipfs config Addresses.Swarm --timeout=3600s with arg Nothing
2022-01-07 23:35:25.107015: [debug] π IPFS process completed successfully
2022-01-07 23:35:25.107129: [debug] ππ¬ Running local IPFS
2022-01-07 23:35:25.107188: [debug] π Writing temp ignore file /home/na/.config/fission/tmp with: []
2022-01-07 23:35:25.107258: [debug] βοΈ Writing to /home/na/.config/fission/tmp/9c9fbce3befe7d450fc16ee701d2168e49537d3d5f62b38abf73244c1fa90bc4
2022-01-07 23:35:25.108395: [debug] πβοΈ Running: IPFS_PATH=/home/na/.config/fission/ipfs /home/na/.config/fission/bin/fission-ipfs config --json Addresses.Swarm "[\"/ip4/0.0.0.0/tcp/4231/ws\",\"/ip4/0.0.0.0/tcp/4001\",\"/ip6/::/tcp/4001\",\"/ip4/0.0.0.0/udp/4001/quic\",\"/ip6/::/udp/4001/quic\"]" --timeout=3600s with arg Nothing
2022-01-07 23:35:25.146480: [debug] π IPFS process completed successfully
2022-01-07 23:35:25.146582: [debug] πͺπ Getting root UCAN
2022-01-07 23:35:25.146628: [debug] ππ Loading UCAN store
2022-01-07 23:35:25.146672: [debug] ππ Reading JSON from "/home/na/.config/fission/ucan/store.json"
2022-01-07 23:35:25.146733: [debug] π File path does not exist
2022-01-07 23:35:25.146772: [warn] π Cannot find file
2022-01-07 23:35:25.146822: [debug] ππ Reading global config.yaml
2022-01-07 23:35:25.146860: [debug] ππ Reading YAML from "/home/na/.config/fission/config.yaml"
2022-01-07 23:35:25.146910: [debug] π Path does not exist
2022-01-07 23:35:25.146944: [warn] π Cannot find file
2022-01-07 23:35:25.146984: [user] π Setting up keys
2022-01-07 23:35:25.147152: [debug] ποΈ Generating exchange key
2022-01-07 23:35:25.332853: [debug] βοΈ Writing to /home/na/.config/fission/key/exchange.rsa2048
2022-01-07 23:35:25.398481: [debug] ποΈ Generating signing key
2022-01-07 23:35:25.398639: [debug] βοΈ Writing to /home/na/.config/fission/key/machine_id.ed25519
π Do you have an existing account? [Y/n] Y
2022-01-07 23:35:30.679030: [user] π Please open auth.fission.codes on a signed-in device
2022-01-07 23:35:30.679262: [debug] π§¬π¬ Parsing signing key
2022-01-07 23:35:30.679314: [info] π§¬π Loaded signing key
2022-01-07 23:35:30.679359: [debug] ππ₯ Consuming log-in...
π Please enter your username: sodium
2022-01-07 23:35:32.631460: [debug] Fetching DID for sodium
2022-01-07 23:35:32.643458: [debug] Got raw DID response: ["000;did:key:z13V3Sog2YaUKhdGCmgx9UZuW1o1ShFJYc6DvGYe7NTt689NoL368TwewPwazfgUpELiNmrz5hxyxx6r2hxWC2pVuJ3mVUL9LKo87hp1WGNaCsQoobXA2oMvAaxWkFCj1eYQGhwk2mDYxC7Uos96WDy39GMCCjySmfsUG4Hiv3ZiPxX8pQj4sawQtWyo59WFK3zQZQF1UdA1oL645W4iTeHMKWhQgmxt7hbJNwewW61VTYBF4HH","001;zVjXjDuLtHeqRKDKn1vwuvugFXu7ZMwNxihckLtN8FwTh1DxcMo24k1k4gSJCTx2UpF7M4UuraJ33E8YapV5DRE9gFVH43yE6vbJminLZN7YNLzCFaszXavnz4PAEWxiCnBVxY993F6oaZy7wKufZfijUKFiR7ma9GxY"]
2022-01-07 23:35:32.643778: [debug] Raw DID: did:key:z13V3Sog2YaUKhdGCmgx9UZuW1o1ShFJYc6DvGYe7NTt689NoL368TwewPwazfgUpELiNmrz5hxyxx6r2hxWC2pVuJ3mVUL9LKo87hp1WGNaCsQoobXA2oMvAaxWkFCj1eYQGhwk2mDYxC7Uos96WDy39GMCCjySmfsUG4Hiv3ZiPxX8pQj4sawQtWyo59WFK3zQZQF1UdA1oL645W4iTeHMKWhQgmxt7hbJNwewW61VTYBF4HHzVjXjDuLtHeqRKDKn1vwuvugFXu7ZMwNxihckLtN8FwTh1DxcMo24k1k4gSJCTx2UpF7M4UuraJ33E8YapV5DRE9gFVH43yE6vbJminLZN7YNLzCFaszXavnz4PAEWxiCnBVxY993F6oaZy7wKufZfijUKFiR7ma9GxY
2022-01-07 23:35:32.645230: [debug] ππ Websocket connecting at: runfission.com:443/user/link/did:key:z13V3Sog2YaUKhdGCmgx9UZuW1o1ShFJYc6DvGYe7NTt689NoL368TwewPwazfgUpELiNmrz5hxyxx6r2hxWC2pVuJ3mVUL9LKo87hp1WGNaCsQoobXA2oMvAaxWkFCj1eYQGhwk2mDYxC7Uos96WDy39GMCCjySmfsUG4Hiv3ZiPxX8pQj4sawQtWyo59WFK3zQZQF1UdA1oL645W4iTeHMKWhQgmxt7hbJNwewW61VTYBF4HHzVjXjDuLtHeqRKDKn1vwuvugFXu7ZMwNxihckLtN8FwTh1DxcMo24k1k4gSJCTx2UpF7M4UuraJ33E8YapV5DRE9gFVH43yE6vbJminLZN7YNLzCFaszXavnz4PAEWxiCnBVxY993F6oaZy7wKufZfijUKFiR7ma9GxY
2022-01-07 23:35:32.969300: [debug] ππ Websocket pubsub connected
2022-01-07 23:35:32.969523: [debug] π€ Device linking handshake: Step 1
2022-01-07 23:35:33.046188: [debug] Opening secure channel over (PublicKey,PrivateKey)
2022-01-07 23:35:33.046327: [debug] π€ Device linking handshake: Step 2
2022-01-07 23:35:33.046374: [debug] ππ£οΈ Sending over pubsub:
2022-01-07 23:35:33.046418: [debug] did:key:z13V3Sog2YaUKhdGCmgx9UZuW1o1ShFJYc6DvGYe7NTt689NoL3E7q6sVFhDfXq5tWGA46tmJdj2qZtmKYVzLkiHmNvRqgzvMPvadi6ZjE2ULwQNjodYEnFCU2yjRDTWLfCAN2HEM55JFUVgmuyeX1zBEaVGG6Ww4LAUP1ghPNyRdfstMMjZXEndRjeQnEhrYpCgkK6S7ofAzQxjj19uv6DTWfjviYium54t6aBJQmGtvDsmB17UsmdCq2grFf26s7uyTELn2gd7icBzrjFGJqGZEPRcuTAqu6VzKTTK8RCExwLKBHkMWeK7Ez5ip6XHX1ZehouArgTEDjm9YfkwcYHoB4UF9LQ9nB8iFF7V47ahbHKMcoTRbsfDieFpyQ7MAqdtYTANfXiqzZVKbHUayN8
2022-01-07 23:35:33.047086: [debug] π€ Device linking handshake: Step 3
2022-01-07 23:35:33.047147: [debug] ππ Listening for pubsub-over-websockets message...
# i open auth.fission.codes and wait for several minutes with no changes
^C
fission setup -v
output after interrupted setup
na@pu:/tmp/bup$ fission setup -v
2022-01-07 23:44:11.616756: [debug] ππ Reading global config.yaml
2022-01-07 23:44:11.616920: [debug] ππ Reading YAML from "/home/na/.config/fission/config.yaml"
2022-01-07 23:44:11.617002: [debug] π Path does not exist
2022-01-07 23:44:11.617046: [warn] π Cannot find file
2022-01-07 23:44:11.617556: [debug] No cached server DID. Fetching from _did.runfission.com
2022-01-07 23:44:11.647168: [debug] DID retrieved did:key:z6MkgYGF3thn8k1Fv4p4dWXKtsXCnLH7q9yw4QgNPULDmDKB
2022-01-07 23:44:11.647347: [debug] Setup (Options {forceOS = Nothing, maybeUsername = Nothing, maybeEmail = Nothing, maybeKeyFile = Nothing})
2022-01-07 23:44:11.647462: [debug] ππ Reading global config.yaml
2022-01-07 23:44:11.647512: [debug] ππ Reading YAML from "/home/na/.config/fission/config.yaml"
2022-01-07 23:44:11.647573: [debug] π Path does not exist
2022-01-07 23:44:11.647613: [warn] π Cannot find file
2022-01-07 23:44:11.647660: [debug] Unable to parse config
2022-01-07 23:44:11.647710: [user] π± Setting up environment
2022-01-07 23:44:11.647784: [user] πͺ Downloading managed IPFS for Linux
2022-01-07 23:44:11.647852: [debug] β¬οΈ Downloading go-ipfs v0.9.0 for Linux
π2022-01-07 23:44:11.647973: [debug] π±π Making request to GitHub
π2022-01-07 23:44:14.239965: [debug] π Unpacking archive...
2022-01-07 23:44:14.240422: [debug] π Moving IPFS into place...
2022-01-07 23:44:14.240473: [debug] βοΈ Writing to /home/na/.config/fission/bin/fission-ipfs
2022-01-07 23:44:15.218306: [user] ποΈ Configuring managed IPFS
2022-01-07 23:44:15.218475: [debug] ππ¬ Running local IPFS
2022-01-07 23:44:15.218549: [debug] π Writing temp ignore file /home/na/.config/fission/tmp with: []
2022-01-07 23:44:15.218605: [debug] βοΈ Writing to /home/na/.config/fission/tmp/9c9fbce3befe7d450fc16ee701d2168e49537d3d5f62b38abf73244c1fa90bc4
2022-01-07 23:44:15.268235: [debug] πβοΈ Running: IPFS_PATH=/home/na/.config/fission/ipfs /home/na/.config/fission/bin/fission-ipfs init --timeout=3600s with arg Nothing
2022-01-07 23:44:15.305043: [warn] π "Error: ipfs configuration file already exists!\nReinitializing would overwrite your keys.\n\n"
2022-01-07 23:44:15.305171: [debug] ππ¬ Running local IPFS
2022-01-07 23:44:15.305227: [debug] π Writing temp ignore file /home/na/.config/fission/tmp with: []
2022-01-07 23:44:15.305282: [debug] βοΈ Writing to /home/na/.config/fission/tmp/9c9fbce3befe7d450fc16ee701d2168e49537d3d5f62b38abf73244c1fa90bc4
2022-01-07 23:44:15.306566: [debug] πβοΈ Running: IPFS_PATH=/home/na/.config/fission/ipfs /home/na/.config/fission/bin/fission-ipfs config --bool Swarm.EnableRelayHop true --timeout=3600s with arg Nothing
2022-01-07 23:44:15.347691: [debug] π IPFS process completed successfully
2022-01-07 23:44:15.347798: [debug] ππ¬ Running local IPFS
2022-01-07 23:44:15.347873: [debug] π Writing temp ignore file /home/na/.config/fission/tmp with: []
2022-01-07 23:44:15.347927: [debug] βοΈ Writing to /home/na/.config/fission/tmp/9c9fbce3befe7d450fc16ee701d2168e49537d3d5f62b38abf73244c1fa90bc4
2022-01-07 23:44:15.349140: [debug] πβοΈ Running: IPFS_PATH=/home/na/.config/fission/ipfs /home/na/.config/fission/bin/fission-ipfs config Addresses.API /ip4/0.0.0.0/tcp/10235 --timeout=3600s with arg Nothing
2022-01-07 23:44:15.390401: [debug] π IPFS process completed successfully
2022-01-07 23:44:15.390496: [debug] ππ¬ Running local IPFS
2022-01-07 23:44:15.390553: [debug] π Writing temp ignore file /home/na/.config/fission/tmp with: []
2022-01-07 23:44:15.390615: [debug] βοΈ Writing to /home/na/.config/fission/tmp/9c9fbce3befe7d450fc16ee701d2168e49537d3d5f62b38abf73244c1fa90bc4
2022-01-07 23:44:15.391999: [debug] πβοΈ Running: IPFS_PATH=/home/na/.config/fission/ipfs /home/na/.config/fission/bin/fission-ipfs bootstrap add /dns4/node.runfission.com/tcp/4001/ipfs/QmVLEz2SxoNiFnuyLpbXsH6SvjPTrHNMU88vCQZyhgBzgw --timeout=3600s with arg Nothing
2022-01-07 23:44:15.430776: [debug] π IPFS process completed successfully
2022-01-07 23:44:15.430872: [debug] ππ¬ Running local IPFS
2022-01-07 23:44:15.430941: [debug] π Writing temp ignore file /home/na/.config/fission/tmp with: []
2022-01-07 23:44:15.431016: [debug] βοΈ Writing to /home/na/.config/fission/tmp/9c9fbce3befe7d450fc16ee701d2168e49537d3d5f62b38abf73244c1fa90bc4
2022-01-07 23:44:15.432339: [debug] πβοΈ Running: IPFS_PATH=/home/na/.config/fission/ipfs /home/na/.config/fission/bin/fission-ipfs bootstrap add /ip4/3.226.224.78/tcp/4001/p2p/QmPeeeZZXxMBAPxxba7a6ggjDr5jLuD3RAFnmPPcvJ9fMS --timeout=3600s with arg Nothing
2022-01-07 23:44:15.472156: [debug] π IPFS process completed successfully
2022-01-07 23:44:15.472249: [debug] ππ¬ Running local IPFS
2022-01-07 23:44:15.472309: [debug] π Writing temp ignore file /home/na/.config/fission/tmp with: []
2022-01-07 23:44:15.472376: [debug] βοΈ Writing to /home/na/.config/fission/tmp/9c9fbce3befe7d450fc16ee701d2168e49537d3d5f62b38abf73244c1fa90bc4
2022-01-07 23:44:15.473643: [debug] πβοΈ Running: IPFS_PATH=/home/na/.config/fission/ipfs /home/na/.config/fission/bin/fission-ipfs bootstrap add /ip4/3.226.224.78/udp/4001/quic/p2p/QmPeeeZZXxMBAPxxba7a6ggjDr5jLuD3RAFnmPPcvJ9fMS --timeout=3600s with arg Nothing
2022-01-07 23:44:15.512175: [debug] π IPFS process completed successfully
2022-01-07 23:44:15.512273: [debug] ππ¬ Running local IPFS
2022-01-07 23:44:15.512328: [debug] π Writing temp ignore file /home/na/.config/fission/tmp with: []
2022-01-07 23:44:15.512378: [debug] βοΈ Writing to /home/na/.config/fission/tmp/9c9fbce3befe7d450fc16ee701d2168e49537d3d5f62b38abf73244c1fa90bc4
2022-01-07 23:44:15.514236: [debug] πβοΈ Running: IPFS_PATH=/home/na/.config/fission/ipfs /home/na/.config/fission/bin/fission-ipfs config Addresses.Gateway /ip4/0.0.0.0/tcp/11235 --timeout=3600s with arg Nothing
2022-01-07 23:44:15.553884: [debug] π IPFS process completed successfully
2022-01-07 23:44:15.553994: [warn] π "Error: ipfs configuration file already exists!\nReinitializing would overwrite your keys.\n\n"
na@pu:/tmp/bup$ echo $? # fission exits with error code 1
1
fission whoami -v
after interrupted setup
na@pu:/tmp/bup$ fission whoami -v
2022-01-07 23:45:14.530599: [debug] ππ Reading global config.yaml
2022-01-07 23:45:14.530774: [debug] ππ Reading YAML from "/home/na/.config/fission/config.yaml"
2022-01-07 23:45:14.530855: [debug] π Path does not exist
2022-01-07 23:45:14.530918: [warn] π Cannot find file
2022-01-07 23:45:14.531691: [debug] No cached server DID. Fetching from _did.runfission.com
2022-01-07 23:45:14.560561: [debug] DID retrieved did:key:z6MkgYGF3thn8k1Fv4p4dWXKtsXCnLH7q9yw4QgNPULDmDKB
2022-01-07 23:45:14.560725: [debug] User (WhoAmI CommandOnly)
2022-01-07 23:45:14.560788: [debug] ππ Reading global config.yaml
2022-01-07 23:45:14.560839: [debug] ππ Reading YAML from "/home/na/.config/fission/config.yaml"
2022-01-07 23:45:14.560901: [debug] π Path does not exist
2022-01-07 23:45:14.560941: [warn] π Cannot find file
2022-01-07 23:45:14.560987: [debug] Unable to parse config
2022-01-07 23:45:14.561077: [debug] App interpreter
2022-01-07 23:45:14.561152: [debug] πͺπ Getting root UCAN
2022-01-07 23:45:14.561202: [debug] ππ Loading UCAN store
2022-01-07 23:45:14.561250: [debug] ππ Reading JSON from "/home/na/.config/fission/ucan/store.json"
2022-01-07 23:45:14.561317: [debug] π File path does not exist
2022-01-07 23:45:14.561361: [warn] π Cannot find file
2022-01-07 23:45:14.561421: [debug] ππ Reading global config.yaml
2022-01-07 23:45:14.561465: [debug] ππ Reading YAML from "/home/na/.config/fission/config.yaml"
2022-01-07 23:45:14.561516: [debug] π Path does not exist
2022-01-07 23:45:14.561556: [warn] π Cannot find file
2022-01-07 23:45:14.561609: [warn] π Cannot find file
na@pu:/tmp/bup$ echo $? # fission exits with error code 1
1
fission app register -v
after interrupted setup
na@pu:/tmp/bup/hello-universe$ fission app register -v
2022-01-07 23:53:24.231470: [debug] ππ Reading global config.yaml
2022-01-07 23:53:24.231627: [debug] ππ Reading YAML from "/home/na/.config/fission/config.yaml"
2022-01-07 23:53:24.231685: [debug] π Path does not exist
2022-01-07 23:53:24.231727: [warn] π Cannot find file
2022-01-07 23:53:24.232252: [debug] No cached server DID. Fetching from _did.runfission.com
2022-01-07 23:53:24.243213: [debug] DID retrieved did:key:z6MkgYGF3thn8k1Fv4p4dWXKtsXCnLH7q9yw4QgNPULDmDKB
2022-01-07 23:53:24.243373: [debug] App (Init (Options {appDir = ".", buildDir = Nothing, mayAppName = Nothing, ipfsCfg = Config {binPath = Nothing, timeoutSeconds = Timeout {getSeconds = 1800}}}))
2022-01-07 23:53:24.243450: [debug] ππ Reading global config.yaml
2022-01-07 23:53:24.243506: [debug] ππ Reading YAML from "/home/na/.config/fission/config.yaml"
2022-01-07 23:53:24.243575: [debug] π Path does not exist
2022-01-07 23:53:24.243618: [warn] π Cannot find file
2022-01-07 23:53:24.243670: [debug] Unable to parse config
2022-01-07 23:53:24.243726: [debug] App interpreter
2022-01-07 23:53:24.243797: [debug] ππ Reading YAML from "/tmp/bup/hello-universe/fission.yaml"
2022-01-07 23:53:24.243856: [debug] π Path does not exist
2022-01-07 23:53:24.243906: [warn] π Cannot find file
2022-01-07 23:53:24.243981: [debug] Setting up new app
2022-01-07 23:53:24.244091: [debug] π§¬π¬ Parsing signing key
2022-01-07 23:53:24.244142: [info] π§¬π Loaded signing key
2022-01-07 23:53:24.244186: [debug] Ed25519 key loaded
2022-01-07 23:53:24.244229: [debug] βοΈ π Loaded Server DID: did:key:z6MkgYGF3thn8k1Fv4p4dWXKtsXCnLH7q9yw4QgNPULDmDKB
2022-01-07 23:53:24.244296: [debug] ππ Reading global config.yaml
2022-01-07 23:53:24.244342: [debug] ππ Reading YAML from "/home/na/.config/fission/config.yaml"
2022-01-07 23:53:24.244394: [debug] π Path does not exist
2022-01-07 23:53:24.244432: [warn] π Cannot find file
2022-01-07 23:53:24.244483: [warn] π Cannot find file
2022-01-07 23:53:24.244533: [warn] π Cannot find file
na@pu:/tmp/bup/hello-universe$ echo $? # fission exits with error code 1
1
Expected behavior
- authentication works whichever order i do things in, or at least explicitly warns me to open auth.fission.codes first
-
fission setup
notices the half-setup state of the config directory and starts from scratch, or at least prompts me to do so - assorted fission commands should do something, probably just a loud warning, about the broken state of the config directory (see also: #538
Desktop (please complete the following information):
- OS: Debian Bookworm
- for the visit to auth.fission.codes, all of:
- Browser Firefox Developer Edition 96.0b10 (64-bit)
- Google Chrome Version 96.0.4664.110
- Firefox for android 95.2.0
- Chrome for android 96.0.4664.104
- Fission Version 2.17.0.0 (both from git main, and the
fission-cli-ubuntu-20.04-x86_64
release artifact)
Thank you for submitting an issue! It means a lot that you took the time -- it helps us be better π