-
Notifications
You must be signed in to change notification settings - Fork 13
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
Do not hide important ssh exceptions behind non default logging levels #175
Comments
Side note: I'm not sure the ssh java client is being used right. The ssh client does read the
|
My |
You're right, we need to do a better job of raising exceptions to the user. We had hoped to raise meaningful error messages rather than the underlying java exceptions but that is clearly incomplete so instead we will log the exception message as error to console. We do not have testing to verify use of Do you mind sharing the config that caused the error (redacted of course) so I can recreate it and try to create an automated test around it? |
What caused the error is in the description. One of the host entries had a line with |
SSH java client library exceptions can be hidden behind debug messages which hinders qDup's usage. Example:
I was able to ssh the host in the command line without any issues but qDup didn't like it:
Nothing in the above was hinting at the real issue. It's not clear how to enable debug/trace so I stuck the debugger and there's an actual exception coming from ssh java library hidden by:
With the debugger I discovered that the error is actually this:
The issue is this line that goes back quite a while in my ssh config but crucially is defined in a server that I have not touched in a long long time. Unless you're connecting to that server, I don't think the ssh java client should bother at all (just like command line ssh):
But what it's true is that qDup should be showing these things and not hiding them behind not by default logging levels.
The text was updated successfully, but these errors were encountered: