-
Type: Bug
-
Status: Resolved
-
Priority: Major
-
Resolution: Duplicate
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: Git Access
-
Tags:
Seen in production logs; during trial cleanup: https://app.datadoghq.com/logs?cols=core_host%2Ccore_service&from_ts=1599221332323&index=&live=true&messageDisplay=inline&query=source%3Anuxeo%20host%3Anos-prod-%2A%20%20failed%20to%20delete&saved_view=13914&stream_sort=desc&to_ts=1599826132323
java.io.IOException: Could not delete file /opt/data/studio_git_repos/project1-nedrk.git/objects/pack at org.eclipse.jgit.util.FileUtils.delete(FileUtils.java:214) at org.eclipse.jgit.util.FileUtils.delete(FileUtils.java:166) at org.eclipse.jgit.util.FileUtils.delete(FileUtils.java:166) at com.nuxeo.studio.gitty.core.service.GitRepositoryService.delete(GitRepositoryService.java:134) at com.nuxeo.studio.gitty.core.rest.GitRepositoryResourceImpl.deleteRepository(GitRepositoryResourceImpl.java:31) ... at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Thread.java:748) Caused by: java.nio.file.DirectoryNotEmptyException: /opt/data/studio_git_repos/project1-nedrk.git/objects/pack at sun.nio.fs.UnixFileSystemProvider.implDelete(UnixFileSystemProvider.java:242) at sun.nio.fs.AbstractFileSystemProvider.deleteIfExists(AbstractFileSystemProvider.java:108) at java.nio.file.Files.deleteIfExists(Files.java:1165) at org.eclipse.jgit.util.FileUtils.delete(FileUtils.java:206) ... 108 more