Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Submodule update fail #30

Open
AAK350 opened this issue Dec 6, 2021 · 4 comments
Open

Submodule update fail #30

AAK350 opened this issue Dec 6, 2021 · 4 comments

Comments

@AAK350
Copy link

AAK350 commented Dec 6, 2021

As I follow the installation for Ubunto 20.04 , I get the below messages after i run ( $ git submodule update --init --recursive )

Cloning into '/home/aak/ardupilot/modules/libcanard'...
fatal: read error: Connection reset by peer
fatal: clone of 'git://github.com/ArduPilot/libcanard.git' into submodule path '/home/aak/ardupilot/modules/libcanard' failed
Failed to clone 'modules/libcanard'. Retry scheduled
Cloning into '/home/aak/ardupilot/modules/libcanard'...
fatal: read error: Connection reset by peer
fatal: clone of 'git://github.com/ArduPilot/libcanard.git' into submodule path '/home/aak/ardupilot/modules/libcanard' failed
Failed to clone 'modules/libcanard' a second time, aborting

@aircraftpilot5
Copy link

The same problem has occurred on my system. Did you fix it?

@mertgunduc
Copy link

I am having the same problem but with different submodule.

Submodule path 'modules/mavlink/pymavlink': checked out '57a6ab0e64468f214c1bfc8ed36fe0e2a900b2e7'
From https://github.com/DroneCAN/libuavcan

  • branch 3ef4b88d96466bbcf886f74d0ae169a4c8c1bdb0 -> FETCH_HEAD
    Submodule path 'modules/uavcan': checked out '3ef4b88d96466bbcf886f74d0ae169a4c8c1bdb0'
    fatal: remote error: upload-pack: not our ref 192295c4f9b67f4a20b0eabf74757b6597415f2b
    fatal: the remote end hung up unexpectedly
    Fetched in submodule path 'modules/uavcan/dsdl', but it did not contain 192295c4f9b67f4a20b0eabf74757b6597415f2b. Direct fetching of that commit failed.
    Submodule path 'modules/waf': checked out '51f1529bd20759642e9fd0a8db648da9ba380b18'
    Failed to recurse into submodule path 'modules/uavcan'

I guess, https://github.com/UAVCAN/dsdl this module doesnt exist anymore . How can I update my submodule reference to the new URI? Which I think this one: https://github.com/UAVCAN/public_regulated_data_types, or do I need to build https://github.com/DroneCAN/libuavcan, (the one printed in the terminal) this module independently?

@mertgunduc
Copy link

I fixed it, here is the solution : https://github.com/ArduPilot/ardupilot/issues/19523

Use this command to change the url of an existing remote repository:
git remote set-url origin https://github.com/UAVCAN/public_regulated_data_types.git

@umer936
Copy link
Member

umer936 commented Apr 19, 2023

Notice all the ones it was unable to fetch start with "git" rather than "https"

You can use that set-url command above to change each submodule to https, or you can use

git config --global url."https://github.com/".insteadOf [email protected]:
git config --global url."https://".insteadOf git://

to set a global config to rewrite the url with "https" instead of "git"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants