-
Notifications
You must be signed in to change notification settings - Fork 199
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Statistics are not saved, starting from zero after restart of the docker image #133
Comments
I believe this would depend on how Zoraxy itself caches statistics. If it caches to a specific location, you could create a volume for it. I'll have to wait and see what Toby says to know for sure |
Cannot reproduce this bug while running Zoraxy natively without docker. @PassiveLemon For your information, the statistic is stored in memory and only write to |
The file sys.db already existed yesterday; I just checked if the modified time updated since:
The file also grew a bit since yesterday. Also, I just shut down and restarted the container - yesterday's stats were indeed saved. Everything since (today's stats) were thrown away - the file did not grow a bit. File info after the restart:
|
Ok, this surely seems like a "docker not gracefully closing zoraxy" issue. I will let @PassiveLemon take over from here. Thanks for the bug report! |
That would make sense, there is no graceful shutdown implemented in the container. Docker sends out a SIGTERM to the running process (shell in this case) but it doesn't respond to it so, after the grace period, it SIGKILLs everything which would result in an improper save. |
This seems to be happening again with Zoraxy 3.0.4, works fine on 3.0.3 |
Just to revisit this, @CorneliusCornbread, is this still a problem on the latest version? |
Yup, upgrading just wiped all my settings again :/ |
Settings themselves, or statistics? If its settings, try to update each by version until 3.0.8, which should help resolve future updates |
Everything, it's completely fresh. Reverting solves nothing all my settings are permanently lost. Worse yet, trying to recreate my proxies on the new version simply results in cloudflare always saying my service is down despite using the exact same certs and settings. Frankly I'm not sure what updating version by version would do, the zoraxy config folder has always been completely empty no matter the version. |
Would you mind sending your dockerfile/run command? If the config folder has always been empty, then its possible you have configured the volume wrong |
I'm using the unraid image, the zoraxy folder can create itself no issue. I restarted the container and it seems to allow me to proxy with my certs again. It also seems to have saved my information this time. However I still need to recreate all my proxies from scratch |
I dont know what Unraid image you are using but the one I know of is very out of date. I can't seem to find it though |
I found it on the app store, comparing my current image the only difference is the repository: |
Yep, thats the outdated image. The new one is at zoraxydocker/zoraxy |
I remember I had to change the image a while ago, I've been using that one ever since. It seems like changing the listen port requires zoraxy to be restarted for it to start behaving for proxying. It all seems to be working now. I can only hope that it won't also break between future updates. |
Ah sorry i misinterpreted your message, glad to hear its working now. A new update system was added in 3.0.8 which should hopefully reduce breakages by updating your config file for you. I don't know how it works so you'd have to take Tobys word for it. |
Just updated today, and this is still happening. Entire configuration was reset again |
#133 (comment) |
That sounds exactly like the problem, so you're saying if I change the config path in the image that'll solve this problem? |
If you are able to, then yes, I am pretty sure that should resolve it |
Also I reached out on the Ibracorp Discord, since they're listed as the authors of the unraid image. Normally I don't bother if an image is a little wrong, but the image for zoraxy hasn't been updated in almost a year and it's very wrong, so hopefully they see my message and update the image. |
Thank you for contacting them, hopefully they update it so this issue can be avoided |
Describe the bug
Statistics are not saved, starting from zero after restart of the docker image.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Statistics get saved and are loaded after every restart of the docker image.
Additional context
The docker image is setup with a volume to save data/config across sessions:
Configs like the set up proxy hosts and custom access lists get saved there; stats not so much.
The text was updated successfully, but these errors were encountered: