Script created in BSM not appearing in BPM

Hello All

APM 9.30
BPM 9.30.471

We had created new script using vuGen to monitor an web based application and added the script in script repository in BSM. We further created End User Monitor in BSM and launched the script in BPM. However we see the script is not running in BPM.

We further checked in BPM and in BPM also we are not seeing the script been listed.

Please provide your help to fix this issue.

  • Hi Ramesh,

    I couldn't get your exact issue. Below you have mentioned as,

     

    Launched the script in BPM  and  in BPM also we are not seeing the script been listed.

    So are you not able to view the script in BPM or BSM, else couldnt run the script in BPM?

     

    Thanks,

    Arunkumar.K

     

  • please check out in the BPM logs if you see any errors

    you can find it under %programData%\HP\BPM\workspace

    You can stop BPM delete workspace and restart it just to see if this is a temp problem or not.

  • In BPM Workspace, I see following error under details section

    440 - Failed to register

    Please clarify what does it mean and how to solve it.

  • Hi

    I solved the issue 'Failed to register', but still I am not able to see the script been listed in BPM workspace.

    In BSM, I am seeing the script has not run since there are no report data.

  • Hi

    I solved the issue 'Failed to register', but still I am not able to see the script been listed in BPM workspace.

    In BSM, I am seeing the script has not run since there are no report data.

  • Hi

    I solved the issue 'Failed to register', but still I am not able to see the script been listed in BPM workspace.

    In BSM, I am seeing the script has not run since there are no report data.

  • Hi All

    I see the script is been run from BPM workspace, but status still shows "Failed to start"

    If I look at the log file /opt/HP/BPM/workspace/logs/bpm_all.log, I see following lines,

    INFO  [BpmTaskRunner-20] [GeneralScriptTaskExecutor] Running script: oml
    INFO  [BpmTaskRunner-20] [BpmSchedulerServerProxy] Adding copy script results scheduled job for oml1490787295001_7 with interval: 60 seconds
    INFO  [BpmTaskRunner-17] [BpmSchedulerCommonProxy] Adding thread timeout scheduled job for BpmTaskRunner-17
    [BpmTaskRunner-20] [BpmSchedulerCommonProxy] Adding thread timeout scheduled job for BpmTaskRunner-20
    [BpmTaskRunner-17] [BpmScheduler] Removing thread timeout scheduled job
    [BpmTaskRunner-20] [BpmScheduler] Removing copy script results scheduled job for oml1490787295001_7
    [BpmTaskRunner-20] [BpmScheduler] Removing thread timeout scheduled job
    29/03/2017 15:34:55 WARN  [BpmTaskRunner-20] [GeneralScriptTaskExecutor] The script output file: oml_*.json.cp was not created. Setting the exit code to: 6
    [BpmTaskRunner-20] [BpmSchedulerServerProxy] Adding execute run unit scheduled job for Site1_bc34801875c9e2a2b29babc6b90bc966
    [BpmTaskRunner-20] [GeneralAppExecutor] btfLastScriptEnded: BusinessTransactionFlowDto{id='989c7138666f83822684ddedfd598d88', name='oml', runMode=CLASSIC, action=PLAY, appId='bc34801875c9e2a2b29babc6b90bc966', customerName='Default Client', groupId='00000000000000000000000000000000', groupName='Default Client', locId='bdcb322d76ec4b252c5bf879c7a7c479', locName='Dubai', order='2', runStepSec='-1', webtraces=com.hp.bsm.bpm.utils.SortedValueMap@460bb06e, scripts=com.hp.bsm.bpm.utils.SortedValueMap@3ced3991} BaseRunUnit{appId='null', action=PLAY, tasksTimeoutSec=900, site='Site1', customerId='1', schedules=[], path=''}
    ERROR [SamplesHandlerThread (Site1)] [ScriptMetadata] transactions metadata is missing in metadata file: /opt/HP/BPM/workspace/agent1/Site1/data/trans_t/1490787295002_7/1490787295001_1_17_oml_________/oml.metadata samples will not be sent for this script run.

    Can someone explain what is the problem..

  • Hi All

    I see the script is been run from BPM workspace, but status still shows "Failed to start"

    If I look at the log file /opt/HP/BPM/workspace/logs/bpm_all.log, I see following lines,

    INFO  [BpmTaskRunner-20] [GeneralScriptTaskExecutor] Running script: oml
    INFO  [BpmTaskRunner-20] [BpmSchedulerServerProxy] Adding copy script results scheduled job for oml1490787295001_7 with interval: 60 seconds
    INFO  [BpmTaskRunner-17] [BpmSchedulerCommonProxy] Adding thread timeout scheduled job for BpmTaskRunner-17
    [BpmTaskRunner-20] [BpmSchedulerCommonProxy] Adding thread timeout scheduled job for BpmTaskRunner-20
    [BpmTaskRunner-17] [BpmScheduler] Removing thread timeout scheduled job
    [BpmTaskRunner-20] [BpmScheduler] Removing copy script results scheduled job for oml1490787295001_7
    [BpmTaskRunner-20] [BpmScheduler] Removing thread timeout scheduled job
    29/03/2017 15:34:55 WARN  [BpmTaskRunner-20] [GeneralScriptTaskExecutor] The script output file: oml_*.json.cp was not created. Setting the exit code to: 6
    [BpmTaskRunner-20] [BpmSchedulerServerProxy] Adding execute run unit scheduled job for Site1_bc34801875c9e2a2b29babc6b90bc966
    [BpmTaskRunner-20] [GeneralAppExecutor] btfLastScriptEnded: BusinessTransactionFlowDto{id='989c7138666f83822684ddedfd598d88', name='oml', runMode=CLASSIC, action=PLAY, appId='bc34801875c9e2a2b29babc6b90bc966', customerName='Default Client', groupId='00000000000000000000000000000000', groupName='Default Client', locId='bdcb322d76ec4b252c5bf879c7a7c479', locName='Dubai', order='2', runStepSec='-1', webtraces=com.hp.bsm.bpm.utils.SortedValueMap@460bb06e, scripts=com.hp.bsm.bpm.utils.SortedValueMap@3ced3991} BaseRunUnit{appId='null', action=PLAY, tasksTimeoutSec=900, site='Site1', customerId='1', schedules=[], path=''}
    ERROR [SamplesHandlerThread (Site1)] [ScriptMetadata] transactions metadata is missing in metadata file: /opt/HP/BPM/workspace/agent1/Site1/data/trans_t/1490787295002_7/1490787295001_1_17_oml_________/oml.metadata samples will not be sent for this script run.

    Can someone explain what is the problem..

  • so from the logs below I noticed you have a RSHEL platform. please note BPM can run only HTTP/WEB scripts in such operating system. 

    If you are using a HTTP/WEB protocol that please run the script manual from the workspace using a simple command line 

    The way to run it, is to browse to the script\RES folder open . Open the file cmdline.txt copy the content and run it using your own user. check the output.log results immediately after the run.

     

  • Hi

    I ran the script and checked the file output.txt and it contains following error,

    vuser_init.c(75): Error -27794: Could not resolve address of host ocsp.thawte.com       [MsgId: MERR-27794]
    Vuser Terminated.

    I had faced this issue in vuGen when I try to replay the script and I solved it in vuGen by defining Proxy in script properties.

    I then imported the script as ZIP file and imported it in BSM and then launched in BPM.

    However I am seeing the same error as received in vuGen.

    Do I need to define any proxy at BSM/BPM level to resolve this issue.