K8s helm deploy rocketchat cannot upload file

Description

Some users report unable to send/upload file 0% (can before), after awhile, resume. Suspect rocketchat or mongodb limit reach, don’t know how to check and tune.

We found out a solution by first reaching https://SERVER_IP/ufs/GridFS:Uploads/ then retry sending is ok.

Server Setup Information

  • Version of Rocket.Chat Server:
    by helm chart on self-maintain k8s cluster
    NAME REVISION UPDATED STATUS CHART APP VERSION NAMESPACE
    dc 1 Fri Sep 27 17:09:55 2019 DEPLOYED rocketchat-1.1.12 1.3.1 dc-rocketchat

  • Operating System: Ubuntu 19.04 with K8s v1.16.0, helm v2.14.3

  • Deployment Method:

  • Number of Running Instances:
    1 rocketchat pod
    1 mongodb pod
    with nfs-provisioner (checked health)

  • DB Replicaset Oplog:

  • NodeJS Version:

  • MongoDB Version: BITNAMI_IMAGE_VERSION=4.0.12-debian-9-r5"

  • Proxy:

  • Firewalls involved:

Any additional Information

Which helm chart and version did you use to deploy?

NAME REVISION UPDATED STATUS CHART APP VERSION NAMESPACE
dc 1 Fri Sep 27 17:09:55 2019 DEPLOYED rocketchat-1.1.12 1.3.1 dc-rocketchat

##mongodb config
I have no name!@dc-mongodb-primary-0:/opt/bitnami/mongodb/conf$ cat mongodb.conf
# mongod.conf
# for documentation of all options, see:
#   http://docs.mongodb.org/manual/reference/configuration-options/

# where and how to store data.
storage:
  dbPath: /bitnami/mongodb/data/db
  journal:
    enabled: true
  directoryPerDB: false

# where to write logging data.
systemLog:
  destination: file
  quiet: false
  logAppend: true
  logRotate: reopen
  path: /opt/bitnami/mongodb/logs/mongodb.log
  verbosity: 0

# network interfaces
net:
  port: 27017
  unixDomainSocket:
    enabled: true
    pathPrefix: /opt/bitnami/mongodb/tmp
  ipv6: false
  bindIpAll: true

# replica set options
replication:
  replSetName: rs0
  enableMajorityReadConcern: true

# process management options
processManagement:
   fork: false
   pidFilePath: /opt/bitnami/mongodb/tmp/mongodb.pid

# set parameter options
setParameter:
   enableLocalhostAuthBypass: false

# security options
security:
  authorization: enabled
  keyFile: /opt/bitnami/mongodb/conf/keyfile
[details="Summary"]
This text will be hidden
[/details]
>

the values.yaml to init the chart
root@r-chat-201-11:~/rocket/rocketchat# cat values.yaml |grep -v “^$|#”
image:
repository: docker.io/rocketchat/rocket.chat
tag: 1.3.1
pullPolicy: IfNotPresent
host: dc-rocketchat
replicaCount: 1
minAvailable: 1
smtp:
enabled: false
username:
password:
podAntiAffinity: “”
podAntiAffinityTopologyKey: kubernetes.io/hostname
affinity: {}
mongodb:
enabled: true
mongodbRootPassword: xxxx
mongodbUsername: xxxx
mongodbPassword: xxxx
mongodbDatabase: xxxx
replicaSet:
enabled: true
replicas:
secondary: 0
arbiter: 0
pdb:
minAvailable:
secondary: 0
arbiter: 0
persistence:
enabled: true
accessMode: ReadWriteOnce
size: 750Gi