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

Issue with Git Network Access During Installation #6691

Open
1 task done
P1LeFR opened this issue Jan 23, 2025 · 0 comments
Open
1 task done

Issue with Git Network Access During Installation #6691

P1LeFR opened this issue Jan 23, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@P1LeFR
Copy link

P1LeFR commented Jan 23, 2025

Describe the bug

If you have a firewall enabled, you will need to ensure that multiple network accesses are allowed during the installation process. However, it's important to note that for the Git step, no retry mechanism is currently in place.

For other steps (such as Python-related tasks), if a network access attempt fails initially, retries will occur, giving the firewall time to open the necessary ports. Unfortunately, this isn't the case for the Git step.

"Initialized empty Git repository in E:/text-generation-webui-2.3/.git/
fatal: unable to access 'https://github.com/oobabooga/text-generation-webui/': Failed to connect to github.com port 443 after 42 ms: Couldn't connect to server
Command '"E:\text-generation-webui-2.3\installer_files\conda\condabin\conda.bat" activate "E:\text-generation-webui-2.3\installer_files\env" >nul && git init -b main && git remote add origin https://github.com/oobabooga/text-generation-webui && git fetch && git symbolic-ref refs/remotes/origin/HEAD refs/remotes/origin/main && git reset --hard origin/main && git branch --set-upstream-to=origin/main' failed with exit status code '128'.

Exiting now.
Try running the start/update script again."

As shown, the installation does not complete successfully. Running the start_windows script again will not resume the installation but instead will attempt to launch the text generation tool.

Suggested Fix:
To resolve this, you can modify the script to add a retry mechanism for Git network access. This would attempt up to 5 retries in case of network failure, allowing the necessary time for the firewall to open the required ports.

Is there an existing issue for this?

  • I have searched the existing issues

Reproduction

Set your firewall to manually allow all connections.

Screenshot

No response

Logs

"Initialized empty Git repository in E:/text-generation-webui-2.3/.git/
fatal: unable to access 'https://github.com/oobabooga/text-generation-webui/': Failed to connect to github.com port 443 after 42 ms: Couldn't connect to server
Command '"C:\text-generation-webui-2.3\installer_files\conda\condabin\conda.bat" activate "C:\text-generation-webui-2.3\installer_files\env" >nul && git init -b main && git remote add origin https://github.com/oobabooga/text-generation-webui && git fetch && git symbolic-ref refs/remotes/origin/HEAD refs/remotes/origin/main && git reset --hard origin/main && git branch --set-upstream-to=origin/main' failed with exit status code '128'.

Exiting now.
Try running the start/update script again."

System Info

windows 11 24H2 & installation from zip file for portable text-generation-webui-2.3
@P1LeFR P1LeFR added the bug Something isn't working label Jan 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant