Situation
Huge number of access.log items noted (maybe I need to turn this log off somehow because it grows too quickly to multiple GB in size?). @rmagauran
The default installation instructions do not include the setup of log rotation. This can cause the server to run out of space as the logs will consume all the available space.
Resolution
This process affect only the new containers NOT the old ones.
Restart the docker daemon: systemctl restart docker
This step is required for ucp-kubelet container log rotation to be enabled: docker rm -f ucp-agent and let it reconcile docker rm -f ucp-kubelet and let it reconcile
/var/log/apache2 # apk add logrotate
WARNING: Ignoring APKINDEX.70c88391.tar.gz: No such file or directory
WARNING: Ignoring APKINDEX.5022a8a2.tar.gz: No such file or directory
ERROR: unsatisfiable constraints:
logrotate (missing):
required by: world[logrotate]
You can fix the root cause which is hard-coded frequency in that script. If your practice is ok with hourly check on reminders, change 60(seconds) to 3600.
$updateDelay = 60;
This should really be a user-specific setting with an option to turn off the check.
I’m sorry … I do not know the system well enough to know which script this refers to … and what kind of reminders are these exactly? I was just reporting what seems like very high activity without knowing much of what the purpose of the activity is.
I’m going to guess that the script is /library/ajax/dated_reminders_counter.php and that I could safely edit the $updateDelay variable to some number between 1 and 60.
These are patient related reminders you or your staff will set for themselves or others. Script /interface/main/dated_reminders/dated_reminders.php keeps checking every minute if any reminders have become due in last 60 seconds. Most practices do not use reminders for actions that need to be acted upon in seconds but because of that hard-coded setting everyone ends up running this useless chatter in background without any way to modify from user screens.
Forgot to mention - every connected session is doing this every 60 seconds. So if you have 5 users with 2 connected devices each, you will see at least 10 log entries on the server!