Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
fahemoh opened this issue Jul 14, 2020 · 2 comments
Open

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

fahemoh opened this issue Jul 14, 2020 · 2 comments

Comments

@fahemoh
Copy link

fahemoh commented Jul 14, 2020

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
Copy link
Collaborator

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
Copy link
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants