# Job Arranger application log message  - 2025/07/16 -

# Copyright (C) 2012 FitechForce, Inc. All Rights Reserved.
# Copyright (C) 2013 Daiwa Institute of Research Business Innovation Ltd. All Rights Reserved.

# Format: Message id, Log type, Message body
# Log Type: (0:information  1:critical  2:error  3:warning  4:debug)

#MONITOR LOG Start

#err
JAMONITOR200001,2,1, In %s(), Failed to initialize the logger
JAMONITOR200002,2,1, In %s(), Failed to initialize process registry
JAMONITOR200003,2,1, In %s(), Got signal 1 [signal: %d(SIGTERM),sender_pid: %d ,sender_uid: %d,reason: %d]. Exiting ...
JAMONITOR200004,2,1, In %s(), Got signal [signal: %d(%s),sender_pid: %d,sender_uid: %d, reason: %d]
JAMONITOR200006,2,1, In %s(), Sigaction failed for (SIGRTMIN)
JAMONITOR200007,2,1, In %s(), Sigaction failed for (SIGRTMIN + 1)
JAMONITOR200008,2,1, In %s(), Sigaction failed for (SIGRTMIN + 2)
JAMONITOR200009,2,1, In %s(), Sigaction failed for (SIGRTMIN + 3)
JAMONITOR200010,2,1, In %s(), Sigaction failed for (SIGTERM)

#warning
JAMONITOR300001,3,0, In %s(), Unknown signal: %d from PID: %d
JAMONITOR300002,3,0, In %s(), PID:%d timeout. Expected time diff: %d, Signal time diff: %d

#debug
JAMONITOR400001,4,0, In %s(), Program %s has started!.
JAMONITOR400002,4,0, In %s(), Main manager monitor process has started.
JAMONITOR400003,4,0, In %s(), Main manager monitor process has finished.
JAMONITOR400004,4,0, In %s(), %s

#MONITOR LOG End

# Agent START
JAAGENT000001,0,Starting Job Arranger Agent. Job Arranger %s (revision %s).
JAAGENT000002,0,Job Arranger Agent stopped. Job Arranger %s (revision %s).
JAAGENT000003,0,agent #0 started [main process]
JAAGENT000004,0,agent #%d started [%s #%d]
JAAGENT100001,1,listener failed: %s
JAAGENT200001,2,failed to wait on child processes: %s
JAAGENT300001,3,forced reloading of the configuration cache
JAAGENT000005,0,In %s(), All processes started, now waiting for children
JAAGENT000006,0,In %s(), All processes has exited.
JAAGENT000007,0,In %s(), Child process [%s] (PID:%d) exited with status: %d.
JAAGENT000008,0,In %s(), Restarting all processes.....
JAAGENT000009,0,In %s(), Respawn [%s] process.
JAAGENT100002,1,In %s(), Child [%s] (PID:%d) exited abnormally (raw status: %d)
JAAGENT100003,1,Memory error occurred. Exiting agent manager process. stack trace: %s
JAAGENT200002,2,In %s(), fork failed for %s process execution, err:[%s].
JAAGENT200003,2,In %s(), arg preparation failed for %s! process execution, err: [%s].
JAAGENT200004,2,In %s(), execution failed for %s process, err: [%s].
JAAGENT000005,0,%s() is called.
JAAGENT300002,3,In %s(), Monitor process had died. Stopping all process......
JAAGENT400001,4,In %s(), %s already exist. Skip directory creation.
JAAGENT400002,4,In %s(), init_process_args(%s) args preparation finished. args: [%s]
JAAGENT400004,4,In %s, %s process will be executed with prepared args. process_path: %s.

JADAEMON200001,2,user %s does not exist
JADAEMON200002,2,cannot run as root!
JADAEMON200003,2,failed to create folder: %s (errno: %d)
JADAEMON200004,2,cannot setgid to %s: %d
JADAEMON200005,2,cannot initgroups to %s: %d
JADAEMON200006,2,cannot setuid to %s: %d
JADAEMON200007,2,cannot setegid or seteuid to %s: %d

# STACK TRACE START
JAFATAL100001,1,%s
JAFATAL100002,1,Signal: %s (%d)
JAFATAL100003,1,Program counter: %p
JAFATAL100004,1,%-7s = %16lx = %20lu = %20ld
JAFATAL100005,1,error in backtrace_symbols(): %s
JAFATAL100006,1,%d: %p
JAFATAL100007,1,%d: %s
# STACK TRACE END

# Agent END

# Framework START
# [INFO]
JAFRAMEWORK000001,0,One time worker limit is full. manager: %s, max worker: %d, current worker: %d, worker id: %s
JAFRAMEWORK000002,0,Database connection limit is full. manager: %s, max connection: %d, current connection: %d, worker id: %s, event name: %s
JAFRAMEWORK000003,0,Exiting go manager framework. manager: %s
JAFRAMEWORK000004,0,All workers stopped. manager: %s
JAFRAMEWORK000005,0,Unhandled signal received. manager: %s, signal: %v, signal number: %d
JAFRAMEWORK000008,0,Work overload detected. Dropping excess events. manager: %s, event count: %d

# [CRITICAL]
JAFRAMEWORK100001,1,Memory error occurred in framework. Exiting go manager framework. manager id:  %d, stack trace: %s
JAFRAMEWORK100002,1,Memory error occurred in worker. manager: %s, worker id:  %s, stack trace: %s
JAFRAMEWORK100003,1,Agent housekeeper daemon process exited abnormally. Exiting Agent Manager Process.

# [ERROR]
JAFRAMEWORK200001,2,Go manager initialization failed.  goPluginId: %d
JAFRAMEWORK200002,2,Failed to create folders. manager: %s, error: %v
JAFRAMEWORK200006,2,Go plugin load failed. manager: %s, error: %v
JAFRAMEWORK200007,2,Plugin function load failed. manager: %s, error: %v
JAFRAMEWORK200008,2,Collect zombie process failed. manager: %s, error: %v
JAFRAMEWORK200009,2,Parent process not found.Exiting the process. manager: %s
JAFRAMEWORK200010,2,Daemon worker missed heartbeat. Exiting go manager framework. manager: %s, worker id: %s, last Heartbeat: %s, current time: %s, elapsed: %.2fs, timeout: %ds
JAFRAMEWORK200012,2,Database session end failed. manager: %s, error: %v
JAFRAMEWORK200013,2,Failed to remove existing socket file. manager: %s, error: %v
JAFRAMEWORK200017,2,Failed to create tcp server. manager: %s, error: %v
JAFRAMEWORK200018,2,Failed to accept tcp connection. manager: %s, error: %v
JAFRAMEWORK200019,2,Failed to receive tcp socket data. manager: %s, error: %v
JAFRAMEWORK200020,2,Failed to create inotify watcher. manager: %s, error: %v
JAFRAMEWORK200021,2,Failed to read parent directoy. manager: %s, parent directory : %s, error: %v
JAFRAMEWORK200022,2,Failed to add inotify watcher for sub-directory. manager: %s, sub-directory : %s, error: %v
JAFRAMEWORK200024,2,Failed to open file. manager: %s, file name: %s, error: %v
JAFRAMEWORK200025,2,Failed to read the event file. manager: %s, file name: %s, error: %v
JAFRAMEWORK200026,2,Failed to start damemon worker. Exiting Window Agent. manager: %s, error: %v
JAFRAMEWORK200029,2,Error occured while waiting for agent housekeeper process. error: %v
JAFRAMEWORK200030,2,Failed to start one-time worker. Exiting Window Agent. manager: %s, error: %v

# [WARNING]
JAFRAMEWORK300001,3,Stopping workers  timeout.Sending SIGKILL. manager: %s
JAFRAMEWORK300002,3,Inotify watcher warning. manager: %s,  warning message: %v
JAFRAMEWORK300003,3,One time worker missed heartbeat. manager: %s, worker id: %s

# [DEBUG]
JAFRAMEWORK400001,4,Go manager framework for server process started. Parsed flags: cMonitorPid: %d, goPluginId: %d, useDB: %t, useTCP: %t, configPath: %s, targetServer: %s
JAFRAMEWORK400002,4,Go manager framework for agent process started. Parsed flags: cMonitorPid: %d, goPluginId: %d, useDB: %t, useTCP: %t, configPath: %s, targetServer: %s
JAFRAMEWORK400003,4,Worker successfully started. manager: %s, worker id: %s
JAFRAMEWORK400004,4,Worker successfully stopped. manager: %s, worker id: %s
JAFRAMEWORK400005,4,Receive heartbeat from worker. manager: %s, worker id: %s
JAFRAMEWORK400006,4,Duplicate unique key found.Skipping event processing. manager: %s, event route Id: %d, unique key: %s
JAFRAMEWORK400007,4,Inotify watch folder added. manager: %s, sub-directory: %s
JAFRAMEWORK400008,4,Inotify file event detected. manager: %s, file name: %s
JAFRAMEWORK400009,4,Locked the event file. manager: %s, file name: %s
JAFRAMEWORK400010,4,Unlocked the event file. manager: %s, file name: %s
JAFRAMEWORK400011,4,File no longer exists in the "in" directory. Remove unique key. manager: %s, unique key: %s, filepath: %s
JAFRAMEWORK400012,4,Target file path not found. Skipping the event. manager: %s, event route Id: %d, event name: %s, unique key: %s, filepath: %s
JAFRAMEWORK400013,4,Registerd unique key. manager: %s, event route Id: %d, event name: %s, unique key: %s, filepath: %s
JAFRAMEWORK400014,4,Removed unique key. manager: %s, event route Id: %d, event name: %s, unique key: %s, filepath: %s

JAFRAMEWORK400015,4,Unique key check success, but file is missing from the "in" directory. Skipping event processing. manager: %s, event route Id: %d, event name: %s, unique key: %s, filepath: %s
JAFRAMEWORK400016,4,File does not exist in the "in" directory. Skipping event processing. manager: %s, event route Id: %d, event name: %s, unique key: %s, filepath: %s
JAFRAMEWORK400017,4,File still exists in the "in" directory. Skipping unique key removal. manager: %s, event route Id: %d, event name: %s, unique key: %s, filepath: %s

JAFRAMEWORK400021,4,Empty Tcp data received in framework. Skipping the event. manager: %s, received data: %v
JAFRAMEWORK400022,4,Received TCP data. manager: %s, received data: %v
JAFRAMEWORK400023,4,Received UDS data. manager: %s, received data: %v
JAFRAMEWORK400024,4,Received Inotify data. manager: %s, file name: %s, received data: %v
JAFRAMEWORK400025,4,Json unmarshal failed. manager: %s, worker id: %s, event route id: %d, event file name: %s, event data: %s, error: %v
JAFRAMEWORK400026,4,GC worker executed. Memory before: %d bytes, memory after: %d bytes, cleaned: %d bytes

# Framework END

# common
# [INFO]
JAUTILS000002,0,In %s(), Directory not found. Creating: %s
JAUTILS000003,0,In %s(), Folder created %s
JAUTILS000004,0,In %s(), Deleted directory: %s
JAUTILS000005,0,In %s(), file already exists: %s

# [ERROR]
JAUTILS300002,4,In %s(), Directory not found (nothing to delete): %s.
JAUTILS200002,2,1,In %s(), failed to unlock lock file. manager: [%v] from dir: [%s], to dir: [%s], err: [%s]

# [DEBUG]
JAUTILS400005,4,In %s(), Directory already exists: %s
JAUTILS400006,4,In %s(), Created file: %s
JAUTILS400007,4,In %s(), file is locked. Waiting for unlocked. file: %s, current retry count: %d, max retry count: %d
JAUTILS400008,4,In %s(), file is locked. Waiting for unlocked. source file: %s, destination : %s, current retry count: %d, max retry count: %d
JAUTILS400009,4,In %s(), lock file is locked. Waiting for unlocked. try flags : %d

# FcopyClient START
# [INFO]
JAAGENTFCOPY000001,0,In %s(), successfully done fcopy: jobid [%s], type [%s]

# [ERROR]
JAAGENTFCOPY200003,2,In %s(), failed to connect to server for jobid [%s]: %v
JAAGENTFCOPY200005,2,In %s(), failed to receive tcp response for jobid [%s]: %v
JAAGENTFCOPY200006,2,In %s(), failed to send error message [%s]: %v
JAAGENTFCOPY200007,2,In %s(), invalid type for fcopy for jobid [%s]: %s
JAAGENTFCOPY200011,2,In %s(), failed to read stdin: %v
JAAGENTFCOPY200012,2,In %s(), failed to unmarshal agent data [raw_data=%s]: %v
JAAGENTFCOPY200013,2,In %s(), failed to unmarshal event data [raw_data=%s]: %v
JAAGENTFCOPY200014,2,In %s(), failed to recreate socket from file [%s]: %v
JAAGENTFCOPY200015,2,In %s(), failed to marshal tcp data: %v
JAAGENTFCOPY200016,2,In %s(), failed to unmarshal tcp data [raw_data=%s]: %v
JAAGENTFCOPY200018,2,In %s(), failed to receive message string: %v
JAAGENTFCOPY200019,2,In %s(), failed to perform %s for jobid [%s]: %v
JAAGENTFCOPY200020,2,In %s(), failed to send file count [%d] for jobid [%s]: %v

# [WARNING]

# [DEBUG]
JAAGENTFCOPY400001,4,In %s(), argument [%v], jobid [%s]
JAAGENTFCOPY400002,4,In %s(), Directory exists: %s
JAAGENTFCOPY400003,4,In %s(), checkSum: %s 
JAAGENTFCOPY400004,4,In %s(), ret from getfile: %d
JAAGENTFCOPY400005,4,In %s(), computed checksum for file [%s], jobid [%s]: %s
JAAGENTFCOPY400006,4,In %s(), fcopy flag [%c] is sent for jobid [%s]
JAAGENTFCOPY400007,4,In %s(), target filename [%s] is sent for jobid [%s]
JAAGENTFCOPY400008,4,In %s(), file [%s] is sent for jobid [%s]
JAAGENTFCOPY400009,4,In %s(), checksum size [%d] is sent for jobid [%s]
JAAGENTFCOPY400010,4,In %s(), checksum [%s] has been sent successfully for jobid [%s]
JAAGENTFCOPY400011,4,In %s(), no files to receive (fileCount = %d)
JAAGENTFCOPY400012,4,In %s(), agent fcopy client process has started
JAAGENTFCOPY400013,4,In %s(), processing type [%s], jobid [%s]
JAAGENTFCOPY400014,4,In %s(), sent ret code [%s] for jobid [%s]
JAAGENTFCOPY400015,4,In %s(), fcopy response for jobid [%s] is successfully received: %v

