Open arno01 opened 2 years ago
I think the correct behavior here would be
--stdin
close when EOF is received by the local process--tty
- expect interactive console with user inputHave tested provider & client both running provider-services 0.1.1-rc1
, results are the same.
the issue still persists:
provider-services v0.2.1
[10390294-1-1-ssh]$ tar -cf - -C /usr/share -- info | provider-services lease-shell --stdin -- ssh tar -xf - -C /root
Error: EOF: failed while reading from stdin
[10390294-1-1-ssh]$ tar -czf - -C /usr/share -- info | provider-services lease-shell --stdin -- ssh tar -xf - -C /root
tar: Archive is compressed. Use -z option
tar: Error is not recoverable: exiting now
Error: lease shell failed: remote process exited with code 2
tar: -: Wrote only 8192 of 10240 bytes
tar: Child returned status 141
tar: Error is not recoverable: exiting now
[10390294-1-1-ssh]$ tar -czf - -C /etc -- hosts | provider-services lease-shell --stdin -- ssh tar -xf - -C /root
<hangs here>
akash
v0.16.4-rc2
.There are different use-cases getting broken due to the way
akash provider lease-shell
handles EOF.even a small file: