You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I created cluster with two replicas. And at the end it works correctly.
Now I increment replicas from 2 to 3 and I'm getting only on that one sidecar this error.
warn: --minUptime not set. Defaulting to: 1000ms
warn: --spinSleepTime not set. Your script will exit if it does not stay up for at least 1000ms
Using mongo port: 27017
Starting up mongo-k8s-sidecar
The cluster domain 'cluster.local' was successfully verified.
Error in workloop { MongoError: failed to connect to server [127.0.0.1:27017] on first connect [MongoError: connect ECONNREFUSED 127.0.0.1:27017]
at Pool. (/opt/cvallance/mongo-k8s-sidecar/node_modules/mongodb-core/lib/topologies/server.js:336:35)
at Pool.emit (events.js:182:13)
at Connection. (/opt/cvallance/mongo-k8s-sidecar/node_modules/mongodb-core/lib/connection/pool.js:280:12)
at Object.onceWrapper (events.js:273:13)
at Connection.emit (events.js:182:13)
at Socket. (/opt/cvallance/mongo-k8s-sidecar/node_modules/mongodb-core/lib/connection/connection.js:189:49)
at Object.onceWrapper (events.js:273:13)
at Socket.emit (events.js:182:13)
at emitErrorNT (internal/streams/destroy.js:82:8)
at emitErrorAndCloseNT (internal/streams/destroy.js:50:3)
name: 'MongoError',
message:
'failed to connect to server [127.0.0.1:27017] on first connect [MongoError: connect ECONNREFUSED 127.0.0.1:27017]' }
But when I check sidecar in mongo-0 I see that this third is also added, and cluster working.
I connected to it and check, data is replicated on it
I created cluster with two replicas. And at the end it works correctly.
Now I increment replicas from 2 to 3 and I'm getting only on that one sidecar this error.
But when I check sidecar in mongo-0 I see that this third is also added, and cluster working.
I connected to it and check, data is replicated on it
What this error means? I struggled with it these days when I tried to find a way to set it.
This is my configuration
mongo image is 3.4 because I was not able to set it to the newest.
k8s is 1.14 on EKS
The text was updated successfully, but these errors were encountered: