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

Tinc stops working properly after waking up from hibernation #224

Open
zingmars opened this issue May 31, 2019 · 2 comments
Open

Tinc stops working properly after waking up from hibernation #224

zingmars opened this issue May 31, 2019 · 2 comments
Labels
1.1 Issue related to Tinc 1.1 needs_investigation Unexpected behaviours with uncertain causes - needs more investigation

Comments

@zingmars
Copy link

On Windows 10 v1903 using Tinc1.1pre17 and the TAP drivers shipped with this version.

After waking up from hibernation tinc reconnects, but I'm unable to either ping or connect to any device connected (connection timed out). What's weirder, when I try to restart or turn tinc off, it will no longer terminate nicely and I have to terminate the process. Here's a log with -d3:

Trying to connect to server (SERVERIP port 655)
Timeout while connecting to server (SERVERIP port 655)
Closing connection with server (SERVERIP port 655)
Could not set up a meta connection to server
Trying to re-establish outgoing connection in 5 seconds
Trying to connect to server (SERVERIP port 655)
Connected to server (SERVERIP port 655)
Connection with server (SERVERIP port 655) activated
UDP address of server set to SERVERIP port 655
UDP address of anotherdevice set to MYIP port 655
Autoconnecting to anotherdevice
Trying to connect to anotherdevice (MYIP port 655)
Connected to anotherdevice (MYIP port 655)
Timeout from anotherdevice (MYIP port 655) during authentication
Closing connection with anotherdevice (MYIP port 655)
Could not set up a meta connection to anotherdevice
Trying to re-establish outgoing connection in 5 seconds
Could not set up a meta connection to anotherdevice
Trying to re-establish outgoing connection in 10 seconds
Could not set up a meta connection to anotherdevice
Trying to re-establish outgoing connection in 15 seconds
Could not set up a meta connection to anotherdevice
Trying to re-establish outgoing connection in 20 seconds
Could not set up a meta connection to anotherdevice
Trying to re-establish outgoing connection in 25 seconds
Could not set up a meta connection to anotherdevice
Trying to re-establish outgoing connection in 30 seconds
Could not set up a meta connection to anotherdevice
Trying to re-establish outgoing connection in 35 seconds
Could not set up a meta connection to anotherdevice
Trying to re-establish outgoing connection in 40 seconds
Could not set up a meta connection to anotherdevice
Trying to re-establish outgoing connection in 45 seconds
Could not set up a meta connection to anotherdevice
Trying to re-establish outgoing connection in 50 seconds
Could not set up a meta connection to anotherdevice
Trying to re-establish outgoing connection in 55 seconds
Could not set up a meta connection to anotherdevice
Trying to re-establish outgoing connection in 60 seconds
Could not set up a meta connection to anotherdevice
Trying to re-establish outgoing connection in 65 seconds
Could not set up a meta connection to anotherdevice
Trying to re-establish outgoing connection in 70 seconds
Could not set up a meta connection to anotherdevice
Trying to re-establish outgoing connection in 75 seconds
Could not set up a meta connection to anotherdevice
Trying to re-establish outgoing connection in 80 seconds
Could not set up a meta connection to anotherdevice
Trying to re-establish outgoing connection in 85 seconds
Could not set up a meta connection to anotherdevice
Trying to re-establish outgoing connection in 90 seconds
Could not set up a meta connection to anotherdevice
Trying to re-establish outgoing connection in 95 seconds
Could not set up a meta connection to anotherdevice
Trying to re-establish outgoing connection in 100 seconds
Could not set up a meta connection to anotherdevice
Trying to re-establish outgoing connection in 105 seconds
Could not set up a meta connection to anotherdevice
Trying to re-establish outgoing connection in 110 seconds
Error while reading from Windows tap device {tap-dev}: (31) A device attached to the system is not functioning.
Awaking from dead after 11363 seconds of sleep
Forcing connection close after sleep time server (SERVERIP port 655)
Closing connection with server (SERVERIP port 655)
Trying to connect to server (SERVERIP port 655)
Could not set up a meta connection to anotherdevice
Trying to re-establish outgoing connection in 115 seconds
Expiring symmetric keys
Timeout while connecting to server (SERVERIP port 655)
Closing connection with server (SERVERIP port 655)
Trying to connect to server (SERVERIP port 655)
Timeout while connecting to server (SERVERIP port 655)
Closing connection with server (SERVERIP port 655)
Could not set up a meta connection to server
Trying to re-establish outgoing connection in 5 seconds
Trying to connect to server (SERVERIP port 655)
Connected to server (SERVERIP port 655)
Connection with server (SERVERIP port 655) activated
UDP address of server set to SERVERIP port 655
UDP address of anotherdevice set to MYIP port 655
Could not set up a meta connection to anotherdevice
Trying to re-establish outgoing connection in 120 seconds
Could not set up a meta connection to anotherdevice
Trying to re-establish outgoing connection in 125 seconds
Could not set up a meta connection to anotherdevice
Trying to re-establish outgoing connection in 130 seconds
Got console shutdown request
Closing connection with server (SERVERIP port 655)
Disabling Windows tap device
Got console shutdown request
Got console shutdown request
Got console shutdown request
Got console shutdown request
Got console shutdown request

(Also I have no idea why it won't connect to anotherdevice. It connects just fine after I ping it or attempt to connect to it's address using any software, but if I don't it just keeps trying to connect and failing like this).

At the end the "Console shutdown request" entries are caused by me spamming ctrl+c in the console window trying to stop it. In this state the only way to actually stop Tinc is to either close the console window (not an option if started as a service) or kill its process. The only thing that has changed altely is me setting manual metric values for the tinc interface so that Windows would use a DNS server exposed to the Tinc network, but even then it took a while for this to start happening so I'm not sure if it's related.

@fangfufu fangfufu added the needs_investigation Unexpected behaviours with uncertain causes - needs more investigation label Jun 23, 2021
@fangfufu
Copy link
Collaborator

Do we have the same problem in the stable version of tinc?

@fangfufu fangfufu added the 1.1 Issue related to Tinc 1.1 label Jun 25, 2021
@zingmars
Copy link
Author

zingmars commented Jun 27, 2021

@fangfufu Not sure, haven't tried it since I exclusively use 1.1 because it has many features 1.0 does not. My current "fix" is a scheduled task that fires after waking up that will simply kill tinc and start it again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1.1 Issue related to Tinc 1.1 needs_investigation Unexpected behaviours with uncertain causes - needs more investigation
Projects
None yet
Development

No branches or pull requests

2 participants