docker_cli_exec_test.go 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523
  1. // +build !test_no_exec
  2. package main
  3. import (
  4. "bufio"
  5. "fmt"
  6. "net/http"
  7. "os"
  8. "os/exec"
  9. "path/filepath"
  10. "reflect"
  11. "sort"
  12. "strings"
  13. "sync"
  14. "time"
  15. "github.com/docker/docker/pkg/integration/checker"
  16. "github.com/go-check/check"
  17. )
  18. func (s *DockerSuite) TestExec(c *check.C) {
  19. testRequires(c, DaemonIsLinux)
  20. dockerCmd(c, "run", "-d", "--name", "testing", "busybox", "sh", "-c", "echo test > /tmp/file && top")
  21. out, _ := dockerCmd(c, "exec", "testing", "cat", "/tmp/file")
  22. out = strings.Trim(out, "\r\n")
  23. c.Assert(out, checker.Equals, "test")
  24. }
  25. func (s *DockerSuite) TestExecInteractive(c *check.C) {
  26. testRequires(c, DaemonIsLinux)
  27. dockerCmd(c, "run", "-d", "--name", "testing", "busybox", "sh", "-c", "echo test > /tmp/file && top")
  28. execCmd := exec.Command(dockerBinary, "exec", "-i", "testing", "sh")
  29. stdin, err := execCmd.StdinPipe()
  30. c.Assert(err, checker.IsNil)
  31. stdout, err := execCmd.StdoutPipe()
  32. c.Assert(err, checker.IsNil)
  33. err = execCmd.Start()
  34. c.Assert(err, checker.IsNil)
  35. _, err = stdin.Write([]byte("cat /tmp/file\n"))
  36. c.Assert(err, checker.IsNil)
  37. r := bufio.NewReader(stdout)
  38. line, err := r.ReadString('\n')
  39. c.Assert(err, checker.IsNil)
  40. line = strings.TrimSpace(line)
  41. c.Assert(line, checker.Equals, "test")
  42. err = stdin.Close()
  43. c.Assert(err, checker.IsNil)
  44. errChan := make(chan error)
  45. go func() {
  46. errChan <- execCmd.Wait()
  47. close(errChan)
  48. }()
  49. select {
  50. case err := <-errChan:
  51. c.Assert(err, checker.IsNil)
  52. case <-time.After(1 * time.Second):
  53. c.Fatal("docker exec failed to exit on stdin close")
  54. }
  55. }
  56. func (s *DockerSuite) TestExecAfterContainerRestart(c *check.C) {
  57. testRequires(c, DaemonIsLinux)
  58. out, _ := dockerCmd(c, "run", "-d", "busybox", "top")
  59. cleanedContainerID := strings.TrimSpace(out)
  60. c.Assert(waitRun(cleanedContainerID), check.IsNil)
  61. dockerCmd(c, "restart", cleanedContainerID)
  62. c.Assert(waitRun(cleanedContainerID), check.IsNil)
  63. out, _ = dockerCmd(c, "exec", cleanedContainerID, "echo", "hello")
  64. outStr := strings.TrimSpace(out)
  65. c.Assert(outStr, checker.Equals, "hello")
  66. }
  67. func (s *DockerDaemonSuite) TestExecAfterDaemonRestart(c *check.C) {
  68. testRequires(c, DaemonIsLinux)
  69. testRequires(c, SameHostDaemon)
  70. err := s.d.StartWithBusybox()
  71. c.Assert(err, checker.IsNil)
  72. out, err := s.d.Cmd("run", "-d", "--name", "top", "-p", "80", "busybox:latest", "top")
  73. c.Assert(err, checker.IsNil, check.Commentf("Could not run top: %s", out))
  74. err = s.d.Restart()
  75. c.Assert(err, checker.IsNil, check.Commentf("Could not restart daemon"))
  76. out, err = s.d.Cmd("start", "top")
  77. c.Assert(err, checker.IsNil, check.Commentf("Could not start top after daemon restart: %s", out))
  78. out, err = s.d.Cmd("exec", "top", "echo", "hello")
  79. c.Assert(err, checker.IsNil, check.Commentf("Could not exec on container top: %s", out))
  80. outStr := strings.TrimSpace(string(out))
  81. c.Assert(outStr, checker.Equals, "hello")
  82. }
  83. // Regression test for #9155, #9044
  84. func (s *DockerSuite) TestExecEnv(c *check.C) {
  85. testRequires(c, DaemonIsLinux)
  86. dockerCmd(c, "run", "-e", "LALA=value1", "-e", "LALA=value2",
  87. "-d", "--name", "testing", "busybox", "top")
  88. c.Assert(waitRun("testing"), check.IsNil)
  89. out, _ := dockerCmd(c, "exec", "testing", "env")
  90. c.Assert(out, checker.Not(checker.Contains), "LALA=value1")
  91. c.Assert(out, checker.Contains, "LALA=value2")
  92. c.Assert(out, checker.Contains, "HOME=/root")
  93. }
  94. func (s *DockerSuite) TestExecExitStatus(c *check.C) {
  95. testRequires(c, DaemonIsLinux)
  96. dockerCmd(c, "run", "-d", "--name", "top", "busybox", "top")
  97. // Test normal (non-detached) case first
  98. cmd := exec.Command(dockerBinary, "exec", "top", "sh", "-c", "exit 23")
  99. ec, _ := runCommand(cmd)
  100. c.Assert(ec, checker.Equals, 23)
  101. }
  102. func (s *DockerSuite) TestExecPausedContainer(c *check.C) {
  103. testRequires(c, DaemonIsLinux)
  104. defer unpauseAllContainers()
  105. out, _ := dockerCmd(c, "run", "-d", "--name", "testing", "busybox", "top")
  106. ContainerID := strings.TrimSpace(out)
  107. dockerCmd(c, "pause", "testing")
  108. out, _, err := dockerCmdWithError("exec", "-i", "-t", ContainerID, "echo", "hello")
  109. c.Assert(err, checker.NotNil, check.Commentf("container should fail to exec new conmmand if it is paused"))
  110. expected := ContainerID + " is paused, unpause the container before exec"
  111. c.Assert(out, checker.Contains, expected, check.Commentf("container should not exec new command if it is paused"))
  112. }
  113. // regression test for #9476
  114. func (s *DockerSuite) TestExecTTYCloseStdin(c *check.C) {
  115. testRequires(c, DaemonIsLinux)
  116. dockerCmd(c, "run", "-d", "-it", "--name", "exec_tty_stdin", "busybox")
  117. cmd := exec.Command(dockerBinary, "exec", "-i", "exec_tty_stdin", "cat")
  118. stdinRw, err := cmd.StdinPipe()
  119. c.Assert(err, checker.IsNil)
  120. stdinRw.Write([]byte("test"))
  121. stdinRw.Close()
  122. out, _, err := runCommandWithOutput(cmd)
  123. c.Assert(err, checker.IsNil, check.Commentf(out))
  124. out, _ = dockerCmd(c, "top", "exec_tty_stdin")
  125. outArr := strings.Split(out, "\n")
  126. c.Assert(len(outArr), checker.LessOrEqualThan, 3, check.Commentf("exec process left running"))
  127. c.Assert(out, checker.Not(checker.Contains), "nsenter-exec")
  128. }
  129. func (s *DockerSuite) TestExecTTYWithoutStdin(c *check.C) {
  130. testRequires(c, DaemonIsLinux)
  131. out, _ := dockerCmd(c, "run", "-d", "-ti", "busybox")
  132. id := strings.TrimSpace(out)
  133. c.Assert(waitRun(id), checker.IsNil)
  134. errChan := make(chan error)
  135. go func() {
  136. defer close(errChan)
  137. cmd := exec.Command(dockerBinary, "exec", "-ti", id, "true")
  138. if _, err := cmd.StdinPipe(); err != nil {
  139. errChan <- err
  140. return
  141. }
  142. expected := "cannot enable tty mode"
  143. if out, _, err := runCommandWithOutput(cmd); err == nil {
  144. errChan <- fmt.Errorf("exec should have failed")
  145. return
  146. } else if !strings.Contains(out, expected) {
  147. errChan <- fmt.Errorf("exec failed with error %q: expected %q", out, expected)
  148. return
  149. }
  150. }()
  151. select {
  152. case err := <-errChan:
  153. c.Assert(err, check.IsNil)
  154. case <-time.After(3 * time.Second):
  155. c.Fatal("exec is running but should have failed")
  156. }
  157. }
  158. func (s *DockerSuite) TestExecParseError(c *check.C) {
  159. testRequires(c, DaemonIsLinux)
  160. dockerCmd(c, "run", "-d", "--name", "top", "busybox", "top")
  161. // Test normal (non-detached) case first
  162. cmd := exec.Command(dockerBinary, "exec", "top")
  163. _, stderr, _, err := runCommandWithStdoutStderr(cmd)
  164. c.Assert(err, checker.NotNil)
  165. c.Assert(stderr, checker.Contains, "See '"+dockerBinary+" exec --help'")
  166. }
  167. func (s *DockerSuite) TestExecStopNotHanging(c *check.C) {
  168. testRequires(c, DaemonIsLinux)
  169. dockerCmd(c, "run", "-d", "--name", "testing", "busybox", "top")
  170. err := exec.Command(dockerBinary, "exec", "testing", "top").Start()
  171. c.Assert(err, checker.IsNil)
  172. type dstop struct {
  173. out []byte
  174. err error
  175. }
  176. ch := make(chan dstop)
  177. go func() {
  178. out, err := exec.Command(dockerBinary, "stop", "testing").CombinedOutput()
  179. ch <- dstop{out, err}
  180. close(ch)
  181. }()
  182. select {
  183. case <-time.After(3 * time.Second):
  184. c.Fatal("Container stop timed out")
  185. case s := <-ch:
  186. c.Assert(s.err, check.IsNil)
  187. }
  188. }
  189. func (s *DockerSuite) TestExecCgroup(c *check.C) {
  190. testRequires(c, NotUserNamespace)
  191. testRequires(c, DaemonIsLinux)
  192. dockerCmd(c, "run", "-d", "--name", "testing", "busybox", "top")
  193. out, _ := dockerCmd(c, "exec", "testing", "cat", "/proc/1/cgroup")
  194. containerCgroups := sort.StringSlice(strings.Split(out, "\n"))
  195. var wg sync.WaitGroup
  196. var mu sync.Mutex
  197. execCgroups := []sort.StringSlice{}
  198. errChan := make(chan error)
  199. // exec a few times concurrently to get consistent failure
  200. for i := 0; i < 5; i++ {
  201. wg.Add(1)
  202. go func() {
  203. out, _, err := dockerCmdWithError("exec", "testing", "cat", "/proc/self/cgroup")
  204. if err != nil {
  205. errChan <- err
  206. return
  207. }
  208. cg := sort.StringSlice(strings.Split(out, "\n"))
  209. mu.Lock()
  210. execCgroups = append(execCgroups, cg)
  211. mu.Unlock()
  212. wg.Done()
  213. }()
  214. }
  215. wg.Wait()
  216. close(errChan)
  217. for err := range errChan {
  218. c.Assert(err, checker.IsNil)
  219. }
  220. for _, cg := range execCgroups {
  221. if !reflect.DeepEqual(cg, containerCgroups) {
  222. fmt.Println("exec cgroups:")
  223. for _, name := range cg {
  224. fmt.Printf(" %s\n", name)
  225. }
  226. fmt.Println("container cgroups:")
  227. for _, name := range containerCgroups {
  228. fmt.Printf(" %s\n", name)
  229. }
  230. c.Fatal("cgroups mismatched")
  231. }
  232. }
  233. }
  234. func (s *DockerSuite) TestInspectExecID(c *check.C) {
  235. testRequires(c, DaemonIsLinux)
  236. out, _ := dockerCmd(c, "run", "-d", "busybox", "top")
  237. id := strings.TrimSuffix(out, "\n")
  238. out = inspectField(c, id, "ExecIDs")
  239. c.Assert(out, checker.Equals, "[]", check.Commentf("ExecIDs should be empty, got: %s", out))
  240. // Start an exec, have it block waiting so we can do some checking
  241. cmd := exec.Command(dockerBinary, "exec", id, "sh", "-c",
  242. "while ! test -e /tmp/execid1; do sleep 1; done")
  243. err := cmd.Start()
  244. c.Assert(err, checker.IsNil, check.Commentf("failed to start the exec cmd"))
  245. // Give the exec 10 chances/seconds to start then give up and stop the test
  246. tries := 10
  247. for i := 0; i < tries; i++ {
  248. // Since its still running we should see exec as part of the container
  249. out = inspectField(c, id, "ExecIDs")
  250. out = strings.TrimSuffix(out, "\n")
  251. if out != "[]" && out != "<no value>" {
  252. break
  253. }
  254. c.Assert(i+1, checker.Not(checker.Equals), tries, check.Commentf("ExecIDs should be empty, got: %s", out))
  255. time.Sleep(1 * time.Second)
  256. }
  257. // Save execID for later
  258. execID, err := inspectFilter(id, "index .ExecIDs 0")
  259. c.Assert(err, checker.IsNil, check.Commentf("failed to get the exec id"))
  260. // End the exec by creating the missing file
  261. err = exec.Command(dockerBinary, "exec", id,
  262. "sh", "-c", "touch /tmp/execid1").Run()
  263. c.Assert(err, checker.IsNil, check.Commentf("failed to run the 2nd exec cmd"))
  264. // Wait for 1st exec to complete
  265. cmd.Wait()
  266. // All execs for the container should be gone now
  267. out = inspectField(c, id, "ExecIDs")
  268. out = strings.TrimSuffix(out, "\n")
  269. c.Assert(out == "[]" || out == "<no value>", checker.True)
  270. // But we should still be able to query the execID
  271. sc, body, err := sockRequest("GET", "/exec/"+execID+"/json", nil)
  272. c.Assert(sc, checker.Equals, http.StatusOK, check.Commentf("received status != 200 OK: %d\n%s", sc, body))
  273. // Now delete the container and then an 'inspect' on the exec should
  274. // result in a 404 (not 'container not running')
  275. out, ec := dockerCmd(c, "rm", "-f", id)
  276. c.Assert(ec, checker.Equals, 0, check.Commentf("error removing container: %s", out))
  277. sc, body, err = sockRequest("GET", "/exec/"+execID+"/json", nil)
  278. c.Assert(sc, checker.Equals, http.StatusNotFound, check.Commentf("received status != 404: %d\n%s", sc, body))
  279. }
  280. func (s *DockerSuite) TestLinksPingLinkedContainersOnRename(c *check.C) {
  281. testRequires(c, DaemonIsLinux)
  282. var out string
  283. out, _ = dockerCmd(c, "run", "-d", "--name", "container1", "busybox", "top")
  284. idA := strings.TrimSpace(out)
  285. c.Assert(idA, checker.Not(checker.Equals), "", check.Commentf("%s, id should not be nil", out))
  286. out, _ = dockerCmd(c, "run", "-d", "--link", "container1:alias1", "--name", "container2", "busybox", "top")
  287. idB := strings.TrimSpace(out)
  288. c.Assert(idB, checker.Not(checker.Equals), "", check.Commentf("%s, id should not be nil", out))
  289. dockerCmd(c, "exec", "container2", "ping", "-c", "1", "alias1", "-W", "1")
  290. dockerCmd(c, "rename", "container1", "container_new")
  291. dockerCmd(c, "exec", "container2", "ping", "-c", "1", "alias1", "-W", "1")
  292. }
  293. func (s *DockerSuite) TestRunExecDir(c *check.C) {
  294. testRequires(c, SameHostDaemon, DaemonIsLinux)
  295. out, _ := dockerCmd(c, "run", "-d", "busybox", "top")
  296. id := strings.TrimSpace(out)
  297. execDir := filepath.Join(execDriverPath, id)
  298. stateFile := filepath.Join(execDir, "state.json")
  299. {
  300. fi, err := os.Stat(execDir)
  301. c.Assert(err, checker.IsNil)
  302. if !fi.IsDir() {
  303. c.Fatalf("%q must be a directory", execDir)
  304. }
  305. fi, err = os.Stat(stateFile)
  306. c.Assert(err, checker.IsNil)
  307. }
  308. dockerCmd(c, "stop", id)
  309. {
  310. _, err := os.Stat(execDir)
  311. c.Assert(err, checker.NotNil)
  312. c.Assert(err, checker.NotNil, check.Commentf("Exec directory %q exists for removed container!", execDir))
  313. if !os.IsNotExist(err) {
  314. c.Fatalf("Error should be about non-existing, got %s", err)
  315. }
  316. }
  317. dockerCmd(c, "start", id)
  318. {
  319. fi, err := os.Stat(execDir)
  320. c.Assert(err, checker.IsNil)
  321. if !fi.IsDir() {
  322. c.Fatalf("%q must be a directory", execDir)
  323. }
  324. fi, err = os.Stat(stateFile)
  325. c.Assert(err, checker.IsNil)
  326. }
  327. dockerCmd(c, "rm", "-f", id)
  328. {
  329. _, err := os.Stat(execDir)
  330. c.Assert(err, checker.NotNil, check.Commentf("Exec directory %q exists for removed container!", execDir))
  331. if !os.IsNotExist(err) {
  332. c.Fatalf("Error should be about non-existing, got %s", err)
  333. }
  334. }
  335. }
  336. func (s *DockerSuite) TestRunMutableNetworkFiles(c *check.C) {
  337. testRequires(c, SameHostDaemon, DaemonIsLinux)
  338. for _, fn := range []string{"resolv.conf", "hosts"} {
  339. deleteAllContainers()
  340. content, err := runCommandAndReadContainerFile(fn, exec.Command(dockerBinary, "run", "-d", "--name", "c1", "busybox", "sh", "-c", fmt.Sprintf("echo success >/etc/%s && top", fn)))
  341. c.Assert(err, checker.IsNil)
  342. c.Assert(strings.TrimSpace(string(content)), checker.Equals, "success", check.Commentf("Content was not what was modified in the container", string(content)))
  343. out, _ := dockerCmd(c, "run", "-d", "--name", "c2", "busybox", "top")
  344. contID := strings.TrimSpace(out)
  345. netFilePath := containerStorageFile(contID, fn)
  346. f, err := os.OpenFile(netFilePath, os.O_WRONLY|os.O_SYNC|os.O_APPEND, 0644)
  347. c.Assert(err, checker.IsNil)
  348. if _, err := f.Seek(0, 0); err != nil {
  349. f.Close()
  350. c.Fatal(err)
  351. }
  352. if err := f.Truncate(0); err != nil {
  353. f.Close()
  354. c.Fatal(err)
  355. }
  356. if _, err := f.Write([]byte("success2\n")); err != nil {
  357. f.Close()
  358. c.Fatal(err)
  359. }
  360. f.Close()
  361. res, _ := dockerCmd(c, "exec", contID, "cat", "/etc/"+fn)
  362. c.Assert(res, checker.Equals, "success2\n")
  363. }
  364. }
  365. func (s *DockerSuite) TestExecWithUser(c *check.C) {
  366. testRequires(c, DaemonIsLinux)
  367. dockerCmd(c, "run", "-d", "--name", "parent", "busybox", "top")
  368. out, _ := dockerCmd(c, "exec", "-u", "1", "parent", "id")
  369. c.Assert(out, checker.Contains, "uid=1(daemon) gid=1(daemon)")
  370. out, _ = dockerCmd(c, "exec", "-u", "root", "parent", "id")
  371. c.Assert(out, checker.Contains, "uid=0(root) gid=0(root)", check.Commentf("exec with user by id expected daemon user got %s", out))
  372. }
  373. func (s *DockerSuite) TestExecWithPrivileged(c *check.C) {
  374. testRequires(c, DaemonIsLinux, NotUserNamespace)
  375. // Start main loop which attempts mknod repeatedly
  376. dockerCmd(c, "run", "-d", "--name", "parent", "--cap-drop=ALL", "busybox", "sh", "-c", `while (true); do if [ -e /exec_priv ]; then cat /exec_priv && mknod /tmp/sda b 8 0 && echo "Success"; else echo "Privileged exec has not run yet"; fi; usleep 10000; done`)
  377. // Check exec mknod doesn't work
  378. cmd := exec.Command(dockerBinary, "exec", "parent", "sh", "-c", "mknod /tmp/sdb b 8 16")
  379. out, _, err := runCommandWithOutput(cmd)
  380. c.Assert(err, checker.NotNil, check.Commentf("exec mknod in --cap-drop=ALL container without --privileged should fail"))
  381. c.Assert(out, checker.Contains, "Operation not permitted", check.Commentf("exec mknod in --cap-drop=ALL container without --privileged should fail"))
  382. // Check exec mknod does work with --privileged
  383. cmd = exec.Command(dockerBinary, "exec", "--privileged", "parent", "sh", "-c", `echo "Running exec --privileged" > /exec_priv && mknod /tmp/sdb b 8 16 && usleep 50000 && echo "Finished exec --privileged" > /exec_priv && echo ok`)
  384. out, _, err = runCommandWithOutput(cmd)
  385. c.Assert(err, checker.IsNil)
  386. actual := strings.TrimSpace(out)
  387. c.Assert(actual, checker.Equals, "ok", check.Commentf("exec mknod in --cap-drop=ALL container with --privileged failed, output: %q", out))
  388. // Check subsequent unprivileged exec cannot mknod
  389. cmd = exec.Command(dockerBinary, "exec", "parent", "sh", "-c", "mknod /tmp/sdc b 8 32")
  390. out, _, err = runCommandWithOutput(cmd)
  391. c.Assert(err, checker.NotNil, check.Commentf("repeating exec mknod in --cap-drop=ALL container after --privileged without --privileged should fail"))
  392. c.Assert(out, checker.Contains, "Operation not permitted", check.Commentf("repeating exec mknod in --cap-drop=ALL container after --privileged without --privileged should fail"))
  393. // Confirm at no point was mknod allowed
  394. logCmd := exec.Command(dockerBinary, "logs", "parent")
  395. out, _, err = runCommandWithOutput(logCmd)
  396. c.Assert(err, checker.IsNil)
  397. c.Assert(out, checker.Not(checker.Contains), "Success")
  398. }
  399. func (s *DockerSuite) TestExecWithImageUser(c *check.C) {
  400. testRequires(c, DaemonIsLinux)
  401. name := "testbuilduser"
  402. _, err := buildImage(name,
  403. `FROM busybox
  404. RUN echo 'dockerio:x:1001:1001::/bin:/bin/false' >> /etc/passwd
  405. USER dockerio`,
  406. true)
  407. c.Assert(err, checker.IsNil)
  408. dockerCmd(c, "run", "-d", "--name", "dockerioexec", name, "top")
  409. out, _ := dockerCmd(c, "exec", "dockerioexec", "whoami")
  410. c.Assert(out, checker.Contains, "dockerio", check.Commentf("exec with user by id expected dockerio user got %s", out))
  411. }
  412. func (s *DockerSuite) TestExecOnReadonlyContainer(c *check.C) {
  413. // --read-only + userns has remount issues
  414. testRequires(c, DaemonIsLinux, NotUserNamespace)
  415. dockerCmd(c, "run", "-d", "--read-only", "--name", "parent", "busybox", "top")
  416. dockerCmd(c, "exec", "parent", "true")
  417. }
  418. // #15750
  419. func (s *DockerSuite) TestExecStartFails(c *check.C) {
  420. testRequires(c, DaemonIsLinux)
  421. name := "exec-15750"
  422. dockerCmd(c, "run", "-d", "--name", name, "busybox", "top")
  423. c.Assert(waitRun(name), checker.IsNil)
  424. out, _, err := dockerCmdWithError("exec", name, "no-such-cmd")
  425. c.Assert(err, checker.NotNil, check.Commentf(out))
  426. c.Assert(out, checker.Contains, "executable file not found")
  427. }