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

Attempting to auth after entering username during setup waits forever, and leaves config directory in a broken state when inevitably interrupted #566

Open
natronium opened this issue Jan 8, 2022 · 1 comment
Labels
🐛 bug Something isn't working

Comments

@natronium
Copy link

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

  1. Run fission setup
  2. Answer Y to "Do you have an existing account"
  3. Enter account name
  4. Go to auth.fission.codes
  5. Observe as fission setup waits forever(?), and auth.fission.codes does not show an authentication code
  6. ^C to exit fission setup
  7. 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: fission app register fails silently if no config.yml exists in ~/.config/fission/ #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)
@natronium natronium added the 🐛 bug Something isn't working label Jan 8, 2022
@github-actions
Copy link

github-actions bot commented Jan 8, 2022

Thank you for submitting an issue! It means a lot that you took the time -- it helps us be better 🙏

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
None yet
Development

No branches or pull requests

1 participant