You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dolphinscheduler.apache.org by GitBox <gi...@apache.org> on 2022/08/18 09:36:54 UTC
[GitHub] [dolphinscheduler] ryuunami opened a new issue, #11544: [Bug] [python] run python task,Permission denied
ryuunami opened a new issue, #11544:
URL: https://github.com/apache/dolphinscheduler/issues/11544
### 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
dolphinscheduler run with docker-compose。
python task: print("This is a demo of python task")
error with:
[LOG-PATH]: /opt/dolphinscheduler/logs/20220818/6577088940288_6-23-32.log, [HOST]: Host{address='172.18.0.8:1234', ip='172.18.0.8', port=1234}
[INFO] 2022-08-18 17:20:47.195 +0000 [taskAppId=TASK-20220818-6577088940288_6-23-32] TaskLogLogger-class org.apache.dolphinscheduler.plugin.task.python.PythonTask:[83] - python task params {"localParams":[],"rawScript":"print(\"This is a demo of python task\")","resourceList":[]}
[INFO] 2022-08-18 17:20:47.198 +0000 [taskAppId=TASK-20220818-6577088940288_6-23-32] TaskLogLogger-class org.apache.dolphinscheduler.plugin.task.python.PythonTask:[225] - raw python script : print("This is a demo of python task")
[INFO] 2022-08-18 17:20:47.199 +0000 [taskAppId=TASK-20220818-6577088940288_6-23-32] TaskLogLogger-class org.apache.dolphinscheduler.plugin.task.python.PythonTask:[178] - tenantCode :liu, task dir:/tmp/dolphinscheduler/exec/process/6388981034080/6577088940288_6/23/32
[INFO] 2022-08-18 17:20:47.200 +0000 [taskAppId=TASK-20220818-6577088940288_6-23-32] TaskLogLogger-class org.apache.dolphinscheduler.plugin.task.python.PythonTask:[181] - generate python script file:/tmp/dolphinscheduler/exec/process/6388981034080/6577088940288_6/23/32/py_23_32.py
[INFO] 2022-08-18 17:20:47.200 +0000 [taskAppId=TASK-20220818-6577088940288_6-23-32] TaskLogLogger-class org.apache.dolphinscheduler.plugin.task.python.PythonTask:[188] - #-*- encoding=utf8 -*-
print("This is a demo of python task")
[INFO] 2022-08-18 17:20:47.201 +0000 [taskAppId=TASK-20220818-6577088940288_6-23-32] TaskLogLogger-class org.apache.dolphinscheduler.plugin.task.python.PythonTask:[85] - tenantCode user:liu, task dir:23_32
[INFO] 2022-08-18 17:20:47.202 +0000 [taskAppId=TASK-20220818-6577088940288_6-23-32] TaskLogLogger-class org.apache.dolphinscheduler.plugin.task.python.PythonTask:[90] - create command file:/tmp/dolphinscheduler/exec/process/6388981034080/6577088940288_6/23/32/23_32.command
[INFO] 2022-08-18 17:20:47.202 +0000 [taskAppId=TASK-20220818-6577088940288_6-23-32] TaskLogLogger-class org.apache.dolphinscheduler.plugin.task.python.PythonTask:[116] - command : #!/bin/sh
BASEDIR=$(cd `dirname $0`; pwd)
cd $BASEDIR
source /opt/dolphinscheduler/conf/dolphinscheduler_env.sh
${PYTHON_HOME} /tmp/dolphinscheduler/exec/process/6388981034080/6577088940288_6/23/32/py_23_32.py
[INFO] 2022-08-18 17:20:47.205 +0000 [taskAppId=TASK-20220818-6577088940288_6-23-32] TaskLogLogger-class org.apache.dolphinscheduler.plugin.task.python.PythonTask:[290] - task run command: sudo -u liu sh /tmp/dolphinscheduler/exec/process/6388981034080/6577088940288_6/23/32/23_32.command
[INFO] 2022-08-18 17:20:47.206 +0000 [taskAppId=TASK-20220818-6577088940288_6-23-32] TaskLogLogger-class org.apache.dolphinscheduler.plugin.task.python.PythonTask:[181] - process start, process id is: 5354
[INFO] 2022-08-18 17:20:47.221 +0000 [taskAppId=TASK-20220818-6577088940288_6-23-32] TaskLogLogger-class org.apache.dolphinscheduler.plugin.task.python.PythonTask:[205] - process has exited, execute path:/tmp/dolphinscheduler/exec/process/6388981034080/6577088940288_6/23/32, processId:5354 ,exitStatusCode:126 ,processWaitForStatus:true ,processExitValue:126
[INFO] 2022-08-18 17:20:48.207 +0000 [taskAppId=TASK-20220818-6577088940288_6-23-32] TaskLogLogger-class org.apache.dolphinscheduler.plugin.task.python.PythonTask:[63] - -> /tmp/dolphinscheduler/exec/process/6388981034080/6577088940288_6/23/32/23_32.command: 4: /tmp/dolphinscheduler/exec/process/6388981034080/6577088940288_6/23/32/23_32.command: source: not found
/tmp/dolphinscheduler/exec/process/6388981034080/6577088940288_6/23/32/23_32.command: 5: /tmp/dolphinscheduler/exec/process/6388981034080/6577088940288_6/23/32/23_32.command: /tmp/dolphinscheduler/exec/process/6388981034080/6577088940288_6/23/32/py_23_32.py: Permission denied
[INFO] 2022-08-18 17:20:48.209 +0000 [taskAppId=TASK-20220818-6577088940288_6-23-32] TaskLogLogger-class org.apache.dolphinscheduler.plugin.task.python.PythonTask:[57] - FINALIZE_SESSION
### What you expected to happen
print This is a demo of python task
### How to reproduce
docker-compose.yaml in source code example
### Anything else
_No response_
### Version
3.0.0
### 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-unsubscribe@dolphinscheduler.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [dolphinscheduler] SbloodyS commented on issue #11544: [Question] [python] run python task,Permission denied
Posted by GitBox <gi...@apache.org>.
SbloodyS commented on issue #11544:
URL: https://github.com/apache/dolphinscheduler/issues/11544#issuecomment-1219338449
Please check the permissions of the executing user.
BTW, it's not a bug.But a question.
--
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-unsubscribe@dolphinscheduler.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [dolphinscheduler] qqamao commented on issue #11544: [Question] [python] run python task,Permission denied
Posted by GitBox <gi...@apache.org>.
qqamao commented on issue #11544:
URL: https://github.com/apache/dolphinscheduler/issues/11544#issuecomment-1239155447
> I think is my mistake with docker-compose version
Did you solve it?
--
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-unsubscribe@dolphinscheduler.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [dolphinscheduler] ryuunami commented on issue #11544: [Question] [python] run python task,Permission denied
Posted by GitBox <gi...@apache.org>.
ryuunami commented on issue #11544:
URL: https://github.com/apache/dolphinscheduler/issues/11544#issuecomment-1219395448
I think is my mistake with docker-compose version
--
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-unsubscribe@dolphinscheduler.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [dolphinscheduler] dyyTT commented on issue #11544: [Question] [python] run python task,Permission denied
Posted by GitBox <gi...@apache.org>.
dyyTT commented on issue #11544:
URL: https://github.com/apache/dolphinscheduler/issues/11544#issuecomment-1220528698
I also encountered the same problem. Have you solved this problem?
--
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-unsubscribe@dolphinscheduler.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [dolphinscheduler] github-actions[bot] commented on issue #11544: [Bug] [python] run python task,Permission denied
Posted by GitBox <gi...@apache.org>.
github-actions[bot] commented on issue #11544:
URL: https://github.com/apache/dolphinscheduler/issues/11544#issuecomment-1219292357
Thank you for your feedback, we have received your issue, Please wait patiently for a reply.
* In order for us to understand your request as soon as possible, please provide detailed information、version or pictures.
* If you haven't received a reply for a long time, you can [join our slack](https://s.apache.org/dolphinscheduler-slack) and send your question to channel `#troubleshooting`
--
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-unsubscribe@dolphinscheduler.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [dolphinscheduler] ryuunami closed issue #11544: [Question] [python] run python task,Permission denied
Posted by GitBox <gi...@apache.org>.
ryuunami closed issue #11544: [Question] [python] run python task,Permission denied
URL: https://github.com/apache/dolphinscheduler/issues/11544
--
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-unsubscribe@dolphinscheduler.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org