Saturday 20 June 2020

java.io.IOException: Cannot run program "hostname": error=2, No such file or directory

"I am getting an error when starting Traffic Parrot <java.io.IOException: Cannot run program "hostname": error=2, No such file or directory>" - Senior Performance Engineer working for an Australian Bank

It looks like an operating system configuration issue. You are missing the "hostname" command.

To check if that is the case, please SSH to the container running TP and execute "hostname" in the shell.

To solve this issue, install "hostname" in your docker image. For example, add to your Dockerfile:

yum -y install hostname

or

apt install hostname



No comments:

Post a Comment