Tunnel Terminations Server error #9708

Closed
opened 2025-12-29 21:21:24 +01:00 by adam · 7 comments
Owner

Originally created by @RenJiangZhou2163 on GitHub (May 21, 2024).

Deployment Type

Self-hosted

NetBox Version

4.0.2

Python Version

3.11.6

Steps to Reproduce

1、clicked on “Tunnel Terminations”,

Expected Behavior

In normal cases, the /vpn/tunnel-terminations / page should be displayed

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.11.6
NetBox version: 4.0.2
Plugins: None installed
If further assistance is required, please post to the NetBox discussion forum on GitHub.

Originally created by @RenJiangZhou2163 on GitHub (May 21, 2024). ### Deployment Type Self-hosted ### NetBox Version 4.0.2 ### Python Version 3.11.6 ### Steps to Reproduce 1、clicked on “Tunnel Terminations”, ### Expected Behavior In normal cases, the /vpn/tunnel-terminations / page should be displayed ### 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.11.6 NetBox version: 4.0.2 Plugins: None installed 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 needed labels 2025-12-29 21:21:24 +01:00
adam closed this issue 2025-12-29 21:21:24 +01:00
Author
Owner

@RenJiangZhou2163 commented on GitHub (May 21, 2024):

This problem was normal until I added some tunnels and deleted them
After the tunnel is deleted, the three VPN-related tables in the netbox database are empty and the same error is reported

@RenJiangZhou2163 commented on GitHub (May 21, 2024): This problem was normal until I added some tunnels and deleted them After the tunnel is deleted, the three VPN-related tables in the netbox database are empty and the same error is reported
Author
Owner

@DanSheps commented on GitHub (May 21, 2024):

This problem was normal until I added some tunnels and deleted them After the tunnel is deleted, the three VPN-related tables in the netbox database are empty and the same error is reported

Are you saying this only is a problem if you delete the tunnel or interface?

@DanSheps commented on GitHub (May 21, 2024): > This problem was normal until I added some tunnels and deleted them After the tunnel is deleted, the three VPN-related tables in the netbox database are empty and the same error is reported Are you saying this only is a problem if you delete the tunnel or interface?
Author
Owner

@DanSheps commented on GitHub (May 21, 2024):

Steps to Reproduce

1、clicked on “Tunnel Terminations”,

Please provide more detail to reproduce then just this.

@DanSheps commented on GitHub (May 21, 2024): > ### Steps to Reproduce > 1、clicked on “Tunnel Terminations”, Please provide more detail to reproduce then just this.
Author
Owner

@RenJiangZhou2163 commented on GitHub (May 22, 2024):

At the time of deployment, the page is normal
I added the device and added the GRE tunnel, and then removed the added device and tunnels. Then the problem occurred. I checked the database and found that the three VPN-related entries were empty. The database looks normal, because I have deleted the added data, but an error is reported on the “Tunnel Terminationsl" page.

@RenJiangZhou2163 commented on GitHub (May 22, 2024): At the time of deployment, the page is normal I added the device and added the GRE tunnel, and then removed the added device and tunnels. Then the problem occurred. I checked the database and found that the three VPN-related entries were empty. The database looks normal, because I have deleted the added data, but an error is reported on the “Tunnel Terminationsl" page.
Author
Owner

@jeremystretch commented on GitHub (May 22, 2024):

@RenJiangZhou2163 in order for us to accept your bug report, you'll need to identify and detail steps that someone else can take on an unmodified NetBox instance to reproduce the reported problem. Without sufficient instructions to reproduce the bug, this issue will be closed.

@jeremystretch commented on GitHub (May 22, 2024): @RenJiangZhou2163 in order for us to accept your bug report, you'll need to identify and detail steps that someone else can take on an unmodified NetBox instance to reproduce the reported problem. Without sufficient instructions to reproduce the bug, this issue will be closed.
Author
Owner

@github-actions[bot] commented on GitHub (May 30, 2024):

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 (May 30, 2024): 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 (Jun 7, 2024):

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 (Jun 7, 2024): 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.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#9708