Symantec IGA

Expand all | Collapse all

Identity Manager IME export fails

  • 1.  Identity Manager IME export fails

    Posted Aug 21, 2018 02:41 PM

    Hi All,

     

    Identity Manager IME export is always taking me to a blank page and the url: http://<host>:8080/iam/immanage/env?deleteobjs=%2C1&method%3AexportEnv=Export.... instead of downloading the zip file. I dont see any error messages in the server logs, can you please let me know how to debug management console and environment export errors?

     

    Thank you



  • 2.  Re: Identity Manager IME export fails

    Broadcom Employee
    Posted Aug 21, 2018 04:03 PM

    Hello Kamala , 

     

    depending on the IM version , please check the following link to enable logging :

     

    Adjusting logging levels in Identity Manager - CA Knowledge 

     

    Also,

    1. If using vApp, or Standalone version: have you tried with another Browser to open IM management console ?:

     

    2. if using Standalone installation, are you using specific port to connect ?

    vapp          : https://myserver/iam/immanage  

    standalone: http://myserver:8080/iam/immanage/ 

     

    thanks

     

    Gustavo Azolas 



  • 3.  Re: Identity Manager IME export fails

    Posted Aug 21, 2018 04:10 PM

    Hi Gustavo,

    Identity Manager is installed as a virtual appliance, I tried to export using firefox and chrome browsers and have the same experience.



  • 4.  Re: Identity Manager IME export fails

    Broadcom Employee
    Posted Aug 21, 2018 04:11 PM

    Normally if the export fails the browser would return some sort of error.  Did this just start happening?  Is this a new environment?  Can you try different browsers (Firefox, Chrome, and IE)?  Confirm the browser is not blocking the page?  If this is a new environment you might not have seen other issues yet but we also require JavaScript to be enabled in your browser.

     

    Thank you.



  • 5.  Re: Identity Manager IME export fails
    Best Answer

    Broadcom Employee
    Posted Aug 21, 2018 04:39 PM

    Hi Kamala, 

     

    you would try to enable logging as mentioned before to check further on IM logs or another alternative to export is 

    ImportExportUtil.sh

     

    It is a command-line alternative for the CA Identity Manager Management Console.
    It can Import or Export the CA Identity Manager artifacts such as directory, environment, and role definitions.
    You should see Errors messages when running on Export mode.
    Please review the documentation to configure this option properly for your Export mode.

     

    Migrate CA Identity Manager Artifacts to Production Environment - CA Identity Manager - 14.2 - CA Technologies Documenta… 

     

    let us to know if do you have any question

     

    thanks

    Gustavo Azolas 



  • 6.  Re: Identity Manager IME export fails

    Posted Aug 22, 2018 10:29 AM

    Does it work if you export the roles.xml and settings.xml individually?

     

    If that works, you may have some network security setting that prohibits the downloading of .zip files?

     

    W.



  • 7.  Re: Identity Manager IME export fails

    Posted Sep 26, 2018 05:14 PM

    Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=128m; support was removed in 8.0
    -----------------------------------------------------------
    -------------------Starting a new Export-------------------
    -----------------------------------------------------------
    Exporting Environment 'identityEnv'...
    disposition null
    com.ca.identitymanager.importexportutility.utility.ImportExportUtilRuntimeException: Failed : There is some problem with export, file name is missing in response.
    Exception in thread "main" com.ca.identitymanager.importexportutility.utility.ImportExportUtilRuntimeException: Failed : There is some problem with export, file name is missing in response.
    at com.ca.identitymanager.importexportutility.utility.Connection.getFileName(Connection.java:312)
    at com.ca.identitymanager.importexportutility.utility.Connection.downloadFile(Connection.java:257)
    at com.ca.identitymanager.importexportutility.utility.Environment.exportResource(Environment.java:27)
    at com.ca.identitymanager.importexportutility.client.ImportExportClient.exportResources(ImportExportClient.java:220)
    at com.ca.identitymanager.importexportutility.client.ImportExportClient.main(ImportExportClient.java:73)

     

    I am receiving the above error while exporting using ./ImportExportUtil.sh script and i am unable to download using individual files



  • 8.  Re: Identity Manager IME export fails

    Posted Dec 19, 2018 12:08 PM

    I am receiving this same error when using ImportExportUtil. Has anyone seen a solution for this? I can't export this or my Roles and Tasks.

     

    Thank you.



  • 9.  RE: Re: Identity Manager IME export fails

    Posted Apr 26, 2022 05:27 AM
    Hello,

    Did someone solved the problem??? I receiving now the same error and can't export my environment, can you please help me and provide the resolution that worked for you? @Kamala Ramarao @Michael London

    Thank you.​​​


  • 10.  RE: Re: Identity Manager IME export fails

    Posted Apr 29, 2022 11:18 AM
    Edited by Alan Baugher Apr 29, 2022 11:18 AM

    There are likely three (3) possible challenges.

    1)  Your IME has grown with the additions of new objects, e.g. Admin Roles, and Provisioning Roles, so that the expected export size of the XML file will be greater than the default max-post-size.

      • /opt/CA/VirtualAppliance/custom/IdentityManager/config/max-post-size

    Update the default value of 50MB to 100MB, recycle the Wildfly/JBOSS service, and re-attempt the export.


    2)  There is an object in the IME that is causing an export challenge.   You need to find it with the logging.jsp  using full debug during a failed export, ims=debug and im=debug.   This should output a debug statement in server.log to help you identify it.

    Tech note:  https://knowledge.broadcom.com/external/article/210825/identity-manager-role-definition-export.html


    3) Possible timeout of your ssh sessions that takes longer than the export.   

    Run your export in the background.

    nohup ./ImportExportUtil.sh > notes.txt 2>&1 &

    Note:  Avoid the SelectiveExport process, as this will perform a referential query before export, and therefore will take longer to export your objects.    Use the ImportExportUtil.sh

    Enhance the ImportExportUtil.sh script with additional JAVA_OPT to allow it to have additional memory.

    BEFORE:

    #JAVA_OPTS="-Xms256m -Xmx512m $JAVA_OPTS"

    AFTER:
    JAVA_OPTS="-Xms256m -Xmx4g -Djava.net.preferIPv4Stack=true -Djava.awt.headless=true -Djava.security.egd=file:/dev/./urandom -Dcom.sun.jndi.ldap.object.disableEndpointIdentification=true $JAVA_OPTS"



    ------------------------------
    Alan Baugher

    ------------------------------



  • 11.  RE: Re: Identity Manager IME export fails

    Posted May 03, 2022 10:30 AM
    Edited by Alan Baugher May 03, 2022 10:30 AM

    To assist with identifying the "bad" object that may be impacting the IME export, you may wish to enable the loggers that have the most information.   This process below will enable three (3) loggers for jdbc and provisioning roles to a new appender file under the Wildfly log folder.   Allow this process to run when you execute your export IME process.    Afterward execution of the export IME process, adjust this script then re-run the script with the replacement strings of  ":remove" of the four (4) loggers/appender items.

    Script:   Use jboss-cli.sh process.

    #######################################################################

    # Name: Trace the Symantec Identity Manager Export of the IME
    # Goal: Find any object that may need to be removed or adjusted to avoid a failure during an export.
    # - Focus on jdbc and provisioning role loggers.
    # Monitor: tail -f /opt/CA/wildfly-idm/standalone/log/im_export_debug.log
    # Tool: /opt/CA/IdentityManager/IAM_Suite/IdentityManager/tools/ImportExportUtility/
    #
    # Ref: https://knowledge.broadcom.com/external/article/210825/identity-manager-role-definition-export.html
    # FileName: im_export_debug.cli
    # Execute the following:
    #
    # /opt/CA/wildfly-idm/bin/jboss-cli.sh --connect --user=jboss-admin --password=Password01! --file=im_export_debug.cli
    #
    # Optional: Add management user to allow access to jboss-cli.sh to adjust Wildfly logging.
    # sudo /opt/CA/wildfly-idm/bin/add-user.sh -m -u jboss-admin -p Password01! -g SuperUser
    #
    # ANA/2022

    connect
    :take-snapshot
    batch
    /subsystem=logging/periodic-rotating-file-handler=im_export:add(file={"path"=>"im_export_debug.log", "relative-to"=>"jboss.server.log.dir"}, suffix=".yyyy.MM.dd", level=DEBUG, append=true, autoflush=false, suffix=".yyyy-MM-dd-HH", formatter="%d{HH:mm:ss,SSS} [${jboss.bind.address}] [${jboss.node.name}] %-5p [%c] (%t) %-120s%E {%l}%n")
    /subsystem=logging/logger=ims.jdbc.JDBCManagedObjectProvider:add(handlers=["im_export"], level=DEBUG, use-parent-handlers=false)
    /subsystem=logging/logger=ims.jdbc.JDBCManagedObject:add(handlers=["im_export"], level=DEBUG, use-parent-handlers=false)
    /subsystem=logging/logger=im.provisioning.provisioningrole:add(handlers=["im_export"], level=DEBUG, use-parent-handlers=false)
    run-batch

    # To remove - make a copy of this script and change the four (4) strings :add(XXXXXXXXXXXXX) to :remove



    ------------------------------
    Alan Baugher

    ------------------------------



  • 12.  RE: Re: Identity Manager IME export fails

    Posted May 10, 2022 12:40 PM

    Follow up observation:

    If you have a star character "*" in any of your objects, the solution will generate a replacement character of "%" as the SQL wildcard.   

    This conversion will confuse the solution during an export, and you will see this exact error message.

    Resolution:  Search all provisioning roles under the IM_ROLE database table (or use the IM UI or Prov Manager UI) to find any PR with the "*" character.    Use the Prov Manager UI to rename or delete the PR object.    Then re-attempt your export of the IME.

    The below four (4) loggers helped to isolate this issue:

    com.ca.commons.jndi.beans.operations

    im.provisioning.provisioningrole

    ims.jdbc.JDBCManagedObjectProvider

    ims.jdbc.JDBCManagedObject

    Example:   Please note the queries fail with delta where the pattern "*" is replaced with "%".

    11:23:17,829 [192.168.2.220] [iamnode1] DEBUG [ims.jdbc.JDBCManagedObjectProvider] (default task-299) SELECT DISTINCT("IM_ROLE"."UNIQUE_NAME") FROM "IM_ROLE" WHERE { fn LCASE("FRIENDLYNAME")} LIKE testwithstar% ESING NCHAR_CS) AND "TYPE"=2 AND "IM_ROLE"."ENV_OID"='1' {com.netegrity.llsdk6.imsimpl.jdbcmanagedobject.JDBCManagedObjectProvider.findUniqueAttribute(JDBCManagedObjectProvider.java:823)}
    11:23:17,829 [192.168.2.220] [iamnode1] DEBUG [ims.jdbc.JDBCManagedObjectProvider] (default task-299) SELECT DISTINCT("IM_ROLE"."UNIQUE_NAME") FROM "IM_ROLE" WHERE { fn LCASE("FRIENDLYNAME")} LIKE ? ESCAPE TRANSLA) AND "TYPE"=? AND "IM_ROLE"."ENV_OID"=? (testwithstar%,2,1) {com.netegrity.llsdk6.imsimpl.jdbcmanagedobject.JDBCManagedObjectProvider.findUniqueAttribute(JDBCManagedObjectProvider.java:826)}
    11:23:17,842 [192.168.2.220] [iamnode1] DEBUG [im.provisioning.provisioningrole] (default task-299) getIAMRole: retrieving provisioning role: 'testwithstar*' y.llsdk6.imsimpl.managedobject.ProvisioningRoleImpl.getIAMRole(ProvisioningRoleImpl.java:727)}
    11:23:17,842 [192.168.2.220] [iamnode1] DEBUG [com.ca.commons.jndi.beans.operations] (default task-299) Search[44] Started: base=eTRoleContainerName=Roles,eTNamespaceName=CommonObjects,dc=im,dc=eta filter=(&(eTRol2a)(objectClass=eTRole)) controls=[scope=one level, returning objects=false, count limit=0, time limit=0, return=eTCustomField08,eTCustomField07,eTDescription,eTCustomField09,eTAllowPartialResult,eTRoleName,eTCustld01,eTID,eTCustomField02,eTCustomField04,eTCustomField03,eTComments,eTCustomField05,eTDepartment,eTCustomField06] {java.util.logging.Logger.doLog(Logger.java:765)}



    ------------------------------
    Alan Baugher
    ANA
    ------------------------------



  • 13.  RE: Re: Identity Manager IME export fails

    Posted May 10, 2022 10:21 PM

    This may help as well.

    If you are using Oracle DB, ensure that you are using the latest recommended NSL_LANG character set (from both Oracle and Broadcom) of  "AL32UTF8"

    https://techdocs.broadcom.com/us/en/symantec-security-software/identity-security/identity-manager/14-3/configuring/user-console-design/ca-identity-manager-localization/how-to-configure-support-for-localization/localization-prerequisites.html

    https://techdocs.broadcom.com/us/en/symantec-security-software/identity-security/identity-manager/14-3/installing/installation-prerequisites/central-databases.html

    https://docs.oracle.com/database/121/NLSPG/ch2charset.htm#NLSPG1037

    To find out which character set you are using, please check with this select query (using Oracle SQL Developer UI)
    - Note:  You may need a higher Oracle privileged account to view this system parameter.

    select * from nls_database_parameters where parameter='NLS_CHARACTERSET';

    Why this is important?    If an older character set is used, you may be hit with the "long dash" (aka emdash) character that is unknown to Oracle  with the older character sets.   If your users use copy-n-paste between Outlook email or MS Office (Word/Excel), the hyphen (short dash) character may be replaced by the emdash (long dash)  when the user creates new IM objects, especially IM Prov Roles.    With the older character set, Oracle will replace the 'unknown' characters with an upside down question mark.    And when you attempt to export the IME, IM will check the IM_ROLE tables for the name, and then attempt to use that name for a validation query to the Provisioning Server, before adding this file to the export list.   Unfortunately, the names do not match, as the Provisioning Server is using UTF8 character set, and allows for most characters.  Therefore when the names do not match, the IM Export Process does not know how to manage this error and will fail at this step.  This can be observed with the above-mentioned loggers.

    To check your Oracle DB, if it has these 'unknown' characters, query your IM Role table with the below select statement:

    - Note:  Replace the schema name with your own schema name.


    select * from schema_imdba.im_role where friendlyname like '%¿%';



    ------------------------------
    Alan Baugher
    ANA
    ------------------------------