Git failing on second server

I’m sure this is just something silly that I did wrong, but for some reason we keep getting 404 returned for git sync, but the configuration matches another server that works fine

Any ideas?
(Invoke-WebRequest -Uri status.dev.azure.com -UseBasicParsing).StatusDescription
returns “OK”

Also, is there a way to trigger the git sync manually via command? Might help in troubleshooting

Here’s the output from the log (Information):

2022-07-07 16:27:39.530 -04:00 [INF] Running git sync, if configured.
2022-07-07 16:27:39.623 -04:00 [DBG] Repository directory already exists. Validating whether it is a valid git repository.
2022-07-07 16:27:39.631 -04:00 [DBG] Repository directory is valid repository.
2022-07-07 16:27:39.632 -04:00 [INF] Starting sync...
2022-07-07 16:27:39.640 -04:00 [DBG] Git has remote. Starting pull
2022-07-07 16:27:40.321 -04:00 [ERR] Failed to sync: request failed with status code: 404    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 80
   at LibGit2Sharp.Commands.Pull(Repository repository, Signature merger, PullOptions options) in /_/LibGit2Sharp/Commands/Pull.cs:line 37
   at UniversalAutomation.Git.GitService.Pull() in C:\actions-runner\_work\universal\universal\src\Universal.Server\Services\GitService.cs:line 296
   at UniversalAutomation.GitSyncService.TrySync() in C:\actions-runner\_work\universal\universal\src\Universal.Server\Services\GitSyncService.cs:line 144
   at UniversalAutomation.GitSyncService.Sync() in C:\actions-runner\_work\universal\universal\src\Universal.Server\Services\GitSyncService.cs:line 71
Product: PowerShell Universal
Version: 3.0.6

In 3.1, we’ll have the settings in the admin console and a button to trigger the git sync so it’ll be easier to test. In the meantime, you can try to run the git command locally.

git clone https://oauth-key-goes-here@github.com/username/repo.git
1 Like