AppImageKit icon indicating copy to clipboard operation
AppImageKit copied to clipboard

error: Server does not allow request for unadvertised object

Open probonopd opened this issue 9 years ago • 8 comments

Cannot build on Ubuntu 14.04.5 LTS:

++ sudo cp resources/liblz4.pc /usr/lib/x86_64-linux-gnu/pkgconfig/
++ '[' -e /usr/bin/yum ']'
++ '[' -e /usr/bin/pacman ']'
+ git submodule init
+ git submodule update
error: Server does not allow request for unadvertised object 5be5d61e5e5a93911256b5f2106e50da0ca81e8d
Fetched in submodule path 'squashfs-tools', but it did not contain 5be5d61e5e5a93911256b5f2106e50da0ca81e8d. Direct fetching of that commit failed.

Does not help:

  • git reset --hard
  • git submodule foreach git reset --hard

probonopd avatar Nov 04 '17 10:11 probonopd

git submodule sync worked for me.

probonopd avatar Nov 04 '17 10:11 probonopd

https://superuser.com/questions/1240216/what-does-the-git-error-message-server-does-not-allow-request-for-unadvertised

native-api avatar Jan 17 '18 21:01 native-api

@probonopd I am having this same issue, but git submodule sync does not fix it. What exactly did you do?

gnzlbg avatar May 02 '18 08:05 gnzlbg

I think I just ran git submodule sync in the directory in question and it worked for me, but I really don't remember any specifics, sorry.

probonopd avatar May 02 '18 16:05 probonopd

As a note for future travelers. If you set your depth too shallow, the git server may be configured not to advertise each individual commit, IIUC. We weren't seeing this issue in travis ci since it clones with depth 50, but local checkouts were broken.

$ git submodule update --depth 50

fixed this for me.

nickdesaulniers avatar Oct 30 '18 21:10 nickdesaulniers

both don't fix it for me.Any other operate

zsq978663747 avatar Nov 12 '18 02:11 zsq978663747

@zsq978663747 your use case is most likely very different from this one. Here, a branch in a submodule was used that got lost, so the repository was updated by committing a new commit ID for it, and after pulling updating the submodules, all users could use it again.

The error is not bound to a specific scenario, it is quite generic, actually.

TheAssassin avatar Nov 12 '18 12:11 TheAssassin

@probonopd suggestion (git submodule sync) worked for me. I executed the sync, then the submodule update command worked as expected. Thanks @probonopd !

SharbelWired avatar Jan 15 '20 17:01 SharbelWired