ibm-messaging / mq-container-mft

Samples for integrating MQ MFT in Cloud scenarios
13 stars 12 forks source link

executable file not found in $PATH": unknown error #8

Open fahemoh opened 4 years ago

fahemoh commented 4 years ago

docker exec -ti fteListAgents is giving

OCI runtime exec failed: exec failed: container_linux.go:349: starting container process caused "exec: \"fteListAgents\": executable file not found in $PATH": unknown error

Client: Docker Engine - Community Version: 19.03.9

ShashikanthRaoT commented 4 years ago

The reason is fteListAgents command is not in the PATH. You can run by providing the absolute path for the command. But the command requires the MFT configuration information as well, i.e BFG_DATA environment variable must point the folder where MFT configuration is located. So basically two steps required, export BFG_DATA, export PATH having MFT commands path and then run the fteListAgents command.

ShashikanthRaoT commented 4 years ago

I tried running multiple commands in docker exec: docker exec bash -c 'export BFG_DATA=/mftdata ; export PATH=$PATH:/var/mqm/mft/bin ; fteListAgents' where /mftdata is directory where MFT configuation is located and /var/mqm/mft is where MFT binaries are located.