Support glances v4 #3187
DescriptionThis had worked in previous versions of homepage + Glances See troubleshooting - looks to be a hard coded API version issue (v3 looks to have been removed, so API v4 path is required) homepage versionv0.8.10 Installation methodDocker Configuration- glances:
url: http://192.168.1.999:61208
username: MyUserName # optional if auth enabled in Glances
password: MyPassword
label: NUC # optional
disk:
- /Container Logs[2024-03-27T10:33:52.302Z] error: TypeError: Cannot read properties of null (reading 'conn') [2024-03-27T10:33:55.175Z] error: HTTP 404 getting data from glances API. Data: {"detail":"Not Found"} Browser LogsNo response TroubleshootingDirect (webpage) access enables the normal Glances views/activity Typing "curl -u MyUserName:MyPassword http://192.168.1.999:61208/api/3/status" gets
But using "curl -u MyUserName:MyPassword http://192.168.1.999:61208/api/4/status" returns
Glances: Version 3.4.0.5 src/widgets/glances/widget.js has: |
Replies: 4 comments 3 replies
|
Thanks for posting a discussion about homepage here on GitHub. Homepage now uses a fancy new AI tool thanks to our friends at Glime, so the answer below is the AI bot's attempt to answer your question. If you feel it's sufficient you can mark the answer and close this post, otherwise feel free to leave it open of course! Thanks for using Homepage! ❤️ Based on the information provided, it seems that the issue is related to the API version that the Glances widget is trying to access. The error message from the container logs indicates a From the troubleshooting steps you've taken, it's clear that the Glances service is running API version 4 ( To resolve this, you would need to update the widget configuration to use the correct API version that matches your Glances service. If you have access to modify the widget's source code, you could try changing the API version in the If you are not able to modify the source code yourself, or if you're unsure how to proceed, you should report this issue to the maintainers of the Homepage project. They may need to update the widget to support the newer API version of Glances. Remember to check the documentation and any updates from the Homepage project for any official fixes or workarounds for this issue. This comment was generated by Glime. |
|
Oh there’s more information here. Yea, so I’ll look at supporting this but again, your PR would break this for all not running the beta (presumably nearly everyone). Its also not clear to me what the timeline is. Thanks |
|
If you want to test out |
|
This discussion has been automatically locked since there has not been any recent activity after it was closed. Please open a new discussion for related concerns. See our contributing guidelines for more details. |

#3196
If you want to test out
mainlet me know if you notice any issues. As noted in the PR you’ll need to addversion: 4to your config(s)