text-generation-webui icon indicating copy to clipboard operation
text-generation-webui copied to clipboard

Auto installer not working or fixing problems

Open rexzooly opened this issue 2 years ago • 7 comments

Describe the bug

Since I am using the auto installer I have no idea what's creating this problem but soon as it finished downloading the 12.1 files it then comes up with this.

fatal: detected dubious ownership in repository at 'F:/Ai/text-generation-webui-main'
'F:/Ai/text-generation-webui-main' is on a file system that does not record ownership
To add an exception for this directory, call:

        git config --global --add safe.directory F:/Ai/text-generation-webui-main
Command '"F:\Ai\text-generation-webui-main\installer_files\conda\condabin\conda.bat" activate "F:\Ai\text-generation-webui-main\installer_files\env" >nul && git pull --autostash' failed with exit status code '128'.

Exiting now.
Try running the start/update script again.
Press any key to continue . . .

The drive is exFAT, since I have no control over the script nor do I have any idea how it's doing things this so called exception can't be added as well it's don't clear how to do it as it's not even telling us about the file we really used it, feels like it's a default error just from git.

System info: image image

Is there an existing issue for this?

  • [X] I have searched the existing issues

Reproduction

Try install it on exFAT drive using the auto installer.

Screenshot

image

Logs

fatal: detected dubious ownership in repository at 'F:/Ai/text-generation-webui-main'
'F:/Ai/text-generation-webui-main' is on a file system that does not record ownership
To add an exception for this directory, call:

        git config --global --add safe.directory F:/Ai/text-generation-webui-main
Command '"F:\Ai\text-generation-webui-main\installer_files\conda\condabin\conda.bat" activate "F:\Ai\text-generation-webui-main\installer_files\env" >nul && git pull --autostash' failed with exit status code '128'.

Exiting now.
Try running the start/update script again.
Press any key to continue . . .

System Info

See Describe the bug

rexzooly avatar Nov 27 '23 21:11 rexzooly

When I try and re-run it

*******************************************************************
* WARNING: You haven't downloaded any model yet.
* Once the web UI launches, head over to the "Model" tab and download one.
*******************************************************************

Traceback (most recent call last):
  File "F:\Ai\text-generation-webui-main\server.py", line 15, in <module>
    import gradio as gr
ModuleNotFoundError: No module named 'gradio'
Press any key to continue . . .

rexzooly avatar Nov 27 '23 21:11 rexzooly

Ran into a similar problem, fixed by running the update script (though I'm on MacOS).

apopiak avatar Nov 30 '23 20:11 apopiak

I had a similar issue when running from a removable disk, the permissions were all over the place

git config --global --add safe.directory *

run from the root of the project should sort it for you, add that and then run the upgrade script and it should get you back to the right place.

LeonHarper avatar Dec 01 '23 15:12 LeonHarper

I did

git config --global --add safe.directory "*"

and the problem will not go away.

$ ./update_linux.sh You are not currently on a branch. Please specify which branch you want to merge with. See git-pull(1) for details.

git pull <remote> <branch>

Command '. "/ai/text-generation-webui/installer_files/conda/etc/profile.d/conda.sh" && conda activate "/ai/text-generation-webui/installer_files/env" && git pull --autostash' failed with exit status code '1'.

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

dr-soni avatar Dec 19 '23 12:12 dr-soni

I am not good at git, all I want to do is the go back to 7a98741 since the instruct_template is not broken there.

I did the following:

git clone https://github.com/oobabooga/text-generation-webui git config --global --add safe.directory '*' git checkout 7a98741 git status

and I run ./start_linux and ended up with this error

Command '. "/ai/text-generation-webui/installer_files/conda/etc/profile.d/conda.sh" && conda activate "/ai/text-generation-webui/installer_files/env" && git pull --autostash' failed with exit status code '1'.

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

I think I just missed something very simple.

dr-soni avatar Dec 19 '23 12:12 dr-soni

" Command '. "/ai/text-generation-webui/installer_files/conda/etc/profile.d/conda.sh" && conda activate "/ai/text-generation-webui/installer_files/env" && git pull --autostash' failed with exit status code '1'.

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

for me this seemed to be an issue with tracking not being set up for the git repository. I'm a novice at best for git so a better fix may exist, perhaps enabling tracking on this will be an issue later on... maybe a better fix would be to alter the the failing line.

powershell: git branch --set-upstream-to=origin/main main

then to continue install..

./update_windows.bat

hope this helps

kenjorgensen avatar Jan 01 '24 22:01 kenjorgensen

it did, ken.

slopcop avatar Jan 20 '24 12:01 slopcop

This issue has been closed due to inactivity for 2 months. If you believe it is still relevant, please leave a comment below. You can tag a developer in your comment.

github-actions[bot] avatar Apr 07 '24 23:04 github-actions[bot]