leo65535 opened a new issue, #12350:
URL: https://github.com/apache/dolphinscheduler/issues/12350

   ### 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
   
   We run worker in k8s, will meet `source not found` error when submit tasks.
   
   
![image](https://user-images.githubusercontent.com/95013770/195524917-ef54a7b3-b38e-4c1a-95c5-04b32010084e.png)
   
   
   And, I found someone meet the same error.
   
           Unlucky, Version 3.1.0 does not include a fix for this bug.
   
   Also, when rolling back to 3.0.1, I found [that pr 
11625](https://github.com/apache/dolphinscheduler/pull/11625) may not solve 
this problem, [What does the line "#!/bin/sh" mean in a UNIX shell 
script?](https://stackoverflow.com/questions/7366775/what-does-the-line-bin-sh-mean-in-a-unix-shell-script)
 may be helpful.
   
   Please try this: `echo -e '#!/bin/bash\nsource /etc/profile' >> test.sh`
   Then we execute it like a worker: `sudo -u $(whoami) sh test.sh`
   We will get an error: `test.sh: 2: source: not found`.
   
   We should do `sudo -u $(whoami) bash test.sh`
   or `sudo -u $(whoami) sh -c "chmod +x test.sh && ./test.sh"`
   
   _Originally posted by @black-06 in 
https://github.com/apache/dolphinscheduler/issues/10938#issuecomment-1269309737_
         
   
   ### What you expected to happen
   
   -
   
   ### How to reproduce
   
   -
   
   ### Anything else
   
   -
   
   ### Version
   
   3.1.x
   
   ### Are you willing to submit PR?
   
   - [X] 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: 
[email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to