Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"chart not found on url" in cluster dashboard. #8349

Open
BrettMerrick opened this issue Oct 16, 2024 · 2 comments
Open

"chart not found on url" in cluster dashboard. #8349

BrettMerrick opened this issue Oct 16, 2024 · 2 comments

Comments

@BrettMerrick
Copy link

Describe the bug
Charts are not available on the dashboard in a cluster installation

To Reproduce
Steps to reproduce the behavior:

  1. Install a 3 node cluster as per the guide.
  2. Visit the dashboard

Screenshots
Screenshot 2024-10-17 at 11 03 46 AM

Expected behavior
Charts to display

Version
PacketFence-ZEN-v14.0.0

Additional context
Seems to only affect charts where the mode is COMBINED and hosts is a comma separated list:

if (mode === modes.COMBINED) {
// Cluster data is aggregated into one chart
hosts = [$store.getters[`$_status/hostsForChart`](metric).map(host => `/netdata/${host}`).join(',')]
params['friendly-host-names'] = Object.values(cluster.value).filter(server => {
return $store.getters[`$_status/hostsForChart`](metric).includes(server.management_ip)
}).map(server => {
return `/netdata/${server.management_ip}=${server.host}`
}).join(',')
chart.params = params

The dev console shows a "Failed to load resource: the server responded with a status of 400 (Bad Request)" because the page is trying to load:
https://172.20.13.70:1443/netdata/172.20.13.72,/netdata/172.20.13.71,/netdata/172.20.13.73/api/v1/chart?chart=system.cpu&_=1729112364987

instead of three separate data sources:
https://172.20.13.70:1443/netdata/172.20.13.72/api/v1/chart?chart=system.cpu&_=1729112364987
https://172.20.13.70:1443/netdata/172.20.13.71/api/v1/chart?chart=system.cpu&_=1729112364987
https://172.20.13.70:1443/netdata/172.20.13.73/api/v1/chart?chart=system.cpu&_=1729112364987

@satkunas
Copy link
Contributor

What version netdata is installed?

Should be netdata-1.10.0-37.1

@BrettMerrick
Copy link
Author

Packages are as supplied in the PacketFence-ZEN-v14.0.0 distribution.

# apt-cache policy netdata
netdata:
  Installed: 1.37.1-2
  Candidate: 1:1.10.0-1
  Version table:
     1:1.10.0-1 500
        500 http://inverse.ca/downloads/PacketFence/debian/14.0 bookworm/bookworm amd64 Packages
 *** 1.37.1-2 500
        500 http://deb.debian.org/debian bookworm/main amd64 Packages
        100 /var/lib/dpkg/status

Looks like the ZEN distribution image may have inherited the Debian base version ahead of the PF specific version?

Seems it has introduced conflicting dependencies also:

# apt upgrade
...
The following packages have unmet dependencies:
 netdata-web : Conflicts: netdata-data but 1:1.10.0-1 is to be installed
E: Broken packages

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants