kkkzhonghaiwei opened a new issue, #16533: URL: https://github.com/apache/dolphinscheduler/issues/16533
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues. ### What happened I run shell task with DS failed. But I can run it in the bash command. The directory actually exists in the system, I tried to run it under bash command,successfully.But failed to run in DolphinScheduler. The Version is 3.2.1 ***************************************************************** [INFO] 2024-08-28 13:46:27.686 +0800 - Executing shell command : sudo -u root -i /tmp/dolphinscheduler/exec/process/root/14561355669280/14769037579424_1/10/24/10_24.sh [ERROR] 2024-08-28 13:46:27.689 +0800 - shell task error java.io.IOException: Cannot run program "sudo" (in directory "/tmp/dolphinscheduler/exec/process/root/14561355669280/14769037579424_1/10/24"): error=2, No such file or directory at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048) at org.apache.dolphinscheduler.plugin.task.api.shell.BaseShellInterceptor.execute(BaseShellInterceptor.java:47) at org.apache.dolphinscheduler.plugin.task.api.AbstractCommandExecutor.run(AbstractCommandExecutor.java:138) at org.apache.dolphinscheduler.plugin.task.shell.ShellTask.handle(ShellTask.java:85) at org.apache.dolphinscheduler.server.worker.runner.DefaultWorkerTaskExecutor.executeTask(DefaultWorkerTaskExecutor.java:54) at org.apache.dolphinscheduler.server.worker.runner.WorkerTaskExecutor.run(WorkerTaskExecutor.java:175) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) Caused by: java.io.IOException: error=2, No such file or directory at java.lang.UNIXProcess.forkAndExec(Native Method) at java.lang.UNIXProcess.<init>(UNIXProcess.java:247) at java.lang.ProcessImpl.start(ProcessImpl.java:134) at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029) ... 8 common frames omitted [ERROR] 2024-08-28 13:46:27.689 +0800 - Task execute failed, due to meet an exception org.apache.dolphinscheduler.plugin.task.api.TaskException: Execute shell task error at org.apache.dolphinscheduler.plugin.task.shell.ShellTask.handle(ShellTask.java:97) at org.apache.dolphinscheduler.server.worker.runner.DefaultWorkerTaskExecutor.executeTask(DefaultWorkerTaskExecutor.java:54) at org.apache.dolphinscheduler.server.worker.runner.WorkerTaskExecutor.run(WorkerTaskExecutor.java:175) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) Caused by: java.io.IOException: Cannot run program "sudo" (in directory "/tmp/dolphinscheduler/exec/process/root/14561355669280/14769037579424_1/10/24"): error=2, No such file or directory at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048) at org.apache.dolphinscheduler.plugin.task.api.shell.BaseShellInterceptor.execute(BaseShellInterceptor.java:47) at org.apache.dolphinscheduler.plugin.task.api.AbstractCommandExecutor.run(AbstractCommandExecutor.java:138) at org.apache.dolphinscheduler.plugin.task.shell.ShellTask.handle(ShellTask.java:85) ... 5 common frames omitted Caused by: java.io.IOException: error=2, No such file or directory at java.lang.UNIXProcess.forkAndExec(Native Method) at java.lang.UNIXProcess.<init>(UNIXProcess.java:247) at java.lang.ProcessImpl.start(ProcessImpl.java:134) at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029) ... 8 common frames omitted ### What you expected to happen It may be a bug?? ### How to reproduce Just run a very simple shell task.It's like "echo A". ### Anything else _No response_ ### Version 3.1.x ### Are you willing to submit PR? - [ ] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@dolphinscheduler.apache.org.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org