Closed mahdiyari closed 7 months ago
Manually running Alltalk using the launch.sh script does run the webserver but when loading with webui, it doesn't.
Hi @mahdiyari
I'm not fantastically strong on Docker. It was actually created by someone other than me, though, quite a few people have used it with success (so I'm assured).
Happy to try match your setup though. I know it shouldn't matter, however, what OS are you running this on? (windows or linux)
Thanks
It was ubuntu 20.
Hi @mahdiyari
I've just given this a go on my Ubuntu 22.04 install. After installing docker, then downloading and starting the image, I performed the following:
sudo docker ps
to get the container ID of the current running image.
sudo docker inspect --format '{{ .NetworkSettings.IPAddress }}' YOUR-CONTAINERID-HERE
To pull the Virtual IP address that the container is being presented on.
In my case, my container ID was a818e37accf4 so I ran:
sudo docker inspect --format '{{ .NetworkSettings.IPAddress }}' a818e37accf4
Which gave me the IP address of 172.17.0.3 and I was able to connect through on that IP address.
Would you like to check if that allows you to get to the AllTalk server within the docker?
Thanks
Did you run it through text-generation-webui as an extension? The problem was text-generation-webui wouldn't launch the webserver so it couldn't generate TTS.
I run my container with --network=host
so it runs on my localhost
Hi @mahdiyari
I think I ended up at cross purposes there with you! (My fault for not reading correctly).
I think I can see what's occurring here, let me just confirm the scenario. You are using:
So what I suspect is going on, is when the Docker build of AllTalk was made (by a 3rd party) it performs a check to see if its running inside a Docker container and if it is, Docker actually takes over doing various tasks, which would be why youre not seeing the webserver start up. This may be a complicated one for me to have to figure a long term solution, as changing this would break the AllTalk Docker build......... However, I can give you what I think is a quick fix for youself.
In the script.py
file, you can delete lines 251 to 256 and it should skip the docker check and continue on with loading the webserver.
# Check if we're running in docker
if os.path.isfile("/.dockerenv"):
print(
f"[{params['branding']}Startup] \033[94mRunning in Docker. Please wait.\033[0m"
)
else:
If you arent ok to do that yourself and you need me to upload a custom file for you, let me know.
Thanks
Thanks for checking into this issue. It's fine I can edit the file.
Describe the bug Running text-generation-webui inside the docker container and followed the instructions on how to install using the bash script under extensions. After loading the extension, the webserver for alltalk doesn't start. I did test this exact setup outside the docker and there was no problem.
To Reproduce Steps to reproduce the behaviour:
Log messages