Windows-runner step fails sometimes and shows no log-data
Asked by Dominik Bregovic:

Hallo Community, {#toc-hId--497380241}
--------------------------------------

#### In my company we are using Bitbucket pipelines and most of the time they work fine. {#toc-hId--1603770126}

#### But i have a problem with a pipeline that uses this image: {#toc-hId-883742707}

"image: mcr.microsoft.com/dotnet/sdk:6.0 + Windows-runners"  

*** ** * ** ***

#### **Step1:** {#toc-hId--923711756}

In this step i log into Azure and start a VM. (always successfull).After the VM starts it logs in automatically, starts the runnerscript on Auto-start and connects the VM with Bitbucket. This works also (always successfull).  
Here i have added a delay time with "sleep 300" in order to give the VM enought time to do it's thing.  

*** ** * ** ***

#### **Step2:** {#toc-hId-1563801077}

In the next step i want to execute a build-script which i call over the pipeline and ++*here things sometimes break.*++  
Sometimes the initial ++*"Build setup"*++doesn't execute properly and therefor my script can't even be called.  
On average it workes 4 out of 5 times. This number is not consistent.  

*** ** * ** ***

#### I will insert a screenshot where my pipeline fails here: {#toc-hId--243653386}

![Bitbucket_System_Error.png](https://community.atlassian.com/t5/image/serverpage/image-id/233927iD3B4F6C8C1D2D53E/image-size/large?v=v2&px=999 "Bitbucket_System_Error.png")  

*** ** * ** ***

#### Here the last screenshot of the unconsistent system error: {#toc-hId--2051107849}

![Pipeline_fail.png](https://community.atlassian.com/t5/image/serverpage/image-id/234140i50C46E035F54D317/image-size/large?v=v2&px=999 "Pipeline_fail.png")  

*** ** * ** ***

Best  
Dominik Bregovic


Answers:
author: Dominik Bregovic
body: .


author: Theodora Boudale
body: Hi Dominik,

**1)** Does the virtual machine where the runner is running meet the minimum requirements listed here for Windows?

* <https://support.atlassian.com/bitbucket-cloud/docs/runners/#Minimum-Requirements>

With regards to the memory requirement, please note that more than 8GB will be needed if you are running steps with 4x or 8x size.

**2)** Can you check the log file of the runner, find the entries for the date and time that such a failed build was executed and post them here? (Please make sure to sanitize any private data in the logs prior to sharing).

The runner log file is located at:

```
atlassian-bitbucket-pipelines-runner\temp\b609961f-891e-c872-c36b-f3f2c315d186\runner.log
```

where

* **atlassian-bitbucket-pipelines-runner** is the directory where you unzipped the runner zip
* **b609961f-891e-c872-c36b-f3f2c315d186** is an example runner uuid, there should be a directory with the uuid of your runner in **atlassian-bitbucket-pipelines-runner\\temp**

If your repos belong to a workspace on a paid billing plan, you can also create a support ticket if you prefer to share the logs privately (a support ticket will be visible only to you and Atlassian staff). You can create a ticket via <https://support.atlassian.com/contact/#/>, in "What can we help you with?" select "Technical issues and bugs" and then Bitbucket Cloud as product.

Kind regards,  
Theodora

comments: author: Dominik Bregovic
body: Hello Theodora,

#### 1. First to the requirements: {#toc-hId-204516566}

From my point of view it should work out because we do not have any 4x or 8x step sizes, but i will paste the system details of the VM in here:

![system.png](https://community.atlassian.com/t5/image/serverpage/image-id/235034i3DDA156F5B190624/image-size/large?v=v2&px=999 "system.png")

I hope you are able to zoom in, if not here is the another picture of the System Ram:

![SystemRam.png](https://community.atlassian.com/t5/image/serverpage/image-id/235035iD895763F1F46BCE1/image-size/large?v=v2&px=999 "SystemRam.png")

#### 2. Now to the log data: {#toc-hId--1602937897}

On Bitbucket i was able to see that the error occured on the 12th of Jannuary at 06:08:10 pm, which this picture shows:

![WintoolSystemError.png](https://community.atlassian.com/t5/image/serverpage/image-id/235036iF212AD5F8E430E50/image-size/large?v=v2&px=999 "WintoolSystemError.png")

#### In the path: {#toc-hId-884574936}

atlassian-bitbucket-pipelines-runner\\temp\\d134924d-3bb5-542a-961c-16f929e16016\\runner.2023-01-12.0.log

I am not able to see any log data after 2023-01-12 17:20:59 like this picture shows:

![WinToolLog.png](https://community.atlassian.com/t5/image/serverpage/image-id/235037i0E172F18C207F8C3/image-size/large?v=v2&px=999 "WinToolLog.png")

The whole log was sent to the support like you suggested.

Best

Dominik


author: Theodora Boudale
body: Hi Dominik,

Since you created a support ticket, it's best to focus on that, in order to avoid any confusion that may arise from troubleshooting the problem in two different places with two different people. Please make sure to provide the URL for some of these failed builds as well in the support ticket, so that my colleague who will work on your ticket can check additional logs from our side.

Kind regards,  
Theodora


Tags: .net

bitbucket-cloud

bitbucket-runners

cloud