ZCM 11.1 Remote Sybase upgrade fails when Sybase is not installed to the default location

  • 7009199
  • 18-Aug-2011
  • 11-Mar-2013

Environment

Novell ZENworks 11 Configuration Management Support Pack 1 - ZCM 11 SP1

Situation

The database update part of the remote Sybase upgrade fails. The error in the log on a Linux based installation is:
<Message><MessageID><![CDATA[0000]]></MessageID><MessageString><![CDATA[Parameter 'directory' is not a directory]]></MessageString><Severity><![CDATA[8]]></Severity><Time><![CDATA[1313559460791]]></Time><Source><![CDATA[Unknown Device]]></Source><ComponentName><![CDATA[Server Install]]></ComponentName><AdditionalInfo><![CDATA[java.lang.IllegalArgumentException: Parameter 'directory' is not a directory
    at org.apache.commons.io.FileUtils.listFiles(FileUtils.java:207)
    at org.apache.commons.io.FileUtils.listFiles(FileUtils.java:292)
    at com.novell.zenworks.configure.actions.UpgradeSybaseDBConfigureAction.configure(UpgradeSybaseDBConfigureAction.java:94)
    at com.novell.zenworks.configure.ZENworksConfigure.execConfigAction(ZENworksConfigure.java:1549)
    at com.novell.zenworks.install.customcode.configure.BaseZenConfigAction.install(BaseZenConfigAction.java:60)
    at com.zerog.ia.installer.actions.CustomAction.installSelf(DashoA10*..)
    at ZeroGaei.run(DashoA10*..)
ERROR:  "Directory' is not a directory" in upgrade log.

Resolution

This is fixed in version 11.2 - see KB 7010044 "ZENworks Configuration Management 11.2 - update information and list of fixes" which can be found at https://www.novell.com/support

Workaround:
  1. Create the default database location folder. On Linux this is /opt/novell/zenworks/database and on Windows this is %ZENWORKS_HOME%\database
  2. Stop the Sybase database engine
  3. Take a copy of the database files and place them in the default location folder (ensure the copied files have the same owner and permissions as the original files)
  4. Start the Sybase database engine
  5. Run the database upgrade
  6. When completed, copy or move back the updated database files to their original folder location (check the owner and permissions are correct after the files are copied/moved)
  7. Proceed with the primary server upgrade
Alternatively, use a symlink to reference the correct location

Cause

The upgrade fails because the Sybase database is not found in the default location.