NetWorker 19.10 and 19.11: Growing file /tmp/cryptolib.log
Summary: On systems with NetWorker 19.10.x and 19.11.x is installed, we write a log file named /tmp/cryptolib.log. It increases over the time and might fill up the /tmp volume.
Symptoms
Each time we start NetWorker components (processes), it loads and initializes the OpenSSL library and is adding a message into the log file.
The file /tmp/cryptolib.log is increasing over time.
nwserver:/tmp # ls -l /tmp/cryptolib.log -rw-r--r-- 1 root root 3819297 Aug 9 13:33 /tmp/cryptolib.log nwserver:/tmp #
Cause
This issue is related to the OpenSSL library used in NetWorker 19.10 and 19.11. It is not allowing the FIPS mode and reporting it to the file.
Resolution
Workaround:
The file can be disregarded. Periodically delete the /tmp/cryptolib.log file to prevent space consumption issues.
Alternatively, you can use logrotate to rotate the log file daily, retain X number of copies, and delete the oldest.
-
Confirm if the logrotate package is installed:
logrotate --version
NOTE: logrotate is a Linux operating system package not provided by NetWorker. If logrotate is not installed, see OS vendor-specific documentation for installing the logrotate package. -
Edit the
/etc/logrotate.confto include specifications for rotating/tmp/cryptolib.log. For example, append the following lines to the end of the file:/tmp/cryptolib.log { daily rotate 7 compress missingok create 0644 root root su root root }- daily: rotate the log daily.
- rotate 7: Keep seven rotated log files before deleting the oldest one. This can be changed depending on the wanted number of copies and available space on the system.
- compress: compress the rotated log files to save space.
- missingok: If the log file is missing, move on to the next one without issue.
- create 0644 root root: Create a new log file with permissions 0644 and ownership root:root after rotation. This matches the default permissions and ownership of the original
/tmp/cryptolib.logfile. - su root root: Switch to user root and group root for creating new log files.
-
Test the logrotate settings:
sudo logrotate -d /etc/logrotate.conf
Solution:
The problem will be resolved with NetWorker 19.12.