valet-linux-plus icon indicating copy to clipboard operation
valet-linux-plus copied to clipboard

Ubuntu 22.04 connectivity issues

Open AboElnoor opened this issue 3 years ago • 1 comments

I've installed it on upgraded Ubuntu 22.04.

I have the following issues: 1- Valet sometimes stops working, so I restart it to make it work again. 2- It affects firefox and Postman connection to the internet, even when all services are working well. (It works when I restart Valet)

Any suggested solutions here?

AboElnoor avatar Sep 12 '22 08:09 AboElnoor

@AboElnoor Facing the same issue, it is something with dnsmasq service that we use for custom domains, I am working on it, will keep you posted for the solution.

uttamrabadiya avatar Sep 12 '22 13:09 uttamrabadiya

I've installed it on upgraded Ubuntu 22.04.

I have the following issues: 1- Valet sometimes stops working, so I restart it to make it work again. 2- It affects firefox and Postman connection to the internet, even when all services are working well. (It works when I restart Valet)

Any suggested solutions here?

im facing the same issue here

Azim-Sabbir avatar Nov 24 '22 15:11 Azim-Sabbir

@Azim-Sabbir This is due to dnsmasq, and we are having bit of uncertainity due to other priorites but we will release this fix very soon. Thanks!

uttamrabadiya avatar Dec 07 '22 05:12 uttamrabadiya

@Azim-Sabbir This is due to dnsmasq, and we are having bit of uncertainity due to other priorites but we will release this fix very soon. Thanks!

@uttamrabadiya Thank you so much for your time and response, but this issue is causing a lot of failures for our team, as some devices can't connect to the internet when valet is running, and we have to stop valet to enable internet access every time. I understand your priorities, and I'm very thankful for your effort and this software, and I hope you can give it a higher priority to fix it as soon as possible.

I'm grateful for your work.

Best Regards,

AboElnoor avatar Dec 07 '22 10:12 AboElnoor

@uttamrabadiya Hi,

I like to mention something that I wish it's helpful. When we installed valet with php8.1, running valet stopped the internet connection for all services, but installation with php7.4 kept the internet running except for some services like firefox and postman.

Anyway, the installation with 7.4 is much better and more stable. I hope this info helps you. Thank you so much for this gorgeous tool.

Regards,

AboElnoor avatar Dec 20 '22 08:12 AboElnoor

@AboElnoor Thank you very much for appreciation :) These words give us more energy to work on this project! :)

We will verify your given steps to utilize 7.4 and try to find what is there in php8.1 which is causing this issue.

Once again, Thank you!

uttamrabadiya avatar Dec 20 '22 16:12 uttamrabadiya

@uttamrabadiya Thank you so much for your help, but I believe this issue should still be open as the main issue still exists. I was sending a hint that may help you solve the main issue.

And please let me know if there is anything I can do to help solve this. Thanks for your effort and understanding.

Regards,

AboElnoor avatar Dec 20 '22 19:12 AboElnoor

@AboElnoor Thank you, I've started looking at it but I am not able to reproduce it with php8.1, but yes we will figure it out. Keeping it open till we resolve it.

uttamrabadiya avatar Dec 27 '22 07:12 uttamrabadiya

@AboElnoor @Azim-Sabbir

Great news guys, we have fixed the connectivity issue. This issue was due to dnsmasq & systemd-resolved services, systemd-resolved controls internet, so we cannot turn it down, we've just modified our code to keep systemd-resolved up and running along with dnsmasq.

Please update to latest version and run valet install command to fix this issue.

Feel free to re-open this if your issue persist.

Thank you!

uttamrabadiya avatar Dec 30 '22 14:12 uttamrabadiya

@uttamrabadiya Thank you so much for your great effort in helping with this.

I've found a related issue to this issue when switching the wifi network, the valet websites and firefox stop working, and I have to restart the valet to make it run again. Should I open a new issue for this? Or would you like to reopen this issue till you fix this?

Regards,

AboElnoor avatar Dec 31 '22 11:12 AboElnoor

@AboElnoor I've just tested this on my machine (Ubuntu 22.04, Valet version 1.6.0) but I cannot reproduce this issue. Could you please share output of below commands:

sudo systemctl status valet-dns
sudo systemctl status dnsmasq
sudo systemctl status systemd-resolved
sudo lsof -i -P | grep LISTEN

uttamrabadiya avatar Jan 01 '23 05:01 uttamrabadiya

@AboElnoor

After testing this on multiple device, I've found the issue, there is something wrong with file watchers in valet-dns service.

I am trying further to resolve it ASAP but I believe it will take bit more time. I will keep you posted if I can release new patch soon.

Regards.

uttamrabadiya avatar Jan 01 '23 14:01 uttamrabadiya

@AboElnoor Final thought before I signoff for today.

I believe valet can work without valet-dns service! I just realized that with using systemd-resolved service, we don't need to add local dns records on dnsmasq, so even if we turn off valet-dns service, it will work just fine.

You can try turning down valet-dns service by following

systemctl stop valet-dns
systemctl disable valet-dns

Note: We are restarting this service on install command so if you are using valet install command, then please run above command afterwards to disable it again.

uttamrabadiya avatar Jan 01 '23 14:01 uttamrabadiya

@uttamrabadiya Thank you so much.

Yes, everything works excellently after disabling it. I'm wondering why we use it if it's not needed.

Regards,

AboElnoor avatar Jan 01 '23 17:01 AboElnoor

@AboElnoor

It was needed without systemd-resolved service to grab the local dns records in dnsmasq, but with using dnsmasq and systemd-resolved both we do not need to keep valet-dns service. We will remove this on our next release. Keeping this comment open till then.

Thank you!

uttamrabadiya avatar Jan 02 '23 15:01 uttamrabadiya

after disabling valet-dns and working with systemd-resolved and dnsmasq

using systemd-resolved with dnsmasq works but doesn't work offline and some times after restarting the device it doesn't work and needs reload to systemd-resolved

using only dnsmasq all issues was solved https://github.com/genesisweb/valet-linux-plus/issues/77 and https://github.com/genesisweb/valet-linux-plus/issues/74

cobraprojects avatar Mar 03 '23 14:03 cobraprojects

after disabling valet-dns and working with systemd-resolved and dnsmasq

using systemd-resolved with dnsmasq works but doesn't work offline and some times after restarting the device it doesn't work and needs reload to systemd-resolved

using only dnsmasq all issues was solved #77 and #74

Good to hear. Will it be fixed in an upcoming release or is there steps we should follow?

bkno avatar Mar 08 '23 11:03 bkno

@bkno @cobraprojects @AboElnoor @Azim-Sabbir

Thank you for being patient with connectivity issues, we've released new version (1.6.3) which updates configuration for dnsmasq, systemd-resolved and also removes the valet-dns as it is not needed anymore, please update to latest version to fix this issue.

uttamrabadiya avatar Mar 21 '23 16:03 uttamrabadiya