netbox-community / netbox

The premier source of truth powering network automation. Open source under Apache 2. Try NetBox Cloud free: https://netboxlabs.com/free-netbox-cloud/
http://netboxlabs.com/oss/netbox/
Apache License 2.0
16.1k stars 2.58k forks source link

Git-type data-source sync fails #17758

Closed Syl4r-v closed 2 weeks ago

Syl4r-v commented 2 weeks ago

Deployment Type

Self-hosted

Triage priority

This is preventing me from using NetBox

NetBox Version

v4.1.3

Python Version

3.11

Steps to Reproduce

  1. adding new data source
  2. set type to git
  3. give all the details and create
  4. try to sync but the job fails with error.

Doesn't matter if I use project token, personal token etc.

Expected Behavior

Netbox to fetch data from the remote repo.

Observed Behavior

sync job fails with: UnboundLocalError("cannot access local variable '_' where it is not associated with a value")

Syl4r-v commented 2 weeks ago

Okay, it was about issue #14371, problem is now solved. It would be nice to mention somewhere in the docs that you need Dulwich installed because it's not in the requirements.

jeremystretch commented 2 weeks ago

It would be nice to mention somewhere in the docs that you need Dulwich installed because it's not in the requirements.

It is noted in NetBox's installation instructions, as well as in the synchronized data feature guide.