java.io.IOException: No such file or directory

Atlassian JIRA | Andrzej Talarek, Efinity | 2 years ago
  1. 0

    strange, but when i force backup to run manually, i got {code}2014-06-18 16:22:18,760 INFO [scheduler_Worker-3] [atlassian.confluence.upgrade.AbstractUpgradeManager] getExportBuildNumber Backward compatibility for export: Checking... 2014-06-18 16:22:18,762 INFO [scheduler_Worker-3] [atlassian.confluence.upgrade.AbstractUpgradeManager] getExportBuildNumber Build number 4984: "Upgrade to build number: 4 984" - Ok 2014-06-18 16:22:18,762 INFO [scheduler_Worker-3] [atlassian.confluence.upgrade.AbstractUpgradeManager] getExportBuildNumber Build number 4950: "Upgrade to build number: 4 950" - Ok 2014-06-18 16:22:18,764 INFO [scheduler_Worker-3] [atlassian.confluence.upgrade.AbstractUpgradeManager] getExportBuildNumber Build number 4937: "Reindexes all PersonalInfo rmation objects, creating them for any users that do not have one." - Ok 2014-06-18 16:22:18,764 INFO [scheduler_Worker-3] [atlassian.confluence.upgrade.AbstractUpgradeManager] getExportBuildNumber Build number 4526: "Remove the legacy remotabl e apps plugin from the user installed plugins" - Ok 2014-06-18 16:22:18,764 INFO [scheduler_Worker-3] [atlassian.confluence.upgrade.AbstractUpgradeManager] getExportBuildNumber Build number 4517: "Migrate all Page Templates using a storage format round-trip conversion" - Not Ok 2014-06-18 16:22:18,765 INFO [scheduler_Worker-3] [atlassian.confluence.upgrade.AbstractUpgradeManager] getExportBuildNumber Backward compatibility for export: "Migrate al l Page Templates using a storage format round-trip conversion" prevents compatibility before 4517 {code} and then {code} 2014-06-18 16:22:33,730 WARN [scheduler_Worker-3] [activeobjects.confluence.backup.LoggingBackupProgressMonitor] beginBackup Begin Active objects backup, change log level to INFO for com.atlassian.activeobjects.confluence.backup for more detailed logging. 2014-06-18 16:22:35,077 WARN [scheduler_Worker-3] [activeobjects.confluence.backup.LoggingBackupProgressMonitor] endBackup Completed active objects backup. 2014-06-18 16:22:38,777 ERROR [scheduler_Worker-3] [confluence.importexport.impl.BackupJob] executeJob Error while running the scheduled backup java.io.IOException: No such file or directory at java.io.UnixFileSystem.createFileExclusively(Native Method) at java.io.File.createNewFile(Unknown Source) at com.atlassian.core.util.FileUtils.copyFile(FileUtils.java:461) at com.atlassian.confluence.importexport.impl.BackupJob.executeJob(BackupJob.java:87) at com.atlassian.confluence.setup.quartz.AbstractClusterAwareQuartzJobBean.surroundJobExecutionWithLogging(AbstractClusterAwareQuartzJobBean.java:65) at com.atlassian.confluence.setup.quartz.AbstractClusterAwareQuartzJobBean.executeInternal(AbstractClusterAwareQuartzJobBean.java:47) at org.springframework.scheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:86) at org.quartz.core.JobRunShell.run(JobRunShell.java:199) at com.atlassian.confluence.schedule.quartz.ConfluenceQuartzThreadPool$1.run(ConfluenceQuartzThreadPool.java:20) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:549) 2014-06-18 16:22:46,863 WARN [http-bio-8090-exec-22] [atlassian.confluence.cache.TransactionalCacheFactory] warning Transactional cache update outside transaction. All upd ates to this cache should be performed from a thread with a valid transaction context. {code} in result backup directory is empty

    Atlassian JIRA | 2 years ago | Andrzej Talarek, Efinity
    java.io.IOException: No such file or directory
  2. 0

    strange, but when i force backup to run manually, i got {code}2014-06-18 16:22:18,760 INFO [scheduler_Worker-3] [atlassian.confluence.upgrade.AbstractUpgradeManager] getExportBuildNumber Backward compatibility for export: Checking... 2014-06-18 16:22:18,762 INFO [scheduler_Worker-3] [atlassian.confluence.upgrade.AbstractUpgradeManager] getExportBuildNumber Build number 4984: "Upgrade to build number: 4 984" - Ok 2014-06-18 16:22:18,762 INFO [scheduler_Worker-3] [atlassian.confluence.upgrade.AbstractUpgradeManager] getExportBuildNumber Build number 4950: "Upgrade to build number: 4 950" - Ok 2014-06-18 16:22:18,764 INFO [scheduler_Worker-3] [atlassian.confluence.upgrade.AbstractUpgradeManager] getExportBuildNumber Build number 4937: "Reindexes all PersonalInfo rmation objects, creating them for any users that do not have one." - Ok 2014-06-18 16:22:18,764 INFO [scheduler_Worker-3] [atlassian.confluence.upgrade.AbstractUpgradeManager] getExportBuildNumber Build number 4526: "Remove the legacy remotabl e apps plugin from the user installed plugins" - Ok 2014-06-18 16:22:18,764 INFO [scheduler_Worker-3] [atlassian.confluence.upgrade.AbstractUpgradeManager] getExportBuildNumber Build number 4517: "Migrate all Page Templates using a storage format round-trip conversion" - Not Ok 2014-06-18 16:22:18,765 INFO [scheduler_Worker-3] [atlassian.confluence.upgrade.AbstractUpgradeManager] getExportBuildNumber Backward compatibility for export: "Migrate al l Page Templates using a storage format round-trip conversion" prevents compatibility before 4517 {code} and then {code} 2014-06-18 16:22:33,730 WARN [scheduler_Worker-3] [activeobjects.confluence.backup.LoggingBackupProgressMonitor] beginBackup Begin Active objects backup, change log level to INFO for com.atlassian.activeobjects.confluence.backup for more detailed logging. 2014-06-18 16:22:35,077 WARN [scheduler_Worker-3] [activeobjects.confluence.backup.LoggingBackupProgressMonitor] endBackup Completed active objects backup. 2014-06-18 16:22:38,777 ERROR [scheduler_Worker-3] [confluence.importexport.impl.BackupJob] executeJob Error while running the scheduled backup java.io.IOException: No such file or directory at java.io.UnixFileSystem.createFileExclusively(Native Method) at java.io.File.createNewFile(Unknown Source) at com.atlassian.core.util.FileUtils.copyFile(FileUtils.java:461) at com.atlassian.confluence.importexport.impl.BackupJob.executeJob(BackupJob.java:87) at com.atlassian.confluence.setup.quartz.AbstractClusterAwareQuartzJobBean.surroundJobExecutionWithLogging(AbstractClusterAwareQuartzJobBean.java:65) at com.atlassian.confluence.setup.quartz.AbstractClusterAwareQuartzJobBean.executeInternal(AbstractClusterAwareQuartzJobBean.java:47) at org.springframework.scheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:86) at org.quartz.core.JobRunShell.run(JobRunShell.java:199) at com.atlassian.confluence.schedule.quartz.ConfluenceQuartzThreadPool$1.run(ConfluenceQuartzThreadPool.java:20) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:549) 2014-06-18 16:22:46,863 WARN [http-bio-8090-exec-22] [atlassian.confluence.cache.TransactionalCacheFactory] warning Transactional cache update outside transaction. All upd ates to this cache should be performed from a thread with a valid transaction context. {code} in result backup directory is empty

    Atlassian JIRA | 2 years ago | Andrzej Talarek, Efinity
    java.io.IOException: No such file or directory
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    h2. Steps to reproduce 1. Perform a full site export of a Confluence instance 2. Set up an instance with a different home directory (this is so that the backup path will differ from the export) 3. Check the backup path of your instance on the Backup Administration screen ({{/admin/dailybackupadmin.action}}) 4. Now import the backup you created in step 1 5. Check the backup path of your instance on the Backup Administration screen - (!) it still shows what it did in step 3 6. Perform another site backup, with the option to archive a copy of the backup checked 7. You'll see that the temporary backup is created where you would expect (in the location that matches the backup path you saw in steps 3 and 5), (!) but the archived backup is created in the home directory that was specified in the instance you imported from In cases where that location doesn't exist anymore, a stacktrace will appear instead: {code} java.io.IOException: No such file or directory at java.io.UnixFileSystem.createFileExclusively(Native Method) at java.io.File.createNewFile(File.java:883) at com.atlassian.core.util.FileUtils.copyFile(FileUtils.java:465) at com.atlassian.core.util.FileUtils.copyFile(FileUtils.java:401) {code} See attached files for full stack trace. I think the desired behaviour in this case is that the existing backup path of the instance is used, instead of the path from the import. This will ensure that the location always exists (since the home directory of this instance has to!). h2. Workaround On the Backup Administration screen, click to edit the backup settings. You won't be able to change the backup path, but once you submit the form Confluence will go back to using the backup path that's specified on this screen.

    Atlassian JIRA | 4 years ago | Edith Tom
    java.io.IOException: No such file or directory
  5. 0

    h2. Steps to reproduce 1. Perform a full site export of a Confluence instance 2. Set up an instance with a different home directory (this is so that the backup path will differ from the export) 3. Check the backup path of your instance on the Backup Administration screen ({{/admin/dailybackupadmin.action}}) 4. Now import the backup you created in step 1 5. Check the backup path of your instance on the Backup Administration screen - (!) it still shows what it did in step 3 6. Perform another site backup, with the option to archive a copy of the backup checked 7. You'll see that the temporary backup is created where you would expect (in the location that matches the backup path you saw in steps 3 and 5), (!) but the archived backup is created in the home directory that was specified in the instance you imported from In cases where that location doesn't exist anymore, a stacktrace will appear instead: {code} java.io.IOException: No such file or directory at java.io.UnixFileSystem.createFileExclusively(Native Method) at java.io.File.createNewFile(File.java:883) at com.atlassian.core.util.FileUtils.copyFile(FileUtils.java:465) at com.atlassian.core.util.FileUtils.copyFile(FileUtils.java:401) {code} See attached files for full stack trace. I think the desired behaviour in this case is that the existing backup path of the instance is used, instead of the path from the import. This will ensure that the location always exists (since the home directory of this instance has to!). h2. Workaround On the Backup Administration screen, click to edit the backup settings. You won't be able to change the backup path, but once you submit the form Confluence will go back to using the backup path that's specified on this screen.

    Atlassian JIRA | 4 years ago | Edith Tom
    java.io.IOException: No such file or directory

  1. Kialandei 63 times, last 1 week ago
  2. Handemelindo 5 times, last 3 weeks ago
  3. cesarnog 12 times, last 1 month ago
  4. Gatgeagent 2 times, last 3 months ago
  5. 0x60 3 times, last 2 months ago
12 more registered users
32 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

    No such file or directory

    at java.io.UnixFileSystem.createFileExclusively()
  2. Java RT
    File.createNewFile
    1. java.io.UnixFileSystem.createFileExclusively(Native Method)
    2. java.io.File.createNewFile(Unknown Source)
    2 frames
  3. com.atlassian.core
    FileUtils.copyFile
    1. com.atlassian.core.util.FileUtils.copyFile(FileUtils.java:461)
    1 frame
  4. com.atlassian.confluence
    AbstractClusterAwareQuartzJobBean.executeInternal
    1. com.atlassian.confluence.importexport.impl.BackupJob.executeJob(BackupJob.java:87)
    2. com.atlassian.confluence.setup.quartz.AbstractClusterAwareQuartzJobBean.surroundJobExecutionWithLogging(AbstractClusterAwareQuartzJobBean.java:65)
    3. com.atlassian.confluence.setup.quartz.AbstractClusterAwareQuartzJobBean.executeInternal(AbstractClusterAwareQuartzJobBean.java:47)
    3 frames
  5. Spring Context Support
    QuartzJobBean.execute
    1. org.springframework.scheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:86)
    1 frame
  6. quartz
    JobRunShell.run
    1. org.quartz.core.JobRunShell.run(JobRunShell.java:199)
    1 frame
  7. com.atlassian.confluence
    ConfluenceQuartzThreadPool$1.run
    1. com.atlassian.confluence.schedule.quartz.ConfluenceQuartzThreadPool$1.run(ConfluenceQuartzThreadPool.java:20)
    1 frame
  8. quartz
    SimpleThreadPool$WorkerThread.run
    1. org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:549)
    1 frame