Snap rocketchat-server doesn't draw charts in omnichannel analytics and real-time monitoring

Description

Server Setup Information

  • Version of Rocket.Chat Server: 4.8.1
  • Operating System: CentOS 7
  • Deployment Method: snap
  • Number of Running Instances: 1
  • DB Replicaset Oplog: snap default
  • NodeJS Version: 14.18.3 - x64
  • MongoDB Version: 4.2.17
  • Proxy: nginx
  • Firewalls involved: no

Hi!

Can you get more outstanding logs?

Probably if you open the browser console you will see some red entries that can give us more clues about this.

My bet is that it’s doesn’t have the SITE_URL properly configured.

Thanks!

When I select Analytics, debug console is silent. But as you see there is some strange red mark “Undefined” at top-right

When I select Real-time Monitoring. Console is red with errors about “u is not a constructor”

SITE_URL is configured properly.

‘# snap get rocketchat-server’
Key Value
backup-on-refresh disable
ignore-errors false
mongo-oplog-url mongodb://localhost:27017/local
mongo-url mongodb://localhost:27017/parties
port 3000
siteurl https://chat.[my-domain-name].com

have you tried accessing it directly, removing the reverse proxy? This has probably something to do with config or deployment.

Also, have you seen this doc about how to properly reverse proxy Rocket.Chat?

I strongly suggest using docker instead of snaps, as you can have more control over your environment and a more similar deployment as a lot of our users base.

Yes, nginx configured properly with this doc.

Without reverse-proxy behavior is exactly the same. No charts, same errors.

So I think its a problem inside snap package.

I installed hosted version of rocket.chat and mongodb and it works well. Charts are drawing.

But the idea was to have exactly snap-package for simplicity and autoupdate.

I have same issue.

Any fix for this issue?

Hi! This was recently fixed and will land in 5.0 version:

Thanks @debdut.chakraborty for pointing it out :wink:

2 Likes

Can you help what file should i edit?

Im only seeing this:
/opt/Rocket.Chat/programs/web.browser/dynamic/app/livechat/client/lib/chartHandler.js
/opt/Rocket.Chat/programs/web.browser.legacy/dynamic/app/livechat/client/lib/chartHandler.js

Info:
Version
4.8.1

Deployment ID
N7iTC9sBt6eL6Rzm3

Apps Engine Version
1.32.0

Node Version
v14.18.2

Database Migration
265 (July 16, 2022 12:44 AM)

MongoDB
4.4.15 / wiredTiger (oplog Enabled)

Thanks

Hi! You will need to wait for version 5 release, and avoid editing the files directly.

Also, consider moving your deployment to docker as you can have more control over the environment.

Do you have ETA for version 5?

we are in the release candidate phase already, and should be available next week.

20th July. The snap release will take ~1 week more.

1 Like

Thank you Team for speedy reply

Please update us once version 5 release.

Thanks

Hi!

It should be this week. All those infos (inclusing release notes) can be found here:

Hi,

May I know if the version 5 is already released?

Thank you!

Hi! Yes it is!

If you want to know more about it, check our last Community Open Call:

Version
5.0.0

Deployment ID
N7iTC9sBt6eL6Rzm3

Apps Engine Version
1.33.0

Node Version
v14.18.2

MongoDB
4.4.15 / wiredTiger (oplog Enabled)

Hi Team,

Thank you very much for the updates.

Can you help me again how to fix invalid users. The issue happens when i click GENERAL channel