Was trying to get an item from db, updates it and save it back to db using GORM. but the process hangs after doing the save.
I also tried to wrap these commands in a transaction, but still see the process hangs at save.
However I noticed if I just do "First" to get the item and "Save" to save back the item, the process completes successfully.
This really puzzles me because apparently in the GORM documentation, the example of an update is exactly what I am trying to achieve here.
Example in doc
db.First(&user)
user.Name = "jinzhu 2"
user.Age = 100
db.Save(&user)
My code
type Item struct {
PK int `json:"-" gorm:"index;primary_key"`
ID string `json:"id" gorm:"index" external_reference_key:"true"`
MEMO string `json:"MEMO"`
}
func main() {
db, err := gorm.Open("postgres", "host=localHost port=5432 user=postgres password=5206 dbname=item sslmode=disable")
if err != nil {
panic(err)
}
db.LogMode(true)
item := Item{}
db.First(&item) //Gets the item
item.MEMO = "[hpapaapodfiso]" //Change the field
db.Save(&item) //Save back to db
fmt.Printf("%v",item) //never executed, process stops at Save
}
Could anyone explain to me what made a difference? And what caused the process to stop/hang?
Really appreciated.
Update with the postgres log:
2019-06-22 15:39:07 PDT LOG: database system is ready to accept connections
2019-06-22 15:39:08 PDT LOG: autovacuum launcher started
2019-06-22 15:40:08 PDT FATAL: canceling authentication due to timeout
2019-06-22 15:49:23 PDT LOG: could not receive data from client: No connection could be made because the target machine actively refused it.
2019-06-22 15:53:22 PDT LOG: could not receive data from client: No connection could be made because the target machine actively refused it.
2019-06-22 15:53:31 PDT LOG: could not receive data from client: No connection could be made because the target machine actively refused it.
2019-06-22 15:53:46 PDT LOG: could not receive data from client: No connection could be made because the target machine actively refused it.
2019-06-22 16:05:42 PDT ERROR: role "username" does not exist
2019-06-22 16:05:42 PDT STATEMENT: REVOKE CONNECT ON DATABASE triggers FROM PUBLIC, username;
2019-06-22 16:06:14 PDT FATAL: terminating connection due to administrator command
2019-06-22 16:06:14 PDT FATAL: terminating connection due to administrator command
2019-06-22 16:06:14 PDT LOG: could not send data to client: No connection could be made because the target machine actively refused it.
2019-06-22 16:06:14 PDT FATAL: terminating connection due to administrator command
2019-06-22 16:06:14 PDT LOG: could not send data to client: No connection could be made because the target machine actively refused it.
2019-06-22 16:06:14 PDT FATAL: terminating connection due to administrator command
2019-06-22 16:06:14 PDT LOG: could not send data to client: No connection could be made because the target machine actively refused it.
2019-06-22 16:06:14 PDT LOG: could not send data to client: No connection could be made because the target machine actively refused it.
Related
I am getting error in starting PostgreSQL server after a machine restart on windows server 2019.
This server has a multiple databases and in logs it is showing error for one of the database may be corrupted.
I tried restart server few times, but it it is getting shut down after some time. How can I make server up again with other databases running?
2022-04-20 07:32:49.843 PDT [3720] LOG: starting PostgreSQL 13.3, compiled by Visual C++ build 1914, 64-bit
2022-04-20 07:32:49.844 PDT [3720] LOG: listening on IPv6 address "::", port 5432
2022-04-20 07:32:49.844 PDT [3720] LOG: listening on IPv4 address "0.0.0.0", port 5432
2022-04-20 07:32:57.949 PDT [6600] LOG: database system was interrupted while in recovery at 2022-04-20 06:29:00 PDT
2022-04-20 07:32:57.949 PDT [6600] HINT: This probably means that some data is corrupted and you will have to use the last backup for recovery.
2022-04-20 07:34:29.599 PDT [852] FATAL: the database system is starting up
2022-04-20 07:44:04.349 PDT [2480] FATAL: the database system is starting up
2022-04-20 07:52:28.107 PDT [4800] FATAL: the database system is starting up
2022-04-20 08:09:30.847 PDT [1872] FATAL: the database system is starting up
2022-04-20 08:21:41.884 PDT [6600] LOG: could not stat file "./base/22504705": Unknown error
2022-04-20 08:21:47.121 PDT [6600] LOG: database system was not properly shut down; automatic recovery in progress
2022-04-20 08:22:01.957 PDT [6600] LOG: redo starts at 22E/5419D678 2022-04-20 08:22:01.994 PDT [6600] FATAL: could not stat directory "base/22504705": Unknown error
2022-04-20 08:22:01.994 PDT [6600] CONTEXT: WAL redo at 22E/5422EDD8 for Heap/LOCK: off 3: xid 26378859: flags 0x00 LOCK_ONLY KEYSHR_LOCK
2022-04-20 08:22:02.000 PDT [3720] LOG: startup process (PID 6600) exited with exit code 1
2022-04-20 08:22:02.000 PDT [3720] LOG: aborting startup due to startup process failure
2022-04-20 08:22:02.085 PDT [3720] LOG: database system is shut down
logs
I have been trying to install external chaincode. I have two different chaincode which are question and response. When I try to make a request to install them to orderer endpoint, orderee throws TLS handshake error. Here are logs from terminal:
approval for question chaincode for govt
2021-07-12 11:46:33.416 UTC [chaincodeCmd] InitCmdFactory -> INFO 001 Retrieved channel (commonchannel) orderer endpoint: orderer:7050
Error: error getting broadcast client: orderer client failed to connect to orderer:7050: failed to create new connection: context deadline exceeded
Error: endorsement failure during query. response: status:500 message:"make sure the chaincode question has been successfully defined on channel commonchannel and try again: chaincode question not found"
packaging chaincode question in general org
packaging chaincode question
Installing chaincode question on peer0.govt...
+ peer lifecycle chaincode install question.tgz
+ res=0
2021-07-12 11:46:37.747 UTC [cli.lifecycle.chaincode] submitInstallProposal -> INFO 001 Installed remotely: response:<status:200 payload:"\nMquestion_1.0:46d1bcf1da31e07857befec181044f864e8c62b4b6680fe7c1c462c549d8f16e\022\014question_1.0" >
2021-07-12 11:46:37.747 UTC [cli.lifecycle.chaincode] submitInstallProposal -> INFO 002 Chaincode code package identifier: question_1.0:46d1bcf1da31e07857befec181044f864e8c62b4b6680fe7c1c462c549d8f16e
Similar for other chaincode and with different peers.
Here are logs from orderer:
2021-07-12 11:46:10.578 UTC [orderer.consensus.etcdraft] run -> INFO 028 Start accepting requests as Raft leader at block [0] channel=commonchannel node=1
2021-07-12 11:46:19.020 UTC [common.deliver] Handle -> WARN 029 Error reading from 172.17.0.1:31028: rpc error: code = Canceled desc = context canceled
2021-07-12 11:46:19.020 UTC [comm.grpc.server] 1 -> INFO 02a streaming call completed grpc.service=orderer.AtomicBroadcast grpc.method=Deliver grpc.peer_address=172.17.0.1:31028 error="rpc error: code = Canceled desc = context canceled" grpc.code=Canceled grpc.call_duration=7.012539ms
2021-07-12 11:46:19.328 UTC [orderer.consensus.etcdraft] propose -> INFO 02b Created block [1], there are 0 blocks in flight channel=commonchannel node=1
2021-07-12 11:46:19.328 UTC [orderer.consensus.etcdraft] run -> INFO 02c Received config transaction, pause accepting transaction till it is committed channel=commonchannel node=1
2021-07-12 11:46:19.330 UTC [orderer.common.broadcast] Handle -> WARN 02d Error reading from 172.17.0.1:9223: rpc error: code = Canceled desc = context canceled
2021-07-12 11:46:19.330 UTC [comm.grpc.server] 1 -> INFO 02e streaming call completed grpc.service=orderer.AtomicBroadcast grpc.method=Broadcast grpc.peer_address=172.17.0.1:9223 error="rpc error: code = Canceled desc = context canceled" grpc.code=Canceled grpc.call_duration=14.828989ms
2021-07-12 11:46:19.397 UTC [orderer.consensus.etcdraft] writeBlock -> INFO 02f Writing block [1] (Raft index: 3) to ledger channel=commonchannel node=1
2021-07-12 11:46:22.893 UTC [common.deliver] Handle -> WARN 030 Error reading from 172.17.0.1:23084: rpc error: code = Canceled desc = context canceled
2021-07-12 11:46:22.893 UTC [comm.grpc.server] 1 -> INFO 031 streaming call completed grpc.service=orderer.AtomicBroadcast grpc.method=Deliver grpc.peer_address=172.17.0.1:23084 error="rpc error: code = Canceled desc = context canceled" grpc.code=Canceled grpc.call_duration=8.869097ms
2021-07-12 11:46:23.217 UTC [orderer.consensus.etcdraft] propose -> INFO 032 Created block [2], there are 0 blocks in flight channel=commonchannel node=1
2021-07-12 11:46:23.218 UTC [orderer.consensus.etcdraft] run -> INFO 033 Received config transaction, pause accepting transaction till it is committed channel=commonchannel node=1
2021-07-12 11:46:23.220 UTC [orderer.common.broadcast] Handle -> WARN 034 Error reading from 172.17.0.1:29447: rpc error: code = Canceled desc = context canceled
2021-07-12 11:46:23.220 UTC [comm.grpc.server] 1 -> INFO 035 streaming call completed grpc.service=orderer.AtomicBroadcast grpc.method=Broadcast grpc.peer_address=172.17.0.1:29447 error="rpc error: code = Canceled desc = context canceled" grpc.code=Canceled grpc.call_duration=11.339499ms
2021-07-12 11:46:23.288 UTC [orderer.consensus.etcdraft] writeBlock -> INFO 036 Writing block [2] (Raft index: 4) to ledger channel=commonchannel node=1
2021-07-12 11:46:33.418 UTC [core.comm] ServerHandshake -> ERRO 037 Server TLS handshake failed in 12.482µs with error tls: first record does not look like a TLS handshake server=Orderer remoteaddress=172.17.0.1:55689
2021-07-12 11:46:34.420 UTC [core.comm] ServerHandshake -> ERRO 038 Server TLS handshake failed in 602.493µs with error tls: first record does not look like a TLS handshake server=Orderer remoteaddress=172.17.0.1:21589
2021-07-12 11:46:36.321 UTC [core.comm] ServerHandshake -> ERRO 039 Server TLS handshake failed in 54.319µs with error tls: first record does not look like a TLS handshake server=Orderer remoteaddress=172.17.0.1:24287
2021-07-12 11:46:47.531 UTC [core.comm] ServerHandshake -> ERRO 03a Server TLS handshake failed in 9.79µs with error tls: first record does not look like a TLS handshake server=Orderer remoteaddress=172.17.0.1:49121
2021-07-12 11:46:48.536 UTC [core.comm] ServerHandshake -> ERRO 03b Server TLS handshake failed in 32.343µs with error tls: first record does not look like a TLS handshake server=Orderer remoteaddress=172.17.0.1:6624
2021-07-12 11:46:50.362 UTC [core.comm] ServerHandshake -> ERRO 03c Server TLS handshake failed in 22.315µs with error tls: first record does not look like a TLS handshake server=Orderer remoteaddress=172.17.0.1:16789
2021-07-12 11:47:00.954 UTC [core.comm] ServerHandshake -> ERRO 03d Server TLS handshake failed in 2.001672ms with error tls: first record does not look like a TLS handshake server=Orderer remoteaddress=172.17.0.1:64657
2021-07-12 11:47:01.955 UTC [core.comm] ServerHandshake -> ERRO 03e Server TLS handshake failed in 18.907µs with error tls: first record does not look like a TLS handshake server=Orderer remoteaddress=172.17.0.1:46802
2021-07-12 11:47:03.449 UTC [core.comm] ServerHandshake -> ERRO 03f Server TLS handshake failed in 96.18µs with error tls: first record does not look like a TLS handshake server=Orderer remoteaddress=172.17.0.1:19547
2021-07-12 11:47:14.573 UTC [core.comm] ServerHandshake -> ERRO 040 Server TLS handshake failed in 13.576µs with error tls: first record does not look like a TLS handshake server=Orderer remoteaddress=172.17.0.1:7268
2021-07-12 11:47:15.576 UTC [core.comm] ServerHandshake -> ERRO 041 Server TLS handshake failed in 929.686µs with error tls: first record does not look like a TLS handshake server=Orderer remoteaddress=172.17.0.1:18461
2021-07-12 11:47:17.309 UTC [core.comm] ServerHandshake -> ERRO 042 Server TLS handshake failed in 18.362µs with error tls: first record does not look like a TLS handshake server=Orderer remoteaddress=172.17.0.1:13545
Someone please help me fix this. I have tried everything I could.
We are trying to update the hbase.rpc.timeout setting on our Apache Phoenix cluster, as we are having larger queries (creating indices or querying on non-indexed values) time out.
We updated the hbase-site.xml file with the new value forhbase.rpc.timeout from AWS and I SSHed into the servers and confirmed that the change was made in /etc/conf/hbase-site.xml, however the queries are still timing out and the timeout still seems to be set to the default:
org.apache.phoenix.exception.PhoenixIOException: org.apache.phoenix.exception.PhoenixIOException: Failed after attempts=36, exceptions:
Wed Nov 27 20:03:37 UTC 2019, null, java.net.SocketTimeoutException: callTimeout=60000, callDuration=60113: Call to ip-000-00-00-00.us-east-2.compute.internal/000-00-00-00.:16020 failed on local exception: org.apache.hadoop.hbase.ipc.CallTimeoutException: Call id=108, waitTime=60010, rpcTimetout=60000 row '' on table 'INF_RES_ALT' at region=INF_RES_ALT,\x04,1574872147026.917a9e6e4a8d12e5c1dfb71aed9b4ee3., hostname=ip-000-00-00-00.us-east-2.compute.internal,16020,1574261382479, seqNum=1456
at org.apache.phoenix.util.ServerUtil.parseServerException(ServerUtil.java:144)
at org.apache.phoenix.iterate.BaseResultIterators.getIterators(BaseResultIterators.java:1299)
at org.apache.phoenix.iterate.BaseResultIterators.getIterators(BaseResultIterators.java:1240)
at org.apache.phoenix.iterate.RoundRobinResultIterator.getIterators(RoundRobinResultIterator.java:176)
at org.apache.phoenix.iterate.RoundRobinResultIterator.next(RoundRobinResultIterator.java:91)
at org.apache.phoenix.jdbc.PhoenixResultSet.next(PhoenixResultSet.java:805)
at sqlline.BufferedRows.<init>(BufferedRows.java:37)
at sqlline.SqlLine.print(SqlLine.java:1660)
at sqlline.Commands.execute(Commands.java:833)
at sqlline.Commands.sql(Commands.java:732)
at sqlline.SqlLine.dispatch(SqlLine.java:813)
at sqlline.SqlLine.begin(SqlLine.java:686)
at sqlline.SqlLine.start(SqlLine.java:398)
at sqlline.SqlLine.main(SqlLine.java:291)
Any idea what we're doing wrong?
I use a Oracle WebLogic Server 12c and when I start it on Eclipse it shows this error, it does'nt allow me to log in localhost neither when I try to access it
from another computer in a different domain, in the log appears that the server is not reacheable.
This is the exception that appears in Eclipse.
This Exception occurred at Wed Nov 13 08:11:07 CET 2019.
weblogic.nodemanager.NMConnectException: Connection refused: connect. Could not connect to NodeManager. Check that it is running at localhost/127.0.0.1:5556.
Problem invoking WLST - Traceback (innermost last):
File "C:\Oracle\Middleware\Oracle_Home\user_projects\domains\base_domain\bin\scripts_manejados\StartBT.wlst", line 1, in ?
File "<iostream>", line 111, in nmConnect
File "<iostream>", line 552, in raiseWLSTException
WLSTException: Error occurred while performing nmConnect : Cannot connect to Node Manager. : Connection refused: connect. Could not connect to NodeManager. Check that it is running at localhost/127.0.0.1:5545.
This is my nodemanager properties:
#Tue Nov 12 09:45:58 CET 2019
#Node manager properties
#Fri Jun 24 14:55:43 CEST 2016
DomainsFile=C\:\\Oracle\\Middleware\\Oracle_Home\\user_projects\\domains\\base_domain\\nodemanager\\nodemanager.domains
LogLimit=0
PropertiesVersion=12.1.3
AuthenticationEnabled=true
NodeManagerHome=C\:\\Oracle\\Middleware\\Oracle_Home\\user_projects\\domains\\base_domain\\nodemanager
JavaHome=C\:\\Program Files\\Java\\jdk1.7.0_75
LogLevel=INFO
DomainsFileEnabled=true
StartScriptName=startWebLogic.cmd
ListenAddress=localhost
NativeVersionEnabled=true
ListenPort=5540
LogToStderr=true
SecureListener=false
LogCount=1
StopScriptEnabled=false
QuitEnabled=false
LogAppend=true
StateCheckInterval=500
CrashRecoveryEnabled=false
StartScriptEnabled=true
LogFile=C\:\\Oracle\\Middleware\\Oracle_Home\\user_projects\\domains\\base_domain\\nodemanager\\nodemanager.log
LogFormatter=weblogic.nodemanager.server.LogFormatter
ListenBacklog=50
And this is my StartBt script file, used to start the server and specify some preferences:
nmConnect('weblogic','AXLWL20040','localhost','5521','base_domain','C:/Oracle/Middleware/Oracle_Home/user_projects/domains/base_domain','plain')
nmStart('AdminServer')
nmDisconnect()
I want to make it accesible, not only for local.
nmConnect('weblogic','AXLWL20040','localhost',**'5521'**,'base_domain','C:/Oracle/Middleware/Oracle_Home/user_projects/domains/base_domain','plain')
Port should listen to 5545.
You wrongly configure the ports. Your NodeManager listen on port 5540
ListenPort=5540
You try to connect to 5545
WLSTException:..Could not connect to NodeManager. Check that it is running at localhost/127.0.0.1:5545
In Windows 10, I'm not able to connect to MongoDB server with the following errors:
>mongo "mongodb+srv://xxx-dsvlb.mongodb.net/test" --username xxx --verbose
2018-11-01T11:34:19.273+0700 D - [main] User Assertion: DNSHostNotFound: Failed to look up service "":This operation returned because the timeout period expired. C:\data\mci\6411135b04f345f6d01072b56250cba6\src\src\mongo/util/dns_query_windows-impl.h 254
MongoDB shell version v4.0.3
2018-11-01T11:34:30.535+0700 D - [main] User Assertion: DNSHostNotFound: Failed to look up service "":This operation returned because the timeout period expired. C:\data\mci\6411135b04f345f6d01072b56250cba6\src\src\mongo/util/dns_query_windows-impl.h 254
Enter password:
connecting to: mongodb+srv://xxx-dsvlb.mongodb.net/test
2018-11-01T11:35:16.589+0700 D - [js] User Assertion: DNSHostNotFound: Failed to look up service "":This operation returned because the timeout period expired. C:\data\mci\6411135b04f345f6d01072b56250cba6\src\src\mongo/util/dns_query_windows-impl.h 254
2018-11-01T11:35:16.590+0700 D NETWORK [js] creating new connection to:xxx-shard-00-02-dsvlb.mongodb.net.:27017
2018-11-01T11:35:17.356+0700 D - [js] User Assertion: SSLHandshakeFailed: QueryContextAttributes for connection info failed with-2146893055 C:\data\mci\6411135b04f345f6d01072b56250cba6\src\src\mongo/transport/session_asio.h 240
2018-11-01T11:35:17.357+0700 D NETWORK [js] creating new connection to:xxx-shard-00-01-dsvlb.mongodb.net.:27017
2018-11-01T11:35:18.197+0700 D - [js] User Assertion: SSLHandshakeFailed: QueryContextAttributes for connection info failed with-2146893055 C:\data\mci\6411135b04f345f6d01072b56250cba6\src\src\mongo/transport/session_asio.h 240
2018-11-01T11:35:18.198+0700 D NETWORK [js] creating new connection to:xx-shard-00-00-dsvlb.mongodb.net.:27017
2018-11-01T11:35:19.017+0700 D - [js] User Assertion: SSLHandshakeFailed: QueryContextAttributes for connection info failed with-2146893055 C:\data\mci\6411135b04f345f6d01072b56250cba6\src\src\mongo/transport/session_asio.h 240
2018-11-01T11:35:19.018+0700 D - [js] User Assertion: InternalError: couldn't connect to server lakon-shard-00-00-dsvlb.mongodb.net.:27017, connection attempt failed: SSLHandshakeFailed: QueryContextAttributes for connection info failed with-2146893055 src\mongo\scripting\mozjs\mongo.cpp 756
2018-11-01T11:35:19.021+0700 E QUERY [js] Error: couldn't connect to server lakon-shard-00-00-dsvlb.mongodb.net.:27017, connection attempt failed: SSLHandshakeFailed: QueryContextAttributes for connection info failed with-2146893055 :
connect#src/mongo/shell/mongo.js:257:13
#(connect):1:6
2018-11-01T11:35:19.024+0700 D - [js] User Assertion: Location12513: connect failed src\mongo\shell\shell_utils.cpp 343
2018-11-01T11:35:19.024+0700 I QUERY [js] MozJS GC prologue heap stats - total: 4056565 limit: 0
2018-11-01T11:35:19.027+0700 I QUERY [js] MozJS GC epilogue heap stats - total: 421536 limit: 0
2018-11-01T11:35:19.027+0700 I QUERY [js] MozJS GC prologue heap stats - total: 313504 limit: 0
2018-11-01T11:35:19.028+0700 I QUERY [js] MozJS GC epilogue heap stats - total: 131244 limit: 0
2018-11-01T11:35:19.029+0700 D - [main] User Assertion: Location12513: connect failed src\mongo\scripting\mozjs\proxyscope.cpp 300
exception: connect failed
Using MongoDB shell 3.6.2 on Windows 10, I still cannot connect but with a different error (confusing, isn't it?):
>mongo "mongodb+srv://xxx-dsvlb.mongodb.net/test" --username xxx --password xxx
MongoDB shell version v3.6.2
connecting to: mongodb+srv://xxx-dsvlb.mongodb.net/test
MongoDB server version: 3.6.8
2018-11-01T11:01:52.923+0700 E QUERY [thread1] Error: Authentication failed. :
DB.prototype._authOrThrow#src/mongo/shell/db.js:1608:20
#(auth):6:1
#(auth):1:2
exception: login failed
However, with Ubuntu 16.04 I can connect just fine to the exact same server:
⟫ mongo "mongodb+srv://xxx-dsvlb.mongodb.net/test" --username xxx --password xxx
MongoDB shell version v4.0.3
connecting to: mongodb+srv://xxx-dsvlb.mongodb.net/test
2018-11-01T04:27:02.536+0000 I NETWORK [js] Starting new replica set monitor for lakon-shard-0/xxx-shard-00-02-dsvlb.mongodb.net.:27017,xxx-shard-00-00-dsvlb.mongodb.net.:27017,xxx-shard-00-01-dsvlb.mongodb.net.:27017
2018-11-01T04:27:02.561+0000 I NETWORK [ReplicaSetMonitor-TaskExecutor] Successfully connected to xxx-shard-00-02-dsvlb.mongodb.net.:27017 (1 connections now open to xxx-shard-00-02-dsvlb.mongodb.net.:27017 with a 5 second timeout)
2018-11-01T04:27:02.562+0000 I NETWORK [js] Successfully connected to xxx-shard-00-00-dsvlb.mongodb.net.:27017 (1 connections now open to xxx-shard-00-00-dsvlb.mongodb.net.:27017 with a 5 second timeout)
2018-11-01T04:27:02.563+0000 I NETWORK [js] changing hosts to xxx-shard-0/xxx-shard-00-00-dsvlb.mongodb.net:27017,xxx-shard-00-01-dsvlb.mongodb.net:27017,lakon-shard-00-02-dsvlb.mongodb.net:27017 from xxx-shard-0/xxx-shard-00-00-dsvlb.mongodb.net.:27017,xxx-shard-00-01-dsvlb.mongodb.net.:27017,xxx-shard-00-02-dsvlb.mongodb.net.:27017
2018-11-01T04:27:02.570+0000 I NETWORK [ReplicaSetMonitor-TaskExecutor] Successfully connected to xxx-shard-00-00-dsvlb.mongodb.net:27017 (1 connections now open to xxx-shard-00-00-dsvlb.mongodb.net:27017 with a 5 second timeout)
2018-11-01T04:27:02.573+0000 I NETWORK [js] Successfully connected to xxx-shard-00-02-dsvlb.mongodb.net:27017 (1 connections now open to xxx-shard-00-02-dsvlb.mongodb.net:27017 with a 5 second timeout)
Implicit session: session { "id" : UUID("4a6488c7-7a22-44d4-977e-07eb09ef37f6") }
MongoDB server version: 3.6.8
WARNING: shell and server versions do not match
2018-11-01T04:27:02.588+0000 I NETWORK [ReplicaSetMonitor-TaskExecutor] Successfully connected to xxx-shard-00-01-dsvlb.mongodb.net:27017 (1 connections now open to xxx-shard-00-01-dsvlb.mongodb.net:27017 with a 5 second timeout)
Welcome to the MongoDB shell.
For interactive help, type "help".
For more comprehensive documentation, see
http://docs.mongodb.org/
Questions? Try the support group
http://groups.google.com/group/mongodb-user
MongoDB Enterprise xxx-shard-0:PRIMARY>
A MongoDB Atlas support staff told me this is due to network connection on my part, but I'm sure that is not the root issue, because I can connect to the server when using other client such as Robo 3T using the same Windows 10 computer.
This issue happens ONLY when using MongoDB shell (both 3.6.2 and 4.0.3) in Windows 10.
It's probably a bug with MongoDB Shell and Windows 10 implementation?
it's a bit late but here, I had this problem when my shell's version is 4.0.5 then I install 4.2.11, it solve this problem. I tried many things with different connection string syntax and it does not solve the problem and still stuck at SSLHandshake error, so I guess if version were same it might solve the problem(mine 4.0.5 and remote was 4.2.11) and go ahead with new version installation(though I still think it's not version problem but I don't know what is). This problem only happen while I was in shell, connecting from the client like NoSqlBooster or Spring seem to work fine. My Robo3T have a problem connecting but randomly, sometimes once sometimes multiple re-trying.