JAAGENTFCOPY100001,1,Memory error occurred. Exiting fcopy client process. stack trace: %s
# FcopyClient END

# JobRunClient START
JAAGENTJOBRUNCLI400001,4,In %s(), job run client has started for transaction file '%s'
JAAGENTJOBRUNCLI400002,4,In %s(), transaction file '%s' is read successfully
JAAGENTJOBRUNCLI400003,4,In %s(), unmarshaled event data: event name [%s], kind [%s], hostname [%s], version [%v], serverid [%s]
JAAGENTJOBRUNCLI400004,4,In %s(), tcp data is retrieved: jobid [%s], type [%s], method [%d], jobscript [%s]
JAAGENTJOBRUNCLI400006,4,In %s(), argument %v, jobid [%s]
JAAGENTJOBRUNCLI400007,4,In %s(), ext job script [%s], jobid [%s]
JAAGENTJOBRUNCLI400008,4,In %s(), reboot flag file '%s' is created for jobid [%s]
JAAGENTJOBRUNCLI400009,4,In %s(), reboot job script: %s, jobid [%s]
JAAGENTJOBRUNCLI400010,4,In %s(), command job script for jobid [%s]: %s
JAAGENTJOBRUNCLI400011,4,In %s(), job script file '%s' is created for jobid [%s]
JAAGENTJOBRUNCLI400012,4,In %s(), environment variables are encoded
JAAGENTJOBRUNCLI400013,4,In %s(), job script is ready to run. stdout: %s, stderr: %s, ret: %s, username: %s, password: %s, domain: %s
JAAGENTJOBRUNCLI400014,4,In %s(), start file '%s' is created for jobid [%s]
JAAGENTJOBRUNCLI400015,4,In %s(), end file '%s' is created for jobid [%s]
JAAGENTJOBRUNCLI400016,4,In %s(), job run transaction file '%s' is updated with result [%d] and job status [%d] for jobid [%s]
JAAGENTJOBRUNCLI400017,4,In %s(), current time is written to start file '%s' for jobid [%s]
JAAGENTJOBRUNCLI400018,4,In %s(), script ended with exit code [%d], jobid [%s]
JAAGENTJOBRUNCLI400019,4,In %s(), reboot job script has ended for jobid [%s]
JAAGENTJOBRUNCLI400020,4,In %s(), current time is written to end file '%s' for jobid [%s]
JAAGENTJOBRUNCLI400021,4,In %s(), current time is written to job file '%s' for jobid [%s]
JAAGENTJOBRUNCLI400022,4,In %s(), pre unique id from tmp job file '%s' for jobid [%s]: %s
JAAGENTJOBRUNCLI400023,4,In %s(), current unique id [%s], pre unique id [%s], jobid [%s]
JAAGENTJOBRUNCLI400024,4,In %s(), content of stdout file '%s' for jobid [%s]: %s
JAAGENTJOBRUNCLI400025,4,In %s(), content of stderr file '%s' for jobid [%s]: %s
JAAGENTJOBRUNCLI400026,4,In %s(), content of ret file '%s' for jobid [%s]: %s

