Unable to compress var log (">file archive compress source /var/log/* destination /var/tmp/varLog.tar") getting following error message:
"error: /usr/bin/tar was not successful" after executing ">file archive compress source /var/log/* destination /var/tmp/varLog.tar"
In order to fix this error you have to follow KB33844 [juniper.net] ([MX] "error: /usr/bin/tar was not successful" error message when performing commit on re0) ANDKB70822 [juniper.net] (Compressing varlogs shows following error message: varlog /var/log/messages: file changed as we read it 1682357702 != 1682357700 /usr/bin/tar: Error exit delayed. error: /usr/bin/tar was not successful)if issue is persistent proceed to clear any unnecessary files within /var/tmp. (>file list /var/tmp ) & delete the unnecessary files with (>file delete /var/tmp/fileName) like old junos packages for installation.