-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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] netbox 4.0.11 and 4.1.0 error 500 while displaying the interfaces of a device #17360
Comments
I'm not able to reproduce this. Could you add some more details about the device and interface configuration that causes this? |
sure, would this be enough for you to reproduce it ? Device GET /api/dcim/devices/201/ { "id": 201, "url": "https://xxxx/api/dcim/devices/201/", "display_url": "https://xxx/dcim/devices/201/", "display": "tiresp", "name": "tiresp", "device_type": { "id": 55, "url": "https://xxxx/api/dcim/device-types/55/", "display": "Color LaserJet M552", "manufacturer": { "id": 9, "url": "https://xxx/api/dcim/manufacturers/9/", "display": "HP", "name": "HP", "slug": "hp", "description": "" }, "model": "Color LaserJet M552", "slug": "color-laserjet-m552", "description": "" }, "role": { "id": 9, "url": "https://xxxx/api/dcim/device-roles/9/", "display": "Printer", "name": "Printer", "slug": "printer", "description": "" }, "tenant": null, "platform": null, "serial": "JPBVJ5M0JL", "asset_tag": null, "site": { "id": 9, "url": "https://xxxx/api/dcim/sites/9/", "display": "Ticino", "name": "Ticino", "slug": "ti", "description": "" }, "location": null, "rack": null, "position": null, "face": null, "latitude": null, "longitude": null, "parent_device": null, "status": { "value": "active", "label": "Actif" }, "airflow": null, "primary_ip": { "id": 9752, "url": "https://xxx/api/ipam/ip-addresses/9752/", "display": "10.5.254.10/25", "family": { "value": 4, "label": "IPv4" }, "address": "10.5.254.10/25", "description": "" }, "primary_ip4": { "id": 9752, "url": "https://xxxx/api/ipam/ip-addresses/9752/", "display": "10.5.254.10/25", "family": { "value": 4, "label": "IPv4" }, "address": "10.5.254.10/25", "description": "" }, "primary_ip6": null, "oob_ip": null, "cluster": null, "virtual_chassis": null, "vc_position": null, "vc_priority": null, "description": "", "comments": "", "config_template": null, "config_context": {}, "local_context_data": null, "tags": [], "custom_fields": {}, "created": "2021-07-15T00:00:00Z", "last_updated": "2023-04-21T19:02:00.428448Z", "console_port_count": 0, "console_server_port_count": 0, "power_port_count": 0, "power_outlet_count": 0, "interface_count": 1, "front_port_count": 0, "rear_port_count": 0, "device_bay_count": 0, "module_bay_count": 0, "inventory_item_count": 0 } IP: GET /api/ipam/ip-addresses/9752/ { "id": 9752, "url": "https://xxx/api/ipam/ip-addresses/9752/", "display_url": "https://xxx/ipam/ip-addresses/9752/", "display": "10.5.254.10/25", "family": { "value": 4, "label": "IPv4" }, "address": "10.5.254.10/25", "vrf": null, "tenant": null, "status": { "value": "active", "label": "Actif" }, "role": null, "assigned_object_type": "dcim.interface", "assigned_object_id": 2136, "assigned_object": { "id": 2136, "url": "https://xxx/api/dcim/interfaces/2136/", "display": "ETH0", "device": { "id": 201, "url": "https://xxx/api/dcim/devices/201/", "display": "tiresp", "name": "tiresp", "description": "" }, "name": "ETH0", "description": "", "cable": null, "_occupied": false }, "nat_inside": null, "nat_outside": [], "dns_name": "", "description": "", "comments": "", "tags": [], "custom_fields": {}, "created": "2023-04-21T19:02:00.404092Z", "last_updated": "2023-04-21T19:02:00.404119Z" } interface: GET /api/dcim/interfaces/2136/ { "id": 2136, "url": "https://xxx/api/dcim/interfaces/2136/", "display_url": "https://xxx/dcim/interfaces/2136/", "display": "ETH0", "device": { "id": 201, "url": "https://xxx/api/dcim/devices/201/", "display": "tiresp", "name": "tiresp", "description": "" }, "vdcs": [], "module": null, "name": "ETH0", "label": "", "type": { "value": "1000base-t", "label": "1000BASE-T (1GE)" }, "enabled": true, "parent": null, "bridge": null, "lag": null, "mtu": 1500, "mac_address": "A0:8C:FD:56:22:68", "speed": null, "duplex": null, "wwn": null, "mgmt_only": false, "description": "", "mode": null, "rf_role": null, "rf_channel": null, "poe_mode": null, "poe_type": null, "rf_channel_frequency": null, "rf_channel_width": null, "tx_power": null, "untagged_vlan": null, "tagged_vlans": [], "mark_connected": false, "cable": null, "cable_end": "", "wireless_link": null, "link_peers": [], "link_peers_type": null, "wireless_lans": [], "vrf": null, "l2vpn_termination": null, "connected_endpoints": null, "connected_endpoints_type": null, "connected_endpoints_reachable": null, "tags": [], "custom_fields": {}, "created": "2021-07-15T00:00:00Z", "last_updated": "2021-07-15T13:39:33.769002Z", "count_ipaddresses": 1, "count_fhrp_groups": 0, "_occupied": false } |
@gurretp I'm not able to reproduce this either. Can you please check the reproduction steps or see if there is something specific about your data. |
I am able to reproduce this. On 4.0.11 and on 4.1.0 as well. |
@goebelmeier could you and @gurretp see if you can determine between you what is particular about your setups that causes this? |
Just a hunch, but I see this error on some other HTMX-related issues:
@gurretp @goebelmeier do you have HTMX enabled, and does turning that off affect this? |
@bctiemann i can confirm it is happening when HTMX is enabled. Disabling HTMX fixes the issue |
**@bctiemann ** Same here, disabling htmx fixes the issue |
This is a reminder that additional information is needed in order to further triage this issue. If the requested details are not provided, the issue will soon be closed automatically. |
This issue is being closed as no further information has been provided. If you would like to revisit this topic, please first modify your original post to include all the requested detail, and then ask that the issue be reopened. |
This was closed mistakenly. (The status label needs to be removed when an issue is assigned.) |
Possibly blocked by #17571 |
…g bulk_edit_button (netbox-community#17535) * Ensure model is defined when rendering bulk_edit_button * Move model check to inner conditional * Set model in context * Return child_model instead of model for use in bulk_edit_button
Deployment Type
Self-hosted
NetBox Version
v4.1.0
Python Version
3.11
Steps to Reproduce
Expected Behavior
show the interfaces of the device
Observed Behavior
error 500:
The text was updated successfully, but these errors were encountered: