# Nuget restore step failing randomly

**URL:** <https://discuss.bitrise.io/t/nuget-restore-step-failing-randomly/1557>\
**Category:** Builds\
**Created:** [April 26, 2017, 3:39am UTC](https://discuss.bitrise.io/t/nuget-restore-step-failing-randomly/1557 "2017-04-26T03:39:33Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![freever](https://avatars.discourse-cdn.com/v4/letter/f/bc79bd/32.png) [@freever](https://discuss.bitrise.io/u/freever)\
**Post date:** [April 26, 2017, 3:39am UTC](https://discuss.bitrise.io/t/nuget-restore-step-failing-randomly/1557/1 "2017-04-26T03:39:33Z")

</div>

# Bitrise Build Issue Report template

## Description of the issue

I’m experiencing a sporadic nuget restore issue. The restore step fails to find a package - each time it fails it’s a different package. Most recently it was:

Unable to find version ‘4.0.1’ of package ‘Microsoft.Win32.Primitives’.

## Environment:

Xamarin Stable with Xcode 8, on macOS 10.12 (Sierra)  
Nuget Restore v1.0.3

## Reproducibility

- _Does a “Rebuild” help? (You can trigger a rebuild from the Build’s page, by clicking the “Rebuild” button in the top right corner of a finished build)_ :

YES

- _Does a rebuild without caches help? (You can remove the `Cache:Pull` and `Cache:Push` steps temporarily to not to use the cache, or [you can delete all the caches on the `Settings` tab of the app](http://devcenter.bitrise.io/caching/about-caching/#downloading-and-deleting-caches)._ :

Not applicable

- _If you have multiple different build configurations (workflows), does the issue affect all/more than one?_ :

YES

- _If it’s an issue which happens sporadically, what’s the frequency? (e.g. Once a day ; about x% of the builds)_ :

About half the time.

- _Does upgrading the build Step to the latest version help?_ :

NO

- _When did the issue start?_ 🙂

Hmm, last few days sometime

### Linux/Android stack builds

_Can it be reproduced by running the build locally, after doing a new git clone of the repository into the `/tmp` directory and running the build from there with the Bitrise CLI ( [https://www.bitrise.io/cli](https://www.bitrise.io/cli) )? If no, can it be reproduced with Docker (using the same docker images / environment we use on [bitrise.io](http://bitrise.io))? Related guide: [http://devcenter.bitrise.io/docker/run-your-build-locally-in-docker/](http://devcenter.bitrise.io/docker/run-your-build-locally-in-docker/) ._

### Other stacks

_Can it be reproduced by running the build locally with our CLI ( [https://www.bitrise.io/cli](https://www.bitrise.io/cli) ), after doing a new git clone of the repository into the `/tmp` directory and running the build from there with the Bitrise CLI ( [https://www.bitrise.io/cli](https://www.bitrise.io/cli) )?_

## Build log

_Please attach the build log (you can download the build log from the build’s page, once the build is finished, using the “Download log” button - floating at the bottom right corner of the log viewer), **or if you can’t attach the whole log** then send the **full log** through a private channel (e.g. email - [https://www.bitrise.io/contact](https://www.bitrise.io/contact) ), **with a link to the related GitHub issue**._

---

<div class="post-metadata">

**Author:** ![godreikrisztian](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/godreikrisztian/32/22_2.png) [@godreikrisztian](https://discuss.bitrise.io/u/godreikrisztian)\
**Post date:** [May 2, 2017, 8:45am UTC](https://discuss.bitrise.io/t/nuget-restore-step-failing-randomly/1557/2 "2017-05-02T08:45:43Z")

</div>

Hi @freever,  
thanks for the report!

Could you please share your failed build log with us? Or the build’s [bitrise.io](http://bitrise.io) URL.

P.S.: feel free to share it through email / the onsite chat if you don’t want to do it here, just copy paste this discussion’s URL.

---

<div class="post-metadata">

**Author:** ![viktorbenei](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/viktorbenei/32/18_2.png) [@viktorbenei](https://discuss.bitrise.io/u/viktorbenei)\
**Post date:** [May 22, 2017, 8:45am UTC](https://discuss.bitrise.io/t/nuget-restore-step-failing-randomly/1557/3 "2017-05-22T08:45:18Z")

</div>

Hi @freever,

Did you manage to solve the issue? Can we help?

---

<div class="post-metadata">

**Author:** ![freever](https://avatars.discourse-cdn.com/v4/letter/f/bc79bd/32.png) [@freever](https://discuss.bitrise.io/u/freever)\
**Post date:** [May 22, 2017, 9:05am UTC](https://discuss.bitrise.io/t/nuget-restore-step-failing-randomly/1557/4 "2017-05-22T09:05:11Z")

</div>

Yes, it disappeared as mysteriously as it arrived

---

<div class="post-metadata">

**Author:** ![viktorbenei](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/viktorbenei/32/18_2.png) [@viktorbenei](https://discuss.bitrise.io/u/viktorbenei)\
**Post date:** [May 22, 2017, 10:14am UTC](https://discuss.bitrise.io/t/nuget-restore-step-failing-randomly/1557/5 "2017-05-22T10:14:40Z")

</div>

Thanks for reporting @freever! As we did not change anything related, neither before the report nor after (we checked it but found nothing on our side) we suspect the issue was on the Xamarin (server) side, and not related to our servers/tools/steps.

If you’d see this happen again please let us know!  
Happy Building! 🙂
