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

Error: Failed to Clone MapStore2 Submodule in GeoNode Docker Build #548

Open
somkietacode opened this issue Oct 8, 2024 · 2 comments
Open

Comments

@somkietacode
Copy link

Question:

I'm trying to build a GeoNode instance using Docker, but I'm encountering an error related to cloning the MapStore2 submodule from the geonode-mapstore-client repository. Below is the error output I'm receiving:

bash

=> [django 12/16] RUN yes w | pip install --src /usr/src -r requirements.txt 225.0s
=> => # fatal: fetch-pack: invalid index-pack output
=> => # fatal: clone of 'https://github.com/geosolutions-it/MapStore2.git' into submodule path '/usr/src/django-geonode-mapstore-client/geonode_mapstore_client/client/MapStore2' failed
=> => # Failed to clone 'geonode_mapstore_client/client/MapStore2'. Retry scheduled
Full Error Output:

=> ERROR [django 12/16] RUN yes w | pip install --src /usr/src -r requirements.txt && yes w | pip install -e .
...
202.5 error: RPC failed; curl 92 HTTP/2 stream 0 was not closed cleanly: CANCEL (err 8)
...
319.8 note: This error originates from a subprocess, and is likely not a problem with pip.
Dockerfile Snippet:
dockerfile
Copier le code
FROM geonode/geonode-base:4.1.0-ubuntu-22.04
LABEL GeoNode development team

Copy local GeoNode src inside container

COPY /src/. /usr/src/geonode/
WORKDIR /usr/src/geonode

Configurer Git pour augmenter la mémoire tampon et gérer les faibles vitesses de téléchargement

RUN git config --global http.postBuffer 524288000 &&
git config --global http.lowSpeedLimit 0 &&
git config --global http.lowSpeedTime 999999

RUN yes w | pip install --src /usr/src -r requirements.txt &&
yes w | pip install -e .

Cleanup apt update lists

RUN apt-get autoremove --purge &&
apt-get clean &&
rm -rf /var/lib/apt/lists/*

EXPOSE 8000
What I’ve Tried: Increased Git Buffer Size: I've set the http.postBuffer to 524288000 to handle larger data transfers. Network Checks: My internet connection seems stable, but the error persists. Additional Information: GeoNode Version: 4.1.0 Base Image: geonode/geonode-base:4.1.0-ubuntu-22.04 Question: How can I resolve the cloning issue with the MapStore2 submodule in my Docker build? Are there specific configurations or commands I should use to ensure a successful build?

Any help would be greatly appreciated!

@giohappy
Copy link
Contributor

giohappy commented Oct 9, 2024

It doesn't seem an error related to the geonode repo, rather something odd with your git client.

I have no clue right now, but out of curiosity why are you using GeoNode 4.1.0 instead of the latest version?

@somkietacode
Copy link
Author

Thank you very much sir. I thought that using version 4.1 would solve my problem, which is why I used it. Do you have any idea how to solve this problem?

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

2 participants