-
Notifications
You must be signed in to change notification settings - Fork 4.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] [tenant] this will not affect the task status, but you need to clear this manually org.apache.commons.io.IOExceptionList xxx #16604
Comments
Search before asking
What happened[LOG-PATH]: /opt/dolphinscheduler3.19/worker-server/logs/20240911/26_1-239277-364644.log, [HOST]: Host{address='192.168.11.156:1234', ip='192.168.11.156', port=1234}
[INFO] 2024-09-11 11:26:43.184 +0800 - -> log4j:WARN No appenders could be found for logger (org.apache.htrace.core.Tracer). What you expected to happenHow to reproducerun shell process with tenant. Anything elseNo response Version3.1.x Are you willing to submit PR?
Code of Conduct
|
Windows is not supported right now. |
Sorry, i'm not see. Where did you see it running on Windows? |
|
Please ignore this, it has nothing to do with this. |
Also, just because it has a .exe file underneath it, you think it's running under Windows. Currently running on Linux CentOS 6.x. |
Then you should provide the corresponding reproduction steps and the correct log information. |
[LOG-PATH]: /opt/dolphinscheduler3.19/worker-server/logs/20240911/11_1-239613-365122.log, [HOST]: Host{address='192.168.11.156:1234', ip='192.168.11.156', port=1234}
[INFO] 2024-09-11 18:00:03.712 +0800 - -> 2024-09-11 18:00:03.630 INFO 14485 --- [ main] com.zaxxer.hikari.HikariDataSource : relation - Starting... |
There is a problem with the current logic, the maximum permission of the file created by the Linux user is 666, there is no execution permission, and the DolphinScheduler task is completed to delete the file (tenant), you must sudo or use the file owner to delete it. |
Search before asking
What happened
[LOG-PATH]: /opt/dolphinscheduler3.19/worker-server/logs/20240911/26_1-239277-364644.log, [HOST]: Host{address='192.168.11.156:1234', ip='192.168.11.156', port=1234}
[INFO] 2024-09-11 11:26:37.167 +0800 - Begin to pulling task
[INFO] 2024-09-11 11:26:37.170 +0800 - Begin to initialize task
[INFO] 2024-09-11 11:26:37.170 +0800 - Set task startTime: Wed Sep 11 11:26:37 GMT+08:00 2024
[INFO] 2024-09-11 11:26:37.171 +0800 - Set task envFile: /opt/dolphinscheduler3.19/worker-server/conf/dolphinscheduler_env.sh
[INFO] 2024-09-11 11:26:37.171 +0800 - Set task appId: 239277_364644
[INFO] 2024-09-11 11:26:37.171 +0800 - End initialize task
[INFO] 2024-09-11 11:26:37.172 +0800 - Set task status to TaskExecutionStatus{code=1, desc='running'}
[INFO] 2024-09-11 11:26:37.172 +0800 - TenantCode:bclduser check success
[INFO] 2024-09-11 11:26:37.172 +0800 - ProcessExecDir:/tmp/dolphinscheduler/exec/process/bclduser/1/26_1/239277/364644 check success
[INFO] 2024-09-11 11:26:37.173 +0800 - Resources:{} check success
[INFO] 2024-09-11 11:26:37.173 +0800 - Task plugin: SHELL create success
[INFO] 2024-09-11 11:26:37.173 +0800 - shell task params {"resourceList":[],"localParams":[],"rawScript":"java -jar /opt/data/scripts/hunan-repeat/syn-block-info-farm-1.0.0.jar 1 11","conditionResult":{"successNode":[""],"failedNode":[""]},"dependence":{}}
[INFO] 2024-09-11 11:26:37.173 +0800 - Success initialized task plugin instance success
[INFO] 2024-09-11 11:26:37.174 +0800 - Success set taskVarPool: []
[INFO] 2024-09-11 11:26:37.174 +0800 - raw script : java -jar /opt/data/scripts/hunan-repeat/syn-block-info-farm-1.0.0.jar 1 11
[INFO] 2024-09-11 11:26:37.174 +0800 - task execute path : /tmp/dolphinscheduler/exec/process/bclduser/1/26_1/239277/364644
[INFO] 2024-09-11 11:26:37.174 +0800 - Begin to create command file:/tmp/dolphinscheduler/exec/process/bclduser/1/26_1/239277/364644/239277_364644.command
[INFO] 2024-09-11 11:26:37.175 +0800 - Success create command file, command: #!/bin/bash
BASEDIR=$(cd
dirname $0
; pwd)cd $BASEDIR
source /opt/dolphinscheduler3.19/worker-server/conf/dolphinscheduler_env.sh
/tmp/dolphinscheduler/exec/process/bclduser/1/26_1/239277/364644/239277_364644_node.sh
[INFO] 2024-09-11 11:26:37.180 +0800 - task run command: sudo -u bclduser -i bash /tmp/dolphinscheduler/exec/process/bclduser/1/26_1/239277/364644/239277_364644.command
[INFO] 2024-09-11 11:26:37.181 +0800 - process start, process id is: 5063
[INFO] 2024-09-11 11:26:38.182 +0800 - -> mysql mysql jdbc:mysql://192.168.11.198:3306/dolphinscheduler
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/opt/data/scripts/hunan-repeat/syn-block-info-farm-1.0.0.jar!/BOOT-INF/lib/logback-classic-1.2.3.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/opt/data/scripts/hunan-repeat/syn-block-info-farm-1.0.0.jar!/BOOT-INF/lib/toolkit-hbase-CDH5-20210122.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [ch.qos.logback.classic.util.ContextSelectorStaticBinder]
[INFO] 2024-09-11 11:26:39.183 +0800 - ->
. ____ _ __ _ _
/\ / ' __ _ () __ __ _ \ \ \
( ( )__ | '_ | '| | ' / ` | \ \ \
\/ )| |)| | | | | || (| | ) ) ) )
' || .__|| ||| |_, | / / / /
=========||==============|/=////
:: Spring Boot :: (v2.1.5.RELEASE)
[INFO] 2024-09-11 11:26:43.184 +0800 - -> log4j:WARN No appenders could be found for logger (org.apache.htrace.core.Tracer).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
[INFO] 2024-09-11 11:26:44.185 +0800 - -> 2024-09-11 11:26:43.685 INFO 5091 --- [ main] uml.tech.App : Started App in 5.466 seconds (JVM running for 6.435)
开始更新湖南重复地块
2024-09-11 11:26:44.125 DEBUG 5091 --- [ main] u.t.m.f.F.getHunanWorkInfo60Days : ==> Preparing: select id, did, jobStartLat, jobStartLon, currentBlockNumber, jobEndTime, province, city, district, jobArea as area, jobStartTime, jobType, jobEquipment, wkt_poly as wktPoly, 0 as dataSource, repeatFlag from farm_work where (did like 'NJ%' OR did like 'EC%') and fixFlag !=1 and jobType= '3' and (jobEquipment ='3' or jobEquipment = '7') and DATEDIFF(now(), insertTime) < 60 and wkt_poly is not null and wkt_poly !='' and province = 11 union all select id, did, jobStartLat, jobStartLon, currentBlockNumber, jobEndTime, province, city, district, jobArea as area, jobStartTime, jobType, jobEquipment, wkt_poly as wktPoly, 1 as dataSource, repeatFlag from farm_work_split where (did like 'NJ%' OR did like 'EC%') and jobType= '3' and (jobEquipment ='3' or jobEquipment = '7') and DATEDIFF(now(), insertTime) < 60 and wkt_poly is not null and wkt_poly !='' and province = 11 order by jobEndTime desc;
2024-09-11 11:26:44.154 DEBUG 5091 --- [ main] u.t.m.f.F.getHunanWorkInfo60Days : ==> Parameters:
[INFO] 2024-09-11 11:26:44.444 +0800 - process has exited. execute path:/tmp/dolphinscheduler/exec/process/bclduser/1/26_1/239277/364644, processId:5063 ,exitStatusCode:0 ,processWaitForStatus:true ,processExitValue:0
[INFO] 2024-09-11 11:26:44.447 +0800 - Send task execute result to master, the current task status: TaskExecutionStatus{code=7, desc='success'}
[INFO] 2024-09-11 11:26:44.447 +0800 - Remove the current task execute context from worker cache
[INFO] 2024-09-11 11:26:44.448 +0800 - The current execute mode isn't develop mode, will clear the task execute file: /tmp/dolphinscheduler/exec/process/bclduser/1/26_1/239277/364644
[ERROR] 2024-09-11 11:26:44.450 +0800 - Delete task execute file: /tmp/dolphinscheduler/exec/process/bclduser/1/26_1/239277/364644 failed, this will not affect the task status, but you need to clear this manually
org.apache.commons.io.IOExceptionList: /tmp/dolphinscheduler/exec/process/bclduser/1/26_1/239277/364644
at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:331)
at org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:1192)
at org.apache.dolphinscheduler.server.worker.runner.WorkerTaskExecuteRunnable.clearTaskExecPathIfNeeded(WorkerTaskExecuteRunnable.java:283)
at org.apache.dolphinscheduler.server.worker.runner.WorkerTaskExecuteRunnable.afterExecute(WorkerTaskExecuteRunnable.java:115)
at org.apache.dolphinscheduler.server.worker.runner.DefaultWorkerDelayTaskExecuteRunnable.afterExecute(DefaultWorkerDelayTaskExecuteRunnable.java:54)
at org.apache.dolphinscheduler.server.worker.runner.WorkerTaskExecuteRunnable.run(WorkerTaskExecuteRunnable.java:176)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at com.google.common.util.concurrent.TrustedListenableFutureTask$TrustedFutureInterruptibleTask.runInterruptibly(TrustedListenableFutureTask.java:131)
at com.google.common.util.concurrent.InterruptibleTask.run(InterruptibleTask.java:74)
at com.google.common.util.concurrent.TrustedListenableFutureTask.run(TrustedListenableFutureTask.java:82)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.io.IOException: Cannot delete file: /tmp/dolphinscheduler/exec/process/bclduser/1/26_1/239277/364644/bin
at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:1344)
at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:324)
... 12 common frames omitted
Caused by: java.nio.file.AccessDeniedException: /tmp/dolphinscheduler/exec/process/bclduser/1/26_1/239277/364644/bin/winutils.exe
at sun.nio.fs.UnixException.translateToIOException(UnixException.java:84)
at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
at sun.nio.fs.UnixFileSystemProvider.implDelete(UnixFileSystemProvider.java:244)
at sun.nio.fs.AbstractFileSystemProvider.deleteIfExists(AbstractFileSystemProvider.java:108)
at java.nio.file.Files.deleteIfExists(Files.java:1165)
at org.apache.commons.io.file.DeletingPathVisitor.visitFile(DeletingPathVisitor.java:161)
at org.apache.commons.io.file.DeletingPathVisitor.visitFile(DeletingPathVisitor.java:37)
at java.nio.file.Files.walkFileTree(Files.java:2670)
at java.nio.file.Files.walkFileTree(Files.java:2742)
at org.apache.commons.io.file.PathUtils.visitFileTree(PathUtils.java:971)
at org.apache.commons.io.file.PathUtils.deleteDirectory(PathUtils.java:434)
at org.apache.commons.io.file.PathUtils.delete(PathUtils.java:391)
at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:1341)
... 13 common frames omitted
[INFO] 2024-09-11 11:26:45.186 +0800 - -> 2024-09-11 11:26:44.210 DEBUG 5091 --- [ main] u.t.m.f.F.getHunanWorkInfo60Days : <== Total: 0
[INFO] 2024-09-11 11:26:45.186 +0800 - FINALIZE_SESSION
What you expected to happen
shell process
How to reproduce
run shell process with tenant.
Anything else
No response
Version
3.1.x
Are you willing to submit PR?
Code of Conduct
The text was updated successfully, but these errors were encountered: