colmena icon indicating copy to clipboard operation
colmena copied to clipboard

Uploading keys is erroring and I don't know why

Open grahamc opened this issue 2 years ago • 2 comments

$ colmena  upload-keys --on kif --impure -v
warning: Git tree '/home/grahamc/Documents/network' is dirty
[INFO ] Using flake: git+file:///home/grahamc/Documents/network
[INFO ] Enumerating nodes...
[INFO ] Selected 1 out of 4 hosts.
  kif | Uploading keys
  kif | Key upload failed: Child process exited with error code: 255
      | Failed: Child process exited with error code: 255
[ERROR] Failed to complete requested operation - Last 1 lines of logs:
[ERROR]  failure) Child process exited with error code: 255
[ERROR] Failed to upload keys to kif - Last 3 lines of logs:
[ERROR]  created)
[ERROR]    state) Running
[ERROR]  failure) Child process exited with error code: 255
[ERROR] -----
[ERROR] Operation failed with error: Child process exited with error code: 255

I wish I could share more information, I have really no clue what to do though :sweat:.

Note I'm running Colmena 2bd563e847817a3e96b2aa9932109c83bc64e566.

grahamc avatar Oct 27 '22 13:10 grahamc

Currently Child process exited with error code errors do lack quite a bit of context to be more useful. Are the keys fetched from keyFiles or keyCommands? One way without modifying Colmena itself is to run it strace -f and find which child process is exiting with 255.

zhaofengli avatar Oct 28 '22 06:10 zhaofengli

5432fe488ebec7ee30aaea5fb18a759e30e59612 added backtraces to the "Child process exited with error code" errors when the RUST_BACKTRACE=1 environment variable is present. The plan is to have more hierarchical error types so it's easier to find exactly where in the deployment flow an error occurred.

zhaofengli avatar Oct 29 '22 19:10 zhaofengli