Error: F_JG231B: Operating System Command Failed With Exit Code 255
Issue
While running a stats job (hvrstats), the following errors appear:
F_JG231B: Operating System command '/Path/to/hvr_home/bin/hvr.exe' -w /Path/to/perl.exe /Path/to/hvr_home/script/hvrstatistics.pl -i -o /Path/to/hvr_config/hubs/_hubname_/stats/staging.csv -g minute -g channel -g location -g table -m 200000 -R atj -C -s ; -V 6100190 _hubname_' failed with exit code 255. Details: Can not read offset in state file '/Path/to/hvr_config/hubs/_hubname_/stats/stats.state' at /Path/to/hvr_home/script/hvrstatistics.pl line 7914, <STATE> line 1.
F_JJ131E: Command hvrstatistics -i -o /Path/to/hvr_config/hubs/_hubname_/stats/staging.csv -g minute -g channel -g location -g table -m 200000 -R atj -C -s ; -V 6100190 _hubname_ returned a non-zero exit code.
Environment
- HVR 6
- Statistics
Resolution
To resolve this issue, follow these steps:
- Suspend the stats job. See Managing jobs for UI and hvrsuspend for CLI.
- Delete the
stats.state
file located in theHVR_CONFIG/hubs/hubname/stats/
directory on the hub machine. - Start the stats job. See Managing jobs for UI and hvrstart for CLI.
NOTE: When you delete the
stats.state
file, HVR will read thehvr.out
log file from the beginning.
Cause
This issue occurs when an unexpected outage, such as a disk space outage, affects the hub machine. Such outages can interrupt the writing of the stats.state
file, causing corruption. Since the file cannot be repaired, you must delete it to allow HVR to re-create it correctly.