[BUG] The proxy service stop in background
Describe the bug Hi, the http proxy (at least) stop in background after few minutes (maybe 2 minutes), in the UI I can see that the service is started but I can't stop it, the button do nothing. I have to close and open zoraxy again to make it works, but only for 2 minutes again. I can continue to use zoraxy, add new hosts ect... but no redirection all.
If I try an wrong subdomain name, I got the default site as expected.
I've tried another reverse proxy, like Caddy, and everything is ok for hours.
To Reproduce Steps to reproduce the behavior: 1 - Create a new instance of Zoraxy 2 - Add a reverse proxy host
Expected behavior I expect that the reverse proxy continue to works after 2 minutes.
Browser (if it is a bug appears on the UI section of the system):
- OS: Windows 10
- Browser Edge, Chrome and Firefox
- Version 3.1.9
Host Environment (please complete following information, DO NOT REMOVE ANY FIELD(S)):
- Arch: amd64
- Device: PC
- OS: Windows 10
- Version 22H2
- Are you using Docker? no
- Docker Version (fill in "N/A" for native deployment): [e.g. 3.0.4]
@nynjardin Have you tried previous version like 3.1.8 or 3.1.7? We are constantly changing things recently for the new plugin system. I guess the last stable version is somewhere between 3.1.6 to 3.1.7.
@nynjardin Have you tried previous version like 3.1.8 or 3.1.7? We are constantly changing things recently for the new plugin system. I guess the last stable version is somewhere between 3.1.6 to 3.1.7.
Just tried with 3.1.7 then with 3.1.6 and I got same result.
I guess this happen for a long time to me since I've tried Zoraxy month ago and was unable to make it works (if I remember well, I was unable to get stream proxy to works over time, like http proxy, I believed that I made some mistake and everything is my fault, but now I know what I'm doing, I understand that the problem wasn't my config)
Maybe a conflict with another software?
Thanks for your help :)
@nynjardin Well that is really unlikely. Assume you have no configs and a fresh installation, everything should work out of the box.
Zoraxy is developed on Windows and tested on Linux (Debian) , so at least I can for sure it works on both platforms with little to no stability issues. Even if it crash, as it run everything under multiple go-routine, it should automatically recover from it.
I am suspecting it is not an issue related to Zoraxy. You can try the followings
- Download the latest go compiler and build from source yourself on your machine.
- Test it on another computer
I just tried in a VM with a similar network configuration, and I have the same issue. Here, when I try to Stop Service I got this message in red at right bottom: Context deadline exceeded
On this VM I have only 2 network adapter: one for the LAN and another one for VPN (zerotier)
It is possible that the VPN have some conflict with Zoraxy?
I guess it"s not Zoraxy the issue too, I'll try to find where the problem come from here.
I don't have access to a physical computer where I can redirect the port 80 to it, I'll check as soon as possible with a laptop on site.
Ok, I've installed Zoraxy on another physical computer and it look to work well, at least for few hours now.
In the meantime, I perform some test on the computer who have problems, and I discovered one thing: the service works until we use it. I mean, if I don't go to the address I try to reverse proxy, I can stop and start the service anytime, I try that randomly while I worked on the other instance of zoraxy. And when I try to reach an address, reverse proxy stop working, I was unable to stop the service from the web UI, ect...
Hope this help
@nynjardin Not sure what you mean. Do you have a detailed reproduce steps for me to test it on my side?
@tobychui ok, sorry if I'm not clear.
1 - I launch Zoraxy software 2 - I do nothing, I mean, I have some reverse proxy rules like test.example.com but I don't request anything from these address. 3 - To know if service is always up and running, I try to stop it via zoraxy web UI, if I can, that mean it still works, if not, that mean it crashed. I try to stop and start it few time for about 1 hour, and it still works because I'm able to stop and start it. 4 - I try to go to test.example.com and nothing happen, reverse proxy don't works and I can't stop the service anymore.
If I try to reach test.example.com in the first two minutes after the launch of zoraxy software, that works, after this time, it's done, I can't, even if I wait more minutes to try to reach test.example.com for the first time after launching zoraxy, it stop working as soon as I try the reach the address past the first 2 minutes after the launch of zoraxy.
Ok, problem solved: I have to uninstall ZeroTier One. Now, everything works well...
EDIT: I found that the common point between all my computer where I try to use Zoraxy is that ZeroTier One was installed on all of them, so, I found an old laptop without zerotier and Zoraxy works well. I try to uninstall ZeroTier on the computer where I want to install Zoraxy, and no crash anymore.
Do you think it's possible to make them works together?
Thanks :)
@tobychui I was able to reproduce the problem, what do you want me to do, create a new Issue with everything or I describe all here in a comment?
thanks :)
@nynjardin I guess I know what you are saying now. I saw this bug a few weeks ago on my side (but with a different setup than yours) and that is why I updated the dpcore design in the latest v3.2.0.
Though, the reason for causing this bug is unknown (at least from what I tried to trace from the code base of Zoraxy, I found nothing relevant). And since the system works on Linux test bench and the instance I am having issue with is also a Windows host, now I suspect it is a Windows update bug that causes the issue.
This should be fixed with v3.2.0. Closing this issue.