Old Derby database backup temporary folders aren't deleted or moved

Document ID : KB000086225
Last Modified Date : 14/04/2018
Show Technical Document Details
Issue:
Error Message :
On the uvserver.log this kind of errors appear:
-----------
java.lang.RuntimeException: Unable to rename C:\ORSYP\univiewer_server\backup_SRV-UNISD_mgtserver_derbydb\~20170214_194000_067 to C:\ORSYP\univiewer_server\backup_SRV-UNISD_mgtserver_derbydb\20170214_194000_067
at com.orsyp.central.derbyrecovery.DerbyBackup$BackupLocation.renameTmpToFinalLocation(DerbyBackup.java:214)
at com.orsyp.central.derbyrecovery.DerbyBackup.backup(DerbyBackup.java:116)
at com.orsyp.central.derbyrecovery.DerbyBackup.performBackup(DerbyBackup.java:85)
at com.orsyp.central.derbyrecovery.DerbyBackup.performBackupWithDefaultParameters(DerbyBackup.java:59)
at com.orsyp.central.derbyrecovery.DerbyBackupTimer$DerbyTimerTask$1.run(DerbyBackupTimer.java:111)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAsPrivileged(Unknown Source)
at com.orsyp.central.derbyrecovery.DerbyBackupTimer$DerbyTimerTask.run(DerbyBackupTimer.java:109)
at java.util.TimerThread.mainLoop(Unknown Source)
at java.util.TimerThread.run(Unknown Source)
| 2017-02-14 19:40:10 |WARN | DerbyBackupTimer | com.orsyp.central.derbyrecovery.DerbyBackup$BackupLocation | Try to delete the failed backup directory:C:\ORSYP\univiewer_server\backup_SRV-UNISD_mgtserver_derbydb\20170214_194000_067 
| 2017-02-14 19:40:10 |WARN | DerbyBackupTimer | com.orsyp.central.derbyrecovery.DerbyBackup$BackupLocation | .. dir not created. 
| 2017-02-14 19:40:10 |WARN | DerbyBackupTimer | com.orsyp.central.derbyrecovery.DerbyBackup$BackupLocation | Try to delete the failed backup directory:C:\ORSYP\univiewer_server\backup_SRV-UNISD_mgtserver_derbydb\~20170214_194000_067 
| 2017-02-14 19:40:10 |WARN | DerbyBackupTimer | com.orsyp.central.derbyrecovery.DerbyBackup$BackupLocation | .. C:\ORSYP\univiewer_server\backup_SRV-UNISD_mgtserver_derbydb\~20170214_194000_067 is not empty -> delete will be skiped!
----------- 

Patch level detected:Univiewer Management Server 6.1.01
Product Version: Dollar.Universe 6.1.0

Description :Derby database backup temporary folders can't be deleted or moved.
Environment:
OS: All
Cause:
Cause type:
Defect
Root Cause: In case the backup failed, the temporary backup folders were not deleted.
Resolution:
As a workaround, you can manually delete the temporary backup folders.
Starting on version 6.8.01 of UVMS, these folders will deleted in case the backup fails.

Fix Status: Released

Fix Version(s):
Component: Univiewer.Management.Server
Version: Dollar.Universe 6.8.01
Additional Information:
Workaround :
N/A