microsoft / update-server-server-sync

Sample implementation of the "Windows Update Services: Server-Server" protocol.
MIT License
49 stars 20 forks source link

Unresolved bundle updates Exception when performing fetch on local upstream server #2

Open CyberGecko opened 3 years ago

CyberGecko commented 3 years ago

Greetings, I was testing the upsync tool functionality for another project when i came across the Exception 'Unresolved bundle updates' when performing a fetch operation on an locally running upsync server (also with the upsync tool).

The following commands were used to get this Exception:

Populating the upstream server filtered by the product id for Visual Studio 2017:

.\upsync.exe pre-fetch --master --destination master.zip

copy master.zip master-test.zip

.\upsync.exe fetch --product-filter 682005f1-54fd-440f-b3b3-b9c652351d01 --baseline .\master-test.zip

.\upsync.exe fetch-content --metadata-source .\master-test-1.zip --destination .\

.\upsync.exe fetch-config --destination server-config.json

.\upsync.exe run-upstream-server --endpoint localhost --metadata-source master-test-1.zip --content-source .\ --service-config server-config.json

Trying to get the updates from the local upstream server:

.\upsync.exe  pre-fetch --endpoint http://localhost:32150 --destination local_master.zip

copy .\local_master.zip .\local_master_test.zip

.\upsync.exe  fetch --product-filter 682005f1-54fd-440f-b3b3-b9c652351d01 --baseline local_master_test.zip

This is the Exception i get:

Unhandled Exception: System.Exception: Unresolved bundle updates
   at Microsoft.UpdateServices.Storage.CompressedMetadataStore.SaveBundlesIndex() in E:\src\temp\update-server-server-sync\src\library\Storage\Metadata\CompressedMetadataStore-BundlesIndex.cs:line 119
   at Microsoft.UpdateServices.Storage.CompressedMetadataStore.Commit() in E:\src\temp\update-server-server-sync\src\library\Storage\Metadata\CompressedMetadataStore-Sink.cs:line 44
   at Microsoft.UpdateServices.Tools.UpdateRepo.MetadataSync.FetchUpdates(QueryFilter queryToRun, CompressedMetadataStore destinationResult) in E:\src\temp\update-server-server-sync\src\sync-tool\MetadataFetch.cs:line 182
   at Microsoft.UpdateServices.Tools.UpdateRepo.MetadataSync.FetchUpdates(FetchUpdatesOptions options) in E:\src\temp\update-server-server-sync\src\sync-tool\MetadataFetch.cs:line 156
   at CommandLine.ParserResultExtensions.WithParsed[T](ParserResult`1 result, Action`1 action)
   at Microsoft.UpdateServices.Tools.UpdateRepo.Program.Main(String[] args) in E:\src\temp\update-server-server-sync\src\sync-tool\Program.cs:line 15

Is there something i am missing or is there an error in the upsync tool?

ldy985 commented 3 years ago

I get the same exception when fetching from https://sws.update.microsoft.com