JAAGENTJOBRUNCLI200001,2,In %s(), failed to read transaction file '%s': %s
JAAGENTJOBRUNCLI200002,2,In %s(), failed to unmarshal the content of transaction file '%s' [raw_data=%s]: %s
JAAGENTJOBRUNCLI200003,2,In %s(), failed to convert to tcp data [raw_data=%s]: %s
JAAGENTJOBRUNCLI200004,2,In %s(), unsupported jobrun type for jobid [%s]: %s
JAAGENTJOBRUNCLI200005,2,In %s(), failed to prepare ext job script for jobid [%s]: %s
JAAGENTJOBRUNCLI200006,2,In %s(), failed to prepare reboot job script for jobid [%s]: %s
JAAGENTJOBRUNCLI200007,2,In %s(), failed to write job script file '%s' for jobid [%s]: %s
JAAGENTJOBRUNCLI200008,2,In %s(), failed to change the permission of job script file '%s' to be executable for jobid [%s]: %s
JAAGENTJOBRUNCLI200009,2,In %s(), failed to encode environment variables '%s' for jobid [%s]: %s
JAAGENTJOBRUNCLI200010,2,In %s(), failed to create start file '%s' for jobid [%s]: %s
JAAGENTJOBRUNCLI200011,2,In %s(), failed to create end file '%s' for jobid [%s]: %s
JAAGENTJOBRUNCLI200012,2,In %s(), failed to run the job script on new process for jobid [%s]: %s
JAAGENTJOBRUNCLI200013,2,In %s(), failed to update the transaction file '%s' with result [%d] and job status [%d] for jobid [%s]: %s
JAAGENTJOBRUNCLI200014,2,In %s(), failed to write current time to file '%s' for jobid [%s]: %s
JAAGENTJOBRUNCLI200015,2,In %s(), failed to create job result json file for jobid [%s]: %s
JAAGENTJOBRUNCLI200016,2,In %s(), failed to write current time to start file '%s' for jobid [%s]: %s
JAAGENTJOBRUNCLI200017,2,In %s(), failed to wait for the job script process for jobid [%s]: %s
JAAGENTJOBRUNCLI200018,2,In %s(), failed to write current time to end file '%s' for jobid [%s]: %s
JAAGENTJOBRUNCLI200019,2,In %s(), failed to get server ip by server id [%s] for jobid [%s]: %s
JAAGENTJOBRUNCLI200020,2,In %s(), failed to read tmp job file '%s' for jobid [%s]: %s
JAAGENTJOBRUNCLI200021,2,In %s(), failed to read stdout file '%s' for jobid [%s]: %s
JAAGENTJOBRUNCLI200022,2,In %s(), failed to read stderr file '%s' for jobid [%s]: %s
JAAGENTJOBRUNCLI200023,2,In %s(), failed to read ret file '%s' for jobid [%s]: %s
JAAGENTJOBRUNCLI200024,2,In %s(), failed to convert ret '%s' to int for jobid [%s]: %s
JAAGENTJOBRUNCLI200025,2,In %s(), failed to write exit code [%s] to job file '%s' for jobid [%s]: %s
JAAGENTJOBRUNCLI200026,2,In %s(), failed to wait for the jobs completion and delete flag file '%s' for jobid [%s]: %s
JAAGENTJOBRUNCLI200027,2,In %s(), failed to write exit code [%d] to ret file '%s': %s
JAAGENTJOBRUNCLI200028,2,In %s(), failed to lock the file [%s] for jobid [%s]: %v
JAAGENTJOBRUNCLI200029,2,In %s(), failed to create lock file [%s] for jobid [%s]: %v
JAAGENTJOBRUNCLI200030,2,In %s(), failed to unlock the file [%s] for jobid [%s]: %v
JAAGENTJOBRUNCLI200031,2,In %s(), failed to close the file [%s] for jobid [%s]: %v
JAAGENTJOBRUNCLI200032,2,In %s(), failed to remove the file [%s] for jobid [%s]: %v
JAAGENTJOBRUNCLI200033,2,In %s(), failed to decrypt password for jobid [%s]: %v

JAAGENTJOBRUNCLI100001,1,Memory error occurred. Exiting agent client process. stack trace: %s

# JobRunClient END

# AgentManager START
JAAGENTMNG000001,0,In %s(), creating job result file '%s', abort_flag=%t
JAAGENTMNG000002,0,In %s(), job:%s is already under abort process
JAAGENTMNG000003,0,In %s(), created abort flag file [%s] for jobid [%s]
JAAGENTMNG000005,0,In %s(), processing job run request: jobid [%s], method [%d], type [%s], kind [%s], hostname [%s], version [%v], serverid [%s]
JAAGENTMNG000006,0,In %s(), run count file already exists for jobid [%s]. job run is cancelled
JAAGENTMNG000007,0,In %s(), job result is sent successfully for jobid [%s]
JAAGENTMNG000008,0,In %s(), skipped sending job result for jobid [%s] as method is %d
JAAGENTMNG000009,0,In %s(), job result response for jobid [%s] is not ok: result [%d], message [%s], pre_unique_id [%s]
JAAGENTMNG000010,0,In %s(), failed to read serverIPs file [%s]: %s. creating a new one: IP [%s], serverID [%s]
JAAGENTMNG000011,0,In %s(), job file [%s] in exec, but no associated json file [%s] exists: %v
JAAGENTMNG000012,0,In %s(), job run script encoded with : [%v]. script file: [%v]

