-
Notifications
You must be signed in to change notification settings - Fork 24
Rebooting PC causes Nitro sites to become inaccessible #180
Comments
@DouglasKGlover you need to disable internet sharing, this seems to be a known thing with the way multipass using the Windows hypervisor. There is a tutorial on troubleshooting the windows networking here: https://multipass.run/docs/troubleshooting-networking-on-windows I need to confirm, but it appears to resolve itself if you disable internet sharing on Windows. |
@jasonmccallister I've done all of the steps provided on the tutorial you shared, as well as manually disabled Internet Sharing via Services and set it to disabled on startup. Unfortunately I am still unable to access my site for local dev. :( |
@DouglasKGlover did you reboot the host machine to apply those changes? |
I did, yes. I'll note that the following from a user (goraxan) on Discord worked for me: @doug same here (in Windows). IP changes every time I reboot. So what I do is: nitro stop; nitro start; nitro info (change .env database DSN with the new IP); nitro apply (this changes the hosts file with the new IP) Is there any way to prevent the machine from acquiring a new IP on Windows reboot? Not sure if this would be a Nitro or a Multipass thing, but seems directly tied to the Nitro machine itself as far as I can tell. |
@DouglasKGlover there is a hidden command called This issue is somewhat related to multipass but the real issue is the network manager on windows hypervisors. I worked through this with someone else on windows, I will check if they are still having the issue after disabling internet sharing. |
@jasonmccallister The issue still persists. Guess the issue is with Windows hyper-v default switch or corrupted This has been addressed here as well |
@delixyr this is a Windows related issue and the next release will resolve this. |
@delixyr by next release, I really mean't v2 where we replaced Multipass with Docker. Here are the instructions for upgrading, Windows 10 is still a WIP... but mostly for WSL2 and Docker setup.. https://craftcms.com/docs/nitro/2.x/ |
We just released Nitro 2 where we switched from Multipass to Docker and added a ton of new features. Please see the announcement for more details. This issue was specific to Multipass so we are going to close this out. Please see the documentation on upgrading from Nitro 1. |
I may be missing something, but I have been trying to get Nitro up and running for local dev. Every time I get it going it's smooth and works fine, ignoring a few issues that I was able to find solutions for online relatively quickly. But when I restart or shutdown my computer and then later come back to continue working on it, the sites become inaccessible, with a generic "This site can't be reached" message from the browser.
Looking at "Nitro info" it looks like the IP has changed so I've tried updating that on my Craft CMS config files and local hosts file (Windows machine), but to no avail.
Any help at all would be greatly appreciated as this has been pretty solid to work with... until I reboot my computer.
The text was updated successfully, but these errors were encountered: