Comments (6)
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
from zoraxy.
Cannot reproduce this bug while running Zoraxy natively without docker.
@PassiveLemon For your information, the statistic is stored in memory and only write to sys.db
on either the daily ticker ticks (everyday at midnight), or when the application receives an os.Interrupt
or syscall.SIGTERM
signal (e.g. Ctrl +C on a running terminal window). You might want to check if the application is shutdown correctly or if the sys.db is persistence after restart.
from zoraxy.
The file sys.db already existed yesterday; I just checked if the modified time updated since:
$ ls -al sys.db
-rw------- 1 root root 12288028. Apr 02:00 sys.db
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:
$ ls -al sys.db
-rw------- 1 root root 12288028. Apr 11:43 sys.db
from zoraxy.
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!
from zoraxy.
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.
from zoraxy.
This seems to be happening again with Zoraxy 3.0.4, works fine on 3.0.3
from zoraxy.
Related Issues (20)
- [HELP] How do I proxy a single location? HOT 3
- Reverse Proxy internal domain to another external port HOT 8
- Getting TLS Handshake Error When Accessing the Proxy Host [HELP] HOT 2
- [ENHANCEMENTS] Add Strato dns challenge HOT 1
- [ENHANCEMENTS] Cluster capability? HOT 3
- [ENHANCEMENTS] Add Rate Limits and Bandwidth Limits to Zoraxy HOT 14
- Reverse proxy appears 404[HELP] HOT 6
- [BUG] Headscale does not seem to work with Zoraxy HOT 2
- [BUG] letsencrypt too many registrations for this ip HOT 7
- [ENHANCEMENTS] ACL add multi range ip one step
- [BUG] Unable to keep activation state for Redirect - Regular Expression HOT 2
- Network Status Graphs don't render [HELP] HOT 4
- [ENHANCEMENTS] Statistic how often each proxy host/site has been requested HOT 2
- [HELP] Proxy destination does not seem to change when edited HOT 2
- [HELP] Stream proxy HOT 7
- [HELP] certificat ssl on stream proxy HOT 1
- [BUG] ACL on standalone installation (no docker) HOT 1
- [ENHANCEMENTS] Disable X-Real-IP HOT 1
- [HELP] Multiple ARGS in docker-compose.yml not working HOT 8
- [HELP] Jellyfin Android TV won't connect HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zoraxy.