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

unexpected warning message from SSH makes jcm failing at listing local experiments #1

Open
jvrgnzlz opened this issue Mar 19, 2020 · 1 comment

Comments

@jvrgnzlz
Copy link

I got a "key_load_public: invalid format" warning message when logging into a flexbuff because one of the keys in the ~/.ssh directory is not correct. This doesn't prevent login in but seems to make jcm to interpret wrongly the output of "du", and as a consequence, the application does not list the contents of the server. It is a problem with the SSH keys not JCM itself, but it is maybe worth to check how it parses the outputs of the commands that it executes to increase its robustness.

@bobeldering
Copy link
Collaborator

JCM takes the stderr and stdout from an "ssh ... du ..." call and parser the sizes of chunks from stdout. Any l(non-empty) line in the output that doesn't match the expected du output will trigger an error. This is very low tech obviously and has the disadvantage that any deviation in the output will stop the functioning of the program, it has the advantage that requires very little to be installed to function.

Given this low tech solution, when something unexpected is encountered, I think there are two choices: ignore it and try to make the best of the situation or raise an error. I tend to lean towards the second choice, as it doesn't hide any (real) errors and allows users to fix irregularities (as in this case).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants