"javax.net.ssl.SSLException: java.net.SocketException: Connection reset" every 4 minutes

This thread has been locked for further replies. You can start a new thread to share your ideas or ask questions.

"javax.net.ssl.SSLException: java.net.SocketException: Connection reset" every 4 minutes

This thread has been locked for further replies. You can start a new thread to share your ideas or ask questions.
"javax.net.ssl.SSLException: java.net.SocketException: Connection reset" every 4 minutes
"javax.net.ssl.SSLException: java.net.SocketException: Connection reset" every 4 minutes
2020-03-21 01:05:07

I'm running the Omada Controller Software 3.2.6.

 

When Cloud access is enabled, I get the following error every 4 minutes in my server.log:

 

2020-03-21 01:38:34 [Thread-14029] [INFO]-[SourceFile:913] - javax.net.ssl.SSLException: Connection has been shutdown: javax.net.ssl.SSLException: java.net.SocketException: Connection reset
javax.net.ssl.SSLException: Connection has been shutdown: javax.net.ssl.SSLException: java.net.SocketException: Connection reset
    at sun.security.ssl.SSLSocketImpl.checkEOF(SSLSocketImpl.java:1551) ~[?:1.8.0_162]
    at sun.security.ssl.SSLSocketImpl.checkWrite(SSLSocketImpl.java:1563) ~[?:1.8.0_162]
    at sun.security.ssl.AppOutputStream.write(AppOutputStream.java:71) ~[?:1.8.0_162]
    at java.io.OutputStream.write(OutputStream.java:75) ~[?:1.8.0_162]
    at com.tplink.eap.cloudsdk.client.p.a(SourceFile:111) ~[cloudsdk-1.0.5.jar:?]
    at com.tplink.eap.cloudsdk.client.q.a(SourceFile:484) ~[cloudsdk-1.0.5.jar:?]
    at com.tplink.eap.cloudsdk.client.q.a(SourceFile:418) ~[cloudsdk-1.0.5.jar:?]
    at com.tplink.eap.cloudsdk.client.t.run(SourceFile:889) [cloudsdk-1.0.5.jar:?]
    at java.lang.Thread.run(Thread.java:748) [?:1.8.0_162]
Caused by: javax.net.ssl.SSLException: java.net.SocketException: Connection reset
    at sun.security.ssl.Alerts.getSSLException(Alerts.java:208) ~[?:1.8.0_162]
    at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1964) ~[?:1.8.0_162]
    at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1921) ~[?:1.8.0_162]
    at sun.security.ssl.SSLSocketImpl.handleException(SSLSocketImpl.java:1885) ~[?:1.8.0_162]
    at sun.security.ssl.SSLSocketImpl.handleException(SSLSocketImpl.java:1830) ~[?:1.8.0_162]
    at sun.security.ssl.AppInputStream.read(AppInputStream.java:116) ~[?:1.8.0_162]
    at com.tplink.eap.cloudsdk.client.p.a(SourceFile:120) ~[cloudsdk-1.0.5.jar:?]
    at com.tplink.eap.cloudsdk.client.s.run(SourceFile:830) ~[cloudsdk-1.0.5.jar:?]
    ... 1 more
Caused by: java.net.SocketException: Connection reset
    at java.net.SocketInputStream.read(SocketInputStream.java:210) ~[?:1.8.0_162]
    at java.net.SocketInputStream.read(SocketInputStream.java:141) ~[?:1.8.0_162]
    at sun.security.ssl.InputRecord.readFully(InputRecord.java:465) ~[?:1.8.0_162]
    at sun.security.ssl.InputRecord.read(InputRecord.java:503) ~[?:1.8.0_162]
    at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:983) ~[?:1.8.0_162]
    at sun.security.ssl.SSLSocketImpl.readDataRecord(SSLSocketImpl.java:940) ~[?:1.8.0_162]
    at sun.security.ssl.AppInputStream.read(AppInputStream.java:105) ~[?:1.8.0_162]
    at com.tplink.eap.cloudsdk.client.p.a(SourceFile:120) ~[cloudsdk-1.0.5.jar:?]
    at com.tplink.eap.cloudsdk.client.s.run(SourceFile:830) ~[cloudsdk-1.0.5.jar:?]
    ... 1 more
2020-03-21 01:38:34 [Thread-14029] [INFO]-[SourceFile:921] - Thread 'heartBeatThread' is stopped
2020-03-21 01:38:34 [Thread-18] [INFO]-[SourceFile:146] - Close connection to service server.
2020-03-21 01:38:34 [Thread-14028] [INFO]-[SourceFile:792] - expiredRequestCleanThread is interrupted.
2020-03-21 01:38:34 [Thread-14028] [INFO]-[SourceFile:796] - Thread 'expiredRequestCleanThread' is stopped
2020-03-21 01:38:34 [Thread-18] [INFO]-[SourceFile:127] - Connect service server automatically, ConnectionType is PERSISTENT_CONNECTION.
2020-03-21 01:38:34 [Thread-18] [INFO]-[SourceFile:366] - The result of connection is true.

 

What's going on here and how can I fix this error?

 

  0      
  0      
#1
Options
6 Reply
Re:"javax.net.ssl.SSLException: java.net.SocketException: Connection reset" every 4 minutes
2020-03-21 01:06:04

$ grep javax.net.ssl.SSLException server.log
2020-03-21 00:00:26 [Thread-13965] [INFO]-[SourceFile:913] - javax.net.ssl.SSLException: Connection has been shutdown: javax.net.ssl.SSLException: java.net.SocketException: Connection reset
javax.net.ssl.SSLException: Connection has been shutdown: javax.net.ssl.SSLException: java.net.SocketException: Connection reset
Caused by: javax.net.ssl.SSLException: java.net.SocketException: Connection reset
2020-03-21 00:04:22 [Thread-13968] [INFO]-[SourceFile:913] - javax.net.ssl.SSLException: Connection has been shutdown: javax.net.ssl.SSLException: java.net.SocketException: Connection reset
javax.net.ssl.SSLException: Connection has been shutdown: javax.net.ssl.SSLException: java.net.SocketException: Connection reset
Caused by: javax.net.ssl.SSLException: java.net.SocketException: Connection reset
2020-03-21 00:08:17 [Thread-13971] [INFO]-[SourceFile:913] - javax.net.ssl.SSLException: Connection has been shutdown: javax.net.ssl.SSLException: java.net.SocketException: Connection reset
javax.net.ssl.SSLException: Connection has been shutdown: javax.net.ssl.SSLException: java.net.SocketException: Connection reset
Caused by: javax.net.ssl.SSLException: java.net.SocketException: Connection reset
2020-03-21 00:12:13 [Thread-13974] [INFO]-[SourceFile:913] - javax.net.ssl.SSLException: Connection has been shutdown: javax.net.ssl.SSLException: java.net.SocketException: Connection reset
javax.net.ssl.SSLException: Connection has been shutdown: javax.net.ssl.SSLException: java.net.SocketException: Connection reset
Caused by: javax.net.ssl.SSLException: java.net.SocketException: Connection reset
2020-03-21 00:16:08 [Thread-13977] [INFO]-[SourceFile:913] - javax.net.ssl.SSLException: Connection has been shutdown: javax.net.ssl.SSLException: java.net.SocketException: Connection reset
javax.net.ssl.SSLException: Connection has been shutdown: javax.net.ssl.SSLException: java.net.SocketException: Connection reset
Caused by: javax.net.ssl.SSLException: java.net.SocketException: Connection reset
2020-03-21 00:23:59 [Thread-13980] [INFO]-[SourceFile:913] - javax.net.ssl.SSLException: Connection has been shutdown: javax.net.ssl.SSLException: java.net.SocketException: Connection reset
javax.net.ssl.SSLException: Connection has been shutdown: javax.net.ssl.SSLException: java.net.SocketException: Connection reset
Caused by: javax.net.ssl.SSLException: java.net.SocketException: Connection reset
2020-03-21 00:31:49 [Thread-13983] [INFO]-[SourceFile:913] - javax.net.ssl.SSLException: Connection has been shutdown: javax.net.ssl.SSLException: java.net.SocketException: Connection reset
javax.net.ssl.SSLException: Connection has been shutdown: javax.net.ssl.SSLException: java.net.SocketException: Connection reset
Caused by: javax.net.ssl.SSLException: java.net.SocketException: Connection reset
2020-03-21 00:35:45 [Thread-13986] [INFO]-[SourceFile:913] - javax.net.ssl.SSLException: Connection has been shutdown: javax.net.ssl.SSLException: java.net.SocketException: Connection reset
javax.net.ssl.SSLException: Connection has been shutdown: javax.net.ssl.SSLException: java.net.SocketException: Connection reset
Caused by: javax.net.ssl.SSLException: java.net.SocketException: Connection reset
2020-03-21 00:39:40 [Thread-13989] [INFO]-[SourceFile:913] - javax.net.ssl.SSLException: Connection has been shutdown: javax.net.ssl.SSLException: java.net.SocketException: Connection reset
javax.net.ssl.SSLException: Connection has been shutdown: javax.net.ssl.SSLException: java.net.SocketException: Connection reset
Caused by: javax.net.ssl.SSLException: java.net.SocketException: Connection reset
2020-03-21 00:43:36 [Thread-13992] [INFO]-[SourceFile:913] - javax.net.ssl.SSLException: Connection has been shutdown: javax.net.ssl.SSLException: java.net.SocketException: Connection reset
javax.net.ssl.SSLException: Connection has been shutdown: javax.net.ssl.SSLException: java.net.SocketException: Connection reset
Caused by: javax.net.ssl.SSLException: java.net.SocketException: Connection reset
2020-03-21 00:47:31 [Thread-13995] [INFO]-[SourceFile:913] - javax.net.ssl.SSLException: Connection has been shutdown: javax.net.ssl.SSLException: java.net.SocketException: Connection reset
javax.net.ssl.SSLException: Connection has been shutdown: javax.net.ssl.SSLException: java.net.SocketException: Connection reset
Caused by: javax.net.ssl.SSLException: java.net.SocketException: Connection reset
2020-03-21 00:51:27 [Thread-13998] [INFO]-[SourceFile:913] - javax.net.ssl.SSLException: Connection has been shutdown: javax.net.ssl.SSLException: java.net.SocketException: Connection reset
javax.net.ssl.SSLException: Connection has been shutdown: javax.net.ssl.SSLException: java.net.SocketException: Connection reset
Caused by: javax.net.ssl.SSLException: java.net.SocketException: Connection reset
2020-03-21 00:55:22 [Thread-14001] [INFO]-[SourceFile:913] - javax.net.ssl.SSLException: Connection has been shutdown: javax.net.ssl.SSLException: java.net.SocketException: Connection reset
javax.net.ssl.SSLException: Connection has been shutdown: javax.net.ssl.SSLException: java.net.SocketException: Connection reset
Caused by: javax.net.ssl.SSLException: java.net.SocketException: Connection reset
2020-03-21 01:03:13 [Thread-14004] [INFO]-[SourceFile:913] - javax.net.ssl.SSLException: Connection has been shutdown: javax.net.ssl.SSLException: java.net.SocketException: Connection reset
javax.net.ssl.SSLException: Connection has been shutdown: javax.net.ssl.SSLException: java.net.SocketException: Connection reset
Caused by: javax.net.ssl.SSLException: java.net.SocketException: Connection reset
2020-03-21 01:07:09 [Thread-14007] [INFO]-[SourceFile:913] - javax.net.ssl.SSLException: Connection has been shutdown: javax.net.ssl.SSLException: java.net.SocketException: Connection reset
javax.net.ssl.SSLException: Connection has been shutdown: javax.net.ssl.SSLException: java.net.SocketException: Connection reset
Caused by: javax.net.ssl.SSLException: java.net.SocketException: Connection reset
2020-03-21 01:11:05 [Thread-14011] [INFO]-[SourceFile:913] - javax.net.ssl.SSLException: Connection has been shutdown: javax.net.ssl.SSLException: java.net.SocketException: Connection reset
javax.net.ssl.SSLException: Connection has been shutdown: javax.net.ssl.SSLException: java.net.SocketException: Connection reset
Caused by: javax.net.ssl.SSLException: java.net.SocketException: Connection reset
2020-03-21 01:15:01 [Thread-14014] [INFO]-[SourceFile:913] - javax.net.ssl.SSLException: Connection has been shutdown: javax.net.ssl.SSLException: java.net.SocketException: Connection reset
javax.net.ssl.SSLException: Connection has been shutdown: javax.net.ssl.SSLException: java.net.SocketException: Connection reset
Caused by: javax.net.ssl.SSLException: java.net.SocketException: Connection reset
2020-03-21 01:22:51 [Thread-14017] [INFO]-[SourceFile:913] - javax.net.ssl.SSLException: Connection has been shutdown: javax.net.ssl.SSLException: java.net.SocketException: Connection reset
javax.net.ssl.SSLException: Connection has been shutdown: javax.net.ssl.SSLException: java.net.SocketException: Connection reset
Caused by: javax.net.ssl.SSLException: java.net.SocketException: Connection reset
2020-03-21 01:26:47 [Thread-14020] [INFO]-[SourceFile:913] - javax.net.ssl.SSLException: Connection has been shutdown: javax.net.ssl.SSLException: java.net.SocketException: Connection reset
javax.net.ssl.SSLException: Connection has been shutdown: javax.net.ssl.SSLException: java.net.SocketException: Connection reset
Caused by: javax.net.ssl.SSLException: java.net.SocketException: Connection reset
2020-03-21 01:30:42 [Thread-14023] [INFO]-[SourceFile:913] - javax.net.ssl.SSLException: Connection has been shutdown: javax.net.ssl.SSLException: java.net.SocketException: Connection reset
javax.net.ssl.SSLException: Connection has been shutdown: javax.net.ssl.SSLException: java.net.SocketException: Connection reset
Caused by: javax.net.ssl.SSLException: java.net.SocketException: Connection reset
2020-03-21 01:34:38 [Thread-14026] [INFO]-[SourceFile:913] - javax.net.ssl.SSLException: Connection has been shutdown: javax.net.ssl.SSLException: java.net.SocketException: Connection reset
javax.net.ssl.SSLException: Connection has been shutdown: javax.net.ssl.SSLException: java.net.SocketException: Connection reset
Caused by: javax.net.ssl.SSLException: java.net.SocketException: Connection reset
2020-03-21 01:38:34 [Thread-14029] [INFO]-[SourceFile:913] - javax.net.ssl.SSLException: Connection has been shutdown: javax.net.ssl.SSLException: java.net.SocketException: Connection reset
javax.net.ssl.SSLException: Connection has been shutdown: javax.net.ssl.SSLException: java.net.SocketException: Connection reset
Caused by: javax.net.ssl.SSLException: java.net.SocketException: Connection reset
2020-03-21 01:42:29 [Thread-14032] [INFO]-[SourceFile:913] - javax.net.ssl.SSLException: Connection has been shutdown: javax.net.ssl.SSLException: java.net.SocketException: Connection reset
javax.net.ssl.SSLException: Connection has been shutdown: javax.net.ssl.SSLException: java.net.SocketException: Connection reset
Caused by: javax.net.ssl.SSLException: java.net.SocketException: Connection reset

 

  0  
  0  
#2
Options
Re:"javax.net.ssl.SSLException: java.net.SocketException: Connection reset" every 4 minutes
2020-03-21 19:06:14

Maybe relevant (maybe not): The internet connection is (unfortunately) via DS-Lite (unitymedia), i.e. the router has a public IPv6 address and a shared IPv4 address.

  0  
  0  
#3
Options
Re:"javax.net.ssl.SSLException: java.net.SocketException: Connection reset" every 4 minutes
2020-03-23 01:43:59

@ASCII 

 

From the log, we guess the connection between the OC200 and the Omada Cloud is not stable, it may be related to the network connection. 

Please make sure the OC200 and the internet had a good connection. 

  0  
  0  
#4
Options
Re:"javax.net.ssl.SSLException: java.net.SocketException: Connection reset" every 4 minutes
2020-03-23 07:15:27

@forrest The internet connection is "stable" and reliable, so I'm inclined to rule that out. (fwiw it's not a OC200 but the omada software controller)

  0  
  0  
#5
Options
Re:"javax.net.ssl.SSLException: java.net.SocketException: Connection reset" every 4 minutes
2020-03-27 06:16:26

@forrest Any more ideas? Is there a way I can provide you with more information that would help you with tracking down the issue?

  0  
  0  
#6
Options
Re:"javax.net.ssl.SSLException: java.net.SocketException: Connection reset" every 4 minutes
2020-08-25 18:24:43

@ASCII 

 

I know it's an old thread, but I'm tracking down an issue and ran into the same thing.

 

Based up on what I've seen, it's due to the tp-link ssl certificate being untrusted on whatever server is running the Omada controller software.

 

ASCII wrote

I'm running the Omada Controller Software 3.2.6.

 

When Cloud access is enabled, I get the following error every 4 minutes in my server.log:

 

2020-03-21 01:38:34 [Thread-14029] [INFO]-[SourceFile:913] - javax.net.ssl.SSLException: Connection has been shutdown: javax.net.ssl.SSLException: java.net.SocketException: Connection reset
javax.net.ssl.SSLException: Connection has been shutdown: javax.net.ssl.SSLException: java.net.SocketException: Connection reset
    at sun.security.ssl.SSLSocketImpl.checkEOF(SSLSocketImpl.java:1551) ~[?:1.8.0_162]
    at sun.security.ssl.SSLSocketImpl.checkWrite(SSLSocketImpl.java:1563) ~[?:1.8.0_162]
    at sun.security.ssl.AppOutputStream.write(AppOutputStream.java:71) ~[?:1.8.0_162]
    at java.io.OutputStream.write(OutputStream.java:75) ~[?:1.8.0_162]
    at com.tplink.eap.cloudsdk.client.p.a(SourceFile:111) ~[cloudsdk-1.0.5.jar:?]
    at com.tplink.eap.cloudsdk.client.q.a(SourceFile:484) ~[cloudsdk-1.0.5.jar:?]
    at com.tplink.eap.cloudsdk.client.q.a(SourceFile:418) ~[cloudsdk-1.0.5.jar:?]
    at com.tplink.eap.cloudsdk.client.t.run(SourceFile:889) [cloudsdk-1.0.5.jar:?]
    at java.lang.Thread.run(Thread.java:748) [?:1.8.0_162]
Caused by: javax.net.ssl.SSLException: java.net.SocketException: Connection reset
    at sun.security.ssl.Alerts.getSSLException(Alerts.java:208) ~[?:1.8.0_162]
    at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1964) ~[?:1.8.0_162]
    at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1921) ~[?:1.8.0_162]
    at sun.security.ssl.SSLSocketImpl.handleException(SSLSocketImpl.java:1885) ~[?:1.8.0_162]
    at sun.security.ssl.SSLSocketImpl.handleException(SSLSocketImpl.java:1830) ~[?:1.8.0_162]
    at sun.security.ssl.AppInputStream.read(AppInputStream.java:116) ~[?:1.8.0_162]
    at com.tplink.eap.cloudsdk.client.p.a(SourceFile:120) ~[cloudsdk-1.0.5.jar:?]
    at com.tplink.eap.cloudsdk.client.s.run(SourceFile:830) ~[cloudsdk-1.0.5.jar:?]
    ... 1 more
Caused by: java.net.SocketException: Connection reset
    at java.net.SocketInputStream.read(SocketInputStream.java:210) ~[?:1.8.0_162]
    at java.net.SocketInputStream.read(SocketInputStream.java:141) ~[?:1.8.0_162]
    at sun.security.ssl.InputRecord.readFully(InputRecord.java:465) ~[?:1.8.0_162]
    at sun.security.ssl.InputRecord.read(InputRecord.java:503) ~[?:1.8.0_162]
    at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:983) ~[?:1.8.0_162]
    at sun.security.ssl.SSLSocketImpl.readDataRecord(SSLSocketImpl.java:940) ~[?:1.8.0_162]
    at sun.security.ssl.AppInputStream.read(AppInputStream.java:105) ~[?:1.8.0_162]
    at com.tplink.eap.cloudsdk.client.p.a(SourceFile:120) ~[cloudsdk-1.0.5.jar:?]
    at com.tplink.eap.cloudsdk.client.s.run(SourceFile:830) ~[cloudsdk-1.0.5.jar:?]
    ... 1 more
2020-03-21 01:38:34 [Thread-14029] [INFO]-[SourceFile:921] - Thread 'heartBeatThread' is stopped
2020-03-21 01:38:34 [Thread-18] [INFO]-[SourceFile:146] - Close connection to service server.
2020-03-21 01:38:34 [Thread-14028] [INFO]-[SourceFile:792] - expiredRequestCleanThread is interrupted.
2020-03-21 01:38:34 [Thread-14028] [INFO]-[SourceFile:796] - Thread 'expiredRequestCleanThread' is stopped
2020-03-21 01:38:34 [Thread-18] [INFO]-[SourceFile:127] - Connect service server automatically, ConnectionType is PERSISTENT_CONNECTION.
2020-03-21 01:38:34 [Thread-18] [INFO]-[SourceFile:366] - The result of connection is true.

 

What's going on here and how can I fix this error?

 

 

  0  
  0  
#7
Options