-
-
Notifications
You must be signed in to change notification settings - Fork 308
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
On Update, Portmaster fails to connect to secure DNS #1320
Comments
Greetings and welcome to our community! As this is the first issue you opened here, we wanted to share some useful infos with you:
|
You seem to have a Portmaster restart issue, a restart of the whole system should fix that. |
A system restart does fix the "Secure DNS Error" issue, but the underlying issue reoccurs every time there is an update. Next time an update comes through, I'll be required to restart my system once more, despite Portmaster only prompting for a program restart. |
I am not sure why it cannot bind after a restart. How do you restart Portmaster? Do you use the buttons in the UI/notification or do you use systemctl directly? Is there any other service maybe grabbing that port between restart? I can see that the API is listening, as well as the IPv4 Secure DNS module - so it must be something else interfering. |
I've been using the buttons in notifications to restart after an update. I do have two other things running on port 53, but they're bound to different addresses (dnsmasq and systemd-resolved). Restarting portmaster (via UI or systemctl) seems to work perfectly fine when it's not the result of an update. So nothing is jumping into that port while I'm trying to replicate. I did notice that the loopback address used is different to what the documentation states.
However mine is 127.0.0.17:53 (as per netstat). The setting within portmaster still shows localhost:53. Additionally I forced Portmaster to restart onto the same address/port as systemd-resolved in an attempt to replicate the issue, but instead it threw a completely different error as per below.
I've turned on debug logging now, so will hopefully get more details when the next update is pushed out. |
And we're back! Unfortunately i don't really have much additional info. I'm fairly certain I've managed to rule out a port 53 conflict, see the
And the logs show only minimal info
Finally i tried changing the in use port (to a randomly picked 5392) and restarting Portmaster and I still got the same error
Restarting the Portmaster Service also does not seem to fix the issue, a full computer restart appears to be the only way. |
This issue has been automatically marked as inactive because it has not had activity in the past two months. If no further activity occurs, this issue will be automatically closed in one week in order to increase our focus on active topics. |
This issue has been automatically closed because it has not had recent activity. Thank you for your contributions. If the issue has not been resolved, you can find more information in our Wiki or continue the conversation on our Discord. |
What happened?
After getting an update notification for Portmaster, and the program completing the update, Portmaster will ask to restart. Upon doing so, it will fail to connect to the Secure DNS without a device restart. (Or possibly the underlying core program).
What did you expect to happen?
I expected Portmaster to restart and work correctly as normal.
How did you reproduce it?
Has occurred on three separate instances. Each after an update of Portmaster.
Additional information
Clicking on the "Secure DNS Error" notification shows the following:
"The internal DNS server failed. Restart Portmaster to try again. Error: listen udp [::1]:53: bind: cannot assign requested address."
Debug-Info: https://support.safing.io/privatebin/?091ff248e2feed83#FdK4Fev92YNdUz8LG6PkAiMTRjEnGiHCfR5TbzQ96DsE
The text was updated successfully, but these errors were encountered: