Absent Member.. Absent Member..
Absent Member..

UCMDB Support Tip: duplicate key value violates unique constraint "ddm_gw_task_results_pkey"

When probe gets constant database errors such as:


… [ERROR] [TaskResult Grouping handler] (DBLog.java:50) - Failed com.hp.ucmdb.discovery.probe.agents.probemgr.dbservices.TaskResultDAO:getUnSentTaskResults select TASK_ID,JOB_ID,OBJECTS_ZIP,OBJECTS_COUNT,DEL_OBJECTS_ZIP,DEL_OBJECTS_COUNT,DEL_IDS,DEL_IDS_COUNT,CANDDEL_IDS,CANDDEL_IDS_COUNT,TIME_STAMP,ENABLE_AGING,IGNORE_RECONCILIATION_RULES, SUPPRESS_IGNORED_CIS, TRIGGER_CI_ID, OBJECTS_IDS, EXECUTION_START_TIME, SENDING_TIME_STAMP, OWNER_ID, USE_GRACEFUL_DATA_IN from DDM_TASK_RESULTS where JOB_ID = ? order by TIME_STAMP jvm 2    | org.postgresql.util.PSQLException: ERROR: missing chunk number 0 for toast value 3126087 in pg_toast_3078882 jvm 2 … [ERROR] [TaskResult Grouping handler] (ProbeTaskResultsSender.java:312) - Probe Gateway Failed storing results of task Process Discovery By SSH job Process Discovery By SSH from probegw TARPROD-DDM timestamp=1398349570865 objectsToAddOrUpdate Size=15 objectsToDelete Size=0 The Exception: jvm 2 org.postgresql.util.PSQLException: ERROR: duplicate key value violates unique constraint "ddm_gw_task_results_pkey"


Please be advice such errors are caused by a corrupted data record in the gw_tasks_result table. As a result, HP uCMDB cannot read the table content unless all records are deleted. In some scenarios, even if a cleardataprobe.bat is performed, issue might still be encountered. And the following error "could not truncate file "base/16385/24653" to 0 blocks: Permission denied" might be found in the postgreSQL log.


As a result, it is mandatory to exclude the postgres data folder from antivirus being used. These includes any executable files (*.exe) from pgsql\data directory.

"HP Support
If you find this or any post resolves your issue, please be sure to mark it as an accepted solution."

Click the KUDOS star on the left to say 'Thanks'
Labels (1)
Tags (1)
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.