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

Certificate Error with LibGit2Sharp #4008

Closed
adamdriscoll opened this issue Nov 1, 2024 · 1 comment
Closed

Certificate Error with LibGit2Sharp #4008

adamdriscoll opened this issue Nov 1, 2024 · 1 comment
Labels
Area-Git This issue is related to git synchronization. bug Something isn't working P3 - medium Medium impact issue. PowerShell Universal Issue relates to PowerShell Universal. Size - M This issue is a medium amount of work. support ticket This issue was the result of a support ticket. Support tickets receive priority. v5 Version 5 issue.

Comments

@adamdriscoll
Copy link
Member

Description of Issue

If a certificate isn't trusted but the user wants to be able to use the git instance (GitLab in this case), then we need a way to allow the git library to trust the certificate.

2024-10-31 15:04:16.087 -05:00 [ERR][UniversalAutomation.GitSyncService] Failed to sync: unknown certificate lookup failure: 16777280    at LibGit2Sharp.Core.Ensure.HandleError(Int32 result) in /_/LibGit2Sharp/Core/Ensure.cs:line 154
   at LibGit2Sharp.Core.Ensure.ZeroResult(Int32 result) in /_/LibGit2Sharp/Core/Ensure.cs:line 172
   at LibGit2Sharp.Core.Proxy.git_remote_fetch(RemoteHandle remote, IEnumerable`1 refSpecs, GitFetchOptions fetchOptions, String logMessage) in /_/LibGit2Sharp/Core/Proxy.cs:line 2289
   at LibGit2Sharp.Commands.Fetch(Repository repository, String remote, IEnumerable`1 refspecs, FetchOptions options, String logMessage) in /_/LibGit2Sharp/Commands/Fetch.cs:line 79
   at LibGit2Sharp.Commands.Pull(Repository repository, Signature merger, PullOptions options) in /_/LibGit2Sharp/Commands/Pull.cs:line 36
   at UniversalAutomation.Git.GitService.Pull() in C:\actions-runner\_work\universal\universal\src\Universal.Server\Services\Git\GitService.cs:line 731
   at UniversalAutomation.GitSyncService.TrySync(GitStatus status, Boolean force, GitSettings settings) in C:\actions-runner\_work\universal\universal\src\Universal.Server\Services\Git\GitSyncService.cs:line 194
   at UniversalAutomation.GitSyncService.Sync(Boolean force, Boolean throwOnFailure) in C:\actions-runner\_work\universal\universal\src\Universal.Server\Services\Git\GitSyncService.cs:line 95

Version

5.0.14

Severity

Medium

Hosting Method

MSI (Windows Service)

Operating System

Windows

Database

SQL

Licensed

Yes

Features

Git sync

Additional Environment data

No response

Screenshots/Animations

No response

@adamdriscoll adamdriscoll added bug Something isn't working PowerShell Universal Issue relates to PowerShell Universal. support ticket This issue was the result of a support ticket. Support tickets receive priority. Area-Git This issue is related to git synchronization. P3 - medium Medium impact issue. Size - M This issue is a medium amount of work. v5 Version 5 issue. labels Nov 1, 2024
@adamdriscoll adamdriscoll added this to the 5.0.15 milestone Nov 1, 2024
@adamdriscoll
Copy link
Member Author

This appears to be an error with the libgit2sharp library: libgit2/libgit2sharp#2106

@adamdriscoll adamdriscoll removed this from the 5.0.15 milestone Nov 5, 2024
@adamdriscoll adamdriscoll closed this as not planned Won't fix, can't repro, duplicate, stale Nov 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Git This issue is related to git synchronization. bug Something isn't working P3 - medium Medium impact issue. PowerShell Universal Issue relates to PowerShell Universal. Size - M This issue is a medium amount of work. support ticket This issue was the result of a support ticket. Support tickets receive priority. v5 Version 5 issue.
Projects
None yet
Development

No branches or pull requests

1 participant