-
-
Notifications
You must be signed in to change notification settings - Fork 5k
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
Cloudflared server not starting #1524
Comments
Same issue |
The API extension hides the real error, which is
It looks like cloudfare messed up their reverse proxy executable. It should fix itself eventually |
I made a fork of |
It's working fine now bro thanks |
I'm getting the same issue
I'm using the one click install version, running the command doesn't fix it |
The real issue why this bug is happening is that both the blocking api and then streaming api start the _run_cloudflared more or less at the same time, and if this file '/tmp/cloudflared-linux-amd64' is not downloaded and ready fast enough, they collide as the file is still downloading. This is only a working theory, but on my host machine it had no problem, but as soon as this was running in docker it did. TLDR: I changed the extensions/api/script.py and added a time.sleep(5) in between calls, fixed it for me.
|
I've tried adding time.sleep and installing the flask cloudflared fix with no success :( |
for some users, you simply have to give execute permissions to /tmp/cloudflared-linux-amd64 like this This should be clear from the logs
but that's easy to miss when you are also facing other errors. In my case I didn't have cloudflared installed on my os (Installing it on conda won't work, it has to be on the os) and I got the permission denied error, so when I installed it and the logs looked different I did not think of checking that file again, I assumed installing cloudflare would fix it and moved on to the next error I was facing. edit: also, make sure you have flask-cloudflared installed before trying anything suggested on this issue. |
Still doesnt work for me, any updates? |
This hypothesis might be correct because sometimes it would run for me and sometimes it would crash. But adding in the 5 second sleep fixed the issue for me |
I managed to run the API on one colab notebook and use it in another colab notebook using these steps In first colab notebook
this will return a url something like this In second colab notebook
Then run the file |
This issue has been closed due to inactivity for 6 weeks. If you believe it is still relevant, please leave a comment below. You can tag a developer in your comment. |
Describe the bug
Adding --public-api to the flags causes a traceback instead of starting a cloudflared server. flask-clouflared is installed separately, despite not being included in requirements.txt
Is there an existing issue for this?
Reproduction
Screenshot
No response
Logs
System Info
The text was updated successfully, but these errors were encountered: