Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

There was an error that occurred while attempting to bare clone the repository.

Nagaraja (MicroGenesis TechSoft)
Atlassian Partner
February 6, 2024

I am encountering an error while performing a bare clone of a repository. My repo's has a 3.1GB size 

Git command : ['git', 'clone', '--bare', URL]

returncode  = 128

Error:

stderr=b"Cloning into bare repository '/bucket_files/{b4de1a8f-5733-4507-902c-4dff4b4c81eb}/adp-t245-2.git'...\nerror: unpack-objects died of signal 9\nfatal: unpack-objects failed\n"

1 answer

1 vote
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 7, 2024

Hi @Nagaraja (MicroGenesis TechSoft),

The signal 9 usually indicates a memory-related issue.

You can run git config --list on a terminal application on this machine and check if there is a value in the output for the option pack.windowMemory. If there is, you can try increasing that value.

Otherwise, I would suggest checking memory usage on the machine during the clone operation. If memory seems to be close to the limit while the clone is happening, then more memory may be needed for the machine to perform that clone.

Kind regards,
Theodora

Nagaraja (MicroGenesis TechSoft)
Atlassian Partner
February 7, 2024

I ran the 'get config --list' command but the 'pack.windowMemory' option is not available in the output.
The memory usage limit has been set to a high value.

Nagaraja (MicroGenesis TechSoft)
Atlassian Partner
February 8, 2024

I encountered an error while attempting to clone a repository in BitBucket using 'bare clone'. However, I was able to successfully push the same repository into GitLab using 'bare clone' and 'mirror push'. I then ran the command ['git', 'clone', '--bare', URL] and it worked without any issues.

Could you please help me understand why it's not functioning properly in Betabucket?

Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 9, 2024

Hi @Nagaraja (MicroGenesis TechSoft),

I see that you created a support ticket for this issue and my colleague who is working on the ticket has asked for the repo URL to check for large files and dangling commits. You will receive further updates in the support ticket.

Kind regards,
Theodora

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events