java.io.FileNotFoundException: XXXXX (Is a directory)

Atlassian JIRA | Dave Lahn [Atlassian] | 1 year ago
  1. 0

    h3. Summary In Bitbucket Server Backup Client version 2.0.0 and later, if a directory in the home directory being backed up is a symbolic link, the backup will fail with the following error: {noformat} ERROR [main] c.a.b.i.b.c.extensions.TarExtensions Error writing tar file entry: XXXXX (Is a directory) java.io.FileNotFoundException: XXXXX (Is a directory) at java.io.FileInputStream.open0(Native Method) ~[na:1.8.0_51] at java.io.FileInputStream.open(FileInputStream.java:195) ~[na:1.8.0_51] at java.io.FileInputStream.<init>(FileInputStream.java:138) ~[na:1.8.0_51] at com.atlassian.bitbucket.internal.backup.client.extensions.TarExtensions.withEntry(TarExtensions.groovy:24) ~[bitbucket-backup-core-2.0.0.jar:na] at com.atlassian.bitbucket.internal.backup.client.util.Profiler.measure(Profiler.groovy:20) [bitbucket-backup-core-2.0.0.jar:na] at com.atlassian.bitbucket.internal.backup.client.layout.DefaultApplicationHome.addFileEntries(DefaultApplicationHome.groovy:119) [bitbucket-backup-core-2.0.0.jar:na] at com.atlassian.bitbucket.internal.backup.client.layout.DefaultApplicationHome.archive(DefaultApplicationHome.groovy:103) [bitbucket-backup-core-2.0.0.jar:na] at com.atlassian.bitbucket.internal.backup.client.DefaultBackupClient.archiveHome(DefaultBackupClient.groovy:73) [bitbucket-backup-client.jar:2.0.0] at com.atlassian.bitbucket.internal.backup.client.FixedRateProgressPublisher.publishWhileExecuting(FixedRateProgressPublisher.groovy:34) [bitbucket-backup-client.jar:2.0.0] at com.atlassian.bitbucket.internal.backup.client.RestBitbucketService.backup(RestBitbucketService.groovy:67) [bitbucket-backup-client.jar:2.0.0] at com.atlassian.bitbucket.internal.backup.client.RestBitbucketService.lock(RestBitbucketService.groovy:175) [bitbucket-backup-client.jar:2.0.0] at com.atlassian.bitbucket.internal.backup.client.DefaultBackupClient.doBackup(DefaultBackupClient.groovy:52) [bitbucket-backup-client.jar:2.0.0] at com.atlassian.bitbucket.internal.backup.client.extensions.StopwatchExtension.time(StopwatchExtension.groovy:11) [bitbucket-backup-core-2.0.0.jar:na] at com.atlassian.bitbucket.internal.backup.client.DefaultBackupClient.backup(DefaultBackupClient.groovy:39) [bitbucket-backup-client.jar:2.0.0] at com.atlassian.bitbucket.internal.backup.client.spring.SpringMain.run(SpringMain.groovy:28) [bitbucket-backup-core-2.0.0.jar:na] at com.atlassian.bitbucket.internal.backup.client.spring.SpringMain.run(SpringMain.groovy) [bitbucket-backup-core-2.0.0.jar:na] at com.atlassian.bitbucket.internal.backup.client.BackupMain.main(BackupMain.groovy:39) [bitbucket-backup-client.jar:2.0.0] at com.atlassian.bitbucket.internal.backup.client.JavaVersionCheckingShim.invokeClientClassMain(JavaVersionCheckingShim.java:71) [bitbucket-backup-client.jar:2.0.0] at com.atlassian.bitbucket.internal.backup.client.JavaVersionCheckingShim.run(JavaVersionCheckingShim.java:85) [bitbucket-backup-client.jar:2.0.0] ... 203 frames suppressed {noformat} h3. Steps to Reproduce # Move the {{data}} directory in {{<BITBUCKET_HOME>/shared/data}} to a symbolic link pointing to a different directory. # Perform the backup. h3. Expected Results The backup completes successfully. h3. Actual Results The below error is thrown: {noformat} ERROR [main] c.a.b.i.b.c.extensions.TarExtensions Error writing tar file entry: XXXXX (Is a directory) java.io.FileNotFoundException: XXXXX (Is a directory) at java.io.FileInputStream.open0(Native Method) ~[na:1.8.0_51] at java.io.FileInputStream.open(FileInputStream.java:195) ~[na:1.8.0_51] at java.io.FileInputStream.<init>(FileInputStream.java:138) ~[na:1.8.0_51] at com.atlassian.bitbucket.internal.backup.client.extensions.TarExtensions.withEntry(TarExtensions.groovy:24) ~[bitbucket-backup-core-2.0.0.jar:na] at com.atlassian.bitbucket.internal.backup.client.util.Profiler.measure(Profiler.groovy:20) [bitbucket-backup-core-2.0.0.jar:na] at com.atlassian.bitbucket.internal.backup.client.layout.DefaultApplicationHome.addFileEntries(DefaultApplicationHome.groovy:119) [bitbucket-backup-core-2.0.0.jar:na] at com.atlassian.bitbucket.internal.backup.client.layout.DefaultApplicationHome.archive(DefaultApplicationHome.groovy:103) [bitbucket-backup-core-2.0.0.jar:na] at com.atlassian.bitbucket.internal.backup.client.DefaultBackupClient.archiveHome(DefaultBackupClient.groovy:73) [bitbucket-backup-client.jar:2.0.0] at com.atlassian.bitbucket.internal.backup.client.FixedRateProgressPublisher.publishWhileExecuting(FixedRateProgressPublisher.groovy:34) [bitbucket-backup-client.jar:2.0.0] at com.atlassian.bitbucket.internal.backup.client.RestBitbucketService.backup(RestBitbucketService.groovy:67) [bitbucket-backup-client.jar:2.0.0] at com.atlassian.bitbucket.internal.backup.client.RestBitbucketService.lock(RestBitbucketService.groovy:175) [bitbucket-backup-client.jar:2.0.0] at com.atlassian.bitbucket.internal.backup.client.DefaultBackupClient.doBackup(DefaultBackupClient.groovy:52) [bitbucket-backup-client.jar:2.0.0] at com.atlassian.bitbucket.internal.backup.client.extensions.StopwatchExtension.time(StopwatchExtension.groovy:11) [bitbucket-backup-core-2.0.0.jar:na] at com.atlassian.bitbucket.internal.backup.client.DefaultBackupClient.backup(DefaultBackupClient.groovy:39) [bitbucket-backup-client.jar:2.0.0] at com.atlassian.bitbucket.internal.backup.client.spring.SpringMain.run(SpringMain.groovy:28) [bitbucket-backup-core-2.0.0.jar:na] at com.atlassian.bitbucket.internal.backup.client.spring.SpringMain.run(SpringMain.groovy) [bitbucket-backup-core-2.0.0.jar:na] at com.atlassian.bitbucket.internal.backup.client.BackupMain.main(BackupMain.groovy:39) [bitbucket-backup-client.jar:2.0.0] at com.atlassian.bitbucket.internal.backup.client.JavaVersionCheckingShim.invokeClientClassMain(JavaVersionCheckingShim.java:71) [bitbucket-backup-client.jar:2.0.0] at com.atlassian.bitbucket.internal.backup.client.JavaVersionCheckingShim.run(JavaVersionCheckingShim.java:85) [bitbucket-backup-client.jar:2.0.0] ... 203 frames suppressed {noformat} h3.Workaround Remove the symbolic link and have the folder in the shared directory.

    Atlassian JIRA | 1 year ago | Dave Lahn [Atlassian]
    java.io.FileNotFoundException: XXXXX (Is a directory)
  2. 0

    h3. Summary In Bitbucket Server Backup Client version 2.0.0 and later, if a directory in the home directory being backed up is a symbolic link, the backup will fail with the following error: {noformat} ERROR [main] c.a.b.i.b.c.extensions.TarExtensions Error writing tar file entry: XXXXX (Is a directory) java.io.FileNotFoundException: XXXXX (Is a directory) at java.io.FileInputStream.open0(Native Method) ~[na:1.8.0_51] at java.io.FileInputStream.open(FileInputStream.java:195) ~[na:1.8.0_51] at java.io.FileInputStream.<init>(FileInputStream.java:138) ~[na:1.8.0_51] at com.atlassian.bitbucket.internal.backup.client.extensions.TarExtensions.withEntry(TarExtensions.groovy:24) ~[bitbucket-backup-core-2.0.0.jar:na] at com.atlassian.bitbucket.internal.backup.client.util.Profiler.measure(Profiler.groovy:20) [bitbucket-backup-core-2.0.0.jar:na] at com.atlassian.bitbucket.internal.backup.client.layout.DefaultApplicationHome.addFileEntries(DefaultApplicationHome.groovy:119) [bitbucket-backup-core-2.0.0.jar:na] at com.atlassian.bitbucket.internal.backup.client.layout.DefaultApplicationHome.archive(DefaultApplicationHome.groovy:103) [bitbucket-backup-core-2.0.0.jar:na] at com.atlassian.bitbucket.internal.backup.client.DefaultBackupClient.archiveHome(DefaultBackupClient.groovy:73) [bitbucket-backup-client.jar:2.0.0] at com.atlassian.bitbucket.internal.backup.client.FixedRateProgressPublisher.publishWhileExecuting(FixedRateProgressPublisher.groovy:34) [bitbucket-backup-client.jar:2.0.0] at com.atlassian.bitbucket.internal.backup.client.RestBitbucketService.backup(RestBitbucketService.groovy:67) [bitbucket-backup-client.jar:2.0.0] at com.atlassian.bitbucket.internal.backup.client.RestBitbucketService.lock(RestBitbucketService.groovy:175) [bitbucket-backup-client.jar:2.0.0] at com.atlassian.bitbucket.internal.backup.client.DefaultBackupClient.doBackup(DefaultBackupClient.groovy:52) [bitbucket-backup-client.jar:2.0.0] at com.atlassian.bitbucket.internal.backup.client.extensions.StopwatchExtension.time(StopwatchExtension.groovy:11) [bitbucket-backup-core-2.0.0.jar:na] at com.atlassian.bitbucket.internal.backup.client.DefaultBackupClient.backup(DefaultBackupClient.groovy:39) [bitbucket-backup-client.jar:2.0.0] at com.atlassian.bitbucket.internal.backup.client.spring.SpringMain.run(SpringMain.groovy:28) [bitbucket-backup-core-2.0.0.jar:na] at com.atlassian.bitbucket.internal.backup.client.spring.SpringMain.run(SpringMain.groovy) [bitbucket-backup-core-2.0.0.jar:na] at com.atlassian.bitbucket.internal.backup.client.BackupMain.main(BackupMain.groovy:39) [bitbucket-backup-client.jar:2.0.0] at com.atlassian.bitbucket.internal.backup.client.JavaVersionCheckingShim.invokeClientClassMain(JavaVersionCheckingShim.java:71) [bitbucket-backup-client.jar:2.0.0] at com.atlassian.bitbucket.internal.backup.client.JavaVersionCheckingShim.run(JavaVersionCheckingShim.java:85) [bitbucket-backup-client.jar:2.0.0] ... 203 frames suppressed {noformat} h3. Steps to Reproduce # Move the {{data}} directory in {{<BITBUCKET_HOME>/shared/data}} to a symbolic link pointing to a different directory. # Perform the backup. h3. Expected Results The backup completes successfully. h3. Actual Results The below error is thrown: {noformat} ERROR [main] c.a.b.i.b.c.extensions.TarExtensions Error writing tar file entry: XXXXX (Is a directory) java.io.FileNotFoundException: XXXXX (Is a directory) at java.io.FileInputStream.open0(Native Method) ~[na:1.8.0_51] at java.io.FileInputStream.open(FileInputStream.java:195) ~[na:1.8.0_51] at java.io.FileInputStream.<init>(FileInputStream.java:138) ~[na:1.8.0_51] at com.atlassian.bitbucket.internal.backup.client.extensions.TarExtensions.withEntry(TarExtensions.groovy:24) ~[bitbucket-backup-core-2.0.0.jar:na] at com.atlassian.bitbucket.internal.backup.client.util.Profiler.measure(Profiler.groovy:20) [bitbucket-backup-core-2.0.0.jar:na] at com.atlassian.bitbucket.internal.backup.client.layout.DefaultApplicationHome.addFileEntries(DefaultApplicationHome.groovy:119) [bitbucket-backup-core-2.0.0.jar:na] at com.atlassian.bitbucket.internal.backup.client.layout.DefaultApplicationHome.archive(DefaultApplicationHome.groovy:103) [bitbucket-backup-core-2.0.0.jar:na] at com.atlassian.bitbucket.internal.backup.client.DefaultBackupClient.archiveHome(DefaultBackupClient.groovy:73) [bitbucket-backup-client.jar:2.0.0] at com.atlassian.bitbucket.internal.backup.client.FixedRateProgressPublisher.publishWhileExecuting(FixedRateProgressPublisher.groovy:34) [bitbucket-backup-client.jar:2.0.0] at com.atlassian.bitbucket.internal.backup.client.RestBitbucketService.backup(RestBitbucketService.groovy:67) [bitbucket-backup-client.jar:2.0.0] at com.atlassian.bitbucket.internal.backup.client.RestBitbucketService.lock(RestBitbucketService.groovy:175) [bitbucket-backup-client.jar:2.0.0] at com.atlassian.bitbucket.internal.backup.client.DefaultBackupClient.doBackup(DefaultBackupClient.groovy:52) [bitbucket-backup-client.jar:2.0.0] at com.atlassian.bitbucket.internal.backup.client.extensions.StopwatchExtension.time(StopwatchExtension.groovy:11) [bitbucket-backup-core-2.0.0.jar:na] at com.atlassian.bitbucket.internal.backup.client.DefaultBackupClient.backup(DefaultBackupClient.groovy:39) [bitbucket-backup-client.jar:2.0.0] at com.atlassian.bitbucket.internal.backup.client.spring.SpringMain.run(SpringMain.groovy:28) [bitbucket-backup-core-2.0.0.jar:na] at com.atlassian.bitbucket.internal.backup.client.spring.SpringMain.run(SpringMain.groovy) [bitbucket-backup-core-2.0.0.jar:na] at com.atlassian.bitbucket.internal.backup.client.BackupMain.main(BackupMain.groovy:39) [bitbucket-backup-client.jar:2.0.0] at com.atlassian.bitbucket.internal.backup.client.JavaVersionCheckingShim.invokeClientClassMain(JavaVersionCheckingShim.java:71) [bitbucket-backup-client.jar:2.0.0] at com.atlassian.bitbucket.internal.backup.client.JavaVersionCheckingShim.run(JavaVersionCheckingShim.java:85) [bitbucket-backup-client.jar:2.0.0] ... 203 frames suppressed {noformat} h3.Workaround Remove the symbolic link and have the folder in the shared directory.

    Atlassian JIRA | 1 year ago | Dave Lahn [Atlassian]
    java.io.FileNotFoundException: XXXXX (Is a directory)
  3. 0

    Intermittent java.io.FileNotFoundException on release

    GitHub | 12 months ago | samthebest
    java.io.FileNotFoundException: /var/lib/jenkins/workspace/altmetrics/target/scala-2.10/classes/com/MYCLASS$$anonfun$main$5$$anonfun$apply$3$$anonfun$apply$5.class (No such file or directory)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    I am studying Robolectric but an error occured

    Stack Overflow | 2 years ago | kidoher
    java.io.FileNotFoundException: build/intermediates/bundles/debug/AndroidManifest.xml (No such file or directory)
  6. 0

    How to use serialized CRFClassifier with StanfordCoreNLP prop 'ner'

    Stack Overflow | 2 years ago
    java.io.FileNotFoundException: edu/stanford/nlp/models/ner/english.all.3class.distsim.crf.ser.gz (No such file or directory)

  1. r1chjames 1 times, last 1 day ago
  2. richard77 1 times, last 1 week ago
  3. gehel 2 times, last 2 weeks ago
  4. Kialandei 100 times, last 2 weeks ago
  5. Reich 1 times, last 2 weeks ago
