java.io.IOException: The process cannot access the file because another process has locked a portion of the file

Atlassian JIRA | Gurleen Anand [Atlassian] | 3 years ago
  1. 0

    Generating a backup in Fisheye is failing with: {noformat} 2013-08-15 18:58:00,425 WARN [ThreadPool3 ] fisheye BackupManagerImpl$2-run - Backup failed. java.io.IOException: The process cannot access the file because another process has locked a portion of the file at java.io.FileInputStream.readBytes(Native Method) at java.io.FileInputStream.read(FileInputStream.java:242) at com.cenqua.fisheye.io.IOHelper.copyStream(IOHelper.java:98) at com.cenqua.fisheye.io.IOHelper.copyStream(IOHelper.java:87) at com.atlassian.crucible.migration.item.FileSaver.add(FileSaver.java:64) at com.atlassian.crucible.migration.item.FileSaver.add(FileSaver.java:55) at com.atlassian.crucible.migration.item.FileSaver.add(FileSaver.java:55) at com.atlassian.crucible.migration.item.FileSaver.addPath(FileSaver.java:25) at com.atlassian.crucible.migration.item.FishEyeCacheBackup$SaverImpl.backup(FishEyeCacheBackup.java:104) at com.atlassian.crucible.migration.BackupManagerImpl.createBackup(BackupManagerImpl.java:260) at com.atlassian.crucible.migration.BackupManagerImpl.access$000(BackupManagerImpl.java:54) at com.atlassian.crucible.migration.BackupManagerImpl$2$1.perform(BackupManagerImpl.java:152) at com.atlassian.crucible.maintenance.MaintenanceManager.doMaintenance(MaintenanceManager.java:108) at com.atlassian.crucible.migration.BackupManagerImpl$2.run(BackupManagerImpl.java:150) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:724) {noformat} A restart does not help. There are no repositories that are running initial indexing at the moment.

    Atlassian JIRA | 3 years ago | Gurleen Anand [Atlassian]
    java.io.IOException: The process cannot access the file because another process has locked a portion of the file
  2. 0

    Generating a backup in Fisheye is failing with: {noformat} 2013-08-15 18:58:00,425 WARN [ThreadPool3 ] fisheye BackupManagerImpl$2-run - Backup failed. java.io.IOException: The process cannot access the file because another process has locked a portion of the file at java.io.FileInputStream.readBytes(Native Method) at java.io.FileInputStream.read(FileInputStream.java:242) at com.cenqua.fisheye.io.IOHelper.copyStream(IOHelper.java:98) at com.cenqua.fisheye.io.IOHelper.copyStream(IOHelper.java:87) at com.atlassian.crucible.migration.item.FileSaver.add(FileSaver.java:64) at com.atlassian.crucible.migration.item.FileSaver.add(FileSaver.java:55) at com.atlassian.crucible.migration.item.FileSaver.add(FileSaver.java:55) at com.atlassian.crucible.migration.item.FileSaver.addPath(FileSaver.java:25) at com.atlassian.crucible.migration.item.FishEyeCacheBackup$SaverImpl.backup(FishEyeCacheBackup.java:104) at com.atlassian.crucible.migration.BackupManagerImpl.createBackup(BackupManagerImpl.java:260) at com.atlassian.crucible.migration.BackupManagerImpl.access$000(BackupManagerImpl.java:54) at com.atlassian.crucible.migration.BackupManagerImpl$2$1.perform(BackupManagerImpl.java:152) at com.atlassian.crucible.maintenance.MaintenanceManager.doMaintenance(MaintenanceManager.java:108) at com.atlassian.crucible.migration.BackupManagerImpl$2.run(BackupManagerImpl.java:150) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:724) {noformat} A restart does not help. There are no repositories that are running initial indexing at the moment.

    Atlassian JIRA | 3 years ago | Gurleen Anand [Atlassian]
    java.io.IOException: The process cannot access the file because another process has locked a portion of the file
  3. 0

    org.gradle.api.UncheckedIOException: java.io.IOException

    GitHub | 3 years ago | ChrLipp
    org.gradle.api.UncheckedIOException: java.io.IOException: The process cannot access the file because another process has locked a portion of the file
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Copy files to rootDir in Gradle

    Stack Overflow | 5 years ago | stuff22
    org.gradle.api.UncheckedIOException: java.io.IOException: The process cannot access the file because another process has locked a portion of the file
  6. 0

    Lock on Hot Backup

    GitHub | 1 year ago | thiagopm
    java.io.IOException: The process cannot access the file because another process has locked a portion of the file

    5 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.IOException

      The process cannot access the file because another process has locked a portion of the file

      at java.io.FileInputStream.readBytes()
    2. Java RT
      FileInputStream.read
      1. java.io.FileInputStream.readBytes(Native Method)
      2. java.io.FileInputStream.read(FileInputStream.java:242)
      2 frames
    3. com.cenqua.fisheye
      IOHelper.copyStream
      1. com.cenqua.fisheye.io.IOHelper.copyStream(IOHelper.java:98)
      2. com.cenqua.fisheye.io.IOHelper.copyStream(IOHelper.java:87)
      2 frames
    4. com.atlassian.crucible
      BackupManagerImpl$2.run
      1. com.atlassian.crucible.migration.item.FileSaver.add(FileSaver.java:64)
      2. com.atlassian.crucible.migration.item.FileSaver.add(FileSaver.java:55)
      3. com.atlassian.crucible.migration.item.FileSaver.add(FileSaver.java:55)
      4. com.atlassian.crucible.migration.item.FileSaver.addPath(FileSaver.java:25)
      5. com.atlassian.crucible.migration.item.FishEyeCacheBackup$SaverImpl.backup(FishEyeCacheBackup.java:104)
      6. com.atlassian.crucible.migration.BackupManagerImpl.createBackup(BackupManagerImpl.java:260)
      7. com.atlassian.crucible.migration.BackupManagerImpl.access$000(BackupManagerImpl.java:54)
      8. com.atlassian.crucible.migration.BackupManagerImpl$2$1.perform(BackupManagerImpl.java:152)
      9. com.atlassian.crucible.maintenance.MaintenanceManager.doMaintenance(MaintenanceManager.java:108)
      10. com.atlassian.crucible.migration.BackupManagerImpl$2.run(BackupManagerImpl.java:150)
      10 frames
    5. Java RT
      Thread.run
      1. java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
      2. java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
      3. java.util.concurrent.FutureTask.run(FutureTask.java:166)
      4. java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178)
      5. java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292)
      6. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      7. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      8. java.lang.Thread.run(Thread.java:724)
      8 frames