JAAGENTMNG200001,2,In %s(), failed to prepare tcp data from event data: %s
JAAGENTMNG200006,2,In %s(), failed to remove reboot flag file '%s': %v
JAAGENTMNG200008,2,In %s(), failed to check abort flag file for jobid [%s]: %v
JAAGENTMNG200009,2,In %s(), failed to send response to server for jobid [%s]: %v
JAAGENTMNG200010,2,In %s(), failed to create sub directories if not exist: %v
JAAGENTMNG200011,2,In %s(), failed to unmarshal event data [raw=%s]: %v
JAAGENTMNG200012,2,In %s(), tcp meta tags validation has failed: %v
JAAGENTMNG200013,2,In %s(), connection rejected, failed to get connection ip: %v
JAAGENTMNG200014,2,In %s(), connection from [%s] rejected. Allowed server is [%s].
JAAGENTMNG200015,2,In %s(), failed to update or append serverIPs file [%s]: %v
JAAGENTMNG200016,2,In %s(), failed to send to server: %v
JAAGENTMNG200017,2,In %s(), invalid tcp kind: %s
JAAGENTMNG200018,2,In %s(), failed to check if job is already running for jobid [%s]: %s
JAAGENTMNG200019,2,In %s(), failed to start the job run process for jobid [%s]: %v
JAAGENTMNG200020,2,In %s(), failed to create event file for jobid [%s]: %v
JAAGENTMNG200021,2,In %s(), failed to handle job kind [%s]: %v
JAAGENTMNG200022,2,In %s(), failed to start fcopy client process [%s]: %v
JAAGENTMNG200023,2,In %s(), failed to add UID [%s] to tmp job file [%s]: %v
JAAGENTMNG200024,2,In %s(), failed to send job result for jobid [%s], retry count [%d]: %v
JAAGENTMNG200025,2,In %s(), failed to write to file [%s]: %v
JAAGENTMNG200026,2,In %s(), failed to search pattern [%s] in dir [%s]: %v
JAAGENTMNG200027,2,In %s(), failed to handle missing job file for check job of jobid [%s]: %s
JAAGENTMNG200028,2,In %s(), failed to move the matching files [%s] from dir [%s] to dir [%s]: %v
JAAGENTMNG200029,2,In %s(), failed to move file [%s] to dir [%s]: %v
JAAGENTMNG200030,2,In %s(), failed to remove dir [%s]: %v
JAAGENTMNG200031,2,In %s(), failed to get server IP by server ID [%s]: %v
JAAGENTMNG200032,2,In %s(), failed to check reboot flag file [%s] for jobid [%s]: %v
JAAGENTMNG200033,2,In %s(), failed to type cast to %T. raw_data=%s
JAAGENTMNG200034,2,In %s(), failed to read file [%s]: %v
JAAGENTMNG200035,2,In %s(), failed to get encoding. default code page is used to encode. configured code page: [%v], default code page: [%v], target file: [%v]
JAAGENTMNG200036,2,In %s(), failed to get encoding. default code page is used to encode environment variables. configured code page: [%v], default code page: [%v] 
JAAGENTMNG200037,2,In %s(), failed to remove the file [%s] for jobid [%s]: %v
JAAGENTMNG200038,2,In %s(), unmarshal failed: %v 

JAAGENTMNG300002,3,In %s(), data is corrupted in serverIPs file [%s] [raw_data=%s]. creating a new one: IP [%s], serverID [%s]
JAAGENTMNG300003,3,In %s(), job file for jobID [%s] was not found in any of folder %v
JAAGENTMNG300004,3,In %s(), related data files are missing for prefix [%s]: %v
JAAGENTMNG300005,3,In %s(), failed to get encoding. default code page is used to encode. configured code page: [%v]. default code page: [%v]
JAAGENTMNG300006,3,In %s(), event file no longer exists for jobid [%s], filename [%s] : %v , sending jobresult has been stopped

JAAGENTMNG400001,4,In %s(), preparing tcp data from event data: event_name [%s], kind [%s], jaz_version [%d], hostname [%s], version [%v], serverid [%s]
JAAGENTMNG400002,4,In %s(), found the related .job file [%s] under dir [%s] for jobid [%s]
JAAGENTMNG400003,4,In %s(), found the related .job file [%s] under dir [%s] for jobid [%s]. skipped abort.
JAAGENTMNG400004,4,In %s(), checking job abort flag for jobid [%s]
JAAGENTMNG400005,4,In %s(), agent manager one time goroutine has started
JAAGENTMNG400006,4,In %s(), validating tcp meta tags for %s
JAAGENTMNG400007,4,In %s(), connection from [%s] is allowed. Allowed server is [%s].
JAAGENTMNG400008,4,In %s(), serverIPs file [%s] does not exit. creating a new one: IP [%s], serverID [%s]
JAAGENTMNG400009,4,In %s(), serverIPs file [%s] already has IP [%s], serverID [%s]
JAAGENTMNG400010,4,In %s(), serverID [%s] will be updated from old IP [%s] to new IP [%s] in serverIPs file [%s]
JAAGENTMNG400011,4,In %s(), IP [%s], serverID [%s] will be added in serverIPs file [%s]
JAAGENTMNG400012,4,In %s(), handling event: event_name [%s], kind [%s], jaz_version [%d], hostname [%s], version [%v], serverid [%s]
JAAGENTMNG400013,4,In %s(), handling abort for jobid [%s]
JAAGENTMNG400014,4,In %s(), handled abort for jobid [%s]
JAAGENTMNG400015,4,In %s(), event file [%s] is created for jobid [%s]
JAAGENTMNG400016,4,In %s(), current time is written to job file [%s]
JAAGENTMNG400017,4,In %s(), renamed job file [%s] -> [%s]
JAAGENTMNG400018,4,In %s(), moved the file [%s] to dir [%s]
JAAGENTMNG400019,4,In %s(), fcopy client process [%d] has started
JAAGENTMNG400020,4,In %s(), moved the matching files [%s] from dir [%s] to dir [%s]
JAAGENTMNG400021,4,In %s(), job result response is ok: result [%d]
JAAGENTMNG400022,4,In %s(), start check job processing for jobID [%d]
JAAGENTMNG400023,4,In %s(), found the job file with jobid [%s] under folder [%s]: %s
JAAGENTMNG400024,4,In %s(), jobid [%s] is still running in folder %s. skipped further processing.
JAAGENTMNG400025,4,In %s(), starting the check job process: kind [%s], hostname [%s], version [%v], serverid [%s], host_job_list %v
JAAGENTMNG400026,4,In %s(), triggered job result for jobid [%s]
JAAGENTMNG400027,4,In %s(), check job response has been successfully sent
JAAGENTMNG400028,4,In %s(), server IP is same. Existing IP %s is the same as received IP %s.
JAAGENTMNG400029,4,In %s(), job run client process [%d] has started
JAAGENTMNG400030,4,In %s(), reboot flag file [%s] exists, but reboot process no longer exists for jobid [%s]
JAAGENTMNG400031,4,In %s(), processing the event: event_name [%s], jaz_version [%d]
JAAGENTMNG400032,4,In %s(), job result response successfully received. Content: %v
JAAGENTMNG400033,4,In %s(), processing file copy kind: jobid [%s], type [%s]
JAAGENTMNG400034,4,In %s(), checking the double execution for jobid [%s] and serverid [%s]
JAAGENTMNG400035,4,In %s(), found no existing transaction file with jobid [%s]
JAAGENTMNG400036,4,In %s(), found existing transaction files with jobid [%s]: %s
JAAGENTMNG400037,4,In %s(), checking server id for transaction file with jobid [%s]: %s
JAAGENTMNG400038,4,In %s(), jobid [%s] from server ID [%s] is already running with existing file [%s]
JAAGENTMNG400039,4,In %s(), processing finished job %s in folder %s.

