Closed Rollbacke closed 1 year ago
using both --share
and --listen
at the same time should not be done.
lets focus on default startup. you get error?
ValueError: When localhost is not accessible, a shareable link must be created. Please set share=True or check your proxy settings to allow access to localhost.
that means that app could not bind to a port (default is 7860). if port is busy, it would say so. this just says its not working. i don't know what is a proxmox or how is vm created, but it seems that vm has limited networking capabilities or its locked down so much from security perspective it doesn't allow required network bindings.
OK, your post got me thinking.
Proxmox is an open-source hypervisor equivalent to VMware ESXi. It is a rather professional oriented "server" virtualization system. There is absolutely no limitation because it is a virtual machine under Promox. Port 7860 is free as this is a fresh install of ubuntu 22.04.
But !
On the other hand, being in a professional network, I had indeed the use of a proxy, which I had entered in the webui-user.sh
file:
export http_proxy="http://proxy:3128/"
export https_proxy="http://proxy:3128/"
export HTTP_PROXY="http://proxy:3128/"
export HTTPS_PROXY="http://proxy:3128/"
The proxy being very permissive, and the localhost having no link with the proxy (no system passes the localhost through a proxy, it would be completely stupid), I told myself that the problem could not come from there.
While listening to the network (tcpdump
), I spotted a repetitive stream that appeared to be blocked by the proxy.
By analyzing the proxy logs, it therefore seems that the "localhost" wants to go through the proxy... (I replace my private IP and my fqdn) :
1689769716.441 0 my_private_ip TCP_MISS/503 3975 GET http://localhost.my_fqdn:7860/startup-events - HIER_DIRECT/127.0.0.1 text/html
1689769716.444 0 my_private_ip TCP_MISS/503 325 HEAD http://localhost.my_fqdn:7860/ - HIER_DIRECT/127.0.0.1 text/html
1689769716.949 0 my_private_ip TCP_MISS/503 325 HEAD http://localhost.my_fqdn:7860/ - HIER_DIRECT/127.0.0.1 text/html
1689769717.453 0 my_private_ip TCP_MISS/503 325 HEAD http://localhost.my_fqdn:7860/ - HIER_DIRECT/127.0.0.1 text/html
1689769717.957 0 my_private_ip TCP_MISS/503 325 HEAD http://localhost.my_fqdn:7860/ - HIER_DIRECT/127.0.0.1 text/html
1689769718.462 0 my_private_ip TCP_MISS/503 325 HEAD http://localhost.my_fqdn:7860/ - HIER_DIRECT/127.0.0.1 text/html
1689770110.009 256 my_private_ip TCP_TUNNEL/200 5232 CONNECT api.github.com:443 - HIER_DIRECT/140.82.121.6 -
1689770118.728 21 my_private_ip TCP_TUNNEL/200 5884 CONNECT fonts.googleapis.com:443 - HIER_DIRECT/216.58.214.170 -
1689770120.057 0 my_private_ip TCP_MISS/503 3939 GET http://127.0.0.1:7860/startup-events - HIER_DIRECT/127.0.0.1 text/html
1689770120.060 0 my_private_ip TCP_MISS/503 325 HEAD http://127.0.0.1:7860/ - HIER_DIRECT/127.0.0.1 text/html
1689770120.565 0 my_private_ip TCP_MISS/503 325 HEAD http://127.0.0.1:7860/ - HIER_DIRECT/127.0.0.1 text/html
1689770121.069 0 my_private_ip TCP_MISS/503 325 HEAD http://127.0.0.1:7860/ - HIER_DIRECT/127.0.0.1 text/html
1689770121.573 0 my_private_ip TCP_MISS/503 325 HEAD http://127.0.0.1:7860/ - HIER_DIRECT/127.0.0.1 text/html
1689770122.078 0 my_private_ip TCP_MISS/503 325 HEAD http://127.0.0.1:7860/ - HIER_DIRECT/127.0.0.1 text/html
Maybe there is a change to fix this?
I forgot to specify, but by opening the ports 80/443 streams in my firewall (to avoid having to use a proxy for the python get) and unset the variables for the proxy, it works now.
those are connections created by gradio, not by app. i don't like it, but will have to trace it down and figure out how to monkey-patch gradio not to do those things.
OK. So keep an eye on it :D (Thanks !)
following-up, fonts.googleapis.com
access is fully optional and wrapped in try/except block. if there is no internet access, it will use default fonts set by os.
i don't know who is making connection to api.github.com
(could be any number of packages, its not the app itself), but access seems to be optional as well as as there are no issues working fully offline.
so basically, i cant reproduce your original issues - it seems to happen when those connections are neither ok or rejected, only when connection is hanging as its not either fulfilled or rejected.
Occasionally, if I have time, I'll try to find out which file is responsible to see if we can force a proxy exception for the localhost.
if you do find out, let me know.
Issue Description
Clone of the git with
git clone https://github.com/vladmandic/automatic
. There is nothing in my homedir. Nothing running.I launch the
webui.sh
for the first time, without any argument, I get :I launch the
webui.sh
with the argument--share
requested and--listen --debug
(I'm on the same network), I get :When I go on the web interface, everything seems OK. But when I try anything, I have this pop-up popping up on the top right:
I have nothing more displayed on the console... I don't know how to solve the problem. I tried deleting the generated JSON file, but it recreated it and the problem continues.
I specify that a clone of this VM works without any problem with Easy-Diffusion and SD 2.1. I haven't tested automatic1111's git, because I'm trying to get the SDXL to work, but I can't get it to work with a basic installation, with the SD 1.5 offered for download when launching
webui.sh
...Any help appreciated.
Version Platform Description
On a Proxmox 7.4-3 (2x AMD EPYC 7552 48-Core Processor, 512 GB RAM, 3x NVIDIA Tesla T4) Virtual Machine with : vCPU 8 core (mode host, AMD EPYC 7552 48-Core Processor) 64 GB RAM Passtrough PCI on 1x NVIDIA Tesla T4 Disk 64GB Fresh install Linux Ubuntu 22.04 (with the python3.10 embedded) NVIDIA drivers installed with :
For the venv :
My browser on my workstation is Firefox dev 106 (already tested on Google Chrome).
Acknowledgements