Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root


1 badge earned


Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!


Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.


Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!


After migration to the cloud, repositories with submodules can no longer be cloned

After migration to the cloud, repositories with submodules can no longer be cloned.

All repositories without submoduls work fine (clone, commit…). However, repositories with linked submodules are denied access.

I edit the new link in gitmodules file online (bitbucket) 

Structure of repository: repo coffeecontrol use submodules Mecofw and milkunit. Mecofw using submodules: FreeRtos, paho.mgtt-sn.embedded-c and  paho.mgtt.embedded-c

My unsuccessful steps to clone:

1. clear local projects
2. open SourceTree
3 .open Clone-Wizzard via File/Clone/New 
4. open Bitbucket
5. navigate to repository and copy SSH-Link via Button "Clone"
6. paste link into Clone-Wizzard (it schows that is a valid Git-repository)
7. define local path
8 .choose branch: master
9. clone depth: 0
10. recurse submodules: checked
11. no hardlinks: unchecked
12. start to clone


Cloning is aborted with the following error messages (new "cloud link:, old ssh://

git -c filter.lfs.smudge= -c filter.lfs.required=false -c diff.mnemonicprefix=false -c core.quotepath=false --no-optional-locks clone --branch master --recursive C:\work\coffeecontrol
Cloning into 'C:\work\coffeecontrol'...
Submodule 'lib/mecofw' ( registered for path 'lib/mecofw'
Submodule 'lib/milkunit' ( registered for path 'lib/milkunit'

Cloning into 'C:/work/coffeecontrol/lib/mecofw'...
Cloning into 'C:/work/coffeecontrol/lib/milkunit'...
Submodule path 'lib/mecofw': checked out '6400f06fdfcd7417626db4569420194ba71205ee'
Submodule 'ExtLibs/FreeRTOS' (ssh:// registered for path 'lib/mecofw/ExtLibs/FreeRTOS'
Submodule 'ExtLibs/paho.mqtt-sn.embedded-c' (ssh:// registered for path 'lib/mecofw/ExtLibs/paho.mqtt-sn.embedded-c'
Submodule 'ExtLibs/paho.mqtt.embedded-c' (ssh:// registered for path 'lib/mecofw/ExtLibs/paho.mqtt.embedded-c'

Cloning into 'C:/work/coffeecontrol/lib/mecofw/ExtLibs/FreeRTOS'...
FATAL ERROR: Network error: Connection timed out
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
fatal: clone of 'ssh://' into submodule path 'C:/work/coffeecontrol/lib/mecofw/ExtLibs/FreeRTOS' failed
Failed to clone 'ExtLibs/FreeRTOS'. Retry scheduled




1 answer

0 votes
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Jul 19, 2022

Hey Michael,

Based on the error messages you have received - it appears that the paths for some of the submodules are incorrect, and therefore the clone command fails as it can't access the URL. 
For example - this should read ssh://

Submodule 'ExtLibs/FreeRTOS' (ssh:// registered for path 'lib/mecofw/ExtLibs/FreeRTOS'

You will need to modify the URL's in your .gitmodules file for the paths which receive an error as listed in your output above, and then run the following command to reflect the changes:

git submodule sync --recursive

There is a guide detailing the steps located here: 

Hope this helps.


- Ben (Bitbucket Cloud Support)

Suggest an answer

Log in or Sign up to answer
AUG Leaders

Atlassian Community Events