CA Client Automation

  • 1.  Package installation is getting failed with exit code 1

    Posted Oct 17, 2017 02:47 AM

    Hi Team,

     

    One of the package is giving exit code 1 error. Its not installed in the machine as well.

    Kindly help.#



  • 2.  Re: Package installation is getting failed with exit code 1

    Broadcom Employee
    Posted Oct 17, 2017 02:08 PM

    1 is a pretty generic error anything in the job output

     

    Richard Lechner

    Principal Engineering Services Architect

     

    CA Technologies

    Mobile: +1 703 655 7161 | Richard.Lechner@ca.com

     

    <mailto:Richard.Lechner@ca.com>[CA]<http://www.ca.com/us/default.aspx>[Twitter]<http://twitter.com/CAInc>[Slideshare]<http://www.slideshare.net/cainc>[Facebook]<https://www.facebook.com/CATechnologies>[YouTube]<http://www.youtube.com/user/catechnologies>[LinkedIn]<http://www.linkedin.com/company/1372?goback=.cps_1244823420724_1>[Google]<https://plus.google.com/CATechnologies>[Google+]<http://www.ca.com/us/rss.aspx?intcmp=footernav>



  • 3.  Re: Package installation is getting failed with exit code 1

    Posted Oct 18, 2017 09:23 AM

    This question cannot be answered without more details. I would need to know what kind of package is being pushed, what file is executed by the install procedure, what arguments are being passed, whether or not there are any procedure dependencies, whether there is a reboot or user prompt involved and whether the package works to any other machines of the same OS and general setup.

     

    Any of these details that could be shared might help diagnose the issue.

     

    Thanks,

    Joe Puccio

    Principle Engineer, Software Support

    CA Technologies

    Pucjo01@ca.com

    C:1-631-987-8512



  • 4.  Re: Package installation is getting failed with exit code 1

    Posted Oct 19, 2017 03:15 AM

    This software is SAP's software. This is secure login client which is an addon that enables us to connect sap systems using single sign on.

    Package is installing manually without any issues.

    no reboot or user prompt.

    .exe is available in the package and .bat is created to make it run through itca which is normal procedure in all the packages.



  • 5.  Re: Package installation is getting failed with exit code 1

    Broadcom Employee
    Posted Oct 19, 2017 05:21 AM

    Hi,

     

    I'm not sure the error code, but the reason maybe user account to run the installer.

    By default, ITCA agent is running with local SYSTEM account, so installer is executed by SYSTEM. 

    If you call .exe in .bat for procedure directly, try to change the command, please.

     

    In .bat file:

    AS IS) 

    install.exe

    TO BE)

    runas /user:DOMAIN\Administrator install.exe

     

    Note: DOMAIN is your domain or target hostname. 

     

    Regards

    Yas



  • 6.  Re: Package installation is getting failed with exit code 1

    Posted Oct 19, 2017 09:45 AM

    It may or may not be relevant here, but in your batch script, you should always make sure to wrap your setup launch command as follows:

     

    Set MyError=0

    <Execution command line>

    Set MyError=%Errorlevel%

    If "%MyError%"=="" Set MyError=0

    If %MyError% NEQ 0 Echo "Installation has failed with error code %MyError%"

    Exit %MyError%

     

    You may already be doing something similar but without exact placement of some of these lines, an error message could be misreported.

     

    As stated previously however it is also possible that the user context of this install, which is SYSTEM by default could be something this install is not expecting and can result in an error.

     

    You can change the user that JUST software delivery uses to run jobs with the following command and still run CAF and other plugins as SYSTEM:

     

    caf setcreds sdagent user <user> password <password>

     

    the job can then be pushed and will run as that user. later or at the end of the job you can run this command to return SDAgent to run as SYSTEM again for subsequent jobs:

     

    caf setcreds sdagent

     

    hope this helps.

     

    Thanks,

    Joe Puccio

    Principle Engineer, Software Support

    CA Technologies

    Pucjo01@ca.com

    C:1-631-987-8512