Skip to content

Datasources stuck in sync when using git + ssh from ./manage.py syncdatasource #13812

@jacobw

Description

@jacobw

NetBox version

v3.6.1

Python version

3.11

Steps to Reproduce

In Data Sources
Add
Name: test
Type: git
URL: [email protected]:netbox-community/netbox.git
Create

docker compose exec netbox ./manage.py syncdatasource test

Expected Behavior

Usually leads to some sort of ssh question or failure, and I would expect the exception to set the status to failed, and then be able to hit sync again.

I'm not sure exactly how NetBox works, but looking at one of the exceptions...
core.exceptions.SyncError: Fetching remote data failed (HangupException):

class SyncError(Exception):
pass

Does this mean the status is not being reset correctly due to the status being left as syncing?

Observed Behavior

datasource.status = syncing in nbshell
'syncing' in gui
Sync option is now greyed out and cannot reset status without manually setting it in nbshell:

for d in DataSource.objects.filter(status='syncing'):
d.status = 'failed'
d.save()

Metadata

Metadata

Assignees

Labels

severity: lowDoes not significantly disrupt application functionality, or a workaround is availablestatus: acceptedThis issue has been accepted for implementationtype: bugA confirmed report of unexpected behavior in the application

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions