-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
wsarecv: An established connection was aborted by the software in your host machine. #183
Comments
It seems like you don't have a connection to your database. The "invalid connection" means the call to database has failed because there is no connection. |
Since websocket connections are failing too, it seems like you have a network problem. Maybe a misconfigured firewall? |
The firewall is turned off and this problem is still present, "Error:internal error(500)".So, I refresh the page, try a few more, it seems to be successful. However, this error message will still appear. |
There is no such problem under Linux system, such as CentOS 7.2 |
The problem seems to be due to network failure. Check your Windows Defender settings. See here: |
It does not seem to be related to Tinode. It's that something is blocking network connections. |
Have you been able to solve the problem? |
Not at all. Try it according to your suggestion, the firewall is also closed, but it failed. So, I found the local environment test, windows10 system, mysql-5.7, tinode v0.15.9-rc1, and found no errors. But running on my cloud server, I got this error. This kind of mistake seems to be unreproducible |
In your cloud setup, can you connect to the database from your compute instance? Like run mysql client in the same instance where you run Tinode server and try connecting to your mysql database using the same credentials as Tinode. |
Make sure your cloud instance of mysql is configured with the same user and password which you use in tinode config. |
Database account and password are no problem.It can be connected to the database from my compute instance. |
Is it possible that your mysql instance is preempted? Given the limited information you shared, I can't really think of anything else. Sorry. |
This is probably what's happening: go-sql-driver/mysql#657 |
After I modified the database configuration file, and set 'wait_timeout=30', the bug has not appeared.Thank you very much! |
Great! |
Subject of the issue
wsarecv: An established connection was aborted by the software in your host machine.
Is this a bug report of a feature request?
Your environment
Server-side
The text was updated successfully, but these errors were encountered: