7 Replies Latest reply on Aug 26, 2016 6:39 AM by Santhosh Kurimilla

    BSA Adapter fails to start

      Share This:

      Experts,

      Can someone please help me in understanding the below log message? It seems the BSA Adapter gets started then, suddenly move to Fault state. But, why?

       

      26 Aug 2016 05:54:58,307 [Thread=AMP - Library Manager - CDP Activation - 26] INFO  AbstractAdapter [PeerName=PriCDP]  [AdapterName=BSA on CDP]  Adapter [BSA on CDP] state transition [stopped] -> [running]

      26 Aug 2016 05:54:58,307 [Thread=AMP - Library Manager - CDP Activation - 26] INFO  AbstractAdapter [PeerName=PriCDP]  [AdapterName=BSA on CDP]  Adapter [BSA on CDP] state transition [running] -> [running]

      26 Aug 2016 05:54:58,307 [Thread=AMP - Library Manager - CDP Activation - 26] INFO  AbstractAdapter [PeerName=PriCDP]  [AdapterName=BSA on CDP]  Adapter [BSA on CDP] state transition [running] -> [running]

      26 Aug 2016 05:54:59,309 [Thread=Thread-131061] WARN  PeerLocation    [PeerName=PriCDP]  [AdapterName=BSA on CDP]  Encountered a non-null peer name with a non-PEER Location. Note that this configuration is not valid and is tolerated only because of legacy concerns.

      26 Aug 2016 05:54:59,314 [Thread=[Thread: Thread-131061] OStreamHandler] ERROR OutputStreamHandler [PeerName=PriCDP]  [AdapterName=BSA on CDP]  [Thread: Thread-131061] OStreamHandler Exception : [Thread: Thread-131061] OStreamHandlerBroken pipe

      java.io.IOException: Broken pipe

              at java.io.FileOutputStream.writeBytes(Native Method)

              at java.io.FileOutputStream.write(FileOutputStream.java:326)

              at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:82)

              at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:140)

              at sun.nio.cs.StreamEncoder.implFlush(StreamEncoder.java:297)

              at sun.nio.cs.StreamEncoder.flush(StreamEncoder.java:141)

              at java.io.OutputStreamWriter.flush(OutputStreamWriter.java:229)

              at com.realops.adapter.terminal.connection.OutputStreamHandler.run(OutputStreamHandler.java:73)

      26 Aug 2016 05:54:59,315 [Thread=[Thread: Thread-131061] InputStream] WARN  CliStreamHandler [PeerName=PriCDP]  [AdapterName=BSA on CDP]  Input stream became unavailable while processing new line!

      26 Aug 2016 05:54:59,336 [Thread=http-nio-38080-exec-9] WARN  TerminalConfig  [PeerName=PriCDP]  [AdapterName=BSA on CDP]  User name is not specified.

      26 Aug 2016 05:54:59,336 [Thread=http-nio-38080-exec-9] WARN  TerminalConfig  [PeerName=PriCDP]  [AdapterName=BSA on CDP]  Target is not specified

      26 Aug 2016 05:54:59,336 [Thread=http-nio-38080-exec-9] WARN  TerminalConfig  [PeerName=PriCDP]  [AdapterName=BSA on CDP]  Password is not specified.

        • 1. Re: BSA Adapter fails to start
          Aryan Anantwar

          Hi Santhosh,

           

          can you share BSA adapter configuration, AO Version, Content version, and some more info from Grid.log related to error.

           

          Regards,

          Aryan Anantwar

          • 2. Re: BSA Adapter fails to start
            1. Exact version of your BSA Adapter - bmc-adapter-bmc-server-automation; 20.15.03.00; rev    2
            2. Version of BAO Platform – 7.8.02
            3. Version of BSA Appserver/NSH Shell/console – 8.7.00.280
            4. Provide us the complete BSA adapter configuration from the Grid Manager. - Copied

             

            <config>

              <initial-command>

                <command>nsh</command>

              </initial-command>

              <prompt>%</prompt>

              <executable-directory>/bao/bladelogic/NSH/bin</executable-directory>

              <script-directory>/bao/BSAScripts</script-directory>

              <script-executable>nsh</script-executable>

              <jython-executable>bljython</jython-executable>

              <authentication-mechanism>SRP</authentication-mechanism>

              <profile-name>SRP</profile-name>

              <srp-user-name>santy</srp-user-name>

              <srp-password>

               

                <EncryptedData xmlns="http://www.w3.org/2001/04/xmlenc#" Type="http://www.w3.org/2001/04/xmlenc#Content">

                  <CipherData>

                    <CipherValue>li/3G8WtFZU7fCfPJ7V8WQ==</CipherValue>

                  </CipherData>

                </EncryptedData>

              </srp-password>

              <blsso-cache-refresh-interval>9</blsso-cache-refresh-interval>

              <blsso-cache-recovery-interval-in-minutes>5</blsso-cache-recovery-interval-in-minutes>

              <install-certificate>yes</install-certificate>

              <install-certificate-prompt>?[yes|no]:yes</install-certificate-prompt>

              <connection-ttl>60</connection-ttl>

              <timeout-secs>60</timeout-secs>

              <is-cli-tunnel-enabled>false</is-cli-tunnel-enabled>

              <log-file-size>4MB</log-file-size>

              <log-file-max-backup-index>10</log-file-max-backup-index>

              <log-file-append>true</log-file-append>

              <log-level>info</log-level>

            </config>

            • 3. Re: BSA Adapter fails to start

              For grid.log, I have copied the lines which were entries exactly when I was configuring/enabling the adapter.

              • 4. Re: BSA Adapter fails to start

                Btw, Thanks for the response, Aryan.!

                 

                I also tried other way around, to configure AO from BSA Console. It always fails with the error message Invalid AO Server IP / Port.

                 

                AppServer log entries:

                [26 Aug 2016 06:20:08,597] [Client-Connections-Thread-2] [ERROR] [myId@DOMAIN:BLAdmins:<IP>] [Client] The following WSDL exception occurred: WSDLException: faultCode=WSDL4JWrapper : : javax.wsdl.WSDLException: WSDLException: faultCode=WSDL4JWrapper : : java.net.SocketException: Unexpected end of file from server

                [26 Aug 2016 06:20:08,597] [Client-Connections-Thread-2] [ERROR] [myId@DOMAIN:BLAdmins:<IP>] [Client] Error Exception occured in AOStubFactory class at method validateConnection

                [26 Aug 2016 06:20:08,597] [Client-Connections-Thread-2] [ERROR] [myId@DOMAIN:BLAdmins:<IP>] [Client] Invalid AO Server IP / Port.

                com.bladelogic.om.infra.erba.exceptions.AOConnectionException: Invalid AO Server IP / Port.

                        at com.bladelogic.om.infra.model.job.workflow.AOStubFactory.checkConnection(AOStubFactory.java:148)

                • 5. Re: BSA Adapter fails to start
                  Deepak Bhola

                  For the original issue related to BSA adapter in fault state, based on the error it seems the nsh not installed properly, please reinstall the nsh followed by AO peer restart.

                  • 6. Re: BSA Adapter fails to start

                    Yes Deepak, it seems to be. I have just noticed an error message running the commands on NSH.Let me fix these errors first. Thanks for the response.!

                     

                    CDPSERVER# ps -aef | grep rsc

                    ps: error while loading shared libraries: libblxerces-c-3.1.so: cannot open shared object file: No such file or directory

                    • 7. Re: BSA Adapter fails to start

                      The issue has been resolved after I fixed the NSH issues on my primary CDP.