Back to Geneos FAQ

My Gateway is not logging to a database

This problem is related to database logging not working, database logging icon crossed out, database logging error messages in gateway log.

Problem Copied

  1. My Database logging Icon is red and is crossed out.
  2. My connectionStatus field is showing as Not Connected in the Gateway Database-Logging plugin.
  3. There is an error message in the Gateway Log file.

Possible causes Copied

Possible solutions Copied

Example for Postgres:

POSTGRESQL_LIB=/usr/pgsql-11/lib ; export POSTGRESQL_LIB
LD_LIBRARY_PATH=${POSTGRESQL_LIB}:$LD_LIBRARY_PATH;
export LD_LIBRARY_PATH

Example msg:

Access denied for user 'itrsdb'@'%' to database 'ITRS', db error code: 1044 (type: DBMSAPI) [1044] Access denied for user 'itrsdb'@'%' to database 'ITRS' DBMSAPIx

Set correct permissions as per ITRS guidance. For more information, check MySQL documentation.

For example:

2020-05-26 16:48:18.268-0400  WARN: Event:DatabaseLogging 1590526098.268009 DatabaseLogging /geneos/gateway[@name="ITRSGW_7039 Market_Data"] Connection Failed There was a problem connecting => db error msg: Can't connect to MySQL server on xxxx

Check that the Database is running and there are no network connectivity issues between the Gateway and Database server hosts.

Database Logging connectionPaused

If connectionPaused is set then right click Gateway Icon, select Database Logging > Connection > Resume.

Resume connection of Database Logging

The table version must match the appropriate schema for the Gateway version that is running.

Invalid object name 'test\_table'., db error code: 208

The table needs to be created at the Database Level as well as the Database Logging section within the gateway configuration.

To remedy this you will need to do the following:

  1. Modify Key Value.
  2. Create space in the var\_ref table by removing unwanted entries from the table. We would advise contact your DBA to assist with this.
  3. Reset the key increment.

For more information, see section about resetting database in the Database Logging documentation.

This will continue until the connection is restored. You should involve your DBA in investigating why the connection to the Database is broken.

The Gateway will re-read database updates from files once the connection is reestablished automatically and this process can also be instigated manually. For more details, see Database cache dump files

To remedy this change the IsolationLevel to Read committed in the Database Logging advanced tab.

https://docs.itrsgroup.com/docs/geneos/current/Gateway_Reference_Guide/geneos_dblogging_tr.html#databaseLogging__isolationLevel

ORA-12899: value too large for column "GENEOS"."EVENT_TABLE"."DESCRIPTION" (actual: 261, maximum: 250) DBMSAPI [Discarding event]

You will have to modify the database schema at the database level to increase the string length of the table to copy with longer strings.

["Geneos"] ["Geneos > Gateway"] ["FAQ"]

Was this topic helpful?