Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,298,376
Community Members
 
Community Events
165
Community Groups

Runner giving error when it tries to clone the repo

Hi Team,

i configured the runner  on a linux host and tried running the pipeline. but it is giving below error in runner logs.

[2021-03-05 14:39:50,173] Completing step with result Result{status=ERROR, error=Some(Error{key='runner.bitbucket-pipelines.clone-container-failure', message='We couldn't clone the repository. Try rerunning the pipeline.', arguments={}})}.
[2021-03-05 14:39:50,435] Waiting for next step.

and in pipeline UI below error is showing.

Error

We couldn't clone the repository. Try rerunning the pipeline.

 

Please suggest.

Thanks,

Akshay

3 answers

0 votes
lassian Atlassian Team Mar 08, 2021

Hello,

Can you please run the following command and provide us the output.

df -T /tmp

I think your tmp directory might be backed by a tmpfs filesystem that will need to be allocated more memory in order to be big enough to be able contain the clone repository and any files generated by the step execution.

Alternatively you can create a runner working directory under your home directory and change the mount and working directory arguments in the docker run command to the full path to the new runner working directory.

e.g.

docker container run... -v $RUNNER_WORKING_DIRECTORY:$RUNNER_WORKING_DIRECTORY ... -e WORKING_DIRECTORY=$RUNNER_WORKING_DIRECTORY

As your home directory may have access to the full storage space of the disk rather than a tmpfs backed volume.

Kind Regards,

Nathan Burrell 

I tried the same, it's showing 

Filesystem Type 1K-blocks Used Available Use% Mounted on
/dev/mapper/vg00-tmp xfs 2086912 47964 2038948 3% /tmp

 

So /tmp folder still have space.

0 votes
lassian Atlassian Team Mar 07, 2021

Hi Akshay.

Can you please provide the full logs for the runner so we can diagnose the issue.

Kind Regards,

Nathan Burrell

Hi Nathan,

Below is the logs which pipeline UI showing and PFA runner and UI log.

+ GIT_LFS_SKIP_SMUDGE=1 retry 6 git clone --branch="testrunner" --depth 50

 $BUILD_DIRCloning into '/tmp/build'...fatal: Out of memory, malloc failed (tried to allocate 524288000 bytes)Attempt 1 of 6 failed.Retrying in 1 secondsCloning into '/tmp/build'...fatal: Out of memory, malloc failed (tried to allocate 524288000 bytes)Attempt 2 of 6 failed.Retrying in 2 secondsCloning into '/tmp/build'...fatal: Out of memory, malloc failed (tried to allocate 524288000 bytes)Attempt 3 of 6 failed.Retrying in 4 secondsCloning into '/tmp/build'...fatal: Out of memory, malloc failed (tried to allocate 524288000 bytes)Attempt 4 of 6 failed.Retrying in 8 secondsCloning into '/tmp/build'...fatal: Out of memory, malloc failed (tried to allocate 524288000 bytes)

 

Thanks,

Akshay

runnerlog.PNG

 

UIlog.PNG

Suggest an answer

Log in or Sign up to answer
TAGS

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you