Bug 1393572 - "executable file not found in $PATH" diagnostic now includes unnecessary/confusing extras
Summary: "executable file not found in $PATH" diagnostic now includes unnecessary/conf...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: docker
Version: 7.3
Hardware: Unspecified
OS: Linux
unspecified
medium
Target Milestone: rc
: ---
Assignee: Antonio Murdaca
QA Contact: atomic-bugs@redhat.com
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-11-09 21:45 UTC by Ed Santiago
Modified: 2019-03-06 01:09 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-06-30 14:56:45 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Ed Santiago 2016-11-09 21:45:23 UTC
At some point along the docker-1.12 process, the error message for "command not found" changed:

   # docker run centos no-such-binary

   - Error response from daemon: oci runtime error: exec: "no-such-binary": executable file not found in $PATH.

   + Error response from daemon: invalid header field value "oci runtime error: container_linux.go:247: starting container process caused \"exec: \\\"no-such-binary\\\": executable file not found in $PATH\"\n".

That is: there is now a spurious "invalid header field value etc etc". And the escaped quotes.

Present in docker-1.12.3-1.el7 , docker-1.12.3-4.el7 , docker-latest-1.12.3-2.el7 (and probably many more) but, curiously, not in docker-latest-1.12.1-3.el7.

Comment 1 Antonio Murdaca 2016-11-09 23:20:22 UTC
upstream messed this up I guess, tracking upstream at https://github.com/docker/docker/issues/28218

Comment 3 Chris Evich 2017-02-21 14:36:53 UTC
Setting this to medium since it's causing a CI test to fail.

Comment 4 Daniel Walsh 2017-06-30 14:56:45 UTC
I believe this is fixed in the current release.

Comment 5 Ed Santiago 2017-07-03 13:53:41 UTC
Seems to be fixed in 1.13:

   docker-latest-1.13.1-19.1.git19ea2d3.el7:
    /usr/bin/docker-latest: Error response from daemon: oci runtime error: container_linux.go:247: starting container process caused "exec: \"no-such-binary\": executable file not found in $PATH".

FWIW, not in 1.12:

  docker-1.12.6-39.1.git6ffd653.el7:
    /usr/bin/docker-current: Error response from daemon: invalid header field value "oci runtime error: container_linux.go:247: starting container process caused \"exec: \\\"no-such-binary\\\": executable file not found in $PATH\"\n".


Note You need to log in before you can comment on or make changes to this bug.