Migration error while upgrading NFA Harvester from 9.3.3 to 9.3.6
search cancel

Migration error while upgrading NFA Harvester from 9.3.3 to 9.3.6

book

Article ID: 5182

calendar_today

Updated On:

Products

CA Network Flow Analysis (NetQos / NFA)

Issue/Introduction

While upgrading NFA Harvester from 9.3.3 to 9.3.6, the migration phase fails.

Error in migrator logs:

 The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. message: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
FATAL TheSet::migrate() - Unhandled exception
com.ca.im.migrator.exceptions.MigratorException: Cannot determine whether prop exists
    at com.ca.im.migrator.business.SqlPropInspector.exists(Unknown Source)
    at com.ca.im.migrator.business.Prop.exists(Unknown Source)
    at com.ca.im.migrator.business.Director.getProductionScript(Unknown Source)
    at com.ca.im.migrator.TheSet.makeMovie(Unknown Source)
    at com.ca.im.migrator.TheSet.migrate(Unknown Source)
    at com.ca.im.migrator.MigratorApp.main(Unknown Source)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

.Caused by: java.net.ConnectException: Connection refused: connect
    at java.net.DualStackPlainSocketImpl.connect0(Native Method)
    at java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source)
    at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source)
    at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source)
    at java.net.AbstractPlainSocketImpl.connect(Unknown Source)
    at java.net.PlainSocketImpl.connect(Unknown Source)
    at java.net.SocksSocketImpl.connect(Unknown Source)
    at java.net.Socket.connect(Unknown Source)
    at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:211)
    at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:300)
    ... 26 more
  07:43:19 INFO  MigratorApp::main() - Exiting with code 1

Environment

NFA 9.3.x for Windows.

Cause

Migration of database fails because of Mysql Service crash during ahtflows table creation.

Errors in Mysql logs:

mysqld got exception 0xc0000005 ;
This could be because you hit a bug. It is also possible that this binary
or one of the libraries it was linked against is corrupt, improperly built,
or misconfigured. This error can also be caused by malfunctioning hardware.
Attempting to collect some information that could help diagnose the problem.
As this is a crash and something is definitely wrong, the information
collection process might fail.

key_buffer_size=8388608
read_buffer_size=16777216
max_used_connections=1
max_threads=200
thread_count=1
connection_count=1
It is possible that mysqld could use up to
key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 731519 K bytes of memory
Hope that's ok; if not, decrease some variables in the equation.

Thread pointer: 0x2cc07900f0
Attempting backtrace. You can use the following information to find out
where mysqld died. If you see no messages after this, something went
terribly wrong...

Opening NFA CSE log at Local time 12/01/2016 05:13:11
Error in LoadNFAEngine( LoadLibrary() failed trying to load E:\CA\NFA\Netflow\bin\NFAStorageEngine64.dll )
leaving the dynamic load section

 

Resolution

The root cause of this issue is figured out to be a VC++ Package on OS.

  1. Download Microsoft Visual C++ 2013 Redistributable (x64) 12.0.30501. from the below link:https://support.microsoft.com/en-us/kb/3179560
  2. Revert back to previous 9.3.3 setup. You have to reinstall NFA 9.3.3 and load the database of harvester database which you have taken backup before upgrading to 9.3.6.
  3. Make sure everything is running good in 9.3.3
  4. Install the missing Microsoft VC++ Redistributable.
  5. Restart the upgrade.

This time the upgrade should go good with out any errors.