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

[BUG] Glances Issue #1594

Closed
5 tasks done
Eviljubs opened this issue May 18, 2024 · 9 comments
Closed
5 tasks done

[BUG] Glances Issue #1594

Eviljubs opened this issue May 18, 2024 · 9 comments
Assignees
Labels
🐛 Bug [ISSUE] Ticket describing something that isn't working

Comments

@Eviljubs
Copy link

Environment

Self-Hosted (Docker)

System

No response

Version

No response

Describe the problem

I had Glances widgets working fine but recently it updated and it hasn't been working. I thought it might be something in my config file but everything there looks fine as far as I can tell. However, I did a bit of digging in my logs and found that the url being referenced by dashy's glances widget is http://192.168.1.2:61208/api/3/mem. I tried navigating to the page in my browser but it doesn't give any data: {"detail":"Not Found"} .

I then found out that glances has a 4th version of the api (guess that's recent?) -- so if I replace replace the 3 with a 4 like this: http://192.168.1.2:61208/api/4/mem. I get what looks to be data output: {"total":33538297856,"available":22703775744,"percent":32.3,"used":10834522112,"free":22703775744,"active":6034456576,"inactive":24548749312,"buffers":135168,"cached":23524229120,"shared":753487872}

I would update the appended url string "/api/3/mem/" myself however, I'm not sure where Dashy actually stores that. Any chance the code could be updated relatively quickly? Seems like it could be an easy find/replace job.

Additional info

No response

Please tick the boxes

@Eviljubs Eviljubs added the 🐛 Bug [ISSUE] Ticket describing something that isn't working label May 18, 2024
@CrazyWolf13
Copy link
Collaborator

CrazyWolf13 commented May 18, 2024

I just tested with the new api v4 version and it seems like most of the things work.

What threw an error:

    • type: gl-ip-address:
⚠️ Warning ⚠️ The IP plugin is not supported in this instance of Glances This is likely not an issue with Dashy, but rather your configuration.If you think it is a bug, please open a ticket on GitHub: https://git.io/JukXk

    • type: gl-network-traffic:
110Error: <path> attribute d: Unexpected end of attribute. Expected number, "M".
110Error: <path> attribute d: Expected number, "Mundefined,NaNLLu…".
frappe-charts.min.esm.js:1 Uncaught DOMException: Failed to execute 'removeChild' on 'Node': The node to be removed is not a child of this node.
   at e.value (http://172.17.104.102:4000/js/chunk-50f31ec3.5ad55dde.js:1:42229)
   at e.value (http://172.17.104.102:4000/js/chunk-50f31ec3.5ad55dde.js:1:41749)
   at ResizeObserver.boundDrawFn (http://172.17.104.102:4000/js/chunk-50f31ec3.5ad55dde.js:1:40602)

image


    • type: gl-cpu-temp:

Shows nothing on the dashboard, shows no erros, but seems broken.
image


Glances CPU temp could also be due to testing inside WSL but I enabled the sensors plugin.

@Lissy93 I'll get a PR ready to update to V4, but could you take a look at the above three widgets?

@mr-f0xx
Copy link

mr-f0xx commented May 22, 2024

Same issue with latest version, it stopped working. I had to go to the previous version.

@liss-bot liss-bot added the 👤 Awaiting Maintainer Response [ISSUE] Response from repo author is pending label May 22, 2024
@CrazyWolf13
Copy link
Collaborator

Same issue with latest version, it stopped working. I had to go to the previous version.

A fix has been release, just re-pull the :latest tag of the docker container and rebuild, then it should work again. :)

@mr-f0xx
Copy link

mr-f0xx commented May 22, 2024

Same issue with latest version, it stopped working. I had to go to the previous version.

A fix has been release, just re-pull the :latest tag of the docker container and rebuild, then it should work again. :)

Weird...There's no change

@liss-bot liss-bot removed the 👤 Awaiting Maintainer Response [ISSUE] Response from repo author is pending label May 23, 2024
@CrazyWolf13
Copy link
Collaborator

Same issue with latest version, it stopped working. I had to go to the previous version.

A fix has been release, just re-pull the :latest tag of the docker container and rebuild, then it should work again. :)

Weird...There's no change

Can you share your browser console?
This can be found by right clicking anywhere in the browser and selecting the last entry, called develop, developer tools or similar.

Then you can seitch to the console tab on the rights side, please send a screenshot or copy +paste here

And also your dashy log?

@Eviljubs
Copy link
Author

Here is my console log:

image

It looks like the update is in place, and if I copy and paste the address (http://192.168.1.45:61208/api/4/mem) from there I can access the data feed directly in my browser. However, it looks like it's not allowing it to talk to Dashy directly for some reason. Unsure why this would be, unless something updated or changed on the Glances side of things, a few weeks ago all of this was working perfectly.

@liss-bot liss-bot added the 👤 Awaiting Maintainer Response [ISSUE] Response from repo author is pending label May 24, 2024
@CrazyWolf13
Copy link
Collaborator

@mr-f0xx and @Eviljubs

Those are CORS-Errors:
https://dashy.to/docs/widgets#troubleshooting-widget-errors

You can just add useProxy: true to each item.

@Eviljubs
Copy link
Author

Perfect, that worked, thanks!

@liss-bot liss-bot removed the 👤 Awaiting Maintainer Response [ISSUE] Response from repo author is pending label May 24, 2024
@portalzine
Copy link

portalzine commented Jun 5, 2024

For those using Nginx Proxy Manager

  1. Create custom location / , apply default IP + Port
  2. Press gear icon and set CORS header
    add_header 'Access-Control-Allow-Origin' *;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 Bug [ISSUE] Ticket describing something that isn't working
Projects
Status: Done
Development

No branches or pull requests

6 participants