Error in neo4j-admin push-to-cloud: Remote host terminated the handshake
qing.sun@coupang.com
Hi team,
I just spin up a new AuraDB instance, this is the command used to push our local data to cloud but got some error:
neo4j-admin push-to-cloud --verbose --bolt-uri=neo4j+s://1aa1d888.databases.neo4j.io --dump-to=~/data/dumps/neo4j.dump --username=neo4j --password=***
Selecting JVM - Version:11.0.22+7, Name:OpenJDK 64-Bit Server VM, Vendor:Eclipse Adoptium
Executing command line: /opt/java/openjdk/bin/java -cp /var/lib/neo4j/plugins/
:/var/lib/neo4j/conf/
:/var/lib/neo4j/lib/* -Xmx18874368k -XX:+UseG1GC -XX:-OmitStackTraceInFastThrow -XX:+AlwaysPreTouch -XX:+UnlockExperimentalVMOptions -XX:+TrustFinalNonStaticFields -XX:+DisableExplicitGC -XX:MaxInlineLevel=15 -XX:-UseBiasedLocking -Djdk.nio.maxCachedBufferSize=262144 -Dio.netty.tryReflectionSetAccessible=true -XX:+ExitOnOutOfMemoryError -Djdk.tls.ephemeralDHKeySize=2048 -Djdk.tls.rejectClientInitiatedRenegotiation=true -XX:FlightRecorderOptions=stackdepth=256 -XX:+UnlockDiagnosticVMOptions -XX:+DebugNonSafepoints -Dlog4j2.disable.jmx=true -Xlog:gc
,safepoint,age
=trace:file=/logs/gc.log::filecount=5,filesize=20480k -Dfile.encoding=UTF-8 org.neo4j.cli.AdminTool push-to-cloud --bolt-uri=neo4j+s://1aa1d888.databases.neo4j.io --dump-to=~/data/dumps/neo4j.dump --username=neo4j --password=XHf27Fpht5SP-45tupKmZoYLesy0XTJUzICcLvF4pOY --verbose neo4j 4.4.31
VM Name: OpenJDK 64-Bit Server VM
VM Vendor: Eclipse Adoptium
VM Version: 11.0.22+7
JIT compiler: HotSpot 64-Bit Tiered Compilers
VM Arguments: [-Xmx18874368k, -XX:+UseG1GC, -XX:-OmitStackTraceInFastThrow, -XX:+AlwaysPreTouch, -XX:+UnlockExperimentalVMOptions, -XX:+TrustFinalNonStaticFields, -XX:+DisableExplicitGC, -XX:MaxInlineLevel=15, -XX:-UseBiasedLocking, -Djdk.nio.maxCachedBufferSize=262144, -Dio.netty.tryReflectionSetAccessible=true, -XX:+ExitOnOutOfMemoryError, -Djdk.tls.ephemeralDHKeySize
=2048, -Djdk.tls.rejectClientInitiatedRenegotiation=true, -XX:FlightRecorderOptions=stackdepth=256, -XX:+UnlockDiagnosticVMOptions, -XX:+DebugNonSafepoints, -Dlog4j2.disable.jmx=true, -Xlog:gc
,safepoint,age
=trace:file=/logs/gc.log::filecount=5,filesize=20480k, -Dfile.encoding=UTF-8]org.neo4j.cli.CommandFailedException: Remote host terminated the handshake
at org.neo4j.pushtocloud.HttpCopier.retryOnUnavailable(HttpCopier.java:321)
at org.neo4j.pushtocloud.HttpCopier.authenticate(HttpCopier.java:457)
at org.neo4j.pushtocloud.PushToCloudCommand.execute(PushToCloudCommand.java:135)
at picocli.CommandLine.executeUserObject(CommandLine.java:1953)
at picocli.CommandLine.access$1300(CommandLine.java:145)
at picocli.CommandLine$RunLast.executeUserObjectOfLastSubcommandWithSameParent(CommandLine.java:2352)
at picocli.CommandLine$RunLast.handle(CommandLine.java:2346)
at picocli.CommandLine$RunLast.handle(CommandLine.java:2311)
at picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:2179)
at picocli.CommandLine.execute(CommandLine.java:2078)
at org.neo4j.cli.AdminTool.execute(AdminTool.java:93)
at org.neo4j.cli.AdminTool.main(AdminTool.java:79)
Caused by: javax.net.ssl.SSLHandshakeException: Remote host terminated the handshake
at java.base/sun.security.ssl.SSLSocketImpl.handleEOF(SSLSocketImpl.java:1701)
at java.base/sun.security.ssl.SSLSocketImpl.decode(SSLSocketImpl.java:1519)
at java.base/sun.security.ssl.SSLSocketImpl.readHandshakeRecord(SSLSocketImpl.java:1421)
at java.base/sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:456)
at java.base/sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:427)
at java.base/sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:580)
at java.base/sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:201)
at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1592)
at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1520)
at java.base/java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:527)
at java.base/sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java:334)
at org.neo4j.pushtocloud.HttpCopier.doAuthenticate(HttpCopier.java:471)
at org.neo4j.pushtocloud.HttpCopier.lambda$authenticate$6(HttpCopier.java:457)
at org.neo4j.pushtocloud.HttpCopier.retryOnUnavailable(HttpCopier.java:298)
... 13 more
Caused by: java.io.EOFException: SSL peer shut down incorrectly
at java.base/sun.security.ssl.SSLSocketInputRecord.readHeader(SSLSocketInputRecord.java:478)
at java.base/sun.security.ssl.SSLSocketInputRecord.decode(SSLSocketInputRecord.java:160)
at java.base/sun.security.ssl.SSLTransport.decode(SSLTransport.java:111)
at java.base/sun.security.ssl.SSLSocketImpl.decode(SSLSocketImpl.java:1511)
... 25 more
Our security group or NACL is not blocking the outbound connection, I did a test with
and it works.
Any recommendations ?
Thanks
Shawn