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

Cloning master had connection issues #2375

Open
mzaiss opened this issue May 18, 2024 · 9 comments
Open

Cloning master had connection issues #2375

mzaiss opened this issue May 18, 2024 · 9 comments
Labels
bug installation legacy_v2 Issues, discussions and PRs related to Version 2.x need more info

Comments

@mzaiss
Copy link

mzaiss commented May 18, 2024

git clone ${GIT_URL} --branch "${GIT_BRANCH}"

I suggest adding --depth 1 in the clone line.

I get this error otherwise:
grafik

@s-martin s-martin added bug needs triage legacy_v2 Issues, discussions and PRs related to Version 2.x labels May 18, 2024
@mzaiss
Copy link
Author

mzaiss commented May 18, 2024

also pip module was not found for master installation.
i ran:

sudo apt install python3-pip

to resolve

@s-martin
Copy link
Collaborator

s-martin commented May 18, 2024

I think your connection broke while cloning, so it was not completed. Maybe try to put your box closer to the WiFi router.

I think all other errors are because of the not succeeded cloning.

@mzaiss
Copy link
Author

mzaiss commented May 18, 2024

Probably,
but I got this error repeatedly.
And --depth 1 solves it.
On the device there is also no reason not to not run --depth 1, is it?

@s-martin
Copy link
Collaborator

I agree depth 1 could be a good idea.

@s-martin
Copy link
Collaborator

Maybe --single-branch in addition to the current command is useful, because it doesn’t fetch all the other branches.

@s-martin
Copy link
Collaborator

s-martin commented May 19, 2024

This looks like a good overview: https://github.blog/2020-12-21-get-up-to-speed-with-partial-clone-and-shallow-clone/

From the article a „blobless clone“ (git clone --filter=blob:none <url>) looks like a good compromise.

A „shallow clone“ (git clone --depth=1 <url>) would also work for just building a Phoniebox, but when a user decides later to develop on that clone they would run into issues.

@AlvinSchiller @pabera @Groovylein

@s-martin s-martin added installation legacy_v2 Issues, discussions and PRs related to Version 2.x and removed legacy_v2 Issues, discussions and PRs related to Version 2.x needs triage labels May 19, 2024
@AlvinSchiller
Copy link
Collaborator

I compared the commands for used space after initial clone with checked out "develop":
Full: ~44MB
NoBlob: ~29MB
NoTree: ~27MB
Depth 1: ~26MB

IF we want to make a change here, i also would vote for the --filter=blob:none option, as it has reduced size and the least side effects, with development usecases.

@mzaiss
Nevertheless would be interesting, why this causes trouble in your setup, if it is not network related.

@s-martin
Copy link
Collaborator

s-martin commented Jun 4, 2024

@mzaiss did you check again? I still suspect a temporary issue like bad WiFi or a server, which is down. But if the issue still persists for you, we should investigate deeper.

@s-martin s-martin changed the title BUG when cloning master Cloning master had connection issues Jun 4, 2024
@mzaiss
Copy link
Author

mzaiss commented Jun 5, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug installation legacy_v2 Issues, discussions and PRs related to Version 2.x need more info
Projects
None yet
Development

No branches or pull requests

3 participants