Skip to Content
avatar image
Former Member

Deploy script is no executed after configuring CTS+

Hi Export,

I am trying to follow the guide 'How to implement CTS+ ... for your application' to config the CTS+ for the system using script based deployment.

after configuration, i found the deploy script is not executed after import tr, and the deploy has rc = 4 :

the import looks successfully finished, but the deployment, i can't get useful log message:

i don't know where i do wrong, could your please help with it ? if there are any other information i should provide?

Thanks in advance.

capture.png (9.6 kB)
capture.png (15.1 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Aug 03, 2017 at 11:58 AM

    In order to be on the same page, I hope you have created the deployment script as it is explained here:

    https://assets.cdn.sap.com/sapcom/docs/2016/06/3e08f751-767c-0010-82c7-eda71af511fa.pdf

    Chapter 7.3

    If this is so, then you need to cross check whether the deployment call is received by the target deployment AS Java. For this have a look on the deployment.x.trc and deployment.log files in the work directory (\usr\sap\<AS-JAVA-SystemID>\<central instance>\work).

    Provided there is reported a deployment error in these logs please post the relevant exceptions to have a closer look.

    Else, the call does not get to the AS Java for some reason.

    1. Please cross check the deployment settings - f.e. is the deployment call goes to the the correct deployment port. For AS Java 7.0x (and lower) the P4 port is 5xx18, while for AS Java 7.1 (and higher) it is 5xx04 .

    2. It is possible that some networking device (firewall, router and etc.) does not allow the call to get to the AS Java. Please make sure the deployment call might be made.

    3. If this is fine than the problem might be in the deployment script. For this you will observe more details in the deployment traces and logs on the AS Java and the relevant exceptions in particular. You might cross check this by extracting the non-ABAP archive, create it in format acceptable for deployment and deploy it with TELNET directly. If there is a problem only with the deployment script - the deployment with TELNET should be successful (and you do have a temporary workaround to meet the urgency, when it is at hand)

    Please revise this SAP note "1833230 - deployment of j2ee archive which is no SDA is not supported"

    and these documents:

    http://help.sap.com/saphelp_nw73/helpdata/en/4a/f06fb255332475e10000000a42189c/frameset.htm

    http://help.sap.com/saphelp_nw73ehp1/helpdata/en/4a/f06fb255332475e10000000a42189c/frameset.htm

    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/1e/2c813ed9d23e44e10000000a114084/content.htm?frameset=/en/22/a7663bb3808c1fe10000000a114084/frameset.htm

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Milen,

      Thanks for your reply.

      • Yes, i have created the deployment script getting from the note 2418818 , i placed the script into /usr/sap/SLJ/SYS/global/CtsScripts with full authorization of read and execution for all user:

        the path /usr/sap/SLJ/SYS/global links to the /sapmnt/SLJ/global, hope it's no influence, and here is the value of 'sys.global.dir' property:

      • I checked the deployment.x.trc and deployment.log files under /usr/sap/SLJ/J02/work:


        the final changed time stamp of deploy.0.log and deploy.0.trc is 2017-02-18 , which is not the time i test the deployment, so there is no useful log.

      1. As for the setting of deployment port, do you mean the configuration of sm59 http destination 'CTSDEPLOY' ? I set the service no to 50200, i tried to reset to 50208 but it didn't work. here is the details of the instance:
      2. In my case, both AS abap and AS java are in same server, have same ip address, i think in this situation, the call to get to the AS Java will not be influenced, is it correct ? or there are any place i can check it ?
      3. I tried the guided in Using Shell Scripts to Work with SDAs using test file Hello.jar (it has been converted and contains SAP_MANIFEST.MF), it failed at first time due to authorizaton issue:

        then i tried another user with correct authorization and it works this time and deployed successfully:

        and new deployment.0.log and deployment.0.trc is generated in path /usr/sap/SLJ/J02/j2ee/deployment/log

        Deployment script is still not executed (i add some code to the script, a new log.txt file should be created when it is executed ), Do you have any idea how to fix it ?

        Thank you very much for your help.

      4. <Content of deployment.0.log :
        
        
        <!--HELP[Manual modification of the header may cause parsing problem!]/-->
        <!--LOGGINGVERSION[2.0.7.1006]/-->
        <!--NAME[..//./log/deployment.log]/-->
        <!--PATTERN[deployment.log]/-->
        <!--FORMATTER[com.sap.tc.logging.ListFormatter]/-->
        <!--ENCODING[UTF8]/-->
        <!--FILESET[0, 5, 10000000]/-->
        <!--PREVIOUSFILE[deployment.4.log]/-->
        <!--NEXTFILE[deployment.1.log]/-->
        <!--LOGHEADER[END]/-->
        #2.0#2017 08 04 07:23:50:647#+00#Error#/System/Server/Deployment#
        ###C0000AAD0F490000000000003B81A1BC###com.sap.engine.lib.deploy.sda.SDAProducer########Thread[main,5,main]#Plain##
        Incorrect arguments passed#
        
        
        #2.0#2017 08 04 07:25:01:993#+00#Info#/System/Server/Deployment#
        ###C0000AAD0F49000000000000783E6358###com.sap.engine.lib.deploy.sda.SDAProducer########Thread[main,5,main]#Plain##
        Generating SDA file for /tmp/Hello.jar#
        
        
        #2.0#2017 08 04 07:25:02:711#+00#Info#/System/Server/Deployment#
        ###C0000AAD0F49000000000001783E6358###com.sap.engine.lib.deploy.sda.SDAProducer########Thread[main,5,main]#Plain##
        SDA /tmp/SDA/Hello.jar generated successfully#
        
        
        #2.0#2017 08 04 07:29:58:588#+00#Info#/System/Server/Deployment#
        ###C0000AAD0F49000000000000614C5515###com.sap.engine.deployment.DMClient########Thread[main,5,main]#Plain##
        Obtaining Deployment Manager#
        
        
        #2.0#2017 08 04 07:29:59:884#+00#Error#/System/Server/Deployment#
        ###C0000AAD0F49000000000001614C5515###com.sap.engine.deployment.proxy.ConnectionManagerImpl#####aaeb7d71a08410059c57a4ab36b3059d###Thread[main,5,main]#Plain##
        Could not establish connection to AS Java on [localhost:50204]. Cannot authenticate the user. Wrong or missing security credentials (password) for principal [sljadm], or the specified principal has no permissions to perform JNDI related operations.#
        
        
        #2.0#2017 08 04 07:29:59:889#+00#Error#/System/Server/Deployment#
        ###C0000AAD0F49000000000003614C5515###com.sap.engine.deployment.DMClient#####aaeb7d71a08410059c57a4ab36b3059d###Thread[main,5,main]#Plain##
        Error occurred while obtaining Deployment Manager#
        
        
        #2.0#2017 08 04 07:37:44:217#+00#Info#/System/Server/Deployment#
        ###C0000AAD0F49000000000000614C5515###com.sap.engine.deployment.DMClient########Thread[main,5,main]#Plain##
        Obtaining Deployment Manager#
        
        
        #2.0#2017 08 04 07:37:45:409#+00#Info#/System/Server/Deployment#
        ###C0000AAD0F49000000000001614C5515###com.sap.engine.deployment.proxy.ConnectionManagerImpl#####1c0ba546a0f11005cd02a30dc3517bbc###Thread[main,5,main]#Plain##
        Connected to localhost:50204 as i321386#
        
        
        #2.0#2017 08 04 07:37:45:707#+00#Info#/System/Server/Deployment#
        ###C0000AAD0F49000000000002614C5515###com.sap.engine.deployment.proxy.DeploymentProxyImpl#####322bcffda0f11005a9d7d982c9fe7dc6###Thread[main,5,main]#Plain##
        Disconnected from localhost:50204#
        
        
        #2.0#2017 08 04 07:37:46:076#+00#Info#/System/Server/Deployment#
        ###C0000AAD0F49000000000003614C5515###com.sap.engine.deployment.proxy.ConnectionManagerImpl#####4639de02a0f110059abdf226ca4e45b6###Thread[main,5,main]#Plain##
        Connected to localhost:50204 as i321386#
        
        
        #2.0#2017 08 04 07:37:46:409#+00#Info#/System/Server/Deployment#
        ###C0000AAD0F49000000000004614C5515###com.sap.engine.deployment.DMClient#####5a7f38caa0f11005bc0ed078ae54cff8###Thread[main,5,main]#Plain##
        Deploying /tmp/Hello.jar with plan null#
        
        
        #2.0#2017 08 04 07:37:46:434#+00#Info#/System/Server/Deployment#
        ###C0000AAD0F49000100000000614C5515###com.sap.engine.lib.deploy.sda.SDAProducer#####5cc4742ea0f11005816cd1ecd58cf211###Thread[Thread-11,5,main]#Plain##
        Generating SDA file for /usr/sap/SLJ/J02/j2ee/deployment/scripts/../SAP_DM/1501832266389_Hello.jar/Hello.jar#
        
        
        #2.0#2017 08 04 07:37:46:580#+00#Info#/System/Server/Deployment#
        ###C0000AAD0F49000100000001614C5515###com.sap.engine.lib.deploy.sda.SDAProducer#####5cc4742ea0f11005816cd1ecd58cf211###Thread[Thread-11,5,main]#Plain##
        SDA ..//SDA/Hello.jar generated successfully#
        
        
        #2.0#2017 08 04 07:37:53:623#+00#Info#/System/Server/Deployment#
        ###C0000AAD0F49000200000000614C5515###com.sap.engine.deployment.proxy.dc.DCLogger#####94a76657a0f11005a2c192c798e73128###Thread[DC_API-ClientSideAsyncNotification\#1,5,main]#Plain##
        Deployment of [name: 'Hello', vendor: 'JavaEE' (sda)] finished.#
        
        
        #2.0#2017 08 04 07:37:53:719#+00#Info#/System/Server/Deployment#
        ###C0000AAD0F49000100000002614C5515###com.sap.engine.deployment.proxy.dc.DCLogger#####0f9a3d31a0f31005c096eebe29b15da8###Thread[Thread-11,5,main]#Plain##
        +++ Deployment of session ID [61] finished with status [Success] +++. [[ deployerId=1 ]] [[\#4: 6.589 sec]] [
        ===== Summary - Deploy Result - Start =====
        ------------------------
        Type | Status  : Count
        ------------------------
         > SCA(s)
         > SDA(s)
           - [Success] : [1]
        ------------------------
        ------------------------
        Type | Status  : Id
        ------------------------
         > SCA(s)
         > SDA(s)
           - [Success] : name: 'Hello', vendor: 'JavaEE', 
        ------------------------
        ===== Summary - Deploy Result - End =====
        ]#
        
        
        #2.0#2017 08 04 07:37:53:843#+00#Info#/System/Server/Deployment#
        ###C0000AAD0F49000100000003614C5515###com.sap.engine.deployment.DMClient#####106da96ba0f310059f359badd8b3b846###Thread[Thread-11,5,main]#Plain##
        Received progress event for operation distribute#
        
        
        #2.0#2017 08 04 07:37:53:844#+00#Info#/System/Server/Deployment#
        ###C0000AAD0F49000100000004614C5515###com.sap.engine.deployment.DMClient#####106da96ba0f310059f359badd8b3b846###Thread[Thread-11,5,main]#Plain##
        Progress event state running#
        
        
        #2.0#2017 08 04 07:37:53:906#+00#Info#/System/Server/Deployment#
        ###C0000AAD0F49000100000005614C5515###com.sap.engine.deployment.operations.DistributeOperation#####17a3bd8fa0f3100593c9d56b394c80c0###Thread[Thread-11,5,main]#Plain##
        Target module JavaEE/Hello @ Server 00 02_251897 - 25189750 distributed successfully#
        
        
        #2.0#2017 08 04 07:37:53:906#+00#Info#/System/Server/Deployment#
        ###C0000AAD0F49000100000006614C5515###com.sap.engine.deployment.DMClient#####17a3bd8fa0f3100593c9d56b394c80c0###Thread[Thread-11,5,main]#Plain##
        Received progress event for operation distribute#
        
        
        #2.0#2017 08 04 07:37:53:906#+00#Info#/System/Server/Deployment#
        ###C0000AAD0F49000100000007614C5515###com.sap.engine.deployment.DMClient#####17a3bd8fa0f3100593c9d56b394c80c0###Thread[Thread-11,5,main]#Plain##
        Progress event state completed#
        
        
        #2.0#2017 08 04 07:37:53:907#+00#Info#/System/Server/Deployment#
        ###C0000AAD0F49000000000005614C5515###com.sap.engine.deployment.DMClient#####5a7f38caa0f11005bc0ed078ae54cff8###Thread[main,5,main]#Plain##
        Deployed modules#
        
        
        #2.0#2017 08 04 07:37:53:907#+00#Info#/System/Server/Deployment#
        ###C0000AAD0F49000000000006614C5515###com.sap.engine.deployment.DMClient#####5a7f38caa0f11005bc0ed078ae54cff8###Thread[main,5,main]#Plain##
        	JavaEE/Hello @ Server 00 02_251897 - 25189750#
        
        
        #2.0#2017 08 04 07:37:53:907#+00#Info#/System/Server/Deployment#
        ###C0000AAD0F49000000000007614C5515###com.sap.engine.deployment.DMClient#####5a7f38caa0f11005bc0ed078ae54cff8###Thread[main,5,main]#Plain##
        Modules will not be started#
        
        
        #2.0#2017 08 04 07:37:54:022#+00#Info#/System/Server/Deployment#
        ###C0000AAD0F49000000000008614C5515###com.sap.engine.deployment.proxy.DeploymentProxyImpl#####1e5a91c5a0f31005c4c59e6b07c01ea5###Thread[main,5,main]#Plain##
        Disconnected from localhost:50204#<strong>
        
        </strong>
  • Aug 04, 2017 at 02:02 PM

    "... As for the setting of deployment port, do you mean the configuration of sm59 http destination 'CTSDEPLOY' ? I set the service no to 50200, i tried to reset to 50208 but it didn't work. ..."

    The deployment port of the AS Java is 5xx04 (for releases 7.1 and above) .

    It does not matter whether you do run dual stack or the AS ABAP and AS JAVA are on the different server boxes.

    When the P4 port is not configured correctly, no deployment might be done.

    Add comment
    10|10000 characters needed characters exceeded

    • Hello Seth,

      If this question is answered from your perspective, then please clicked on the “Accept” link to complete this question.

      Otherwise, please post the resolution in a separate answer and close the thread.

      Thank you.