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

fleetctl --endpoint http://x.x.x.x:4001 journal -f never closes ssh connection #28

Open
andymotta opened this issue Jun 4, 2015 · 4 comments
Assignees
Labels

Comments

@andymotta
Copy link

Hello FleetUI Contributors,

First, thank you for your hard work and excellent product. Our developers really appreciate fleet-ui.

We noticed that journal -f ssh connections are not closed upon closing of the websocket. This leaves a number of ssh tunnels connected to the requested host, and eventually exhausts all available incoming ssh connections on said host.
log-follow

Every time we bring up the journal these tunnels are created, and never terminated. If we look at the same journal 10 times we create 10 forever connections.
Inside container:
10932 13 root S 11820 1% 0% fleetctl --endpoint http://172.x.x.x:4001 journal -f [email protected]
12750 13 root S 11820 1% 0% fleetctl --endpoint http://172.x.x.x:4001 journal -f [email protected]

After a while (~104 requests to the same host), we are unable to ssh to the requested host at all:
➜ ~ ssh [email protected]
ssh_exchange_identification: Connection closed by remote host
➜ git ssh [email protected]
ssh_exchange_identification: read: Connection reset by peer

After bringing the socket-activated sshd service back up, we see this in the service journal: Jun 03 23:29:46 ip-172-x-x-x.us-west-2.compute.internal systemd[1]: sshd.socket: Too many incoming connections (64)

Is this because of the --follow nature of the connection?

@djmaze
Copy link

djmaze commented Jul 20, 2015

I think this is a bug. The connections should be terminated as soon as the log overlay is closed.

@hauptmedia
Copy link

I ran into this problem today and I'm now unable to login via ssh on some nodes :(

@andymotta
Copy link
Author

Hey Julian,
When that happens we've been restarting the fleet-ui container which releases the connections, has been the easiest workaround so far.

@hauptmedia
Copy link

This works as workaround. Thank you for the tip!

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

No branches or pull requests

5 participants