IBM Support

PH58852: UNIQUE CONSTRAINT ERROR WHEN HOSTNAME ENVIRONMENT VARIABLE CONFLICTS WITH "HOSTNAME" IN AGENT PROPERTIES.

Subscribe to this APAR

By subscribing, you receive periodic emails alerting you to the status of the APAR, along with a link to the fix after it becomes available. You can track this item individually or track all items by product.

Notify me when this APAR changes.

Notify me when an APAR for this component changes.

 

APAR status

  • Closed as program error.

Error description

  • After upgrading from Urban Code Deploy 7.3.1.0 to 7.3.2.0,
    deployserver.out file has multiple instances of duplicate
    "HOSTNAME" errors which are caused by a unique constraint in the
    table.
    This happens when the "HOSTNAME" environment variable conflicts
    with the hard coded "Hostname" entry in the agent properties set
    by the 7.3.2.0 agent.
    
    Steps to reproduce:
    1) Install UCD server 7.3.2.0 with mysql database server using a
    collation of utf8mb4_0900_ai_ci.
    2) Start a new 7.3.2.0 agent with a "HOSTNAME" environment
    variable.
    
    Error in deployserver.out:
    {"ts_utc":"2023-12-07T10:23:34.254Z","ts_loc":"2023-12-07T11:23:
    34.254+0100","lvl":"ERROR","thr":"db-operator-0","log":"org.hibe
    rnate.engine.jdbc.spi.SqlExceptionHelper","msg":"Cannot insert
    duplicate key row in object 'dbo.ps_prop_value' with unique
    index 'ps_prop_val_uci'.The duplicate key value is (HOSTNAME,
    <>).⠝}
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * UrbanCode Deploy Web UI Users                                *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * Unique constraint error when hostname environment variable   *
    * conflicts with "Hostname" in agent properties.               *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * Fix is provided in IBM UrbanCode Deploy 8.0.0.1              *
    ****************************************************************
    

Problem conclusion

  • Fix is provided in IBM UrbanCode Deploy 8.0.0.1
    

Temporary fix

Comments

APAR Information

  • APAR number

    PH58852

  • Reported component name

    UC DEPLOY

  • Reported component ID

    5725M5400

  • Reported release

    732

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2023-12-19

  • Closed date

    2024-02-16

  • Last modified date

    2024-02-16

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

Fix information

  • Fixed component name

    UC DEPLOY

  • Fixed component ID

    5725M5400

Applicable component levels

[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SS4GSP","label":"IBM UrbanCode Deploy"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"732","Line of Business":{"code":"LOB67","label":"IT Automation \u0026 App Modernization"}}]

Document Information

Modified date:
16 February 2024