45 more registered users
50 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.io.FileNotFoundException

    XXXXX (Is a directory)

    at java.io.FileInputStream.open0()
  2. Java RT
    FileInputStream.<init>
    1. java.io.FileInputStream.open0(Native Method)[na:1.8.0_51]
    2. java.io.FileInputStream.open(FileInputStream.java:195)[na:1.8.0_51]
    3. java.io.FileInputStream.<init>(FileInputStream.java:138)[na:1.8.0_51]
    3 frames
  3. com.atlassian.bitbucket
    JavaVersionCheckingShim.run
    1. com.atlassian.bitbucket.internal.backup.client.extensions.TarExtensions.withEntry(TarExtensions.groovy:24)[bitbucket-backup-core-2.0.0.jar:na]
    2. com.atlassian.bitbucket.internal.backup.client.util.Profiler.measure(Profiler.groovy:20)[bitbucket-backup-core-2.0.0.jar:na]
    3. com.atlassian.bitbucket.internal.backup.client.layout.DefaultApplicationHome.addFileEntries(DefaultApplicationHome.groovy:119)[bitbucket-backup-core-2.0.0.jar:na]
    4. com.atlassian.bitbucket.internal.backup.client.layout.DefaultApplicationHome.archive(DefaultApplicationHome.groovy:103)[bitbucket-backup-core-2.0.0.jar:na]
    5. com.atlassian.bitbucket.internal.backup.client.DefaultBackupClient.archiveHome(DefaultBackupClient.groovy:73)[bitbucket-backup-client.jar:2.0.0]
    6. com.atlassian.bitbucket.internal.backup.client.FixedRateProgressPublisher.publishWhileExecuting(FixedRateProgressPublisher.groovy:34)[bitbucket-backup-client.jar:2.0.0]
    7. com.atlassian.bitbucket.internal.backup.client.RestBitbucketService.backup(RestBitbucketService.groovy:67)[bitbucket-backup-client.jar:2.0.0]
    8. com.atlassian.bitbucket.internal.backup.client.RestBitbucketService.lock(RestBitbucketService.groovy:175)[bitbucket-backup-client.jar:2.0.0]
    9. com.atlassian.bitbucket.internal.backup.client.DefaultBackupClient.doBackup(DefaultBackupClient.groovy:52)[bitbucket-backup-client.jar:2.0.0]
    10. com.atlassian.bitbucket.internal.backup.client.extensions.StopwatchExtension.time(StopwatchExtension.groovy:11)[bitbucket-backup-core-2.0.0.jar:na]
    11. com.atlassian.bitbucket.internal.backup.client.DefaultBackupClient.backup(DefaultBackupClient.groovy:39)[bitbucket-backup-client.jar:2.0.0]
    12. com.atlassian.bitbucket.internal.backup.client.spring.SpringMain.run(SpringMain.groovy:28)[bitbucket-backup-core-2.0.0.jar:na]
    13. com.atlassian.bitbucket.internal.backup.client.spring.SpringMain.run(SpringMain.groovy)[bitbucket-backup-core-2.0.0.jar:na]
    14. com.atlassian.bitbucket.internal.backup.client.BackupMain.main(BackupMain.groovy:39)[bitbucket-backup-client.jar:2.0.0]
    15. com.atlassian.bitbucket.internal.backup.client.JavaVersionCheckingShim.invokeClientClassMain(JavaVersionCheckingShim.java:71)[bitbucket-backup-client.jar:2.0.0]
    16. com.atlassian.bitbucket.internal.backup.client.JavaVersionCheckingShim.run(JavaVersionCheckingShim.java:85)[bitbucket-backup-client.jar:2.0.0]
    16 frames