SecurityRiskAdvisors / VECTR

VECTR is a tool that facilitates tracking of your red and blue team testing activities to measure detection and prevention capabilities across different attack scenarios
1.36k stars 161 forks source link

CRITICAL MIGRATION FAILURE. DATABASE IN UNUSABLE STATE. #131

Closed bfuzzy1 closed 2 years ago

bfuzzy1 commented 3 years ago

Current error I am getting when upgrading to 7.0.0 from 6.x.x

Unsure of what logs I should be looking at as the output doesn't make that clear.

Any guidance on this would be appreciated.

Migration Data:

                        CRITICAL MIGRATION FAILURE. DATABASE IN UNUSABLE STATE. Restarting the server may correct the issue. If not, please correct the issues described or seek support referencing this message. If other databases are working, clear your browser cache and log back into VECTR, you will be able to select them but this database will be unusable until the issue is corrected. 

2021/05/27 18:44:07 Migration Log Contents:
 2021-05-27T18:44:05.171+0000 - INFO - MigrationCallable#orchestrateMigration - Starting DB backup for Purple_Team_Engagements_2021...
2021-05-27T18:44:05.255+0000 - INFO - MigrationCallable#orchestrateMigration - {STDOUT=, STDERR=}
2021-05-27T18:44:05.256+0000 - INFO - MigrationCallable#orchestrateMigration - Beginning migrations for: Purple_Team_Engagements_2021
2021-05-27T18:44:05.275+0000 - INFO - SRAChangeLog#setupContext - com.sra.purpletools.dbmigrations.changelogs.v0013_tagging_service_upgrades migration instantiated.
2021-05-27T18:44:05.282+0000 - INFO - v0013_tagging_service_upgrades#taggingServiceUpgrades - ---- Collection old structure for tags...
2021-05-27T18:44:05.283+0000 - INFO - v0013_tagging_service_upgrades#taggingServiceUpgrades - ---- Cleaning Test Cases...
2021-05-27T18:44:05.285+0000 - SEVERE - MigrationCallable#orchestrateMigration - Migration Failure, attempting to restore from backup.  Details: null
2021-05-27T18:44:05.286+0000 - SEVERE - MigrationCallable#orchestrateMigration - Migration Failure:null
2021-05-27T18:44:05.510+0000 - SEVERE - MigrationCallable#orchestrateMigration - Backup restored but application can not continue.  Please see log file for information on correcting data.

CRITICAL MIGRATION FAILURE. DATABASE IN UNUSABLE STATE. Please correct the issues described or seek support referencing this message.
carlvonderheid commented 3 years ago

This is a rare issue that we have only seen once before. Can you send an email here with contact info and we will contact you?

vectrops@securityriskadvisors.com

carlvonderheid commented 2 years ago

This is being closed, we believe it has been addressed.