Exception On Backup Database: "DatabaseBackupError: id = 161-4.name"

Hi,

For a small on-site installation of YouTrack, recently an upgrade was made from 2018.3 to 2020.1.

It was then later found that performing a database backup is raising an exception.  The exception is listed below: (so far, a search of the documentation and community support resources do not reveal similar exceptions.)

-- Log Excerpt:

15:55:02,371 INFO [@ionJobProcessor] [BackupBean ] [] Backing up database...
15:55:18,488 INFO [@ionJobProcessor] [BackupBean ] [] Backup finished.
15:55:18,490 ERROR [@ionJobProcessor] [UserActionJob ] [] Exception on executing user action
jetbrains.exodus.database.exceptions.ConstraintsValidationException: Constrains validation exception. Causes:
1: Property [DatabaseBackupError: id = 161-4.name] can't be empty.

at com.jetbrains.teamsys.dnq.database.TransientSessionImpl.checkBeforeSaveChangesConstraints(TransientSessionImpl.kt:462)
at com.jetbrains.teamsys.dnq.database.TransientSessionImpl.flushChanges(TransientSessionImpl.kt:506)
at com.jetbrains.teamsys.dnq.database.TransientSessionImpl.flush(TransientSessionImpl.kt:190)
at jetbrains.youtrack.core.legacy.LegacySupportKt.flush(LegacySupport.kt:46)
at jetbrains.youtrack.maintenance.backup.AsyncBackupBean$asyncBackup$1$$special$$inlined$transactional$1.invoke(LegacySupport.kt:65)
at jetbrains.youtrack.maintenance.backup.AsyncBackupBean$asyncBackup$1$$special$$inlined$transactional$1.invoke(LegacySupport.kt)
at com.jetbrains.teamsys.dnq.database.TransientEntityStoreExt.transactional(TransientEntityStoreExt.kt:51)
at com.jetbrains.teamsys.dnq.database.TransientEntityStoreImpl.transactional(TransientEntityStoreImpl.kt:95)
at jetbrains.exodus.database.TransientEntityStore$DefaultImpls.transactional$default(TransientEntityStore.kt:84)
at jetbrains.youtrack.maintenance.backup.AsyncBackupBean$asyncBackup$1.run(AsyncBackupBean.kt:56)
at jetbrains.charisma.persistent.UserActionJob.executeAction(UserActionJob.java:40)
at jetbrains.charisma.persistent.UserActionJob.execute(UserActionJob.java:28)
at jetbrains.exodus.core.execution.Job.run(Job.java:135)
at jetbrains.exodus.core.execution.ThreadJobProcessor.executeJob(ThreadJobProcessor.java:137)
at jetbrains.exodus.core.execution.JobProcessorQueueAdapter.doExecuteJob(JobProcessorQueueAdapter.java:251)
at jetbrains.exodus.core.execution.JobProcessorQueueAdapter.doJobs(JobProcessorQueueAdapter.java:161)
at jetbrains.exodus.core.execution.ThreadJobProcessor.run(ThreadJobProcessor.java:115)
at jetbrains.exodus.core.execution.ThreadJobProcessor$1.run(ThreadJobProcessor.java:43)
at java.base/java.lang.Thread.run(Thread.java:834)

-- End Log Excerpt

Is it possible to determine what the ID "161-4" in the exception refers to?  Perhaps if the ID could be mapped to a resource, the related resource could simply be deleted to resolve the issue.

1 comment
Comment actions Permalink
Official comment

Hello,

Thank you for reaching out. This error may appear if there are some corruptions between the database entities. Please create a support request here: https://youtrack-support.jetbrains.com/hc/en-us/requests/new?ticket_form_id=66282 and share your exact build number and full YouTrack logs.

Thank you!

Please sign in to leave a comment.