Symantec AntiVirus for Linux's Java LiveUpdate (JLU) fails with return code 246 after "Disk space check"

book

Article ID: 156983

calendar_today

Updated On:

Products

Endpoint Protection

Issue/Introduction

SAV For Linux virus definitions cannot be updated. LiveUpdate fails with return code 246 in liveupdt.log.

A snippet of /opt/Symantec/LiveUpdate/liveupdt.log :

-----------------------------------------------------

Aug 13, 2012 10:01:41 AM Java LiveUpdate launched with the command line = [ -p Avenge MicroDefs25 SavCorp10 Linux -v MicroDefsB.Jul -l SymAllLanguages -t HubDefs -z 120716018 ] [ -p Avenge MicroDefs25 SavCorp10 Linux -v MicroDefsB.Jul -l SymAllLanguages -t CurDefs -z 120725003 ] [ -p Avenge MicroDefs25 SavCorp10 Linux -v MicroDefsB.CurDefs -l SymAllLanguages -t CurDefs -z 120725003 ]
Aug 13, 2012 10:01:41 AM   Avenge MicroDefs25 SavCorp10 Linux, MicroDefsB.Jul, SymAllLanguages, HubDefs, 120716018
Aug 13, 2012 10:01:41 AM   Avenge MicroDefs25 SavCorp10 Linux, MicroDefsB.Jul, SymAllLanguages, CurDefs, 120725003
Aug 13, 2012 10:01:41 AM   Avenge MicroDefs25 SavCorp10 Linux, MicroDefsB.CurDefs, SymAllLanguages, CurDefs, 120725003

~~~~~~~~~~~~~~~~~~~

Aug 13, 2012 10:01:42 AM Disk space check for 1344811677jtun_sav10enncur25.lin failed. Requested free space was 263.334 (in MB).
Aug 13, 2012 10:01:42 AM
Aug 13, 2012 10:01:42 AM The Java LiveUpdate session did not complete successfully.
Aug 13, 2012 10:01:42 AM Return code = 246
 

Cause

JLU uses /tmp as its working directory, also called cache. It has a default maximum cache size of 2 Gb. Before downloading a file, it checks to make sure the maximum cache size minus the current cache size is greater than the space required by the file. If not, it will try to clean up the cache by deleting files and directories created by itself previously. If after cleaning up, the check still fails, it will exit and log a return code 246.

In a situation where the size of non-JLU-generated content in /tmp is close or greater than 2 Gb, the above check will always fail. To confirm this is the issue, please use du -h /tmp command and observe the size of any file or directory that's not generated by JLU.

Resolution

To resolve this issue, please use one of the following methods.

  • Increase the value of the "downloadCacheSize" property (case-sensitive, value is in MB) through JLU Config Editor.
  • Change the working directory of JLU through Config Editor.
  • Remove non-JLU-generated content in /tmp.

Please see How to change settings in Java LiveUpdate 3.6 or higher for details on Config Editor.  The Connect article SAV for Linux: A (Somewhat) Illustrated Guide Part 3 contains additional information and illustrations. 

 

 


Applies To

  • Symantec AntiVirus for Linux 1.0.13.16
  • Java LiveUpdate version 3.9.1 Build 18
  • Plenty of free space available on the volume /tmp directory is on