Skip to main content
NetApp Knowledge Base

Fixing Maintenance Window Initialization Error in AIQUM

Views:
56
Visibility:
Public
Votes:
0
Category:
active-iq-unified-manager
Specialty:
om
Last Updated:

Applies to

  • Active IQ Unified Manager 9.18+ (AIQUM)

Issue

  • The AIQUM web application (dfm-app.war) fails to start on every WildFly restart attempt.
  • The following exception appears in the WildFly server log:
    org.hibernate.LazyInitializationException: could not initialize proxy [MaintenanceWindow#1] - no Session
  • The issue is triggered when a maintenance window record with ID=1 exists in the database.

Cause

  • The MaintenanceWindowScheduler.init() method in dfm-app.war accesses a Hibernate lazy proxy (MaintenanceWindow#1) outside of an active session.
  • This was introduced by a code/mapping change in version 9.18P1.

Solution

Partner Notes

 

Additional Information

 

Internal Notes

  • This is an L2 operation that requires direct database access on the AIQUM appliance.

Submitted CAIQUM-8929 for this issue.

  • L2 procedure — database cleanup:
  1. Connect to MySQL on the AIQUM appliance and select the Ocum database.
  2. Select Ocum database
    USE OCUM;
  3. Check the current maintenance window state:
    SELECT mw.id, FROM_UNIXTIME(mw.startTime/1000) AS start_time, FROM_UNIXTIME(mw.endTime/1000) AS end_time, m.resourceType, m.resourceId
    FROM maintenance_window mw
    LEFT JOIN maintenance_window_object_mapping m ON m.maintenanceWindowId = mw.id;
  4. Delete all maintenance window records (ON DELETE CASCADE automatically cleans up maintenance_window_object_mapping):
    DELETE FROM maintenance_window;
  5. Verify both tables are empty:
    SELECT COUNT(*) FROM maintenance_window;
    SELECT COUNT(*) FROM maintenance_window_object_mapping;
  6. Reboot the AIQUM server.

Sign in to view the entire content of this KB article.

New to NetApp?

Learn more about our award-winning Support

NetApp provides no representations or warranties regarding the accuracy or reliability or serviceability of any information or recommendations provided in this publication or with respect to any results that may be obtained by the use of the information or observance of any recommendations provided herein. The information in this document is distributed AS IS and the use of this information or the implementation of any recommendations or techniques herein is a customer's responsibility and depends on the customer's ability to evaluate and integrate them into the customer's operational environment. This document and the information contained herein may be used solely in connection with the NetApp products discussed in this document.