# AgentManager END

# RebootJob START

JAAGENTREBOOT400009,4,In %s(), search dir '%s', targetFile '%s', rebootWaitTime %d, rebootModeFlag %d
JAAGENTREBOOT400010,4,In %s(), reboot mode off: target flag file '%s' is deleted
JAAGENTREBOOT400011,4,In %s(), only one .job file remains under folder '%s' — proceeding to delete target file '%s'
JAAGENTREBOOT400012,4,In %s(), reboot wait time reached — proceeding to delete target file '%s'
JAAGENTREBOOT400013,4,In %s(), waiting until only one .job file remains (currently: %d), or timeout...

# RebootJob END

# Monitor Jobs START
JAAGENTMNTJOB000001,0,In %s(), Agent monitor jobs process started
JAAGENTMNTJOB000002,0,In %s(), [%s] Agent monitor jobs worker has stopped
JAAGENTMNTJOB000003,0,In %s(), process [%d] does not exist but the job file '%s' remains under %s folder
JAAGENTMNTJOB000005,0,In %s(), successfully aborted the job [jobid:%s]
JAAGENTMNTJOB000006,0,In %s(), process id [%d] of the job [%s] to be aborted no longer exists

JAAGENTMNTJOB200001,2,In %s(), failed to process job file '%s' for PID check: %v
JAAGENTMNTJOB200002,2,In %s(), failed to check job pids: %v
JAAGENTMNTJOB200003,2,In %s(), failed to check abort flags: %v

JAAGENTMNTJOB400001,4,In %s(), checking job pids
JAAGENTMNTJOB400002,4,In %s(), read dir '%s', total entries: %d
JAAGENTMNTJOB400003,4,In %s(), processing job file '%s' for PID check
JAAGENTMNTJOB400004,4,In %s(), skipping the job file '%s' as the process [%d] still exists
JAAGENTMNTJOB400005,4,In %s(), the process [%d] does not exist for job file '%s'
JAAGENTMNTJOB400006,4,In %s(), skipping the job file '%s' as it no longer exists after pid check
JAAGENTMNTJOB400007,4,In %s(), associated data file with the job file '%s' is '%s'
JAAGENTMNTJOB400008,4,In %s(), checking abort flags
JAAGENTMNTJOB400009,4,In %s(), processing abort for jobid: %s
JAAGENTMNTJOB400010,4,In %s(), found job files for jobid [%s] under dir [%s]
JAAGENTMNTJOB400011,4,In %s(), found no job file for jobid [%s] under dir [%s]
JAAGENTMNTJOB400012,4,In %s(), processed abort for jobid: %s
JAAGENTMNTJOB400013,4,In %s(), failed to check lock for job file '%s': %v
JAAGENTMNTJOB400014,4,In %s(), job file [%s] is locked. skipped.

# Monitor Jobs END

# Housekeeper START
# [INFO]
JAAGENTHOUSEKEEPER000001,0,Agent housekeeper process started. JaCleanupRunTime: %d, JaCleanupTime: %d
JAAGENTHOUSEKEEPER000002,0,In %s(), the cleanup process with JaCleanupTime has started
JAAGENTHOUSEKEEPER000003,0,In %s(), the cleanup process with JaCleanupTime has ended
JAAGENTHOUSEKEEPER000004,0,In %s(), the cleanup process with JaCleanupRunTime has started
JAAGENTHOUSEKEEPER000005,0,In %s(), the cleanup process with JaCleanupRunTime has ended
JAAGENTHOUSEKEEPER000006,0,In %s(), invalid file '%s' is found
JAAGENTHOUSEKEEPER000007,0,In %s(), invalid file '%s' is deleted
JAAGENTHOUSEKEEPER000008,0,In %s(), job file '%s' is deleted
JAAGENTHOUSEKEEPER000009,0,In %s(), invalid folder '%s' is found
JAAGENTHOUSEKEEPER000010,0,In %s(), invalid folder '%s' is deleted
JAAGENTHOUSEKEEPER000011,0,In %s(), Delete: %d success, %d fail
JAAGENTHOUSEKEEPER000012,0,In %s(), Delete invalid files : %d success, %d fail
JAAGENTHOUSEKEEPER000013,0,In %s(), Delete invalid folders : %d success, %d fail
JAAGENTHOUSEKEEPER000014,0,In %s(), Moved under error dir : %d
JAAGENTHOUSEKEEPER000015,0,In %s(), Execution time : %d sec.
JAAGENTHOUSEKEEPER000016,0,In %s(), index job file '%s' is deleted
JAAGENTHOUSEKEEPER000017,0,In %s(), in Jobs folder, Delete: %d success, %d fail

# [DEBUG]
JAAGENTHOUSEKEEPER400001,4,In %s(), housekeeper has run. JaCleanupRunTime: %d, JaCleanupTime: %d
JAAGENTHOUSEKEEPER400002,4,In %s(), jacleanup JaCleanupTime[%d] time[%d]
JAAGENTHOUSEKEEPER400003,4,In %s(), jacleanup JaCleanupRunTime [%d] current H[%d]
JAAGENTHOUSEKEEPER400004,4,In %s(), day: %d
JAAGENTHOUSEKEEPER400005,4,In %s(), will delete files before %d
JAAGENTHOUSEKEEPER400006,4,In %s(), under folder '%s', some files are missing or sub folder is not under close folder. Moving to error folder.
JAAGENTHOUSEKEEPER400007,4,In %s(), [%s] worker has stopped.

# [ERROR]
JAAGENTHOUSEKEEPER200001,2,In %s(), failed to delete invalid file '%s': %s
JAAGENTHOUSEKEEPER200002,2,In %s(), failed to check associated archive folder '%s': %s
JAAGENTHOUSEKEEPER200003,2,In %s(), failed to read associated archive folder '%s': %s
JAAGENTHOUSEKEEPER200004,2,In %s(), failed to move associated archive folder '%s' to error folder: %s
JAAGENTHOUSEKEEPER200005,2,In %s(), failed to move .job file '%s' to error folder: %s
JAAGENTHOUSEKEEPER200006,2,In %s(), failed to delete associated archive folder '%s': %s
JAAGENTHOUSEKEEPER200007,2,In %s(), failed to delete job file '%s': %s
JAAGENTHOUSEKEEPER200008,2,In %s(), failed to delete invalid folder '%s': %s
JAAGENTHOUSEKEEPER200009,2,In %s(), failed to delete index job file '%s': %s
JAAGENTHOUSEKEEPER200010,2,In %s(), failed to read info of file '%s': %s 
JAAGENTHOUSEKEEPER200011,2,In %s(), cleanup run count folder: %s
# Housekeeper END

# Retrigger START

JAAGENTRETRIGGER200001,2,In %s(), failed to read the directory '%s': %s
JAAGENTRETRIGGER200002,2,In %s(), failed to rename the file '%s' to '%s': %s

JAAGENTRETRIGGER400001,4,In %s(), reading the directory '%s'
JAAGENTRETRIGGER400002,4,In %s(), %d entries found in the directory '%s'
JAAGENTRETRIGGER400003,4,In %s(), found entry in %s: %s
JAAGENTRETRIGGER400004,4,In %s(), skipped the entry %s as it is a directory
JAAGENTRETRIGGER400005,4,In %s(), retriggering the file '%s', destination path is '%s'
JAAGENTRETRIGGER400006,4,In %s(), renamed the file '%s' to '%s'
JAAGENTRETRIGGER400007,4,In %s(), event is retriggered for file '%s'
JAAGENTRETRIGGER400008,4,In %s(), second rename is required for event trigger: file '%s', destination path is '%s'

# Retrigger END

# LOGGER START
JALOGGER200002,2,failed to write log: %v
# LOGGER END

JADEBUG000001,0,In %s(),(data in mb) HeapAlloc: %d, Approx. next GC threshold: %d, heap free for reuse: %d, heap actually in use: %d, total heap obtained from OS: %d, heap returned to OS: %d, 