# RocketChat blank screen with "Error" on ROOT\_URL in k8s

**URL:** <https://forums.rocket.chat/t/rocketchat-blank-screen-with-error-on-root-url-in-k8s/11470>\
**Category:** Community Support\
**Created:** [June 24, 2021, 8:56am UTC](https://forums.rocket.chat/t/rocketchat-blank-screen-with-error-on-root-url-in-k8s/11470 "2021-06-24T08:56:12Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![ayudh37](https://avatars.discourse-cdn.com/v4/letter/a/3be4f8/32.png) [@ayudh37](https://forums.rocket.chat/u/ayudh37)\
**Post date:** [June 24, 2021, 8:56am UTC](https://forums.rocket.chat/t/rocketchat-blank-screen-with-error-on-root-url-in-k8s/11470/1 "2021-06-24T08:56:12Z")

</div>

### Description

### Server Setup Information

- Version of Rocket.Chat Server: 3.15.1
- Operating System: Docker installation
- Deployment Method: k8s
- Number of Running Instances: 1
- DB Replicaset Oplog: BYPASS\_OPLOG\_VALIDATION set to true
- NodeJS Version:
- MongoDB Version:
- Proxy: 
- Firewalls involved:

### Any additional Information

 ![Screenshot 2021-06-24 at 4.47.41 PM](https://us1.discourse-cdn.com/flex021/uploads/rocketchat/original/2X/4/40a81ee44532f47130d6b25fa62956c93929ddbf.png)

The above is what we see after navigating to the ROOT\_URL. There is no error in the console however there is an err header that is returned but the error is [object Object].

We are on a development environment so we don’t want mongo db replication so following [this](https://github.com/RocketChat/Rocket.Chat/issues/17164), we bypassed the oplog validation.

We are using k8s. The following is the values.yaml file. (I’ve removed the dots from urls to get past new users being unable to post more than 2 urls)

> replicas: 1  
> projectName: rocketchat  
> namespace: dev
> 
> image:  
> repository: hub docker com/\_/rocket chat/  
> tag: 3.15.1  
> pullPolicy: IfNotPresent
> 
> secret:  
> name: rocketchat-secrets  
> data:  
> MONGO\_SERVER\_CONNECT\_STR: mongodb://mongo-svc/chat
> 
> configmap:  
> name: rocketchat-config  
> data:  
> ROOT\_URL: our\_root\_url  
> MONGO\_URL: mongodb://mongo-svc/chat
> 
> service:  
> name: rocketchat-svc  
> targetPort: 3000  
> port: 80
> 
> ingress:  
> name: rocketchat-ing  
> enabled: true  
> annotations:  
> nginx ingress kubernetes io/rewrite-target: /$1  
> kubernetes io/ingress class: nginx  
> path: /rocketchat/?(.\*)  
> hosts:  
> - our\_host

The server says it is running. Is anyone familiar with that error? We visit our\_root\_url/rocketchat

---

<div class="post-metadata">

**Author:** ![john.crisp](https://sea1.discourse-cdn.com/flex021/user_avatar/forums.rocket.chat/john.crisp/32/2711_2.png) [@john.crisp](https://forums.rocket.chat/u/john.crisp)\
**Post date:** [June 24, 2021, 10:04pm UTC](https://forums.rocket.chat/t/rocketchat-blank-screen-with-error-on-root-url-in-k8s/11470/2 "2021-06-24T22:04:52Z")

</div>

> [@ayudh37](#):
>
> mongo db replication

I think this might be your issue.

I’m not sure that Rocket will run without replica sets enabled.

Even if it did did run it is not supported and you run it at your own risk and we can’t really help you.

Have you tried enabling replica sets as a test?

---

<div class="post-metadata">

**Author:** ![ayudh37](https://avatars.discourse-cdn.com/v4/letter/a/3be4f8/32.png) [@ayudh37](https://forums.rocket.chat/u/ayudh37)\
**Post date:** [June 25, 2021, 1:35am UTC](https://forums.rocket.chat/t/rocketchat-blank-screen-with-error-on-root-url-in-k8s/11470/3 "2021-06-25T01:35:24Z")

</div>

Hey John,

We’ll give it a test. Meanwhile, here’s an error I got from sshing into the server and trying to start it manually.

 ![Screenshot 2021-06-25 at 9.33.36 AM](https://us1.discourse-cdn.com/flex021/uploads/rocketchat/original/2X/9/9a5b5d071a0955ad6596227a73731f39b12c1a6f.png)

Also, in regards to the mongo replica sets, I believe the entire server will be replicated, is there a way to only replicate the collections that RC uses?

---

<div class="post-metadata">

**Author:** ![john.crisp](https://sea1.discourse-cdn.com/flex021/user_avatar/forums.rocket.chat/john.crisp/32/2711_2.png) [@john.crisp](https://forums.rocket.chat/u/john.crisp)\
**Post date:** [June 28, 2021, 8:25am UTC](https://forums.rocket.chat/t/rocketchat-blank-screen-with-error-on-root-url-in-k8s/11470/4 "2021-06-28T08:25:25Z")

</div>

> [@ayudh37](#):
>
> Meanwhile, here’s an error I got from sshing into the server and trying to start it manually.

Yup - Replica sets/Oplogs need to be on.

> [@ayudh37](#):
>
> Also, in regards to the mongo replica sets, I believe the entire server will be replicated, is there a way to only replicate the collections that RC uses?

That I don’t know but I know someone who might. I’ll ask.

---

<div class="post-metadata">

**Author:** ![ayudh37](https://avatars.discourse-cdn.com/v4/letter/a/3be4f8/32.png) [@ayudh37](https://forums.rocket.chat/u/ayudh37)\
**Post date:** [June 29, 2021, 3:23am UTC](https://forums.rocket.chat/t/rocketchat-blank-screen-with-error-on-root-url-in-k8s/11470/5 "2021-06-29T03:23:56Z")

</div>

Thank you, I have outlined my issue here as well: [mongodb - Setup Rocketchat self-hosting on development and staging without Mongo Replica Sets - Stack Overflow](https://stackoverflow.com/questions/68172235/setup-rocketchat-self-hosting-on-development-and-staging-without-mongo-replica-s)

---

<div class="post-metadata">

**Author:** ![debdut.chakraborty](https://sea1.discourse-cdn.com/flex021/user_avatar/forums.rocket.chat/debdut.chakraborty/32/2900_2.png) [@debdut.chakraborty](https://forums.rocket.chat/u/debdut.chakraborty)\
**Post date:** [June 29, 2021, 9:30am UTC](https://forums.rocket.chat/t/rocketchat-blank-screen-with-error-on-root-url-in-k8s/11470/6 "2021-06-29T09:30:14Z")

</div>

Hey @ayudh37 !! Welcome to RC 😉

First of all, as @john.crisp mentioned, you **have to** initialize a replica set.

> [@ayudh37](#):
>
> Also, in regards to the mongo replica sets, I believe the entire server will be replicated, is there a way to only replicate the collections that RC uses?

No. MongoDB replication is about data redundancy across all nodes. As far as I know, you can’t have partial/filtered replication in Mongo natively, that’d defeat the whole purpose.

To know more on this, look at the parameters of replication configuration: [https://docs.mongodb.com/manual/reference/replica-configuration/](https://docs.mongodb.com/manual/reference/replica-configuration/)

Or, the MongoDB documentation on replica sets: [https://docs.mongodb.com/manual/replication/](https://docs.mongodb.com/manual/replication/)

This being said, my question is are you reusing an existing Mongo setup?

---

<div class="post-metadata">

**Author:** ![ayudh37](https://avatars.discourse-cdn.com/v4/letter/a/3be4f8/32.png) [@ayudh37](https://forums.rocket.chat/u/ayudh37)\
**Post date:** [June 29, 2021, 12:26pm UTC](https://forums.rocket.chat/t/rocketchat-blank-screen-with-error-on-root-url-in-k8s/11470/7 "2021-06-29T12:26:10Z")

</div>

Hey Debdut, Yes I am reusing an existing mongo setup.

Also, in regards to bypassing the replica set, I’ve seem to gotten RC to work locally without a replica set by setting the BYPASS\_OPLOG\_VALIDATION env variable as stated here: [Can't enable ReplicaSet OpLog · Issue #17164 · RocketChat/Rocket.Chat · GitHub](https://github.com/RocketChat/Rocket.Chat/issues/17164)

---

<div class="post-metadata">

**Author:** ![john.crisp](https://sea1.discourse-cdn.com/flex021/user_avatar/forums.rocket.chat/john.crisp/32/2711_2.png) [@john.crisp](https://forums.rocket.chat/u/john.crisp)\
**Post date:** [June 29, 2021, 2:11pm UTC](https://forums.rocket.chat/t/rocketchat-blank-screen-with-error-on-root-url-in-k8s/11470/8 "2021-06-29T14:11:31Z")

</div>

> [@ayudh37](#):
>
> I’ve seem to gotten RC to work locally without a replica set by setting the BYPASS\_OPLOG\_VALIDATION env variable as stated here

Yes, you can, but this is absolutely not recommended. YMMV. Please take extra care here and make sure if you have any issues make sure you mention this fact.

---

<div class="post-metadata">

**Author:** ![ayudh37](https://avatars.discourse-cdn.com/v4/letter/a/3be4f8/32.png) [@ayudh37](https://forums.rocket.chat/u/ayudh37)\
**Post date:** [July 15, 2021, 10:13am UTC](https://forums.rocket.chat/t/rocketchat-blank-screen-with-error-on-root-url-in-k8s/11470/9 "2021-07-15T10:13:50Z")

</div>

Is there any reason this BYPASS\_OPLOG\_VALIDATION works on localhost and not when deployed on k8s?
