Skip to content
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

Connection keeps closing #58

Closed
bropines opened this issue Oct 23, 2022 · 15 comments
Closed

Connection keeps closing #58

bropines opened this issue Oct 23, 2022 · 15 comments

Comments

@bropines
Copy link

bropines commented Oct 23, 2022

I'm testing a neural network on google colab. I put the output through bore and it closes the connection every minute for some reason. It also sometimes just closes the tunnel without informing the user

INFO proxy{id=0f4b7534-baa4-480e-b6c3-4993e9744751}: bore_cli::client: connection exited
image

@ekzhang
Copy link
Owner

ekzhang commented Oct 23, 2022

Could you provide more details — What "output" are you sending through bore? A minimal and reproducible example would be best so I could figure out how to best help you.

@Wushengyao
Copy link

It seems like a diffusion model of Novel AI.

@bropines
Copy link
Author

Could you provide more details — What "output" are you sending through bore? A minimal and reproducible example would be best so I could figure out how to best help you.

I am sending via the SD novelAI tunnel. They can give you a link to colab and you will test it yourself, you can also download it if necessary.

@Wushengyao
Copy link

Wushengyao commented Oct 24, 2022

It might not cause serious problems.
Local port open by webui.(https://github.com/AUTOMATIC1111/stable-diffusion-webui/blob/master/webui.py)
And expose it through bore by command:

bore local 7860 --to bore.pub

In the webui.py, we can see:

def wait_on_server(demo=None):
    while 1:
        time.sleep(0.5)
        if demo and getattr(demo, 'do_restart', False):
            time.sleep(0.5)
            demo.close()   //Cause "connection exited"
            time.sleep(0.5)
            break

@bropines
Copy link
Author

That's not what this is about. I'm using Naifu (I translated it into English for simplicity.). Constantly no matter what tunnel I catch an error streaming error although when running on the local pk, all is well. Also, bore.pub sometimes just stops working and when you go to it, a 404 error.

@ekzhang
Copy link
Owner

ekzhang commented Oct 25, 2022

That's strange. I'm not sure why the connection would not be working. It seems fairly reliable when I use it; connections being dropped has never been an issue from here in Boston.

How often does the connection get dropped? I wonder if it has something to do with your location or network connection?

@bropines
Copy link
Author

That's strange. I'm not sure why the connection would not be working. It seems fairly reliable when I use it; connections being dropped has never been an issue from here in Boston.

How often does the connection get dropped? I wonder if it has something to do with your location or network connection?

Well, purely in theory in russia with an awesome censorship system (slag) pages are often sluggish. I think I'll use a VPN, see if that helps. If so, I'll close the question.

@ekzhang
Copy link
Owner

ekzhang commented Oct 25, 2022

Got it, let me know how it goes. China's Great Firewall at least is known to arbitrarily send TCP RST packets to close connections, so it wouldn't surprise me if there were issues in Russia as well.

@bropines
Copy link
Author

bropines commented Oct 26, 2022

Got it, let me know how it goes. China's Great Firewall at least is known to
arbitrarily send TCP RST packets to close connections, so it wouldn't surprise me if there were issues in Russia as well.

It seems to be a colab problem. I've protested with and without VPN, with and without DPI bypass. Asked friends from Kazakhstan and Japan, same thing. I would try other services, but either you need to buy there (and russia is on the block), or like in Kaggle it will take hundreds of years to confirm the number

@ekzhang
Copy link
Owner

ekzhang commented Oct 26, 2022

Thanks for all of this work! Since it shows up on Colab, would you be able to share a minimal Colab notebook with me that is producing problems so I can take a look?

@bropines
Copy link
Author

Thanks for all of this work! Since it shows up on Colab, would you be able to share a minimal Colab notebook with me that is producing problems so I can take a look?

https://colab.research.google.com/drive/1SRa9ZCBWKNJMoXE5Q6Y0RuvYYvaXllyH?usp=sharing

That's where the error comes in.

@ekzhang
Copy link
Owner

ekzhang commented Oct 27, 2022

Thanks. I'm not sure what this notebook is doing, but the error message seems to indicate that a QUIC request is failing — is that what you saw? QUIC is a protocol over UDP, not TCP, so bore wouldn't be able to proxy that.

image

@bropines
Copy link
Author

bropines commented Oct 27, 2022

This displays logs from cloudflare tunnel. I update notebook so that it makes a tunnel only through bore
https://colab.research.google.com/drive/1SRa9ZCBWKNJMoXE5Q6Y0RuvYYvaXllyH?usp=sharing

Thanks. I'm not sure what this notebook is doing, but the error message seems to indicate that a QUIC request is failing — is that what you saw? QUIC is a protocol over UDP, not TCP, so bore wouldn't be able to proxy that.

image

@ekzhang
Copy link
Owner

ekzhang commented Oct 28, 2022

Hi @bropines, unfortunately your notebook still shows errors serving a QUIC connection. And I'm not sure where the error is originating since the code is quite complicated and hidden after a few thousand lines of logs. Could you provide a minimal reproduction of the issue?

@ekzhang ekzhang closed this as completed Nov 11, 2022
@bropines
Copy link
Author

As I figure out how to check whether colab or the script is to blame, I'll open it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants