Chats not updating



  • So everything works properly for 2 of the users on a site I'm setting up, except chats and shouts that the other 2 users post aren't received without manually reloading the page. Those first 2 users can chat with each other normally, but have to reload to see chats from the other two. I'm not seeing any errors with dev mode, or in the logs (mongo, nginx). I've tried about everything I can think of, deleting sessions, removing plugins, different browsers. We only have 4 members, so I don't know if it would affect more than just those two users.
    To be clear, myself and another user can chat normally, but need to reload the page to see chats from the other two. Websockets seem to be working correctly. The other two can get notifications for non-chat things, they can send chats, and they can receive chats, it's just their sent chats that don't seem to be updating dynamically.

    Configs are here

    These two users were able to chat normally earlier today, but only briefly, then the problems started again. There wasn't anything that I had done at that point, so I'm at a loss.


  • Community Rep

    Probably a web socket problem? Have you checked the client logs? Do you use a CDN?



  • @Bri No CDN and I can't find anything in any log. They tried with multiple browsers on multiple machines from multiple IPs.


  • Admin

    @GaryBusey Hi,

    "port": ["4567", "4568"], looks like you are running 2 nodebb instances, you will have to install redis and configure it in your config.json so socket.io messages are passed between all nodebb instances.

    The redis block usually looks like

     "redis": {
        "host": "127.0.0.1",
        "port": "6379",
        "password": "",
        "database": 0
    },
    


  • @baris Redis seems to have fixed it. Thanks.
    I didn't realize that Redis was required, just "recommended".


  • Admin

    It is only required if you are running more than 1 process.


Log in to reply
 

Looks like your connection to NodeBB was lost, please wait while we try to reconnect.