helm-charts icon indicating copy to clipboard operation
helm-charts copied to clipboard

dial tcp 10.X.X.X:3000: connect: connection refused (CrashLoopBackOff on rocketchat-rocketchat pod)

Open abctaylor opened this issue 1 year ago • 2 comments

Deploying this Helm chart, the first thing I see is this:

[root@kube2-lon rocketchat]# k get pods -o wide
NAME                                     READY   STATUS             RESTARTS     AGE    IP             NODE                      NOMINATED NODE   READINESS GATES
rocketchat-mongodb-0                     1/1     Running            0            3m1s   10.3.130.59    k8s2-lon.core.xxx.net   <none>           <none>
rocketchat-postgresql-0                  1/1     Running            0            3m1s   10.3.130.27    k8s2-lon.core.xxx.net   <none>           <none>
rocketchat-rocketchat-79988457b5-p4qph   0/1     CrashLoopBackOff   3 (3s ago)   3m1s   10.3.132.130   k8s3-lon.core.xxx.net   <none>           <none>

Logs for that pod show this:

15s (x5 over 105s)     Warning   Unhealthy                Pod/rocketchat-rocketchat-79988457b5-p4qph           Readiness probe failed: Get "http://10.3.132.130:3000/health": dial tcp 10.3.132.130:3000: connect: connection refused
0s (x4 over 54s)       Warning   BackOff                  Pod/rocketchat-rocketchat-79988457b5-p4qph           Back-off restarting failed container rocketchat in pod rocketchat-rocketchat-79988457b5-p4qph_rocketchat(68dca7ae-900f-48fe-96a2-4ece6e724299)

Ideas?

values.yaml:

host: rocket.core.xxx.net
mongodb:
  auth:
    passwords:
      - rocketchat
    rootPassword: xxx
ingress:
  enabled: true
  tls:
    - secretName: cert-rocket.core.xxx.net
      hosts:
        - rocket.core.xxx.net
        - rocket

(I've also tried a simpler values.yaml with just the mongodb parts, uninstalled, deleted PVCs, and installed - same result).

abctaylor avatar Apr 03 '24 23:04 abctaylor

Interesting, in the mongodb container:

[root@kube2-lon rocketchat]# k exec -it  rocketchat-mongodb-0 -- bash
Defaulted container "mongodb" out of: mongodb, volume-permissions (init)
I have no name!@rocketchat-mongodb-0:/$ 

abctaylor avatar Apr 04 '24 19:04 abctaylor

At this point it pretty clearly seems like a bug.

MongoServerSelectionError: Server selection timed out after 30000 ms

From: /app/bundle/programs/server/npm/node_modules/meteor/promise/node_modules/meteor-promise/promise_server.js:218

Can give a full stack trace if interest from the devs.

A lot turning up on Google (cursory search: https://www.google.com/search?client=firefox-b-d&q=rocket+chat+MongoServerSelectionError).

abctaylor avatar Apr 04 '24 20:04 abctaylor