Skip to content
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

Server Error when trying to access branches on netbox-docker #183

Open
BrynjarFAune opened this issue Nov 27, 2024 · 2 comments
Open

Server Error when trying to access branches on netbox-docker #183

BrynjarFAune opened this issue Nov 27, 2024 · 2 comments
Labels
type: documentation A change or addition to the documentation

Comments

@BrynjarFAune
Copy link

Plugin Version

0.5.2

NetBox Version

4.1.6

Python Version

3.12.3

Steps to Reproduce

Install a fresh netbox-docker instance following this guide, and add the netboxlabs-netbox-branching plugin.

  1. git clone netbox-docker
  2. create files plugin_requirements.txt, Dockerfile-Plugins, docker-compose.override.yml, local_settings.py
  3. add "netboxlabs-netbox-branching" to plugin_requirements.txt
  4. copy the contents of local_settings.py from here
  5. copy the contents of Dockerfile-Plugins from the top link.
  6. add "netbox_branching" to the plugin list in config/plugins.py
  7. docker-compose build --no-cache
  8. docker-compose up -d
  9. access the web interface
  10. click Branching > Branches
    image

Expected Behavior

To see the branches and be able to switch between them on the branches page.

Observed Behavior

The branches plugin appears correct in the GUI,
but I get a server error when I try accessing the Branches page.

Server Error

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

The complete exception is provided below:

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

Cannot resolve keyword 'is_active' into field. Choices are: applied_changes, bookmarks, changediff, comments, conflicts, created, custom_field_data, description, events, id, jobs, journal_entries, last_sync, last_updated, merged_by, merged_by_id, merged_time, name, owner, owner_id, schema_id, status, subscriptions, tagged_items, tags

Python version: 3.12.3
NetBox version: 4.1.6
Plugins: 
  netbox_branching: 0.5.2

If further assistance is required, please post to the [NetBox discussion forum](https://github.com/netbox-community/netbox/discussions) on GitHub.
@BrynjarFAune BrynjarFAune added the type: bug A confirmed report of unexpected behavior in the application label Nov 27, 2024
@cruse1977 cruse1977 removed the type: bug A confirmed report of unexpected behavior in the application label Nov 27, 2024
@cruse1977
Copy link
Member

Please see this discussion - additional tweaks are required for netbox-docker netbox-community/netbox-docker#1316

@cruse1977 cruse1977 added the type: documentation A change or addition to the documentation label Nov 27, 2024
@BrynjarFAune
Copy link
Author

Thank you for pointing me to the discussion in #1316. I’ve reviewed it thoroughly, but there don’t appear to be any additional tweaks there that I hadn’t already implemented.

I’ve followed the guide, and the containers are running without issues. I’m also able to create branches in the GUI, and right after creating a branch, I can perform actions like activating, deactivating, merging, or deleting it. However, once I navigate away, I lose access to the branch-specific pages because the Branches page (Branching > Branches) fails to load and displays a server error.

The error indicates that something on the main Branches page is attempting to query a nonexistent field (is_active). I assume this field should have been set up by the plugin at some point, but for some reason, it hasn’t been created in my instance.

Let me know if there are further debugging steps or adjustments I should try.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: documentation A change or addition to the documentation
Projects
None yet
Development

No branches or pull requests

2 participants