Overslaan naar hoofdinhoud

"Error loading data" message in the ESET Remote Administrator Web Console (6.x) - Kennisbank / Legacy / Legacy ESET Remote Administrator (6.x / 5.x / 4.x) / 6.x - ESET Tech Center

"Error loading data" message in the ESET Remote Administrator Web Console (6.x)

Lijst van auteurs

Issue

After update of Linux ODBC Connector (mysql-connector-odbc) package to version 5.6.40-2.e17 and restart of MySQL service, the ERA Web Console is displaying an error message: Error loading data.

Figure 1-1

If you were not logged in during the upgrade, Web Console would not connect to ERA Server and report the error: Not connected

 

Figure 1-1

You can find following error message in the ERA Server trace log (located at /var/log/eset/RemoteAdministrator/Server/trace.log ):

Error: CDataMinersModule [Thread 7f935ebc7700]: Failed to write some logs because: [unixODBC][Driver Manager]Can't open lib 'MySQL ODBC 5.3 Unicode Driver' : file not found (0). Rescheduling.

If you have not updated yet, you can prevent the issue by freezing the MySQL version or editing the ERA configuration during the update.

Details

Solution

  1. Open your Virtual Machine (when running ERA Virtual Appliance) and log in to Terminal.
     
  2. Run following command as root (or with sudo, the command is in one line):

    sed -i 's/MySQL ODBC 5.3/MySQL ODBC 8.0/g' /etc/opt/eset/RemoteAdministrator/Server/StartupConfiguration.ini

  3. Restart mysql service:

    service mysqld restart

  4. Restart ERA Server service:

    service eraserver restart

  5. Wait a minute until the service starts and log in to ERA Web Console.

The sed command

The sed command replaces every occurrence of “MySQL ODBC 5.3” with “MySQL ODBC 8.0” in the selected file.
 

Fix the driver during the update and preventing the failure

Before you update the MySQL and ODBC driver, you can modify the configuration to prevent the database connection failure.

  1. Open your Virtual Machine (when running ERA Virtual Appliance) and log in to Terminal.
     
  2. Check your current ODBC drivers version:

    odbcinst -q -d

    Drivers with version 5.3 should be listed.
     
  3. Run the update of mysql components.

    yum update mysql*
     
  4. Check your current ODBC drivers version:

    odbcinst -q -d

    Drivers with version 8.0 should be listed.
     
  5. After the MySQL is updated but before the restart of the machine or MySQL service, run following command:

    sed -i 's/MySQL ODBC 5.3/MySQL ODBC 8.0/g' /etc/opt/eset/RemoteAdministrator/Server/StartupConfiguration.ini
     
  6. Restart the MySQL and ERA Server services.

    service mysqld restart
    service eraserver restart

Prevent MySQL from updating

If you have not updated your ODBC driver yet, you can prevent yum from upgrading the ODBC driver and MySQL components by freezing current version.

  1. Open your Virtual Machine (when running ERA Virtual Appliance) and log in to Terminal.
     
  2. Install YUM Versionlock plugin:

    yum install yum-plugin-versionlock
     
  3. Add MySQL components to the Versionlock:

    yum versionlock mysql-*
Freezing the version in YUM will prevent myslq components from future updates

If the update and restart with fix are scheduled well it is safer than freezing the mysql version indefinitely.

 

ERA MDMCore component

If you have deployed ERA MDMCore on ERA Virtual Appliance and you have update MySQL on that appliance, you can have the same problem as was described above. ERA MDMCore component will not be able to connect to its database. To fix this issue follow these steps:

  1. Open your Virtual Machine with MDMCore and log in to Terminal.
     
  2. Run following command as root (or with sudo, the command is in one line):

    sed -i 's/MySQL ODBC 5.3/MySQL ODBC 8.0/g' /etc/opt/eset/RemoteAdministrator/MDMCore/startupconfiguration.ini

  3. Restart mysql service:

    service mysqld restart

  4. Restart ERA MDMCore service:

    service eramdmcore restart

  5. Wait a minute until the service starts and log in to ERA Web Console.

Reactie toevoegen

Log in of registreer om een reactie te plaatsen.

Heeft u een wachtwoordherinnering nodig?