Server Error when accessing VPN tunnels terminations tab #10902

Closed
opened 2025-12-29 21:37:30 +01:00 by adam · 5 comments
Owner

Originally created by @mwitczak86 on GitHub (Mar 17, 2025).

Deployment Type

Self-hosted

NetBox Version

v4.1.4

Python Version

3.10

Steps to Reproduce

  1. Create a VPN tunnel
  2. Create a terminations on dcim.interface and virtualization.vminterface
  3. Assign an outside IP for virtualization.vminterface
  4. Click on VPN tunnel terminations tab

Expected Behavior

VPN tunnel terminations list is visible.

Observed Behavior

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

The complete exception is provided below:

<class 'django.core.exceptions.FieldError'>

Field 'termination' does not generate an automatic reverse relation and therefore cannot be used for reverse querying. If it is a GenericForeignKey, consider adding a GenericRelation.

Python version: 3.10.12
NetBox version: 4.1.4
Plugins:
django3_saml2_nbplugin: 2.0
netbox_documents: 0.7.0
netbox_inventory: 2.1.0
netbox_reorder_rack: 1.1.3
nextbox_ui_plugin: 1.0.7
If further assistance is required, please post to the NetBox discussion forum on GitHub.

Originally created by @mwitczak86 on GitHub (Mar 17, 2025). ### Deployment Type Self-hosted ### NetBox Version v4.1.4 ### Python Version 3.10 ### Steps to Reproduce 1. Create a VPN tunnel 2. Create a terminations on dcim.interface and virtualization.vminterface 3. Assign an outside IP for virtualization.vminterface 4. Click on VPN tunnel terminations tab ### Expected Behavior VPN tunnel terminations list is visible. ### Observed Behavior Server Error There was a problem with your request. Please contact an administrator. The complete exception is provided below: <class 'django.core.exceptions.FieldError'> Field 'termination' does not generate an automatic reverse relation and therefore cannot be used for reverse querying. If it is a GenericForeignKey, consider adding a GenericRelation. Python version: 3.10.12 NetBox version: 4.1.4 Plugins: django3_saml2_nbplugin: 2.0 netbox_documents: 0.7.0 netbox_inventory: 2.1.0 netbox_reorder_rack: 1.1.3 nextbox_ui_plugin: 1.0.7 If further assistance is required, please post to the [NetBox discussion forum](https://github.com/netbox-community/netbox/discussions) on GitHub.
adam added the type: bugpending closurestatus: revisions neededseverity: low labels 2025-12-29 21:37:30 +01:00
adam closed this issue 2025-12-29 21:37:30 +01:00
Author
Owner

@mwitczak86 commented on GitHub (Mar 17, 2025):

After deleting the newly created vpn entries, the problem persists. The vpn terminations are no longer visible within the tunnel object details. However, all database entries exists and are visible in the API queries. I am unable to restore NetBox to the state it was in before the issue occured. Thanks

@mwitczak86 commented on GitHub (Mar 17, 2025): After deleting the newly created vpn entries, the problem persists. The vpn terminations are no longer visible within the tunnel object details. However, all database entries exists and are visible in the API queries. I am unable to restore NetBox to the state it was in before the issue occured. Thanks
Author
Owner

@jnovinger commented on GitHub (Mar 26, 2025):

@mwitczak86 , thank you for opening a bug report. Unfortunately, the information you have provided is not sufficient for someone else to attempt to reproduce the reported behavior. Remember, each bug report must include detailed steps that someone else can follow on a clean, empty NetBox installation to reproduce the exact problem you're experiencing. These instructions should include the creation of any involved objects, any configuration changes, and complete accounting of the actions being taken. Also be sure that your report does not reference data on the public NetBox demo, as that is subject to change at any time by an outside party and cannot be relied upon for bug reports.

@jnovinger commented on GitHub (Mar 26, 2025): @mwitczak86 , thank you for opening a bug report. Unfortunately, the information you have provided is not sufficient for someone else to attempt to reproduce the reported behavior. Remember, each bug report must include detailed steps that someone else can follow on a clean, empty NetBox installation to reproduce the exact problem you're experiencing. These instructions should include the creation of any involved objects, any configuration changes, and complete accounting of the actions being taken. Also be sure that your report does not reference data on the public NetBox demo, as that is subject to change at any time by an outside party and cannot be relied upon for bug reports.
Author
Owner

@github-actions[bot] commented on GitHub (Apr 3, 2025):

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.

@github-actions[bot] commented on GitHub (Apr 3, 2025): 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.
Author
Owner

@github-actions[bot] commented on GitHub (Apr 10, 2025):

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.

@github-actions[bot] commented on GitHub (Apr 10, 2025): 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.
Author
Owner

@jnovinger commented on GitHub (May 28, 2025):

This appears to be the same issue as tracked down in #19487. We will include a fix there.

@jnovinger commented on GitHub (May 28, 2025): This appears to be the same issue as tracked down in #19487. We will include a fix there.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#10902