Proxy logging fails if log file is open by another process

  • 3278070
  • 24-Aug-2007
  • 07-Jun-2013

Environment

Bordermanager 3.8
Bordermanager 3.9

Situation

When Proxy is writing the common log or extend log, if Backup software try to back up the open file at the same time or another process keeps the log file open and locked, the Proxy may fail to write to the file, and stop writing anymore, it will loss the subsequence access information. Until Manually restart proxy, to restart the logging.

Resolution

Report to Engineer.
To fix it: When proxy detect any problem with writing to the log file. change the code, to make it close the log file and save it. Then open a new one and keep going.
Or start the log file with a special file type, like .TMP, when finish writing, close the file and save as .LOG.
Or Open the log file in a temp directory, after finished writing, save to the etc\proxy\log directory. So customer can select the different file type or file location/directory to backup, It will not conflict with the Proxy Logging.

Additional Information


Formerly known as TID# 10073809