Skip to content

ezAAI is writing files it can't delete (-tmp not working) #33

@zackhenny

Description

@zackhenny

Hello, so ezAAI calculate writes files that it can't delete. I use the -tmp command give my self permissions, etc. but when I run the command I always get this. I am not sure how I can go ahead and change this, I've tried many solutions such as setting the java tmp dir, etc. but this continuously occurs

[USER@b04-08]$ ezaai calculate -i /project/res/ezAAI/profile_dbs -j /project//res/ezAAI/profile_dbs -o /project/res/ezAAI/results -tmp /project/tmp
[JUL 03 16:40:55] EzAAI   |:  EzAAI - v1.2.3 [Feb. 2024]
[JUL 03 16:41:00] EzAAI   |:  Calculating AAI... [Task 1/576]
org.apache.commons.io.IOExceptionList: /project/89/USER/tmp/5bb698eef6c7fdbc_tmp
        at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:331)
        at org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:1192)
        at leb.process.ProcCalcPairwiseAAI.pairwiseMmseqs(ProcCalcPairwiseAAI.java:399)
        at leb.process.ProcCalcPairwiseAAI.calculateProteomePairWithDetails(ProcCalcPairwiseAAI.java:67)
        at leb.main.EzAAI.runCalculate(EzAAI.java:511)
        at leb.main.EzAAI.run(EzAAI.java:689)
        at leb.main.EzAAI.main(EzAAI.java:725)
Caused by: java.io.IOException: Cannot delete file: /project/89/USER/tmp/5bb698eef6c7fdbc_tmp/9999684694930599082
        at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:1344)
        at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:324)
        ... 6 more
Caused by: java.nio.file.AccessDeniedException: /project/89/USER/tmp/5bb698eef6c7fdbc_tmp/9999684694930599082/pref_0.7
        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)
        ... 7 more
[JUL 03 16:41:24] ERROR   |:  Program terminated with error.```

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions