Cannot run program "hostname". Error - 2k no such file directory
I am getting the error:
[15:41:42]Collecting changes in 1 VCS root
[15:41:42]The build is removed from the queue to be prepared for the start
[15:41:42]Starting the build on the agent sdlc-base-agent-tc2-2-pv2m6
[15:41:46]Could not get machine hostname: Cannot run program "hostname": error=2, No such file or directory
Whenever I run a build. There are many builds available, and all of them give me this error when trying to fun a build.
Please sign in to leave a comment.
Hi,
it seems like either the agent or the server is trying to run hostname but cannot find it. Please ensure that it's available on the agents and server and that the user running the service has permissions to run it.