Hey Everyone,
I have configured my Orthanc using my custom docker image with both postgres (metadata only ) and S3 bucket (for storing the actual media files i.e. the .dcm files ) .
I have also mounted the logs generated by orthanc to my host system for easy accessibility and proper maintainance.
Now, the problem occurred when i deleted some recently created logs (because of some storage issue with my server ) say around 50 of them, then onwards , each time the logging is facing some issue , each new logging is getting appended to the most recent file and it’s size is getting increased rapidly.
At start it’s size is around 200 kb max than it goes upto gb’s (max i’ve seen yet is 5gb) .
So far I’ve done following things :
- I’ve tried deleting the last file , but still i guess the data (logs) were getting added to that deleted file (as per gpt) , or it wasn’t getting added anywhere.
- I’ve tried recreating the containers several times by keeping the mounts intact with the logs (removing the last problem file) , it still had the same issue , a new file was created and then gets appended again.
- I’ve tried deleting the logs completely and then restart/rebuild the containers , still the last file is getting all the logs appended.
This wasn’t happening before.
If anyone is suggesting to use logrotate , than let me say that this was working fine before , the logging took max space of some Kb’s and then it automatically internally got rotated as per it’s internal configuration , which is happening right now with the rest of the logs prior/previous to the last log file.
I am also sharing the size of the last three files and the remaining log files are having almost same size (in some kb’s).
username@ip-x-x-x-x:/orthanc-logs$ ls -lh Orthanc.log.20241214-100111.1
-rw-r–r-- 1 root root 329M Dec 16 16:18 Orthanc.log.20241214-100111.1
username@ip-x-x-x-x:/orthanc-logs$ ls -lh Orthanc.log.20241216-104906.1
-rw-r–r-- 1 root root 2.1G Dec 19 11:37 Orthanc.log.20241216-104906.1
username@ip-x-x-x-x:/orthanc-logs$ ls -lh Orthanc.log.20241214-093333.1
-rw-r–r-- 1 root root 180K Dec 14 15:31 Orthanc.log.20241214-093333.1
username@ip-x-x-x-x:/orthanc-logs$ ls -lh Orthanc.log.20241214-091458.1
-rw-r–r-- 1 root root 74K Dec 14 14:46 Orthanc.log.20241214-091458.1
username@ip-x-x-x-x:/orthanc-logs$
I appreciate your help in this concern of mine.
Thanks in advance.
Himanshu.