Hyper-V Causes "Failed to check the status of the service. No provider available" Error in Dubbo
Background
To experience Docker on Windows, I specifically installed Hyper-V and uninstalled VirtualBox. Unexpectedly, this led to several troublesome issues in the following days.
The Dubbo service that was working fine in my project suddenly couldn't start locally.
The error was No provider available for the service. I've encountered this issue before, and it was usually a configuration problem. After carefully checking all configurations, everything seemed correct! But the service still wouldn't start. I hadn't changed any code related to this part recently, so comparing configurations and searching for possible causes didn't help. I decided to look at the source code for a quicker solution.
Solution
Just as I was about to dive into the source code, I noticed something wrong with the server address printed in the logs - it was showing the virtual network adapter's address! Then I roughly guessed the cause - it was Hyper-V again.
After disabling the virtual network adapter and restarting, the service worked perfectly.