Why does my Site lose connectivity, consistently, after about 30mins use? I have to stop and restart my website (within local) to carry on working?

Why does my Site lose connectivity, consistently, after about 30mins use? I have to stop and restart my website (within local) to carry on working?

After those 30 minutes, what error are you seeing in your browser? Are you on Windows or macOS?

Without knowing the details above, my guess is that it’s something like Bitdefender Internet Security commenting out the hosts file changes after those 30 minutes.

Thanks for the prompt reply Clay. I am using windows 10 x64. This is the error return:

Local Router Error

Our apologies for the inconvenience. The Local router is not able to connect to the site you requested.

We suggest you try the following:

Restart Site - Go to the Local by Flywheel app and restart the site you are attempting to access.
Contact us - If the issue persists please contact us.

The error occurs whenever I try and update or activate plugins and/or themes. I’m not sure what happened or where it happened. I have Bitdefender installed. I stopped it (completely) but same problem.

I have tried updating some plugins and I get this error as well\

This page isn’t working

igadgettech.dev didn’t send any data.
ERR_EMPTY_RESPONSE

Thanks for your time

It sounds like the Docker container is crashing for some reason.

Is the site running the “Preferred” or “Custom” environment?

It looks like I am using the Preffered environment -

My biggest issue is my inability to activate new plugins or themes. At least I am still able to work with the dropped connections but I absolutely need to have plugins installed and activate (and thes…)

Thanks again for your time

I had this exact problem where after some time on Windows 10, all my hosts were commented in my hosts file. As if something was crashing behind the scenes and Flywheel could not detect it. That sais, re-enabling the commented hosts was making everything working correctly. No restart were really needed.

The problem wasn’t caused by Flywheel. The problem came from BitDefender (antivirus) that is scanning the file and changing values. To solve the issue, you must disable the “Scan hosts file” feature.

2 Likes

@maximejobin,

Thanks for the screenshot!

Do you mind if we use that for an FAQ? :slight_smile:

Sorry for the delay… I don’t mind at all as long as you pay the rights for my work and cite me. I’m kidding! You can use it for free! :slight_smile:

1 Like

Haha, thanks! :smiley:

I just added [Windows] Why am I seeing ERR_NAME_NOT_RESOLVED when trying to access a Local site?

On rare occasions, after installing Bitdefender on a Windows computer, you will receive an error message indicating that the product was unable to connect to the server to complete the activation: “Unable to connect to the server. Sorry, we are unable to connect to the server. Please try again later”. Typically, this error means that a firewall, DNS, or content filtering system on your network or computer prevents communication with the Bitdefender servers and blocks the activation process.

Regardless of the reason why the message appears in your Bitdefender product, uninstall Bitdefender completely then reinstall it to fix it