[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [HTCondor-users] Ever expanding Accountantnew.log



On 04/05/2017 12:13 AM, Greg.Hitchen@xxxxxxxx wrote:

 

 

This is the relevant entry from NegotiatorLog (with NEGOTIATOR_DEBUG = D_MATCH D_ACCOUNTANT).

 

04/05/17 13:20:15 About to rotate ClassAd log /home/condor/spool/Accountantnew.log

04/05/17 13:20:15 failed to rotate log: safe_open_wrapper(/home/condor/spool/Accountantnew.log.tmp) returns -1


Greg:

When the condor_negotiator starts up, it compresses the accounting log by reading this transaction log file (which contains only diffs) into memory, then writes out a new file with one record per user.  It does this in the traditional, safe, unix way, by reading the old file, appending to a temp file named Accountantnew.log.tmp, and atomically renaming the .tmp to the working version.  the condor_negotiator should be running with the euid of condor during this processing.

On your machine, condor is failing to create the tmp file.  Perhaps the spool directory doesn't have write permission for the condor user or group?  If you su to condor on that machine, can you create a zero-length file in the spool directory with some random name like foo?

-greg