IBM Support

IJ17940: PERFORMING A RESTORE AND SELECTING 'CUSTOM RULE CONFIGURATION' ONLY DOES NOT INCLUDE REFERENCE DATA DEPENDENCIES

Subscribe to this APAR

By subscribing, you receive periodic emails alerting you to the status of the APAR, along with a link to the fix after it becomes available. You can track this item individually or track all items by product.

Notify me when this APAR changes.

Notify me when an APAR for this component changes.

 

APAR status

  • Closed as program error.

Error description

  • It has been identified that performing a restore from a
    configuration backup and selecting only the 'Custom Rule
    Configuration' does not include reference data structures, and
    reference_data_rules and the restore fails.
    Messages similar to the following might be visible in
    /var/log/qradar.log when this issue is occurring:
    [hostcontext.hostcontext] [BackupServices_restore]
    com.q1labs.hostcontext.backup.BackupRecoveryEngine: [ERROR]
    [NOT:0000003000][127.0.0.1/- -] [-/- -]Unable to execute
    restore request
    [hostcontext.hostcontext] [BackupServices_restore]
    com.q1labs.configservices.hostcontext.exception.RestoreException
    : Unable to restore backup archive
    [hostcontext.hostcontext] [BackupServices_restore]    at
    com.q1labs.hostcontext.backup.BackupRecoveryEngine.restore(Backu
    pRecoveryEngine.java:4423)
    [hostcontext.hostcontext] [BackupServices_restore]    at
    com.q1labs.hostcontext.backup.BackupRecoveryEngine.doRestore(Bac
    kupRecoveryEngine.java:5872)
    [hostcontext.hostcontext] [BackupServices_restore]    at
    com.q1labs.hostcontext.core.executor.RestoreExecutor$1.run(Resto
    reExecutor.java:70)
    [hostcontext.hostcontext] [BackupServices_restore] Caused by:
    [hostcontext.hostcontext] [BackupServices_restore]
    com.q1labs.configservices.hostcontext.exception.RestoreException
    : Test database restore failed... aborting restore process
    [hostcontext.hostcontext] [BackupServices_restore]    at
    com.q1labs.hostcontext.backup.BackupRecoveryEngine.restore(Backu
    pRecoveryEngine.java:4307)
    [hostcontext.hostcontext] [BackupServices_restore]    ... 2 more
    [hostcontext.hostcontext] [BackupServices_restore] Caused by:
    [hostcontext.hostcontext] [BackupServices_restore]
    com.q1labs.configservices.hostcontext.exception.RestoreException
    : Test backup failed
    [hostcontext.hostcontext] [BackupServices_restore]    at
    com.q1labs.hostcontext.backup.BackupRecoveryEngine.restoreOnTopO
    fTestDb(BackupRecoveryEngine.java:2881)
    [hostcontext.hostcontext] [BackupServices_restore]    at
    com.q1labs.hostcontext.backup.BackupRecoveryEngine.doTestRestore
    (BackupRecoveryEngine.java:2647)
    [hostcontext.hostcontext] [BackupServices_restore]    at
    com.q1labs.hostcontext.backup.BackupRecoveryEngine.restore(Backu
    pRecoveryEngine.java:4303)
    [hostcontext.hostcontext] [BackupServices_restore]    ... 2 more
    [hostcontext.hostcontext] [BackupServices_restore] Caused by:
    [hostcontext.hostcontext] [BackupServices_restore]
    com.q1labs.configservices.hostcontext.exception.RestoreException
    : Unable to restore database
    [hostcontext.hostcontext] [BackupServices_restore]    at
    com.q1labs.hostcontext.backup.BackupRecoveryEngine.doDbRestore(B
    ackupRecoveryEngine.java:3007)
    [hostcontext.hostcontext] [BackupServices_restore]    at
    com.q1labs.hostcontext.backup.BackupRecoveryEngine.restoreOnTopO
    fTestDb(BackupRecoveryEngine.java:2868)
    [hostcontext.hostcontext] [BackupServices_restore]    ... 4 more
    [hostcontext.hostcontext] [BackupServices_restore] Caused by:
    [hostcontext.hostcontext] [BackupServices_restore]
    com.q1labs.configservices.hostcontext.exception.RestoreException
    : Unable to restore database
    [hostcontext.hostcontext] [BackupServices_restore]    at
    com.q1labs.hostcontext.backup.BackupRecoveryEngine.doDbRestore(B
    ackupRecoveryEngine.java:2996)
    [hostcontext.hostcontext] [BackupServices_restore]    ... 5 more
    [hostcontext.hostcontext] [BackupServices_restore] Caused by:
    [hostcontext.hostcontext] [BackupServices_restore]
    java.lang.Exception: unable to execute sql statement: ALTER
    TABLE public.reference_data_rules ADD CONSTRAINT
    reference_data_rules_rule_id_fkey FOREIGN KEY (rule_id)
    REFERENCES public.custom_rule(id)  ON DELETE CASCADE;
    [hostcontext.hostcontext] [BackupServices_restore]    at
    com.q1labs.hostcontext.capabilities.PostgresAction.executeSql(Po
    stgresAction.java:668)
    [hostcontext.hostcontext] [BackupServices_restore]    at
    com.q1labs.hostcontext.capabilities.PostgresAction.applyConstrai
    nts(PostgresAction.java:287)
    [hostcontext.hostcontext] [BackupServices_restore]    at
    com.q1labs.hostcontext.backup.BackupRecoveryEngine.doDbRestore(B
    ackupRecoveryEngine.java:2974)
    [hostcontext.hostcontext] [BackupServices_restore]    ... 5 more
    [hostcontext.hostcontext] [BackupServices_restore] Caused by:
    [hostcontext.hostcontext] [BackupServices_restore]
    org.postgresql.util.PSQLException: ERROR: insert or update on
    table "reference_data_rules" violates foreign key constraint
    "reference_data_rules_rule_id_fkey"
      Detail: Key (rule_id)=(126720) is not present in table
    "custom_rule".
    [hostcontext.hostcontext] [BackupServices_restore]    at
    org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(Qu
    eryExecutorImpl.java:2440)
    [hostcontext.hostcontext] [BackupServices_restore]    at
    org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExe
    cutorImpl.java:2183)
    [hostcontext.hostcontext] [BackupServices_restore]    at
    org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorIm
    pl.java:308)
    [hostcontext.hostcontext] [BackupServices_restore]    at
    org.postgresql.jdbc.PgStatement.executeInternal(PgStatement.java
    :441)
    [hostcontext.hostcontext] [BackupServices_restore]    at
    org.postgresql.jdbc.PgStatement.execute(PgStatement.java:365)
    [hostcontext.hostcontext] [BackupServices_restore]    at
    org.postgresql.jdbc.PgStatement.executeWithFlags(PgStatement.jav
    a:307)
    [hostcontext.hostcontext] [BackupServices_restore]    at
    org.postgresql.jdbc.PgStatement.executeCachedSql(PgStatement.jav
    a:293)
    [hostcontext.hostcontext] [BackupServices_restore]    at
    org.postgresql.jdbc.PgStatement.executeWithFlags(PgStatement.jav
    a:270)
    [hostcontext.hostcontext] [BackupServices_restore]    at
    org.postgresql.jdbc.PgStatement.execute(PgStatement.java:266)
    [hostcontext.hostcontext] [BackupServices_restore]    at
    com.q1labs.hostcontext.capabilities.PostgresAction.executeSql(Po
    stgresAction.java:664)
    [hostcontext.hostcontext] [BackupServices_restore]    ... 7 more
    

Local fix

  • Contact Support for a possible workaround that might address
    this issue in some instances.
    

Problem summary

  • This issue was fixed in QRadar QRM QVM release of 7.3.3 GA.
    

Problem conclusion

  • This issue was fixed in QRadar QRM QVM release of 7.3.3 GA.
    

Temporary fix

Comments

APAR Information

  • APAR number

    IJ17940

  • Reported component name

    QRADAR SOFTWARE

  • Reported component ID

    5725QRDSW

  • Reported release

    728

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2019-07-29

  • Closed date

    2019-12-06

  • Last modified date

    2019-12-06

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

Fix information

  • Fixed component name

    QRADAR SOFTWARE

  • Fixed component ID

    5725QRDSW

Applicable component levels

[{"Business Unit":{"code":"BU048","label":"IBM Software"}, "Product":{"code":"SSBQAC","label":"IBM Security QRadar SIEM"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"728","Edition":""}]

Document Information

Modified date:
06 December 2019