commadmin domain purge Fails with Error: "5079:The resource removal utility for each service must be run before domain can be purged." (Doc ID 1411396.1)

Last updated on JUNE 29, 2017

Applies to:

Oracle Communications Delegated Administrator - Version 7.0.0 and later
Information in this document applies to any platform.

Symptoms

Product version involved:
Delegated Administrator 7.0-3.00 (B2010-07-15)

While purging a domain with the Delegated Administrator command-line utility commadmin domain purge, it fails with the error message:

5079:The resource removal utility for each service must be run before domain can be purged.

The correct steps to purge a domain were followed per Removing Users, Groups, and Services from a Domain.

For example:

# cd /opt/sun/comms/da/bin
# ./commadmin domain delete -D admin -w adminpass -n sesta.com -d siroe.com -S mail,cal,im
OK
##################################################################################
# ./commadmin domain delete -D admin -w adminpass -n sesta.com -d siroe.com
OK
##################################################################################
# ./commadmin domain search -D admin -w adminpass -n sesta.com -d siroe.com
OK
dn: o=siroe.com,o=isp
icstimezone: Europe/Lisbon
mailAccessProxyPreAuth: no
sunnumusers: 0
icsstatus: deleted
o: siroe.com
sunnumgroups: 0
objectclass: organization
objectclass: icscalendardomain
objectclass: sunmanagedorganization
objectclass: sunismanagedorganization
objectclass: sunnamespace
objectclass: inetdomainauthinfo
objectclass: maildomain
objectclass: sundelegatedorganization
objectclass: top
sunRegisteredServiceName: UserCalendarService
sunRegisteredServiceName: DomainMailService
sunRegisteredServiceName: DomainCalendarService
sunRegisteredServiceName: UserMailService
sunRegisteredServiceName: GroupCalendarService
sunRegisteredServiceName: GroupMailService
preferredLanguage: pt
modifyTimestamp: 20120201112146Z
createTimestamp: 20110521082429Z
inetDomainStatus: deleted
sunorgtype: full
creatorsName: cn=directory manager
preferredmailhost: mail.siroe.com
sunnamespaceuniqueattrs: uid
modifiersName: uid=admin,ou=people,o=sesta.com,o=isp
dn: o=siroe.com,o=isp
mailDomainStatus: deleted
sunenablegab: false
sunpreferreddomain: siroe.com
##################################################################################
# /opt/sun/comms/messaging64/lib/msuserpurge -v -d siroe.com -g 0
Grace period: 0 days
============================================================================
Domain Name : siroe.com
mailDomainStatus: deleted
inetDomainStatus: deleted
----------------------------------------------------------------------------
User Name mailUser inetUser Modified Time Action
------------------------------ ---------- ---------- --------------- -------
----------------------------------------------------------------------------
total: 0 | deleted: 0 | purged: 0 | pending: 0 | error: 0
##################################################################################
# /opt/sun/comms/calendar/SUNWics5/cal/sbin/csclean -v -g 0 clean siroe.com

CLEANING DOMAIN siroe.com
##################################################################################
# ./commadmin domain purge -D admin -w adminpass -n sesta.com -d siroe.com -g 0 -S mail,cal,im
OK
##################################################################################
# ./commadmin domain purge -D admin -w adminpass -n sesta.com -d siroe.com -g 0 -v
[Debug]: DBG:Object = domain ; task = purge
[Debug]: default domain from Properties: sesta.com
[Debug]: IShost from Properties: web.siroe.com
[Debug]: ISPort from Properties: 80
[Debug]: Contacting : http://web.siroe.com:80/commcli/auth
[Debug]: To servlet: domain=sesta.com&username=admin&password=adminpass&charsetenc=UTF-8
[Debug]: cookie => JSESSIONID=6AD0AABCA8889A473630CF9115BDC7C6; Path=/commcli ; HttpOnly
[Debug]: RECV: OK
[Debug]: RECV: OK
[Debug]: RECV: dn: uid=admin, ou=People, o=sesta.com,o=isp
[Debug]: RECV: nsroledn: cn=Top-level Admin Role,o=isp
[Debug]: RECV:
[Debug]: DBG: before getobjtaskargs
[Debug]: In getObjTaskArgs for: domain; purge
[Debug]: Contacting : http://web.siroe.com:80/commcli/climap
[Debug]: Sending to servlet: task=purge&object=domain
[Debug]: getObjTaskArgs Status: 0
[Debug]: Number of servlets: 1
[Debug]: Servlet Name: TaskManager
[Debug]: Servlet args: task=PurgeDomain
[Debug]: Servlet args: objecttype=Domain
[Debug]: Valid Options Array: 4
d, true, *, true, true, [search_op]domain pattern, search_op=~=, =,!=,>=, or <=, domain, ,
S, true, , false, true, service(s) to be purged, services, ,
g, true, 10, false, true, grace period (days), purgegrace, ,
r, false, , false, true, recursively delete subentries, recursive=yes, ,
[Debug]: DBG: getObjTaskArgs done
[Debug]: servInfo len = 1
[Debug]: argVal =siroe.com
[Debug]: servCommand =task=PurgeDomain&objecttype=Domain&domain=siroe.com
[Debug]: argVal =0
[Debug]: servCommand =task=PurgeDomain&objecttype=Domain&domain=siroe.com&purgegrace=0
[Debug]: Contacting : http://web.siroe.com:80/commcli/TaskManager
[Debug]: To servlet: task=PurgeDomain&objecttype=Domain&domain=siroe.com&purgegrace=0
[Debug]: RECV: FAIL
[Debug]: RECV: 5079:The resource removal utility for each service must be run before domain can be purged.
[Debug]: CLITask: status returned =FAIL
FAIL
5079:The resource removal utility for each service must be run before domain can be purged.

[Debug]: DBG: doOne returned code=6
[Debug]: Contacting : http://web.siroe.com:80/commcli/logout
[Debug]: Logout ...

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms