Scheduled backups not generated

Hello,

I'm running Upsource 2018.1.584 and have configured automated backups every 24 hours. Over the last few days though, these backups have not been generating with this seemingly relevant looking error in the logs:

 

[2019-01-09 15:26:53,635] INFO Check for backup-1 .importExport.BackupController - Regular backup. Last run at 2019 Jan 8 15-26-30, interval=86400s
[2019-01-09 15:26:53,635] INFO Check for backup-1 .importExport.BackupController - Regular backup. Last run at 2019 Jan 8 15-26-30, interval=86400s
[2019-01-09 15:26:53,709] ERROR Check for backup-1 .importExport.BackupController -
java.lang.Error: java.io.IOException: Failed to copy full contents from '/opt/upsource/conf/cassandra/cassandra.jvmoptions' to '/opt/upsource/backups/2019 Jan 9 15-26-53/conf/cassandra/cassandra.jvmoptions'
at com.jetbrains.upsource.backend.server.importExport.BackupController$Companion.backupTo(BackupController.kt:158)
at com.jetbrains.upsource.backend.server.importExport.BackupController.backup(BackupController.kt:81)
at com.jetbrains.upsource.backend.server.importExport.BackupController$1$1.doResume(BackupController.kt:63)
at kotlin.coroutines.experimental.jvm.internal.CoroutineImpl.resume(CoroutineImpl.kt:54)
at kotlinx.coroutines.experimental.DispatchTask.run(CoroutineDispatcher.kt:123)
at kotlinx.coroutines.experimental.EventLoopBase$QueuedRunnableTask.run(EventLoop.kt:189)
at kotlinx.coroutines.experimental.EventLoopBase.processNextEvent(EventLoop.kt:129)
at kotlinx.coroutines.experimental.BlockingCoroutine.joinBlocking(Builders.kt:227)
at kotlinx.coroutines.experimental.BuildersKt.runBlocking(Builders.kt:165)
at kotlinx.coroutines.experimental.BuildersKt.runBlocking$default(Builders.kt:158)
at com.jetbrains.upsource.backend.server.importExport.BackupController$1.run(BackupController.kt:62)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at com.jetbrains.upsource.util.NamedDaemonThreadFactory.a(NamedDaemonThreadFactory.java:34)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.io.IOException: Failed to copy full contents from '/opt/upsource/conf/cassandra/cassandra.jvmoptions' to '/opt/upsource/backups/2019 Jan 9 15-26-53/conf/cassandra/cassandra.jvmoptions'
at org.apache.commons.io.FileUtils.doCopyFile(FileUtils.java:1087)
at org.apache.commons.io.FileUtils.doCopyDirectory(FileUtils.java:1358)
at org.apache.commons.io.FileUtils.doCopyDirectory(FileUtils.java:1356)
at org.apache.commons.io.FileUtils.copyDirectory(FileUtils.java:1319)
at org.apache.commons.io.FileUtils.copyDirectory(FileUtils.java:1191)
at org.apache.commons.io.FileUtils.copyDirectory(FileUtils.java:1160)
at com.jetbrains.upsource.backend.server.importExport.BackupController$Companion.backupTo(BackupController.kt:126)
... 18 more
[2019-01-09 15:26:53,715] INFO @coroutine#47500948 portExportProjectConfiguration - Start export projects configuration
[2019-01-09 15:26:53,715] ERROR Check for backup-1 .importExport.BackupController -
java.lang.Error: java.io.FileNotFoundException: /opt/upsource/backups/2019 Jan 9 15-26-53/data/.backup/projects.xml (No such file or directory)
at com.jetbrains.upsource.backend.server.importExport.BackupController$Companion.backupTo(BackupController.kt:158)
at com.jetbrains.upsource.backend.server.importExport.BackupController.backup(BackupController.kt:81)
at com.jetbrains.upsource.backend.server.importExport.BackupController$1$1.doResume(BackupController.kt:63)
at kotlin.coroutines.experimental.jvm.internal.CoroutineImpl.resume(CoroutineImpl.kt:54)
at kotlinx.coroutines.experimental.DispatchTask.run(CoroutineDispatcher.kt:123)
at kotlinx.coroutines.experimental.EventLoopBase$QueuedRunnableTask.run(EventLoop.kt:189)
at kotlinx.coroutines.experimental.EventLoopBase.processNextEvent(EventLoop.kt:129)
at kotlinx.coroutines.experimental.BlockingCoroutine.joinBlocking(Builders.kt:227)
at kotlinx.coroutines.experimental.BuildersKt.runBlocking(Builders.kt:165)
at kotlinx.coroutines.experimental.BuildersKt.runBlocking$default(Builders.kt:158)
at com.jetbrains.upsource.backend.server.importExport.BackupController$1.run(BackupController.kt:62)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at com.jetbrains.upsource.util.NamedDaemonThreadFactory.a(NamedDaemonThreadFactory.java:34)
at java.lang.Thread.run(Thread.java:748)

Caused by: java.io.FileNotFoundException: /opt/upsource/backups/2019 Jan 9 15-26-53/data/.backup/projects.xml (No such file or directory)
at java.io.FileOutputStream.open0(Native Method)
at java.io.FileOutputStream.open(FileOutputStream.java:270)
at java.io.FileOutputStream.<init>(FileOutputStream.java:213)
at java.io.FileOutputStream.<init>(FileOutputStream.java:162)
at com.jetbrains.upsource.backend.server.importExport.BeanUtil.createOutputStream(BeanUtil.java:42)
at com.jetbrains.upsource.backend.server.importExport.ImportExportProjectConfiguration.export(ImportExportProjectConfiguration.java:77)
at com.jetbrains.upsource.backend.server.importExport.ImportExportProjectConfiguration.export(ImportExportProjectConfiguration.java:72)
at com.jetbrains.upsource.backend.server.importExport.ImportExportProjectConfiguration.export(ImportExportProjectConfiguration.java:54)
at com.jetbrains.upsource.backend.server.importExport.BackupController$Companion.backupTo(BackupController.kt:141)
... 18 more

Running a manual backup from the Upsource settings page (via the Backup Now) link works correctly however and doesn't cause these log messages.

Please sign in to leave a comment.