-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Share link issues #3677
Comments
Taking a look! @Chris-pap what OS are you running? |
I'm also going to pin this issue. If anyone else is experiencing share link issues, please chime into this issue |
Windows 11 Home , 22H2, 22621.1413 |
Do you guys have an antivirus that's running? It looks like Windows Defender sometimes blocks the share link binary file from running. See #3230 |
I have windows defender and Malwarebytes, i deactivate both of them but it didn't fix the problem. |
|
@Chris-pap Check protection history, it may have already been quarantined so that when defender or Malwarebytes was deactivated, it wouldn't change anything. I am keep having the same problem. (blocked apps are not from gradio) |
Thanks @Ju1-js for letting us know. @Chris-pap, sorry this didn't solve it for you, I'll let you know if we can think of anything else that may be going on. |
Ok I've found solution for my problem on this link as Abidlabs shared I've whitelisted entire Folder instead of just the app.py which worked for me |
Most problems seem resolved. |
maybe you run the code in a server with the proxy? I closed the agents and the problem is solved. |
I met the same problem on Ubuntu, any solution? |
I also encountered this issue in a remote notebook that is different from colab, kaggle, sagemaker etc.
More details see: #2918 (comment) |
I met the same problem on ubuntu2204,have you solved this problem? |
With sd I edited the bat file added --share --gradio-auth someUsername:somePassword and it works just fine |
@abidlabs It seems that the tunneling.py code is not written to cover any error that happens with the underlaying binary. The while loop never exits and sometimes even misses errors. For example on my system (Windows 11), the line printed by
And now gradio will just wait forever for a line that reads while url == "":
if self.proc.stdout is None:
continue
line = self.proc.stdout.readline()
line = line.decode("utf-8")
if "start proxy success" in line:
result = re.search("start proxy success: (.+)\n", line)
if result is None:
raise ValueError("Could not create share URL")
else:
url = result.group(1)
return url In my opinion this code should have a limit of messages to check before exiting gracefully and raising a proper exception with all the lines logged to the error stream. |
Thanks @cansik I believe you are correct. Would you like to open a PR in which any errors are outputted to the user? |
I also found out that this was a problem while debugging. The while loop never exits.
|
From (closed) #6880 : Gradio Environment Information:Operating System: Windows gradio dependencies in your environment: aiofiles: 23.2.1 gradio_client dependencies in your environment: fsspec: 2023.12.1 |
I want to know how you solved it |
@abidlabs I changed mine NVAPI Key and nothing changed =/ |
I have the same issue actually. 2024-04-10 16:46:50 | ERROR | stderr | 2024/04/10 16:46:50 [W] [service.go:132] login to server failed: dial tcp 44.237.78.176:7000: i/o timeout
2024-04-10 16:46:50 | INFO | stdout |
2024-04-10 16:46:50 | INFO | stdout | Could not create share link. Please check your internet connection or our status page: https://status.gradio.app. I have: gradio 4.16.0 pypi_0 pypi
gradio-client 0.8.1 pypi_0 pypi I have seen it is possible to deal with it downgrading gradio to 3.9, but currenlty I have a strict requirement using this version. Reproductionimport gradio as gr
def greet(name):
return "Hello " + name + "!"
demo = gr.Interface(fn=greet, inputs="textbox", outputs="textbox")
demo.launch(share=True) # Share your demo with just 1 extra parameter 🚀 Logs2024-04-10 16:46:34 | INFO | httpx | HTTP Request: GET https://api.gradio.app/pkg-version "HTTP/1.1 200 OK"
2024-04-10 16:46:35 | INFO | httpx | HTTP Request: POST https://api.gradio.app/gradio-initiated-analytics/ "HTTP/1.1 200 OK"
2024-04-10 16:46:37 | INFO | stdout | Running on local URL: http://0.0.0.0:7860
2024-04-10 16:46:37 | INFO | httpx | HTTP Request: GET http://localhost:7860/startup-events "HTTP/1.1 200 OK"
2024-04-10 16:46:37 | INFO | httpx | HTTP Request: HEAD http://localhost:7860/ "HTTP/1.1 200 OK"
2024-04-10 16:46:40 | INFO | httpx | HTTP Request: GET https://api.gradio.app/v2/tunnel-request "HTTP/1.1 200 OK"
2024-04-10 16:46:50 | ERROR | stderr | 2024/04/10 16:46:50 [W] [service.go:132] login to server failed: dial tcp 44.237.78.176:7000: i/o timeout
2024-04-10 16:46:50 | INFO | stdout |
2024-04-10 16:46:50 | INFO | stdout | Could not create share link. Please check your internet connection or our status page: https://status.gradio.app.
2024-04-10 16:46:51 | INFO | httpx | HTTP Request: POST https://api.gradio.app/gradio-launched-telemetry/ "HTTP/1.1 200 OK"
2024-04-10 16:46:51 | INFO | httpx | HTTP Request: POST https://api.gradio.app/gradio-error-analytics/ "HTTP/1.1 200 OK" System Infogradio 4.16.0 pypi_0 pypi
gradio-client 0.8.1 pypi_0 pypi |
+1 Same issue as above |
still not works, no public link appears |
I encounter this issue today. I'm using File "${HOME_PATH}/min_test.py", line 8, in <module>
demo.launch(share=True)
File "${CONDA_PATH}/lib/python3.9/site-packages/gradio/blocks.py", line 1995, in launch
self.share_url = networking.setup_tunnel(
File "${CONDA_PATH}/lib/python3.9/site-packages/gradio/networking.py", line 190, in setup_tunnel
address = tunnel.start_tunnel()
File "${CONDA_PATH}/lib/python3.9/site-packages/gradio/tunneling.py", line 60, in start_tunnel
self.url = self._start_tunnel(BINARY_PATH)
File "${CONDA_PATH}/lib/python3.9/site-packages/gradio/tunneling.py", line 97, in _start_tunnel
line = self.proc.stdout.readline() After some digging, I find that the problem comes from frpc. In ${CONDA_PATH}/lib/python3.9/site-packages/gradio/frpc_linux_amd64_v0.2 http -n ${SHARE_TOKEN} -l 7860 -i 127.0.0.1 --uc --sd random --ue --server_addr 44.237.78.176:7000 --disable_log_color However, when I try to execute the command directly in the shell, I get |
Will look into this but just fyi |
Thank you ! I'm also wondering, are there any other ways to share my gradio app than requesting a shared link with frpc? For example, using IP and port? As far as I know, the local url is not available for remote access now. |
SSH port forwarding is always an option: https://www.ssh.com/academy/ssh/tunneling-example |
OK, thanks! Forgot this😂 |
So has this problem been solved? I am also facing the same problem now |
Which problem exactly? |
In practice, the following method can be used to solve this problem: |
Hi folks, just a heads up that we have discovered a security vulnerability with how share links were created in |
Sharing links works on my machines with pre-5.0.1 builds - but sadly broke after moving to 5! Unfortunately, the logs don't have much information to share as the
It seems like the new binary is getting killed on my machine? Looks like the binary got re-vamped and pushed to a new version, but not sure what the cause could be. Confirmed that sharing works as expected if I revert to a 4.x version. OS Info
|
I still cannot use gradio to create a shared link on Win 11 23H2. The gradio version is 5.1.0. The error is as follows.
|
Has the problem been sovled? I encounter it in my docker container with VS Code |
Describe the bug
There was an issue for this before, but even the test code that worked for them doesn't work for me.
The code works for me on Gradio 1.18.0, but the moment I upgrade past it ex. 1.19.x+. The share link breaks.
Is there an existing issue for this?
Reproduction
Logs
System Info
Severity
Blocking upgrade to latest gradio version
The text was updated successfully, but these errors were encountered: