I am connecting to Teradata from R and executing some queries. This is perfectly working on R Studio. I moved this to shiny server for other users to access the tool.
The first time folks use the tool its working perfectly fine - connecting well and giving out results. Once the folks close the tool and open it like 10-12 hours after that, the queries are taking really long time and failing with error below. I opened up the console of chrome to see the logs and below is the content of the log:
After i again login to the my machine and copy all the files from source to /srv/shiny-server, the tool is working fine and same error repeats after some time.
I am assuming this is happening as the previous connection is not getting closed clearly.
Unhandled error in observer: Unable to retrieve JDBC result set for select
SITE,
CHNL,
pool ,
SUM(cnt) as cnt
FROM
abc.table_name
where run_dt = '2016-02-29'
group by 1,2,3
order by 4 desc; ([Teradata JDBC Driver] [TeraJDBC 14.00.00.05] [Error 1000] [SQLState 08S01] Login failure for Packet transmit Tue Mar 08 18:53:28 UTC 2016 socket orig=
server.xxx.xxx.com local=
0.0.0.0/0.0.0.0:46982 remote=
server.xxx.xxx.com/10.102.20.23:1025 keepalive=unavailable nodelay=unavailable receive=unavailable send=unavailable linger=unavailable traffic=unavailable concurrent=3 contimeout=10000 conwait=1000 connecttime=11 connecttotaltime=11 connectattempts=1 connectfailures=0 failurecache={} cid=540984b sess=39053461 java.net.SocketException: Socket closed at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:116) at java.net.SocketOutputStream.write(SocketOutputStream.java:153) at com.teradata.jdbc.jdbc_4.io.TDNetworkIOIF.write(TD [... truncated]
Warning in run(timeoutMs) :
Unhandled error in observer: com.teradata.jdbc.jdbc_4.util.JDBCException: [Teradata JDBC Driver] [TeraJDBC 14.00.00.05] [Error 1095] [SQLState HY000] Cannot call a method on closed connection
observeEvent(input$gopools)
Warning in run(timeoutMs) :
Unhandled error in observer: Unable to retrieve JDBC result set for select
SITE,
CHNL,
pool ,
SUM(cnt) as cnt
FROM
abc.table_name
where run_dt = '2016-02-29' and id = 123
group by 1,2,3
order by 4 desc; ([Teradata JDBC Driver] [TeraJDBC 14.00.00.05] [Error 1000] [SQLState 08S01] Login failure for Packet transmit Tue Mar 08 21:37:37 UTC 2016 socket orig=
server.xxx.xxx.com local=
0.0.0.0/0.0.0.0:35998 remote=
server.xxx.xxx.com/10.102.20.17:1025 keepalive=unavailable nodelay=unavailable receive=unavailable send=unavailable linger=unavailable traffic=unavailable concurrent=3 contimeout=10000 conwait=1000 connecttime=10 connecttotaltime=11 connectattempts=1 connectfailures=0 failurecache={} cid=6d79953c sess=39059509 java.net.SocketException: Socket closed at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:116) at java.net.SocketOutputStream.write(SocketOutputStream.java:153) at com.teradata [... truncated]
Warning in run(timeoutMs) :
Unhandled error in observer: com.teradata.jdbc.jdbc_4.util.JDBCException: [Teradata JDBC Driver] [TeraJDBC 14.00.00.05] [Error 1095] [SQLState HY000] Cannot call a method on closed connection
observeEvent(input$goButtonb)
Warning in run(timeoutMs) :
Unhandled error in observer: com.teradata.jdbc.jdbc_4.util.JDBCException: [Teradata JDBC Driver] [TeraJDBC 14.00.00.05] [Error 1095] [SQLState HY000] Cannot call a method on closed connection
observeEvent(input$goButtona)
Warning in run(timeoutMs) :
Unhandled error in observer: com.teradata.jdbc.jdbc_4.util.JDBCException: [Teradata JDBC Driver] [TeraJDBC 14.00.00.05] [Error 1095] [SQLState HY000] Cannot call a method on closed connection
observeEvent(input$goButtona)
Warning in run(timeoutMs) :
Unhandled error in observer: com.teradata.jdbc.jdbc_4.util.JDBCException: [Teradata JDBC Driver] [TeraJDBC 14.00.00.05] [Error 1095] [SQLState HY000] Cannot call a method on closed connection
observeEvent(input$goButtona)
Warning in run(timeoutMs) :
Unhandled error in observer: Unable to retrieve JDBC result set for select
SITE,
CHNL,
pool ,
SUM(cnt) as cnt
FROM
abc.table_name
where run_dt = '2016-02-29'
group by 1,2,3
order by 4 desc; ([Teradata JDBC Driver] [TeraJDBC 14.00.00.05] [Error 1000] [SQLState 08S01] Login failure for Packet transmit Wed Mar 09 05:26:06 UTC 2016 socket orig=
server.xxx.xxx.com local=
0.0.0.0/0.0.0.0:42840 remote=
server.xxx.xxx.com/10.102.20.13:1025 keepalive=unavailable nodelay=unavailable receive=unavailable send=unavailable linger=unavailable traffic=unavailable concurrent=3 contimeout=10000 conwait=1000 connecttime=9 connecttotaltime=9 connectattempts=1 connectfailures=0 failurecache={} cid=2e716cb7 sess=39064275 java.net.SocketException: Socket closed at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:116) at java.net.SocketOutputStream.write(SocketOutputStream.java:153) at com.teradata.jdbc.jdbc_4.io.TDNetworkIOIF.write(TDN [... truncated]
Warning in run(timeoutMs) :
Unhandled error in observer: com.teradata.jdbc.jdbc_4.util.JDBCException: [Teradata JDBC Driver] [TeraJDBC 14.00.00.05] [Error 1095] [SQLState HY000] Cannot call a method on closed connection
observeEvent(input$goButtona)
Warning in run(timeoutMs) :
Unhandled error in observer: com.teradata.jdbc.jdbc_4.util.JDBCException: [Teradata JDBC Driver] [TeraJDBC 14.00.00.05] [Error 1095] [SQLState HY000] Cannot call a method on closed connection
observeEvent(input$goButtona)
Warning in run(timeoutMs) :
Unhandled error in observer: com.teradata.jdbc.jdbc_4.util.JDBCException: [Teradata JDBC Driver] [TeraJDBC 14.00.00.05] [Error 1095] [SQLState HY000] Cannot call a method on closed connection
observeEvent(input$goButtona)
Warning in run(timeoutMs) :
Unhandled error in observer: com.teradata.jdbc.jdbc_4.util.JDBCException: [Teradata JDBC Driver] [TeraJDBC 14.00.00.05] [Error 1095] [SQLState HY000] Cannot call a method on closed connection
observeEvent(input$goButtona)
Warning in run(timeoutMs) :
Unhandled error in observer: com.teradata.jdbc.jdbc_4.util.JDBCException: [Teradata JDBC Driver] [TeraJDBC 14.00.00.05] [Error 1095] [SQLState HY000] Cannot call a method on closed connection
observeEvent(input$goButtona)
Warning in run(timeoutMs) :
Unhandled error in observer: com.teradata.jdbc.jdbc_4.util.JDBCException: [Teradata JDBC Driver] [TeraJDBC 14.00.00.05] [Error 1095] [SQLState HY000] Cannot call a method on closed connection
observeEvent(input$gopools)
Warning in run(timeoutMs) :
Unhandled error in observer: com.teradata.jdbc.jdbc_4.util.JDBCException: [Teradata JDBC Driver] [TeraJDBC 14.00.00.05] [Error 1095] [SQLState HY000] Cannot call a method on closed connection
observeEvent(input$gopools)
Warning in run(timeoutMs) :
Unhandled error in observer: com.teradata.jdbc.jdbc_4.util.JDBCException: [Teradata JDBC Driver] [TeraJDBC 14.00.00.05] [Error 1095] [SQLState HY000] Cannot call a method on closed connection
observeEvent(input$gopools)
Warning in run(timeoutMs) :
Unhandled error in observer: com.teradata.jdbc.jdbc_4.util.JDBCException: [Teradata JDBC Driver] [TeraJDBC 14.00.00.05] [Error 1095] [SQLState HY000] Cannot call a method on closed connection
observeEvent(input$gopools)
Warning in run(timeoutMs) :
Unhandled error in observer: com.teradata.jdbc.jdbc_4.util.JDBCException: [Teradata JDBC Driver] [TeraJDBC 14.00.00.05] [Error 1095] [SQLState HY000] Cannot call a method on closed connection
observeEvent(input$gopools)
Warning in run(timeoutMs) :
Unhandled error in observer: Unable to retrieve JDBC result set for select
SITE,
CHNL,
pool ,
SUM(cnt) as cnt
FROM
abc.table_name
where run_dt = '2016-02-29' and id = 123
group by 1,2,3
order by 4 desc; ([Teradata JDBC Driver] [TeraJDBC 14.00.00.05] [Error 1000] [SQLState 08S01] Login failure for Packet transmit Thu Mar 10 23:44:51 UTC 2016 socket orig=
server.xxx.xxx.com local=
0.0.0.0/0.0.0.0:34081 remote=
server.xxx.xxx.com/10.102.20.15:1025 keepalive=unavailable nodelay=unavailable receive=unavailable send=unavailable linger=unavailable traffic=unavailable concurrent=3 contimeout=10000 conwait=1000 connecttime=8 connecttotaltime=10 connectattempts=1 connectfailures=0 failurecache={} cid=62c2ee15 sess=39117088 java.net.SocketException: Socket closed at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:116) at java.net.SocketOutputStream.write(SocketOutputStream.java:153) at com.teradata. [... truncated]
Warning in run(timeoutMs) :
Unhandled error in observer: com.teradata.jdbc.jdbc_4.util.JDBCException: [Teradata JDBC Driver] [TeraJDBC 14.00.00.05] [Error 1095] [SQLState HY000] Cannot call a method on closed connection
observeEvent(input$goButtons)
shiny-server.js:238 Fri Mar 11 2016 10:09:15 GMT-0800 (PST): Connection closed. Info: {"type":"close","code":1000,"reason":"Normal closure","wasClean":true}