Troubleshooting Exit Code: -321


Summary

If timeout occurs in the script of the schedule, Exit Code: -321 is output.

- Windows Edition

--- log excerpt ---
03/22/2018 05:41:38.882 {IDS_STRING3037}Running Pre-snapshot script
03/22/2018 05:41:38.882 Script: C:\Users\Administrator\Desktop\test.bat
03/22/2018 05:41:38.884 cmd started
03/22/2018 05:43:38.885 WaitForSingleObject result = 258
03/22/2018 05:43:38.885 RunCmd WAIT_TIMEOUT Level=ERROR [0]
03/22/2018 05:43:38.885 cmd exit code = -1
03/22/2018 05:43:38.885 {IDS_STRING3035}Task stopped by a script Level=ERROR [0]
03/22/2018 05:44:38.887 {IDS_STRING3037}Running Pre-snapshot script
03/22/2018 05:44:38.887 Script: C:\Users\Administrator\Desktop\test.bat
03/22/2018 05:44:38.890 cmd started
03/22/2018 05:46:38.891 WaitForSingleObject result = 258
03/22/2018 05:46:38.891 RunCmd WAIT_TIMEOUT Level=ERROR [0]
03/22/2018 05:46:38.891 cmd exit code = -1
03/22/2018 05:46:38.891 {IDS_STRING3035}Task stopped by a script Level=ERROR [0]
    :
    :
03/22/2018 05:46:38.895 {IDS_STRING3018}Exit Code: -321
03/22/2018 05:46:38.898 {IDS_STRING3013}Processed 0.00 GB in 00:05:02 ID=1521697296; {IDS_STRING3019}6 Errors; {IDS_STRING3009}There were errors during the operation.
----------------


- Linux Edition

--- log excerpt ---
03/23/2018 05:09:54.533 doing snapshot
03/23/2018 05:09:54.553 ######## Running script file:/root/Desktop/test.sh #######
03/23/2018 05:10:54.618 sh /root/Desktop/test.sh timeout(60) Level=WARNING [0]
03/23/2018 05:10:54.618 exit code:2147483647
03/23/2018 05:10:54.618 ######## end of /root/Desktop/test.sh #######
03/23/2018 05:10:54.618 pre-snapshot script returns 2147483647, backup terminated Level=ERROR [0]
03/23/2018 05:10:54.620 {IDS_STRING3167}Complete task 1006, 1, exit code -321
03/23/2018 05:10:54.661 {IDS_STRING3190}Copy engine fails with error: [-321] Error running script Level=ERROR [2]
03/23/2018 05:10:54.830 {IDS_STRING3013}Processed 0.00 GB in 00:01:08 ID=1521781785; {IDS_STRING3019}2 Errors; {IDS_STRING3009}There were errors during the operation.
----------------

Exit Code: -321
Error running script

Exit code list
https://kb.netjapan.com/index.php?action=artikel&cat=5&id=50&artlang=en


More information

- Windows Edition

There is the following Windows system error.

WaitForSingleObject result = 258

WAIT_TIMEOUT
0x00000102L

WaitForSingleObject result is a WaitForSingleObject function, please refer to return code.
https://msdn.microsoft.com/en-us/library/windows/desktop/ms681381(v=vs.85).aspx


-Linux Edition

The aipcopy process is calling the script , and aipcopy process itself to terminate.
Therefore, exit code: 2147483647 will be outputted.


Resolution

From the task log, it will be found only script timeout.
To investigate the cause, you need to investigate the script yourself.

Tags: NJKB-100
Last update:
2018-08-31 03:52
Author:
Yoshinobu ito
Revision:
1.1
Average rating:0 (0 Votes)

You cannot comment on this entry

Chuck Norris has counted to infinity. Twice.