Unable to add self-hoted git repo as Data source #8146

Closed
opened 2025-12-29 20:33:06 +01:00 by adam · 0 comments
Owner

Originally created by @sonicfather on GitHub (May 31, 2023).

NetBox version

v3.5.1

Python version

3.9

Steps to Reproduce

  1. add git repo as Data source, with credentials and https url
  2. try to sync and watch logs

Expected Behavior

Synchro of self-hosted git repo as Data source.

Observed Behavior

Logs return an ssl error whereas custom CA certificate are installed. I try to git clone directly from the netbox worker and it is OK, only git clone using Data source does not work.

In the log we got this error:

17:14:24 default: core.jobs.sync_datasource(job=<Job: 64d84b92-962a-4f1c-8a21-0d03cc1f5670>) (64d84b92-962a-4f1c-8a21-0d03cc1f5670)
ERROR:root:Fetching remote data failed (MaxRetryError): HTTPSConnectionPool(host='mygitlab.mydomain', port=443): Max retries exceeded with url: /myproject.git/info/refs?service=git-upload-pack (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get issuer certificate (_ssl.c:1123)')))
INFO:rq.worker:default: Job OK (64d84b92-962a-4f1c-8a21-0d03cc1f5670)
17:14:24 default: Job OK (64d84b92-962a-4f1c-8a21-0d03cc1f5670)
INFO:rq.worker:Result is kept for 500 seconds

Originally created by @sonicfather on GitHub (May 31, 2023). ### NetBox version v3.5.1 ### Python version 3.9 ### Steps to Reproduce 1) add git repo as Data source, with credentials and https url 2) try to sync and watch logs ### Expected Behavior Synchro of self-hosted git repo as Data source. ### Observed Behavior Logs return an ssl error whereas custom CA certificate are installed. I try to git clone directly from the netbox worker and it is OK, only git clone using Data source does not work. In the log we got this error: 17:14:24 default: core.jobs.sync_datasource(job=<Job: 64d84b92-962a-4f1c-8a21-0d03cc1f5670>) (64d84b92-962a-4f1c-8a21-0d03cc1f5670) ERROR:root:Fetching remote data failed (MaxRetryError): HTTPSConnectionPool(host='mygitlab.mydomain', port=443): Max retries exceeded with url: /myproject.git/info/refs?service=git-upload-pack (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get issuer certificate (_ssl.c:1123)'))) INFO:rq.worker:default: Job OK (64d84b92-962a-4f1c-8a21-0d03cc1f5670) 17:14:24 default: Job OK (64d84b92-962a-4f1c-8a21-0d03cc1f5670) INFO:rq.worker:Result is kept for 500 seconds
adam closed this issue 2025-12-29 20:33:06 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#8146