fission-codes / fission

Fission CLI & server
https://runfission.com/docs
119 stars 14 forks source link

Intermittent connection issues to runfission.com & error: "Invalid key file provided." #639

Closed tennox closed 3 months ago

tennox commented 3 months ago

Summary

Our CI pipelines started randomly failing (after a few retries they work) - since it's from gitlab infrastructure I don't assume local internet issues could be the cause.

Problem

The error message:

🌱 Setting up environment
🪐 Downloading managed IPFS for Linux
🎛️  Configuring managed IPFS
🔑 Setting up keys
🕐🕑🕒🕓🕔🕕🕖🕗🕘🕙🕚🕛🕐🕑🕐🕑🕒🕓🕔🕕🕖🕗🕘🕙🕚🕛🕐🕑🕒🕓🕔🕕🕖🕗🕘🕙🚫 Invalid key file provided.

Detail

Trying locally with --verbose yields me this:

2024-05-07 14:22:06.563860: [debug] ⚙ 🆔 Loaded Server DID: did:key:z6MkgYGF3thn8k1Fv4p4dWXKtsXCnLH7q9yw4QgNPULDmDKB
2024-05-07 14:22:06.563935: [debug] 🧬🔬 Parsing signing key
2024-05-07 14:22:06.563961: [info] 🧬👍 Loaded signing key
🕘2024-05-07 14:22:11.811842: [warn] 🙋 ConnectionError (HttpExceptionRequest Request {
  host                 = "runfission.com"
  port                 = 443
  secure               = True
  requestHeaders       = [("Accept","text/plain;charset=utf-8"),("Authorization","<REDACTED>")]
  path                 = "/v2/api/user/whoami"
  queryString          = ""
  method               = "GET"
  proxy                = Nothing
  rawBody              = False
  redirectCount        = 10
  responseTimeout      = ResponseTimeoutDefault
  requestVersion       = HTTP/1.1
}
 (ConnectionFailure Network.Socket.getAddrInfo (called with preferred socket type/protocol: AddrInfo {addrFlags = [AI_ADDRCONFIG], addrFamily = AF_UNSPEC, addrSocketType = Stream, addrProtocol = 0, addrAddress = <assumed to be undefined>, addrCanonName = <assumed to be undefined>}, host name: Just "runfission.com", service name: Just "443"): does not exist (No address associated with hostname)))
2024-05-07 14:22:11.812060: [debug] Identity (ConnectionError (HttpExceptionRequest Request {
  host                 = "runfission.com"
  port                 = 443
  secure               = True
  requestHeaders       = [("Accept","text/plain;charset=utf-8"),("Authorization","<REDACTED>")]
  path                 = "/v2/api/user/whoami"
  queryString          = ""
  method               = "GET"
  proxy                = Nothing
  rawBody              = False
  redirectCount        = 10
  responseTimeout      = ResponseTimeoutDefault
  requestVersion       = HTTP/1.1
}
 (ConnectionFailure Network.Socket.getAddrInfo (called with preferred socket type/protocol: AddrInfo {addrFlags = [AI_ADDRCONFIG], addrFamily = AF_UNSPEC, addrSocketType = Stream, addrProtocol = 0, addrAddress = <assumed to be undefined>, addrCanonName = <assumed to be undefined>}, host name: Just "runfission.com", service name: Just "443"): does not exist (No address associated with hostname))))
🚫 Invalid key file provided.

To Reproduce Steps to reproduce the behavior:

  1. fission setup -k path/to/machine_id --verbose or
  2. docker run --env FISSION_MACHINE_KEY=(pass -o fission/ztax-misc) tennox/fission-cli
aycanirican commented 3 months ago

I was looking at this and then found out that https://fission.codes/blog/farewell-from-fission/

tennox commented 3 months ago

@aycanirican yeah, sad times... I thought to still create the issue and see what happens :sweat_smile:

It's only an intermittent issue after all (DNS config issue with runfission.com - working sometimes, sometimes not :cry: )

walkah commented 3 months ago

It's true, sadly Fission is no more. That said, we're gonna keep the hosted service around for a bit (announcement forthcoming)... this was a bad DNS change on our end. I've fixed it now. Thanks for reporting!