HTTPS Git Data Source, public repo, failing to sync, no username found #10761

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

Originally created by @BCurrell on GitHub (Feb 11, 2025).

Deployment Type

Self-hosted

NetBox Version

4.1.11

Python Version

3.12

Steps to Reproduce

  1. Create a new data source. I'm using the device-type-library repo:
  2. Click Sync

Expected Behavior

Public repo with HTTPS URL is cloned, no credentials are needed

Observed Behavior

A SyncError is raised:

ERROR:root:Fetching remote data failed (DefaultIdentityNotFound): no username found
Originally created by @BCurrell on GitHub (Feb 11, 2025). ### Deployment Type Self-hosted ### NetBox Version 4.1.11 ### Python Version 3.12 ### Steps to Reproduce 1. Create a new data source. I'm using the device-type-library repo: - Name: Netbox Community - Device Type Library - Type: Git - URL: https://github.com/netbox-community/devicetype-library.git - Enabled: checked - Everything else is left blank 2. Click `Sync` ### Expected Behavior Public repo with HTTPS URL is cloned, no credentials are needed ### Observed Behavior A SyncError is raised: ```none ERROR:root:Fetching remote data failed (DefaultIdentityNotFound): no username found ```
adam added the type: bugpending closurestatus: revisions needed labels 2025-12-29 21:35:39 +01:00
adam closed this issue 2025-12-29 21:35:39 +01:00
Author
Owner

@BCurrell commented on GitHub (Feb 11, 2025):

Some additional information:

  • I'm using Docker Compose, can provide the docker-compose YAML if relevant
  • I tried with SSH as well, but this failed because I'm using UID/GID in the compose YAML without defining the username and group specifically, meaning the SSH clone fails with SyncError('Fetching remote data failed (HangupException): No user exists for uid 998\r')
  • I tried setting a generic username, but the sync failed with the same error
  • I tried looking back through versions and thought this was a regression from when the HTTP proxy stuff was added, but commenting out the HTTP_PROXIES config option and the if block added in 92d8aa583a but no change
  • I've just tested this on another Netbox instance I have access to using Netbox 4.2.3, Python 3.12, similar Docker Compose setup, and the issue is still there.
@BCurrell commented on GitHub (Feb 11, 2025): Some additional information: - I'm using Docker Compose, can provide the docker-compose YAML if relevant - I tried with SSH as well, but this failed because I'm using UID/GID in the compose YAML without defining the username and group specifically, meaning the SSH clone fails with `SyncError('Fetching remote data failed (HangupException): No user exists for uid 998\r')` - I tried setting a generic username, but the sync failed with the same error - I tried looking back through versions and thought this was a regression from when the HTTP proxy stuff was added, but commenting out the `HTTP_PROXIES` config option and the if block added in https://github.com/netbox-community/netbox/commit/92d8aa583a020f85140665583b6e9f71a5d90029 but no change - I've just tested this on another Netbox instance I have access to using Netbox 4.2.3, Python 3.12, similar Docker Compose setup, and the issue is still there.
Author
Owner

@arthanson commented on GitHub (Feb 18, 2025):

@BCurrell can you please re-try, I tried on NetBox 4.2.3 and it worked correctly. I'm not sure if there is something specific to your setup or if there are some additional setup steps needed. It could be specific to your docker setup in which case you may want to open this as a discussion to see if you can get more suggestions from the community. I was running NetBox directly without docker.

Image

Image

@arthanson commented on GitHub (Feb 18, 2025): @BCurrell can you please re-try, I tried on NetBox 4.2.3 and it worked correctly. I'm not sure if there is something specific to your setup or if there are some additional setup steps needed. It could be specific to your docker setup in which case you may want to open this as a discussion to see if you can get more suggestions from the community. I was running NetBox directly without docker. ![Image](https://github.com/user-attachments/assets/aced579c-3529-4a46-b487-8bcf23f6e96f) ![Image](https://github.com/user-attachments/assets/39a0265b-0613-4372-b6e4-63caae084212)
Author
Owner

@BCurrell commented on GitHub (Feb 18, 2025):

Image

Image

Image

Image

I just noticed that this is using a worker container, so I wonder if I'm missing something in that container rather than the main netbox one.

@BCurrell commented on GitHub (Feb 18, 2025): ![Image](https://github.com/user-attachments/assets/6806abb9-3657-419a-b9b1-5ac29afd3691) ![Image](https://github.com/user-attachments/assets/d0d6c8e2-491a-48e3-8be3-4daf4a470208) ![Image](https://github.com/user-attachments/assets/c402f2f3-ae59-4bab-b32c-4d66aa959caa) ![Image](https://github.com/user-attachments/assets/0c01e24f-5b5f-418a-9459-5e8ed7f2fa07) I just noticed that this is using a worker container, so I wonder if I'm missing something in that container rather than the main netbox one.
Author
Owner

@github-actions[bot] commented on GitHub (Feb 26, 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 (Feb 26, 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 (Mar 6, 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 (Mar 6, 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.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#10761