Salesforce

Programmatically creating entries in conmgr.properties without correctly deleting them from AdminServer causes errors.

« Go Back

Information

 
TitleProgrammatically creating entries in conmgr.properties without correctly deleting them from AdminServer causes errors.
URL Nameconmgr-nott-correctly-deleting-from-AdminServer
Article Number000175488
EnvironmentProduct: OpenEdge
Version: 11.3.2
OS: All supported platforms
Question/Problem Description
Programmatically creating entries in conmgr.properties.
Programmatically deleting entries from conmgr.properties.
dbman launch by ABL code in OS subshell getting message database not found ERROR: Unable to locate database <> (DBMan005) when trying to start database.
AdminServer not responding to proadsv -query.
Steps to Reproduce
Clarifying Information
Error Messageads0.exp file contains the following:
Exception at Thu Sep 01 09:24:53 PDT 2016: java.lang.RuntimeException
Message (throw): Exception creating binding resources Container: fathom1.localhostname Plugin: Database
Message (excp): Add of child mytest from parent Local failed
Stack Trace:
java.lang.RuntimeException: Add of child mytest from parent Local failed
at com.progress.isq.ipqos.ProjectStorage.StorageObject.submitTransaction(StorageObject.java:111)
at com.progress.isq.ipqos.ProjectStorage.StorageGroup.addChild(StorageGroup.java:68)
at com.progress.isq.ipqos.ProjectStorage.StorageProject.add(StorageProject.java:147)
at com.progress.isq.ipqos.Project.addResource(Project.java:466)
at com.progress.isq.ipqos.resources.plugins.PluginResourceFactory.addResourceToProject(PluginResourceFactory.java:744)
at com.progress.isq.ipqos.resources.plugins.PluginResourceFactory.createDatabaseResource(PluginResourceFactory.java:876)
at com.progress.isq.ipqos.resources.plugins.PluginResourceFactory.createDatabaseResource(PluginResourceFactory.java:858)
at com.progress.isq.ipqos.resources.plugins.PluginResourceFactory.createResource(PluginResourceFactory.java:459)
at com.progress.isq.ipqos.resources.plugins.PluginResourceFactory.getResource(PluginResourceFactory.java:557)
at com.progress.isq.ipqos.resources.plugins.PluginResourceFactory.createAndBindResource(PluginResourceFactory.java:406)
at com.progress.isq.ipqos.resources.plugins.PluginResourceFactory.createPluginResources(PluginResourceFactory.java:201)
at com.progress.isq.ipqos.resources.plugins.PluginResourceFactory.createPluginResources(PluginResourceFactory.java:168)
at com.progress.isq.ipqos.Probe.createPluginResources(Probe.java:1636)
at com.progress.isq.ipqos.Probe.createResources(Probe.java:1239)
at com.progress.isq.ipqos.Probe.start(Probe.java:560)
at com.progress.isq.ipqos.plugin.Fathom.start(Fathom.java:319)
at com.progress.isq.ipqos.plugin.FathomPlugIn.run(FathomPlugIn.java:412)
at java.lang.Thread.run(Thread.java:722)
Caused by: com.progress.isq.ipqos.TransactionRolledbackException: Create of child localhost:resource.database.local.mytest in parent localhost:resource.database.local failed.
at com.progress.isq.ipqos.ProjectStorage.StorageDataAccess.handleTransactionError(StorageDataAccess.java:821)
at com.progress.isq.ipqos.ProjectStorage.StorageDataAccess.createChild(StorageDataAccess.java:443)
at com.progress.isq.ipqos.ProjectStorage.StorageGroup$AddChildOperation.submit(StorageGroup.java:174)
at com.progress.isq.ipqos.ProjectStorage.StorageObject.submitTransaction(StorageObject.java:108)
... 17 more
Caused by: com.orientechnologies.orient.core.index.OIndexException: Found duplicated key 'localhost:resource.database.local.mytest' in index 'datasourceidx' previously assigned t
Defect Number
Enhancement Number
Cause
The OpenEdge Manager stores resources that are discovered or created inside its own database.
Entries added to the conmgr.properties or ubroker.properties will create entries in the OEM database.
Removing entries from the conmgr.properties or ubroker.properties does NOT remove them from the OEM database.

In versions prior to 11.3 the database is contained in the $OEMGMT/config directory.
The files are named fathom.o* (all files which begin fathom.o).

In version 11.3 or later the database is contained in the $OEMGMT/config/configdb directory.
All the files in the configdb need to be removed.
Resolution
To remove the entry from OEM use the OpenEdge Explorer interface.
Within the resource, click on the DELETE button.

If the entry was removed from the conmgr.properties or ubroker.properties and re-added to the conmgr.properties or ubroker.properties it may cause the AdminServer to error because a duplicate entry is being attempted.

At this point the Fathom database needs to be cleared and recreated.
1)  Stop the AdminServer.
Example:
proadsv -stop

2)  Delete the OEM database.​
In versions prior to 11.3 the database is contained in the $OEMGMT/config directory.
Delete the files named fathom.o* (all files which begin fathom.o).

In version 11.3 or later the database is contained in the $OEMGMT/config/configdb directory.
Delete all the files in the configdb directory.

3)  Restart the AdminServer
Example:
proadsv -start
Workaround
Notes
Keyword Phrase
Last Modified Date9/1/2016 7:01 PM

Powered by