KB Article #180045

r4edi(archiver):backup program exit code is 1 - assume backup failed

Problem

-- getting such error when archiving

ERROR :20190114:22.05.00.83:r4edi(archiver):backup program exit code is 1 - assume backup failed

DEBUG :20190114:22.05.00.83:r4edi(archiver):archiver task "B2Bi Archiver 1": tell the Logger server that the archiving failed
INFO :20190114:22.05.00.83:r4edi(archiver):archiver task "B2Bi Archiver 1": : archiving complete
DEBUG :20190114:22.05.00.83:r4edi(archiver):archiver task "B2Bi Archiver 1": Archiving complete
DEBUG :20190114:22.05.00.83:r4edi(archiver):archiver task "B2Bi Archiver 1": wait until 20190115:21.00.00 for next archiving
DEBUG :20190114:22.05.00.83:r4edi(archiver):archiver task "B2Bi Archiver 1": wait 82500 seconds for timeout to expire for archiving

Resolution

* This error with code 1 occurs when the execution of the script fails.

Set the debug on 1 archiver that fails and you will get such kind of traces :

INFO:20190116 11.35.00.36:b2b-server:r4edi(archiver):archiver task "B2Bi Archiver 1": begins archiving
DEBUG:20190116 11.35.00.36:b2b-server:r4edi(archiver):archiver task "B2Bi Archiver 1": switch to a new inactive log entries file
DEBUG:20190116 11.35.00.36:b2b-server:r4edi(archiver):archiver task "B2Bi Archiver 1": New Inactive log file
DEBUG:20190116 11.35.00.37:b2b-server:r4edi(archiver):archiver task "B2Bi Archiver 1": get a list from the Logger server of all inactive log entries files to archive
DEBUG:20190116 11.35.00.39:b2b-server:r4edi(archiver):archiver task "B2Bi Archiver 1": archive 1 inactive log entries files
DEBUG:20190116 11.35.00.39:b2b-server:r4edi(archiver):archiver task "B2Bi Archiver 1": tell the Logger server that we will archive 1 inactive log entries files
DEBUG:20190116 11.35.00.39:b2b-server:r4edi(archiver):archiver task "B2Bi Archiver 1": running the "sh /opt/axway/shared/b2bi/local/config/archiver/archiverscript_1.sh /opt/axway/b2bi/Integrator/data/tmp/fileJqAG4I" command
ERROR:20190116 11.35.02.39:b2b-server:r4edi(archiver):backup program exit code is 1 - assume backup failed
DEBUG:20190116 11.35.02.39:b2b-server:r4edi(archiver):archiver task "B2Bi Archiver 1": tell the Logger server that the archiving failed
INFO:20190116 11.35.02.39:b2b-server:r4edi(archiver):archiver task "B2Bi Archiver 1": : archiving complete
DEBUG:20190116 11.35.02.39:b2b-server:r4edi(archiver):archiver task "B2Bi Archiver 1": Archiving complete

- run Integrator profile

- run in a console the command written in the trace

Ex :

sh /opt/axway/shared/b2bi/local/config/archiver/archiverscript_1.sh /opt/axway/b2bi/Integrator/data/tmp/fileJqAG4I

- You should get an error, most likely a filer file is missing.


Possible reason of missing filer file : it might be that the filerfromet script has been executed to clean-up the filer directory, and removed a filer file before the script tried to remove it. It is recommended to set a retention date for the filerfromet few days more that the archiver retention period.