We’ve cloned the latest rocket chat repo from git and introduced some custom APIs to meet our client’s requirements. The update chat (having custom APIs) is working fine on local. But after deploying the app to Heroku, we’re facing this issue. The issue is, when user A sends a message to user B, B doesn’t receive it and A has this message with grey text. If the user B reloads his chat, he receives the message. After this, if user A now reloads the page, he gets the message with standard black color text. The issue is just with Heroku deployed app. While the same codebase running on local machine is working fine. Any type of help would highly be appreciated…!
Asked
Active
Viewed 916 times
1
-
`While the same codebase running on local machine is working fine` indicates that there are some issues with the deployment. Please add (anonymized) information to your question on how you actually deploy (configs, scripts etc.) – Jankapunkt Aug 06 '20 at 13:46
-
How did you wait after sending the message? In deployment, if you didn't set up oplog tailing yet, the database is only polled every 10 seconds for new results for reactive queries. – Christian Fritz Aug 06 '20 at 15:15
-
@Jankapunkt yes on deployment I was facing some issues, that is why I added BYPASS_OPLOG_VALIDATION = true in the configuration, if I removed this server was unable to start. – Junaid Tariq Aug 07 '20 at 18:34
-
@ChristianFritz how can I set up ReplicaSet OpLog? I did not find any solution of this, that is why i added BYPASS_OPLOG_VALIDATION = true in an environment , then my server was started but now i am facing this issue on Heroku, but my local setup is working fine – Junaid Tariq Aug 07 '20 at 18:40
-
Please see my first question. It's important to know the answer to that to tell whether your issue is related to oplog or not. It's fine to run without oplog tailing, it's just less efficient and less reactive. – Christian Fritz Aug 07 '20 at 21:12
-
@ChristianFritz I waited more than 2 mins, but I can hear the sound of a new message on another account but the message just showed after refresh. and on my side message is just gray until I refreshed. – Junaid Tariq Aug 08 '20 at 12:45
-
ok, then it's not related to the missing oplog tailing. Next I would verify that the websockets are still open and DDP is still operational. I would do that using the Meteor dev tools extension in Chrome. When you open that, you can see the messages that are sent and received. Also, please post the publication code here. – Christian Fritz Aug 08 '20 at 15:20
-
@XquicDevs did you find any issue about this problem – Abdul Rauf Feb 03 '21 at 08:22
-
No, I am using aws now – Junaid Tariq Aug 05 '21 at 15:54