# K8s helm deploy rocketchat cannot upload file

**URL:** <https://forums.rocket.chat/t/k8s-helm-deploy-rocketchat-cannot-upload-file/4796>\
**Category:** Community Support\
**Created:** [October 9, 2019, 7:07am UTC](https://forums.rocket.chat/t/k8s-helm-deploy-rocketchat-cannot-upload-file/4796 "2019-10-09T07:07:34Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![paco.chair](https://avatars.discourse-cdn.com/v4/letter/p/ea666f/32.png) [@paco.chair](https://forums.rocket.chat/u/paco.chair)\
**Post date:** [October 9, 2019, 7:07am UTC](https://forums.rocket.chat/t/k8s-helm-deploy-rocketchat-cannot-upload-file/4796/1 "2019-10-09T07:07:34Z")

</div>

### 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

---

<div class="post-metadata">

**Author:** ![aaron.ogle](https://sea1.discourse-cdn.com/flex021/user_avatar/forums.rocket.chat/aaron.ogle/32/15_2.png) [@aaron.ogle](https://forums.rocket.chat/u/aaron.ogle)\
**Post date:** [October 10, 2019, 12:51am UTC](https://forums.rocket.chat/t/k8s-helm-deploy-rocketchat-cannot-upload-file/4796/2 "2019-10-10T00:51:30Z")

</div>

Which helm chart and version did you use to deploy?

---

<div class="post-metadata">

**Author:** ![paco.chair](https://avatars.discourse-cdn.com/v4/letter/p/ea666f/32.png) [@paco.chair](https://forums.rocket.chat/u/paco.chair)\
**Post date:** [October 10, 2019, 1:31am UTC](https://forums.rocket.chat/t/k8s-helm-deploy-rocketchat-cannot-upload-file/4796/3 "2019-10-10T01:31:56Z")

</div>

> [@paco.chair](#):
>
> 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

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

---

<div class="post-metadata">

**Author:** ![paco.chair](https://avatars.discourse-cdn.com/v4/letter/p/ea666f/32.png) [@paco.chair](https://forums.rocket.chat/u/paco.chair)\
**Post date:** [October 10, 2019, 3:32am UTC](https://forums.rocket.chat/t/k8s-helm-deploy-rocketchat-cannot-upload-file/4796/4 "2019-10-10T03:32:09Z")

</div>

```
##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]
>
```

---

<div class="post-metadata">

**Author:** ![paco.chair](https://avatars.discourse-cdn.com/v4/letter/p/ea666f/32.png) [@paco.chair](https://forums.rocket.chat/u/paco.chair)\
**Post date:** [October 10, 2019, 3:34am UTC](https://forums.rocket.chat/t/k8s-helm-deploy-rocketchat-cannot-upload-file/4796/5 "2019-10-10T03:34:56Z")

</div>

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](http://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](http://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
