KB Article #182515

B2Bi upgrade failure : Failed to run command

Problem

During B2Bi upgrade, error could occurred related to a wrong version of .x4 in the /axway/b2bi/shared/local/4edi/component/ folder :

ERROR :20230302:16.03.57:r4edi(setup):/build/target/src/install_xib4/mb/lib/inst_mbc.s4m:348:Failed to run command . /b2bprod/axway/Integrator/local/bin/core_setup;$CORE_ROOT/bin/r4edi -2 /b2bprod/axway/Integrator/install/log/install.log -3 /b2bprod/axway/Integrator/install/log/install.log -O /b2bprod/axway/Integrator/4edi/load -O /b2bprod/axway/Integrator/bin $CORE_ROOT/install/pgm/regmbc.x4 -S B2BX_1 -l /b2bprod/axway/Integrator/data/tmp/regmbc.lst -u -t root -i 1 -f Core -d. $Exit=112

Check the content of "/Integrator/install/log/install.log" when the upgrade issue occurred.
It complains about the presence of an .x4 with generates the issue, in this case "procmbc_dynamicmodifier.x4" :

ERROR :20230303:14.12.04:r4edi(regmbc):/build/target/src/install_xib4/mb/pgm/regmbc.s4:1616:The program path '/b2bprod01nfs/axway/b2bi/shared/local/4edi/component/procmbc_dynamicmodifier.x4' must be relative to an environment variable

ERROR :20230303:14.12.04:r4edi(regmbc):/build/target/src/install_xib4/../../src/install_lib/lib/logmsg.s4m:104: Update failed - The program path '/b2bprod01nfs/axway/b2bi/shared/local/4edi/component/procmbc_dynamicmodifier.x4' must be relative to an environment variable

ERROR :20230303:14.12.04:r4edi(regmbc):/build/target/src/install_xib4/../../src/install_lib/lib/logmsg.s4m:104:Failed to upgrade /b2bprod/axway/Integrator/4edi/component/procmbc_dynamicmodifier.x4 in dataset B2BX_3, $error = 131

ERROR :20230303:14.12.08:r4edi(setup):/build/target/src/install_xib4/mb/lib/inst_mbc.s4m:348:Failed to run command . /b2bprod/axway/Integrator/local/bin/core_setup;$CORE_ROOT/bin/r4edi -2 /b2bprod/axway/Integrator/install/log/install.log -3 /b2bprod/axway/Integrator/install/log/install.log -O /b2bprod/axway/Integrator/4edi/load -O /b2bprod/axway/Integrator/bin $CORE_ROOT/install/pgm/regmbc.x4 -S B2BX_3 -l /b2bprod/axway/Integrator/data/tmp/regmbc.lst -u -t root -i 1 -f Core -d. $Exit=112


Resolution

1) Before start the upgrade, check the content of "/shared/local/4edi/component/" and compared to the .x4 delivered by default in "/Integrator/4edi/component/".
2) If old versions of .x4 are available in "/shared/local/4edi/component/, delete them before start the upgrade.