vsql windows client dropping connection
For convenience, I have been using the VSQL windows client to connect to a remote Vertica server:
vsql -h <myserver>.cloudapp.net -U dbadmin -w <mypassword>
But time and time again as I'm working I notice that the server connection has dropped - forcing me to wait for a minute, then finally it resets and allows me to continue by re-typing the query. This is what I see:
dbadmin=> select count(*) from <sometable>;
server closed the connection unexpectedly
This probably means the server terminated abnormally
before or while processing the request.
The connection to the server was lost. Attempting reset: Succeeded.
I don't have the same problem when I'm SSH-ed into the server and using the server-side VSQL. The path of least resistance is to use that instead. But it would be much simpler for me if I could rely on the Windows VSQL keeping its connection alive.
vsql -h <myserver>.cloudapp.net -U dbadmin -w <mypassword>
But time and time again as I'm working I notice that the server connection has dropped - forcing me to wait for a minute, then finally it resets and allows me to continue by re-typing the query. This is what I see:
dbadmin=> select count(*) from <sometable>;
server closed the connection unexpectedly
This probably means the server terminated abnormally
before or while processing the request.
The connection to the server was lost. Attempting reset: Succeeded.
I don't have the same problem when I'm SSH-ed into the server and using the server-side VSQL. The path of least resistance is to use that instead. But it would be much simpler for me if I could rely on the Windows VSQL keeping its connection alive.
0
Comments
Have you antivirus software(may be NODE32?) or some network filters on your computer? Disable antivirus and check if you still get this message. Define to all pc "guards" do not check vsql.
# echo 600 > /proc/sys/net/ipv4/tcp_keepalive_time
vsql based on psql and a main problem of psql for same disconnections on Windows its antivirus/firewalls software. That was my idea, but if you disabled all "guards" and it do not helps so I dont know what to advice. Try to force a SSL connection, may be it will help.
PS
Look, if you have no problems with ssh, so its a client side problem (99.9%).
SSH - secured shell
http://twigstechtips.blogspot.co.il/2011/12/postgresql-fix-for-connecting-to-server.html