#1868  Error when oneDev try to clean temp workspace
Open
Ronan opened 1 week ago

Hi,

Since I update OneDev to v10.3.3, I encounter the same error with jobs using the following executor 2024-04-25_onedev_01.png

Docker and OneDev are on the same server. Prior update, this settup worked fine. But now, I get the following error at the end of each job

Please wait...
Testing specified docker image...
hello from container
java.lang.RuntimeException: Failed to delete file E:\APPLICATIONS\OneDev\server\temp\server\workspace5913744056753069271
    	at io.onedev.commons.utils.FileUtils.deleteFile(FileUtils.java:208)
    	at io.onedev.commons.utils.FileUtils.deleteDir(FileUtils.java:174)
    	at io.onedev.server.plugin.executor.serverdocker.ServerDockerExecutor.lambda$test$1(ServerDockerExecutor.java:718)
    	at io.onedev.agent.DockerExecutorUtils.callWithDockerAuth(DockerExecutorUtils.java:443)
    	at io.onedev.server.plugin.executor.serverdocker.ServerDockerExecutor.test(ServerDockerExecutor.java:673)
    	at io.onedev.server.plugin.executor.serverdocker.ServerDockerExecutor.test(ServerDockerExecutor.java:50)
    	at io.onedev.server.web.page.admin.buildsetting.jobexecutor.JobExecutorEditPanel$3.runTask(JobExecutorEditPanel.java:204)
    	at io.onedev.server.web.component.taskbutton.TaskButton$2.call(TaskButton.java:160)
    	at io.onedev.server.web.component.taskbutton.TaskButton$2.call(TaskButton.java:133)
    	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
    	at io.onedev.server.security.SecurityUtils.lambda$inheritSubject$1(SecurityUtils.java:380)
    	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
    	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
    	at java.base/java.lang.Thread.run(Thread.java:830)

Jobs execute their tasks properly, but at the final step, when OneDev try to clean temp repository, this error occur. For this message specifically, I get it when I test my executor. I try to lookup what service/user try to access to this temp repo, and the only user found is OneDev itself. Any clues about who or what cause this error and how to prevent it ?

Thanks by advance

Robin Shen commented 1 week ago

Have not tested Docker on Windows for some time, as almost no one is using that... Need to find some Windows machine to test it. But it may take some time...

issue 1 of 1
Type
Question
Priority
Normal
Assignee
Labels
No labels
Issue Votes (0)
Watchers (3)
Reference
onedev/server#1868
Please wait...
Page is in error, reload to recover