My NFA upgrade fails due to migrator failure with error like (Errcode: 13 - Permission denied)

Document ID : KB000073545
Last Modified Date : 22/05/2018
Show Technical Document Details
When running the Upgrade, you may see a Migrator failure, which indicates the database schema failed to fully update.
You may also see this issue when trying to work around a migrator failure and running the RunMigrator.vbs manually.

By checking the \CA\NFA\Migrator\logs\Migrator.log file shows an error like below:
INFO Projector::play() - Frame #36: [SqlAction database=harvester port=3308 sql='alter table trap_definitions add column TimeFilterStart_new int unsigned not null'] 2018/03/14 FATAL TheSet::play() - Error playing back movie Movie playback failed. at Source) at Source) at Source) at Source) Caused by: SQL action failed at Source) ... 4 more Caused by: java.sql.SQLException: Error on rename of '.\harvester\#sql-624_2b.frm' to '.\harvester\trap_definitions.frm' (Errcode: 13 - Permission denied)
This is likely caused by permission errors or anti-virus software.
1. If possible shut down antivirus while the upgrade is running or at least ensure the full \CA\NFA directory is excluded from any anti virus scan.

2. Ensure the user you are logged in with has full control over all \CA\NFA directories and sub directories.

3. Launch a CMD prompt with "Run as Administrator" 
User-added image

4. Change directory to the \CA\NFA\Migrator directory and run "runMigrator.vbs"