error when trying to view VM or host for filter humanize_ram_megabytes #11017

Closed
opened 2025-12-29 21:39:14 +01:00 by adam · 2 comments
Owner

Originally created by @sarderkamalmdx on GitHub (Apr 12, 2025).

Deployment Type

Self-hosted

NetBox Version

v4.2.5

Python Version

3.11

Steps to Reproduce

click on virtual machine
click on any of the VM name or the cluster name

Expected Behavior

show me VM details

Observed Behavior

Server Error

There was a problem with your request. Please contact an administrator.

The complete exception is provided below:

<class 'django.template.exceptions.TemplateSyntaxError'>

Invalid filter: 'humanize_ram_megabytes'

Python version: 3.11.11
NetBox version: 4.2.5
Plugins: None installed

If further assistance is required, please post to the NetBox discussion forum on GitHub.
[Home Page]

Image
Originally created by @sarderkamalmdx on GitHub (Apr 12, 2025). ### Deployment Type Self-hosted ### NetBox Version v4.2.5 ### Python Version 3.11 ### Steps to Reproduce click on virtual machine click on any of the VM name or the cluster name ### Expected Behavior show me VM details ### Observed Behavior Server Error There was a problem with your request. Please contact an administrator. The complete exception is provided below: <class 'django.template.exceptions.TemplateSyntaxError'> Invalid filter: 'humanize_ram_megabytes' Python version: 3.11.11 NetBox version: 4.2.5 Plugins: None installed If further assistance is required, please post to the [NetBox discussion forum](https://github.com/netbox-community/netbox/discussions) on GitHub. [Home Page] <img width="598" alt="Image" src="https://github.com/user-attachments/assets/f70b9780-d7a6-4149-bdd3-755568174489" />
adam added the type: bug label 2025-12-29 21:39:14 +01:00
adam closed this issue 2025-12-29 21:39:14 +01:00
Author
Owner

@bctiemann commented on GitHub (Apr 14, 2025):

@sarderkamalmdx I can't reproduce this issue (specifying a Memory value for a VM and viewing the detail page), and due to the wide visibility of the Virtual Machine and Cluster detail pages where the humanize_ram_megabytes template tag appears and no issues being reported since v4.2.5, this points to an issue with your specific environment. Could you please provide more details of your installation or where this issue was observed?

@bctiemann commented on GitHub (Apr 14, 2025): @sarderkamalmdx I can't reproduce this issue (specifying a Memory value for a VM and viewing the detail page), and due to the wide visibility of the Virtual Machine and Cluster detail pages where the `humanize_ram_megabytes` template tag appears and no issues being reported since v4.2.5, this points to an issue with your specific environment. Could you please provide more details of your installation or where this issue was observed?
Author
Owner

@sarderkamalmdx commented on GitHub (Apr 14, 2025):

Thank you for getting back.

your message made me think in a different light and I rechecked the VM config, which seem to have been built with lower spec than recommended. I have rectified that and now it is working properly.

Thank you for the pointer, and apologies for the noise.

Best regards

@sarderkamalmdx commented on GitHub (Apr 14, 2025): Thank you for getting back. your message made me think in a different light and I rechecked the VM config, which seem to have been built with lower spec than recommended. I have rectified that and now it is working properly. Thank you for the pointer, and apologies for the noise. Best regards
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#11017