zenloader service seems to load but fails to login to the datamodel

  • 3774077
  • 17-Jan-2008
  • 27-Apr-2012

Environment

Novell ZENworks 10 Configuration Management

Situation

novell-zenloader service seems to start, but the only thing logged to the loader-messages.log is:
[Loader.DataModelModule] [Logging into the datamodel (try 1)] [Logging into the datamodel (try 1)] [] []
But not:
Successfully logged in

Resolution

For further troubleshooting messages and startup debugging on, do the following:
  1. Stop the novell zenworks services monitor process.
    For Windows: use the Administrative Tools/services.
    For linux: /etc/init.d/novell-zenmntr stop
  2. Stop the novell zenworks loader process.
    For Windows, use the Administrative Tools/services.
    For linux:/etc/init.d/novell-zenloader stop.
  3. From a command line run the loader explicitly:
    For Windows: "%ZENWORKS_HOME%\bin\zenloader.exe".

    For linux:
    login in as zenworks user so that disrupt file permissions are not disrupted:
    su -s /bin/bash zenworks
    /opt/novell/zenworks/bin/zenloader.
  4. This will output any errors that occur prior to the logger to stdout. To capture the screen run with >outfile.

Additional Information

Examples of problems that may be seen only when manually loading the zenloader:
The following is output if zdm.xml is not available:
[Loader.DataModelModule] Logging into the datamodel (try 1)
1/14/08 1:45 PM DEBUG [Loader] Module com.novell.zenworks.loader.modules.DataModelModule failed to initialize
1/14/08 1:45 PM DEBUG [Loader] com.novell.zenworks.loader.InitializationException
at com.novell.zenworks.loader.modules.DataModelModule.initialize(DataModelModule.java:86)
at com.novell.zenworks.loader.ZENModuleThread.run(ZENModuleThread.java:68)
Caused by: com.novell.zenworks.datamodel.exceptions.DataModelConfigurationException: An error occurred reading the configuration file: C:\Program Files\Novell\ZENworks\conf\datamodel\zdm.xml
at com.novell.zenworks.datamodel.configuration.DataModelConfiguration.initialize(DataModelConfiguration.java:179)
at com.novell.zenworks.datamodel.configuration.DataModelConfiguration.(DataModelConfiguration.java:149)
at com.novell.zenworks.datamodel.configuration.DataModelConfiguration.getInstance(DataModelConfiguration.java:128)
at com.novell.zenworks.datamodel.configuration.DataModelConfiguration.getDefault(DataModelConfiguration.java:120)
at com.novell.zenworks.datamodel.services.ServiceStoreFactory.factoryServiceStore(ServiceStoreFactory.java:51)
at com.novell.zenworks.loader.modules.DataModelModule.eventCallback(DataModelModule.java:127)
at com.novell.zenworks.tess.eventsystem.EventThread.run(EventThread.java:53)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.io.FileNotFoundException: C:\Program Files\Novell\ZENworks\conf\datamodel\zdm.xml (The system cannot find the file specified)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.(FileInputStream.java:106)
at com.novell.zenworks.datamodel.configuration.DataModelConfiguration.initialize(DataModelConfiguration.java:159)
... 7 more


The following is output if a legacy java directory had been created:
[Loader.DataModelModule] Logging into the datamodel (try 1)
1/14/08 3:04 PM DEBUG [Loader] Module com.novell.zenworks.loader.modules.DataMod
elModule failed to initialize
1/14/08 3:04 PM DEBUG [Loader] com.novell.zenworks.loader.InitializationExceptio
n
at com.novell.zenworks.loader.modules.DataModelModule.initialize(DataMod
elModule.java:86)
at com.novell.zenworks.loader.ZENModuleThread.run(ZENModuleThread.java:6
8)
Caused by: com.novell.zenworks.datamodel.exceptions.DataModelConfigurationExcept
ion: Duplicate component name: core (jar:file:/C:/Program Files/Novell/ZENworks/
lib/java/legacy/datamodel-framework.jar!/META-INF/novell-zenworks-datamodel-core
.properties and jar:file:/C:/Program Files/Novell/ZENworks/lib/java/datamodel-fr
amework.jar!/META-INF/novell-zenworks-datamodel-core.properties)
at com.novell.zenworks.datamodel.configuration.DataModelConfiguration.ad
dComponents(DataModelConfiguration.java:226)
at com.novell.zenworks.datamodel.configuration.DataModelConfiguration.in
itialize(DataModelConfiguration.java:194)
at com.novell.zenworks.datamodel.configuration.DataModelConfiguration.in
itialize(DataModelConfiguration.java:175)
at com.novell.zenworks.datamodel.configuration.DataModelConfiguration.
nit>(DataModelConfiguration.java:149)
at com.novell.zenworks.datamodel.configuration.DataModelConfiguration.ge
tInstance(DataModelConfiguration.java:128)
at com.novell.zenworks.datamodel.configuration.DataModelConfiguration.ge
tDefault(DataModelConfiguration.java:120)
at com.novell.zenworks.datamodel.services.ServiceStoreFactory.factorySer
viceStore(ServiceStoreFactory.java:51)
at com.novell.zenworks.loader.modules.DataModelModule.eventCallback(Data
ModelModule.java:127)
at com.novell.zenworks.tess.eventsystem.EventThread.run(EventThread.java
:53)
at java.lang.Thread.run(Thread.java:595)