On Sun, Oct 31, 2021 at 3:31 AM Shai Roemi <[email protected]> wrote:
> Sorry for the late reply > I did run guacd in debug mode, no more informative logs appear. As I said > earlier, I traced the error to this function > <https://www.libssh2.org/libssh2_sftp_open_ex.html>. The documentation > says NULL is returned on error, although the logs don't print the actual > error code. > My guess is that the function you mention only gets run once, upon initial connection of the SFTP channel. So, you probably won't get an error out of that, since you indicate that the SFTP session initially works fine but stops working somewhere along the way. So, I would guess that function call succeeds and you won't see any errors there. Of course, I could be wrong about that, just my guess. > My next step is to patch guacd to print it, hoping it'll give me more > information to find the source of the problem. > Regarding network issues, that was my first guess as well. I reviewed the > traffic and I see SSH-v2 keepalives transmitting and ack'ing successfully > at the correct intervals (according to the connection configurations). > > Yes, the SSH keep-alives will be there, and, since the SFTP traffic uses the same SSH connection as the terminal, I would expect this. > I very much doubt this is a guacamole bug, but If you have any other ideas > I'd love to hear them! > I'll update this thread when I find out anything new, hopefully it'll help > someone someday :) > > Yeah, it's definitely an odd problem. I'm certainly not saying that it absolutely couldn't be a bug in Guacamole - there certainly could be some corner-case it can't deal with, or even in libssh2 or something like that. But it almost seems like either the network is shutting down parts of the SSH connection, or the SSH server itself. Very strange - if you're able to track it down I will definitely be interested to hear what you come up with! -Nick >
