text-generation-webui
text-generation-webui copied to clipboard
Auto installer not working or fixing problems
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:
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
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
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 . . .
Ran into a similar problem, fixed by running the update script (though I'm on MacOS).
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.
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.
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.
" 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
it did, ken.
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.