1 2 3 Previous Next 79 Replies Latest reply on Apr 30, 2019 6:46 PM by apparently_kevin

    converter SDK 404 error

    umaparvathy Enthusiast

      while calling the sdk program , it throws 404 error. when i try to access the url https://<converterserver>:443/converter/sdk/ , it shows 404 not found in the browser as well. 

      How to enable the sdk webservice URL in convertermachine

      $ java -cp $LOCALCLASSPATH SubmitWinP2VJob/Program 10.x.x.x service_xxx xxxx submitjob.properties

      Failed to Connect to Converter Server.

      (404)Not Found

      AxisFault

      faultCode: {http://xml.apache.org/axis/}HTTP

      faultSubcode:

      faultString: (404)Not Found

      faultActor:

      faultNode:

      faultDetail:

              {}:return code:  404

        • 1. Re: converter SDK 404 error
          POCEH Master
          VMware Employees

          Few possible situations (and fixes):

          - there is no Converter server running on this machine - check for Converter installed and Converter server is running

          - 443 is blocked by Converter server or your machine - unblock port 443

          - Converter is installed in "Local mode" - reinstall or modify Converter and select "Client-server mode"

          HTH

          • 2. Re: converter SDK 404 error
            umaparvathy Enthusiast
            converter server is running on the machine.  443 is allowed from my machine and converter machine also .  converter is installed with client-server mode.  In browser https://<ip>:443/ shows the vmware converter welcome page .  but https://<ip>:443/converter/sdk throws error.
            • 3. Re: converter SDK 404 error
              POCEH Master
              VMware Employees

              Can you connect to this <IP> from Converter GUI, not to Local server but to Converter server? If so, the problem is in sample, if not - the problem is one of previous ones.

              HTH

              • 4. Re: converter SDK 404 error
                umaparvathy Enthusiast

                converter SDK throws the below SSH error. attached sample properties , here i've removed the servername, username and password.  manually i can ssh with the mentioned user to the source server from my linux machine.

                Executing operation 'QuerySource' from properties file 'xxxx.properties'

                Failed to execute operation 'QuerySource' from file 'xxxx.properties'

                null

                AxisFault

                 faultCode: ServerFaultCode

                 faultSubcode:

                 faultString: Unable to SSH to the source machine. Check if a firewall is blocking access to the SSH daemon on the source machine.

                 faultActor:

                 faultNode:

                 faultDetail:

                        {urn:converter}ConverterSysinfoQueryConnTimedOutFaultFault:<description>[Converter Agent SysinfoQuery] ssh connection timed out</description>

                 

                Unable to SSH to the source machine. Check if a firewall is blocking access to the SSH daemon on the source machine.

                 
                Executing operation 'QuerySource' from properties file 'hrfplx01.properties'
                Failed to execute operation 'QuerySource' from file 'hrfplx01.properties'
                null
                AxisFault
                 faultCode: ServerFaultCode
                 faultSubcode:
                 faultString: Unable to SSH to the source machine. Check if a firewall is blocking access to the SSH daemon on the source machine.
                 faultActor:
                 faultNode:
                 faultDetail:
                        {urn:converter}ConverterSysinfoQueryConnTimedOutFaultFault:<description>[Converter Agent SysinfoQuery] ssh connection timed out</description>
                 
                Unable to SSH to the source machine. Check if a firewall is blocking access to the SSH daemon on the source machine.
                • 5. Re: converter SDK 404 error
                  POCEH Master
                  VMware Employees

                  I'm confused - what's happens with 404?

                  This is completely different error: Windows machine with Converter can not connect to your live Linux machine via SSH. Check not to set port, as well to test SSH from Windows machine to Linux source machine.

                  HTH

                  • 6. Re: converter SDK 404 error
                    umaparvathy Enthusiast
                    The url in browser shows "page cannot be loaded" but java program executes and it gave unable to ssh .  manually from converter machine , it was not able to ssh . 
                    • 7. Re: converter SDK 404 error
                      POCEH Master
                      VMware Employees

                      So read the manual in order to do required prerequisites for conversions.

                      • 8. Re: converter SDK 404 error
                        umaparvathy Enthusiast

                        Thanks . Fixed the ssh issue. changed the vlan and subnet in converter machine . now it's able to do query source . But failed to do convert operation . i didn't provide the thumbprint value.  attaching the used properties file

                         

                        It prompts for "proceed with connecting to the destination server" ?

                         

                        When provided input as "N"

                         

                        Executing operation 'Convert' from properties file 'xxxx.properties'

                         

                         

                         

                        Live source machine certificate validation failed.

                         

                        Live source machine: x.x.x.x

                         

                        Certificate thumbprint: 0F:8D:AE:64:F1:35:C1:B6:5F:41:AD:9C:F4:E8:E0:55:32:EF:3F:38

                         

                        Proceed with connecting to the destination server?

                         

                        (Enter [y]es, [n]o or [c]ancel): > n

                         

                         

                         

                        Destination vCenter or ESX server certificate validation failed.

                         

                        Destination vCenter or ESX server: vcenter_name

                         

                        Certificate thumbprint: 0F:8D:AE:64:F1:35:C1:B6:5F:41:AD:9C:F4:E8:E0:55:32:EF:3F:38

                         

                        Proceed with connecting to the destination server?

                         

                        (Enter [y]es, [n]o or [c]ancel): > n

                         

                        Failed to execute operation 'Convert' from file 'xxxx.properties'

                         

                        null

                         

                        AxisFault

                         

                        faultCode: ServerFaultCode

                         

                        faultSubcode:

                         

                        faultString: A specified parameter was not correct:

                         

                        faultActor:

                         

                        faultNode:

                         

                        faultDetail:

                         

                                {urn:converter}InvalidArgumentFault:<vim25:faultCause><vim25:fault xsi:type="ConverterSSLVerificationFault"><selfSigned>false</selfSigned><thumbprint>0F:8D:AE:64:F1:35:C1:B6:5F:41:AD:9C:F4:E8:E0:55:32:EF:3F:38</thumbprint><msg>Verification parameters:

                         

                        PeerThumbprint: 0F:8D:AE:64:F1:35:C1:B6:5F:41:AD:9C:F4:E8:E0:55:32:EF:3F:38

                         

                        ExpectedThumbprint:

                         

                        ExpectedPeerName: vcentername

                         

                        The remote host certificate has these problems:

                         

                         

                         

                        * The host certificate chain is incomplete.

                         

                         

                         

                         

                         

                        When provided input as "Y"

                         

                        Executing operation 'Convert' from properties file 'xxxx.properties'

                         

                         

                         

                        Live source machine certificate validation failed.

                         

                        Live source machine: x.x.x.x

                         

                        Certificate thumbprint: 0F:8D:AE:64:F1:35:C1:B6:5F:41:AD:9C:F4:E8:E0:55:32:EF:3F:38

                         

                        Proceed with connecting to the destination server?

                         

                        (Enter [y]es, [n]o or [c]ancel): > Y

                         

                        Failed to execute operation 'Convert' from file 'xxxx.properties'

                         

                        null

                         

                        AxisFault

                         

                        faultCode: ServerFaultCode

                         

                        faultSubcode:

                         

                        faultString: A specified parameter was not correct:

                         

                        faultActor:

                         

                        faultNode:

                         

                        faultDetail:

                         

                                {urn:converter}InvalidArgumentFault:<vim25:faultCause><vim25:fault xsi:type="ConverterSysinfoQueryBadThumbprintFault"><description>[Converter Agent SysinfoQuery] ssh connection to host x.x.x.x failed because the host thumbprint was different: client: 0F:8D:AE:64:F1:35:C1:B6:5F:41:AD:9C:F4:E8:E0:55:32:EF:3F:38, host: c0:9d:8f:09:37:b9:ac:54:6d:38:a0:b3:54:a9:f9:a8</description><hostname>x.x.x.x</hostname><thumbprint>c0:9d:8f:09:37:b9:ac:54:6d:38:a0:b3:54:a9:f9:a8</thumbprint></vim25:fault><vim25:localizedMessage>Unable to connect via SSH to the source machine 'x.x.x.x' because the host thumbprint 'c0:9d:8f:09:37:b9:ac:54:6d:38:a0:b3:54:a9:f9:a8' was not accepted.</vim25:localizedMessage></vim25:faultCause>

                         

                         

                         

                        A specified parameter was not correct:

                        Executing operation 'Convert' from properties file 'xxxx.properties'

                         

                         

                        Live source machine certificate validation failed.

                         

                        Live source machine: x.x.x.x

                         

                        Certificate thumbprint: 0F:8D:AE:64:F1:35:C1:B6:5F:41:AD:9C:F4:E8:E0:55:32:EF:3F:38

                         

                        Proceed with connecting to the destination server?

                         

                        (Enter [y]es, [n]o or [c]ancel): > n

                         

                         

                        Destination vCenter or ESX server certificate validation failed.

                         

                        Destination vCenter or ESX server: vcenter_name

                         

                        Certificate thumbprint: 0F:8D:AE:64:F1:35:C1:B6:5F:41:AD:9C:F4:E8:E0:55:32:EF:3F:38

                         

                        Proceed with connecting to the destination server?

                         

                        (Enter [y]es, [n]o or [c]ancel): > n

                         

                        Failed to execute operation 'Convert' from file 'hrfplx01.properties'

                         

                        null

                         

                        AxisFault

                         

                        faultCode: ServerFaultCode

                         

                        faultSubcode:

                         

                        faultString: A specified parameter was not correct:

                         

                        faultActor:

                         

                        faultNode:

                         

                        faultDetail:

                         

                                {urn:converter}InvalidArgumentFault:<vim25:faultCause><vim25:fault xsi:type="ConverterSSLVerificationFault"><selfSigned>false</selfSigned><thumbprint>0F:8D:AE:64:F1:35:C1:B6:5F:41:AD:9C:F4:E8:E0:55:32:EF:3F:38</thumbprint><msg>Verification parameters:

                         

                        PeerThumbprint: 0F:8D:AE:64:F1:35:C1:B6:5F:41:AD:9C:F4:E8:E0:55:32:EF:3F:38

                         

                        ExpectedThumbprint:

                         

                        ExpectedPeerName: vcentername

                         

                        The remote host certificate has these problems:

                         

                         

                        * The host certificate chain is incomplete.

                         

                        • 9. Re: converter SDK 404 error
                          POCEH Master
                          VMware Employees

                          Ok, in your case there are 3 different thumbprints you'll need to do conversion:

                          - converter's server thumbprint to connect to server and execute commands.

                          - source machine's thumbprint to connect to source machine to query and convert it.

                          - VC/ESX's thumbprint to create destination VM

                          While the Converter's thumbprint are handled by SDK, other you'll need to fill in .properties file:

                          source.physical.thumbprint=

                          target.managed.thumbprint=

                          Of course you can extend the Java code to handle all cases you need.

                          HTH

                          • 10. Re: converter SDK 404 error
                            umaparvathy Enthusiast

                            i've filled the source server thumbprint. even then it failed as client thumbprint is not accepted.

                             

                            Here is the properties snippet.

                             

                            operation.count=1

                            operation#0=Convert

                            source.type=Physical

                            ; Physical source

                            source.physical.address=x.x.x.x;

                            source.physical.username=user

                            source.physical.password=*****

                            source.physical.clientPrivateKey= ;

                            source.physical.ostype=linuxOs ;

                            source.physical.agentport=9089;

                            source.physical.thumbprint=c0:9d:8f:09:37:b9:ac:54:6d:38:a0:b3:54:a9:f9:a8

                            source.physical.reboot=false

                             

                             

                            bash-4.2$ java -cp $LOCALCLASSPATH SubmitWinP2VJob/Program <coverter IP > <username> < password>  xxxx.properties

                            Executing operation 'Convert' from properties file 'xxxx.properties'

                             

                             

                            Live source machine certificate validation failed.

                            Live source machine: x.x.x.x

                            Certificate thumbprint: 0F:8D:AE:64:F1:35:C1:B6:5F:41:AD:9C:F4:E8:E0:55:32:EF:3F:38

                            Proceed with connecting to the destination server?

                            (Enter [y]es, [n]o or [c]ancel): > y

                            Failed to execute operation 'Convert' from file 'xxxxx.properties'

                            null

                            AxisFault

                            faultCode: ServerFaultCode

                            faultSubcode:

                            faultString: A specified parameter was not correct:

                            faultActor:

                            faultNode:

                            faultDetail:

                                    {urn:converter}InvalidArgumentFault:<vim25:faultCause><vim25:fault xsi:type="ConverterSysinfoQueryBadThumbprintFault"><description>[Converter Agent SysinfoQuery] ssh connection to host x.x.x.x failed because the host thumbprint was different: client: 0F:8D:AE:64:F1:35:C1:B6:5F:41:AD:9C:F4:E8:E0:55:32:EF:3F:38, host: c0:9d:8f:09:37:b9:ac:54:6d:38:a0:b3:54:a9:f9:a8</description><hostname>x.x.x.x</hostname><thumbprint>c0:9d:8f:09:37:b9:ac:54:6d:38:a0:b3:54:a9:f9:a8</thumbprint></vim25:fault><vim25:localizedMessage>Unable to connect via SSH to the source machine 'x.x.x.x' because the host thumbprint 'c0:9d:8f:09:37:b9:ac:54:6d:38:a0:b3:54:a9:f9:a8' was not accepted.</vim25:localizedMessage></vim25:faultCause>

                            • 11. Re: converter SDK 404 error
                              POCEH Master
                              VMware Employees

                              Few options for you:

                              - try the conversion with GUI from Windows machine and check all tumbprints - if they not match to yours then you'll need to correct them (don't use "local server" connect option).

                              - as your scenario is not tested, you'll need to fix source somehow.

                              HTH

                              • 12. Re: converter SDK 404 error
                                umaparvathy Enthusiast

                                With the source thumbprint  query source gave result successfully with the source thumbprint (c0:9d:8f:09:37:b9:ac:54:6d:38:a0:b3:54:a9:f9:a8)  but covert only throws the above error message. 

                                • 13. Re: converter SDK 404 error
                                  POCEH Master
                                  VMware Employees

                                  Try same sample from Windows with Converter. If not succeeded then problem is in your settings (.properties). If succeeded then you'll need to debug and fix SDK code...

                                  • 14. Re: converter SDK 404 error
                                    umaparvathy Enthusiast

                                    thanks . i tried the windows gui converter and explored the keys from the diagnostics logs. now it throws error as  below.  do i have to key in the esx host . how to select the esx host. there are more than 4 esx host in the VC for the particular DC .

                                    ; Managed target

                                    target.managed.address=vcenter name; Target ESX or vCenter server name or IP, e.g 10.0.0.4

                                    target.managed.thumbprint=0F:8D:AE:64:F1:35:C1:B6:5F:41:AD:9C:F4:E8:E0:55:32:EF:3F:38

                                    target.managed.username=user

                                    target.managed.password=********

                                    ; MoId of host as seen in MOB, e.g. 'host-2'. Leave empty for default

                                    target.managed.host=

                                    ; MoId of resource pool as seen in MOB, e.g. 'resgroup-1'. Leave empty for default

                                    target.managed.resourcepool=

                                    ; MoId of cluster compute resource as seen in MOB, e.g. 'domain-c4'. Leave empty for default

                                    target.managed.cluster= cluster-moid

                                    ; MoId of VM folder as seen in MOB, e.g. 'group-v3'. Leave empty for default

                                    target.managed.vmfolder=

                                    ====================

                                    null

                                    AxisFault

                                     faultCode: ServerFaultCode

                                     faultSubcode:

                                     faultString: A specified parameter was not correct:

                                     faultActor:

                                     faultNode:

                                     faultDetail:

                                            {urn:converter}InvalidArgumentFault:<vim25:faultCause><vim25:fault xsi:type="ConverterImportDestinationNoHostFault"><target/></vim25:fault><vim25:localizedMessage>Unable to find an ESX host for the destination virtual machine.</vim25:localizedMessage></vim25:faultCause>

                                     
                                    null
                                    AxisFault
                                     faultCode: ServerFaultCode
                                     faultSubcode:
                                     faultString: A specified parameter was not correct:
                                     faultActor:
                                     faultNode:
                                     faultDetail:
                                            {urn:converter}InvalidArgumentFault:<vim25:faultCause><vim25:fault xsi:type="ConverterImportDestinationNoHostFault"><target/></vim25:fault><vim25:localizedMessage>Unable to find an ESX host for the destination virtual machine.</vim25:localizedMessage></vim25:faultCause>
                                    1 2 3 Previous Next