Closed Cosplayeridol closed 5 months ago
gradio-app/gradio#8186
Gradio is working on fixing this issue. Currently, using ngrok tunnels and older versions of SD seems to solve the problem, or you can wait for share link infrastructure fixed
Gradio is working on fixing this issue. Currently, using ngrok tunnels and older versions of SD seems to solve the problem, or you can wait for share link infrastructure fixed
When gradio is down, using ngrok to access webui will cause an error that the background service cannot be accessed. I accessed the SD1.5 project through another commonly used old cloab project. An error occurred in gradio and the project could not start normally. It seems that the impact of gradio down is greater than imagined.
However, how to solve the problem that the 127.0.0.1:7860 link address cannot be accessed. This address cannot be accessed normally when the project is running normally on weekdays. Because this is a project running on colab, I can rule it out locally. The scope of the error is very limited. If it is an SD project deployed locally, it seems to be a problem with the files in C:\Windows\System32\drivers\etc\hosts under normal circumstances.🧐
I tested it based on version 1.6 of SD. Both links can be opened and generate normally. I need screenshots of any relevant errors from you
The code for step 4 is pasted in the issue.I'm not sure if I'm the only one having this problem.(https://github.com/s4afa451dgf415f/colab_stable_diffusion/issues/50#issue-2274745465)
127.0.0.1 is your localhost and can't be opened. You need to open links of the type gradio.live (version 1.6.0 can generate) or ngrok-free.app (get Authtoken from ngrok.com and fill in ngrok input).
127.0.0.1 is your localhost and can't be opened. You need to open links of the type gradio.live (version 1.6.0 can generate) or ngrok-free.app (get Authtoken from ngrok.com and fill in ngrok input).
I understand. I originally thought that the link at 127.0.0.1:7860 was accessible. Because I see it generates two links for me to choose from.
As a ngrok alternative you can use cloudflare. Just put and run this code before Step4:
!wget https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-amd64.deb
!dpkg -i cloudflared-linux-amd64.deb
!cloudflared tunnel --url http://localhost:7860
for more info: https://developers.cloudflare.com/cloudflare-one/connections/connect-networks/do-more-with-tunnels/trycloudflare/
Gradio has intermittent problems that prevent it from creating a shared connection. After using ngrok to enter webui, the page prompts that the background service cannot be connected, resulting in many errors in the webui function. What I want to ask is how to solve the problem of 127.0.0.1:7860 access failure? I checked the relevant information. In a certain file of colab, it seems that a code such as share=true needs to be filled in to ensure that 127.0.0.1:7860 can be accessed normally.
▼This is the log of step 4 run /content/stable-diffusion-webui Python 3.10.12 (main, Nov 20 2023, 15:14:05) [GCC 11.4.0] Version: v1.6.0 Commit hash: 5ef669de080814067961f28357256e8fe27544f4 Installing clip Installing open_clip Cloning Stable Diffusion into /content/stable-diffusion-webui/repositories/stable-diffusion-stability-ai... Cloning into '/content/stable-diffusion-webui/repositories/stable-diffusion-stability-ai'... remote: Enumerating objects: 580, done. remote: Counting objects: 100% (571/571), done. remote: Compressing objects: 100% (306/306), done. remote: Total 580 (delta 278), reused 446 (delta 247), pack-reused 9 Receiving objects: 100% (580/580), 73.44 MiB | 14.18 MiB/s, done. Resolving deltas: 100% (278/278), done. Cloning Stable Diffusion XL into /content/stable-diffusion-webui/repositories/generative-models... Cloning into '/content/stable-diffusion-webui/repositories/generative-models'... remote: Enumerating objects: 941, done. remote: Total 941 (delta 0), reused 0 (delta 0), pack-reused 941 Receiving objects: 100% (941/941), 43.85 MiB | 11.07 MiB/s, done. Resolving deltas: 100% (490/490), done. Cloning K-diffusion into /content/stable-diffusion-webui/repositories/k-diffusion... Cloning into '/content/stable-diffusion-webui/repositories/k-diffusion'... remote: Enumerating objects: 1340, done. remote: Counting objects: 100% (1340/1340), done. remote: Compressing objects: 100% (433/433), done. remote: Total 1340 (delta 940), reused 1259 (delta 900), pack-reused 0 Receiving objects: 100% (1340/1340), 238.52 KiB | 845.00 KiB/s, done. Resolving deltas: 100% (940/940), done. Cloning CodeFormer into /content/stable-diffusion-webui/repositories/CodeFormer... Cloning into '/content/stable-diffusion-webui/repositories/CodeFormer'... remote: Enumerating objects: 594, done. remote: Counting objects: 100% (283/283), done. remote: Compressing objects: 100% (101/101), done. remote: Total 594 (delta 201), reused 182 (delta 182), pack-reused 311 Receiving objects: 100% (594/594), 17.31 MiB | 10.11 MiB/s, done. Resolving deltas: 100% (288/288), done. Cloning BLIP into /content/stable-diffusion-webui/repositories/BLIP... Cloning into '/content/stable-diffusion-webui/repositories/BLIP'... remote: Enumerating objects: 277, done. remote: Counting objects: 100% (165/165), done. remote: Compressing objects: 100% (30/30), done. remote: Total 277 (delta 137), reused 136 (delta 135), pack-reused 112 Receiving objects: 100% (277/277), 7.03 MiB | 12.17 MiB/s, done. Resolving deltas: 100% (152/152), done. Installing requirements for CodeFormer Installing requirements Downloading pose_landmark_full.tflite... Downloading pose_web.binarypb... Downloading pose_solution_packed_assets.data... Downloading pose_solution_simd_wasm_bin.wasm... Downloading pose_solution_packed_assets_loader.js... Downloading pose_solution_simd_wasm_bin.js... loading WD14-tagger reqs from /content/stable-diffusion-webui/extensions/stable-diffusion-webui-wd14-tagger/requirements.txt Checking WD14-tagger requirements. Installing sd-webui-controlnet requirement: fvcore Installing sd-webui-controlnet requirement: mediapipe Installing sd-webui-controlnet requirement: svglib Installing sd-webui-controlnet requirement: changing albumentations version from 1.3.1 to 1.4.3 Installing sd-webui-controlnet requirement: onnxruntime-gpu ControlNet init warning: Unable to install insightface automatically. Please try run
pip install insightface
manually. Installing sd-webui-controlnet requirement: handrefinerportable Installing sd-webui-controlnet requirement: depth_anything Installing sd-webui-controlnet requirement: dsine Installing sd-webui-prompt-all-in-one: execjs Installing sd-webui-prompt-all-in-one: pathos Installing sd-webui-prompt-all-in-one: openai Installing sd-webui-prompt-all-in-one: boto3 Installing sd-webui-prompt-all-in-one: aliyunsdkcore Installing sd-webui-prompt-all-in-one: aliyunsdkalimt Launching Web UI with arguments: --share --lowram --disable-safe-unpickle --disable-console-progressbars --xformers --enable-insecure-extension-access --opt-sub-quad-attention --no-half-vae --opt-channelslast --api --theme=dark Tag Autocomplete: Creating frequency database Tag Autocomplete: Database successfully created Tag Autocomplete: Could not locate model-keyword extension, Lora trigger word completion will be limited to those added through the extra networks menu. ControlNet preprocessor location: /content/stable-diffusion-webui/extensions/sd-webui-controlnet/annotator/downloads 2024-05-02 06:34:52,679 - ControlNet - INFO - ControlNet v1.1.446 2024-05-02 06:34:53,113 - ControlNet - INFO - ControlNet v1.1.446 ui config file not found, using default values sd-webui-prompt-all-in-one background API service started successfully. == WD14 tagger /gpu:0, uname_result(system='Linux', node='a90718bd1d73', release='6.1.58+', version='#1 SMP PREEMPT_DYNAMIC Sat Nov 18 15:31:17 UTC 2023', machine='x86_64') == Checkpoint not found; loading fallback AbyssOrangeMix2.safetensors Calculating sha256 for /content/stable-diffusion-webui/models/Stable-diffusion/AbyssOrangeMix2.safetensors: 2024-05-02 06:34:54,583 - ControlNet - INFO - ControlNet UI callback registered. Running on local URL: http://127.0.0.1:7860/Could not create share link. Missing file: /usr/local/lib/python3.10/dist-packages/gradio/frpc_linux_amd64_v0.2.
Please check your internet connection. This can happen if your antivirus software blocks the download of this file. You can install manually by following these steps: