VMware {code} Community
umaparvathy
Enthusiast
Enthusiast
Jump to solution

converter SDK 404 error

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

79 Replies
POCEH
VMware Employee
VMware Employee
Jump to solution

Look at the function checkCertificate

0 Kudos
umaparvathy
Enthusiast
Enthusiast
Jump to solution

convert operation has install agent . so i've used convert operation instead of query source. query source funtion didn't handle installagent step in the converterOperation.java file.

It tries to install agent , there will not be any thumbprint, i didn't provide ssl thumbprint in the properties file.

when i trigger it , it tries to install the agent on the windows machine, when it's 1% , it failed with a error as "FAILED: A file I/O error occurred while accesing".

bash-4.2$ java -cp $LOCALCLASSPATH SubmitWinP2VJob/Program converterip  user pwd convert_p2v.properties

null

Agent isn't installed on source machine. Trying to install agent...

Conversion Job Id = job-2 created sucessfully.

PFA:  worker log,  server log,  and properties file.

0 Kudos
POCEH
VMware Employee
VMware Employee
Jump to solution

Check the logs in Agent's machine for details.

0 Kudos
umaparvathy
Enthusiast
Enthusiast
Jump to solution

Here is the source machine agent log.

I assume it's not able to connect to esx host machine.  Please correct me if i'm wrong.

ping is working fine from source machine to vcenter but not the esx host.  Then how come conversion happened successfully via GUI  but not via SDK ?

how to enable proxy mode in the converter SDK . i could not see any property for that . is that reason for the failure ?

0 Kudos
POCEH
VMware Employee
VMware Employee
Jump to solution

Absolutely: Failed to connect to server esxhost1.com:902

Connection between source machine and ESX@902 is prerequisite.

Why you use 6.1.1? Should use latest 6.2

0 Kudos
umaparvathy
Enthusiast
Enthusiast
Jump to solution

how come manually via converter GUI it works but via SDK , it creates that issue.

Manually triggered via GUI. it created the VM and conversion went well.

but when i trigger via SDK, it failed with the same error.

how to resolve it.

the requirement is , per disk per partition.

the given source server is having two paritions  in a disk. so manually via GUI, i add a disk and move one partition from disk 1 to disk2.

In the properties file i did the same as for the creation of second disk , i gave sourceid as empty. and provided the second partition volumeid in the targetvolume to clone in the of the seconddisk.

am i missing something ?

0 Kudos
umaparvathy
Enthusiast
Enthusiast
Jump to solution

issue is resolved when useproxymode added in the properties file and in the buildCloningParams.

now job are created and sometimes it's completed successfully. Sometimes it says "A general error occurred and an existing connection was forcibly closed by the remote host".

why that error occurs?

PFA: The error image.

log error:

8-10-18T16:15:02.641+02:00 info vmware-converter-worker[04620] [Originator@6876 sub=task-15] Reusing existing VIM connection to vcenter2

2018-10-18T16:15:02.657+02:00 info vmware-converter-worker[04620] [Originator@6876 sub=task-15] GetManagedDiskName: Get virtual disk filebacking [ds3] testp2v_up_3/testp2v_up.vmdk

2018-10-18T16:15:02.657+02:00 info vmware-converter-worker[04620] [Originator@6876 sub=task-15] GetManagedDiskName: updating nfc port as 902

2018-10-18T16:15:02.657+02:00 info vmware-converter-worker[04620] [Originator@6876 sub=task-15] GetManagedDiskName: get protocol as vpxa-nfcssl

2018-10-18T16:15:02.657+02:00 info vmware-converter-worker[04620] [Originator@6876 sub=task-15] GetManagedDiskName: Get disklib file name as vpxa-nfcssl://[ds3] testp2v_up_3/testp2v_up.vmdk@esxhost2.com:902!52 25 d3 93 ae 06 08 6d-d6 c5 14 5c d6 c8 b7 f2

2018-10-18T16:15:03.938+02:00 info vmware-converter-worker[04620] [Originator@6876 sub=task-15] Reusing existing VIM connection to vcenter2

2018-10-18T16:15:03.954+02:00 info vmware-converter-worker[04620] [Originator@6876 sub=task-15] GetManagedDiskName: Get virtual disk filebacking [ds3] testp2v_up_3/testp2v_up_1.vmdk

2018-10-18T16:15:03.954+02:00 info vmware-converter-worker[04620] [Originator@6876 sub=task-15] GetManagedDiskName: updating nfc port as 902

2018-10-18T16:15:03.954+02:00 info vmware-converter-worker[04620] [Originator@6876 sub=task-15] GetManagedDiskName: get protocol as vpxa-nfcssl

2018-10-18T16:15:03.954+02:00 info vmware-converter-worker[04620] [Originator@6876 sub=task-15] GetManagedDiskName: Get disklib file name as vpxa-nfcssl://[ds3] testp2v_up_3/testp2v_up_1.vmdk@esxhost2.com:902!52 21 67 03 f1 8e 10 39-3f ff fb af a5 88 72 e4

2018-10-18T16:15:45.955+02:00 info vmware-converter-worker[04620] [Originator@6876 sub=task-15] Worker CloneTask updates, state: 1, percentage: 1, xfer rate (Bps): <unknown>

2018-10-18T16:15:45.955+02:00 info vmware-converter-worker[04620] [Originator@6876 sub=task-15] Worker CloneTask updates, state: 1, percentage: 1, xfer rate (Bps): 13392896

2018-10-18T16:16:00.987+02:00 info vmware-converter-worker[04620] [Originator@6876 sub=task-15] Worker CloneTask updates, state: 1, percentage: 2, xfer rate (Bps): 13392896

2018-10-18T16:16:00.987+02:00 info vmware-converter-worker[04620] [Originator@6876 sub=task-15] Worker CloneTask updates, state: 1, percentage: 2, xfer rate (Bps): 16558080

2018-10-18T16:16:11.956+02:00 info vmware-converter-worker[04620] [Originator@6876 sub=task-15] Worker CloneTask updates, state: 1, percentage: 3, xfer rate (Bps): 16558080

2018-10-18T16:16:11.956+02:00 info vmware-converter-worker[04620] [Originator@6876 sub=task-15] Worker CloneTask updates, state: 1, percentage: 3, xfer rate (Bps): 19429376

2018-10-18T16:16:41.597+02:00 info vmware-converter-worker[04620] [Originator@6876 sub=task-15] Worker CloneTask updates, state: 1, percentage: 4, xfer rate (Bps): 19429376

2018-10-18T16:16:41.597+02:00 info vmware-converter-worker[04620] [Originator@6876 sub=task-15] Worker CloneTask updates, state: 1, percentage: 4, xfer rate (Bps): 16307200

2018-10-18T16:16:47.863+02:00 error vmware-converter-worker[02476] [Originator@6876 sub=vmomi.soapStub[155]] Resetting stub adapter for server <cs p:06ed1ff0, TCP:x.x.x.x:9089> : service state request failed: class Vmacore::SystemException(An existing connection was forcibly closed by the remote host)

2018-10-18T16:16:47.863+02:00 warning vmware-converter-worker[02476] [Originator@6876 sub=vmomi.soapStub[155]] Terminating invocation: server=<cs p:06ed1ff0, TCP:x.x.x.x:9089>, moref=converter.agent.SysimgbaseProxy:SysimgbaseProxy{task=task-19}, method=setResponse

2018-10-18T16:17:08.895+02:00 warning vmware-converter-worker[03884] [Originator@6876 sub=Default] Failed to connect socket; <io_obj p:0x06d549f0, h:2912, <TCP '0.0.0.0:0'>, <TCP 'x.x.x.x:9089'>>, e: system:10060(A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond)

2018-10-18T16:17:08.895+02:00 error vmware-converter-worker[03884] [Originator@6876 sub=HttpConnectionPool-000000] [ConnectComplete] Connect failed to <cs p:06ed1ff0, TCP:x.x.x.x:9089>; cnx: (null), error: class Vmacore::SystemException(A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond)

2018-10-18T16:17:08.895+02:00 error vmware-converter-worker[04620] [Originator@6876 sub=task-15] TaskImpl has failed with Vmacore::Exception: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond

2018-10-18T16:17:08.895+02:00 info vmware-converter-worker[04620] [Originator@6876 sub=task-15] Worker CloneTask updates, state: 4, percentage: 4, xfer rate (Bps): 16307200

2018-10-18T16:17:08.895+02:00 info vmware-converter-worker[04620] [Originator@6876 sub=task-15] TargetVmManagerImpl::DeleteVM

2018-10-18T16:17:08.895+02:00 info vmware-converter-worker[04620] [Originator@6876 sub=task-15] Reusing existing VIM connection to vcenter2

2018-10-18T16:17:08.895+02:00 info vmware-converter-worker[04620] [Originator@6876 sub=task-15] Destroying vim.VirtualMachine:vm-12891 on vcenter2

2018-10-18T16:17:09.176+02:00 info vmware-converter-worker[04620] [Originator@6876 sub=task-15] WorkerConvertTask: Generating Agent Task bundle for task with id="task-19".

2018-10-18T16:17:12.535+02:00 info vmware-converter-worker[04620] [Originator@6876 sub=task-15] WorkerConvertTask: Retrieving agent task log bundle to "C:\windows\TEMP\vmware-temp\vmware-SYSTEM\agentTask-task-19-yxgntmss.zip".

2018-10-18T16:17:12.629+02:00 info vmware-converter-worker[04620] [Originator@6876 sub=task-15] WorkerConvertTask: Bundle successfully retrieved to "C:\windows\TEMP\vmware-temp\vmware-SYSTEM\agentTask-task-19-yxgntmss.zip".

2018-10-18T16:17:12.629+02:00 error vmware-converter-worker[04620] [Originator@6876 sub=Default] Task failed:

2018-10-18T16:17:12.629+02:00 info vmware-converter-worker[04620] [Originator@6876 sub=task-15] Scheduled timer canceled, StopKeepAlive succeeds

2018-10-18T16:17:12.629+02:00 info vmware-converter-worker[04620] [Originator@6876 sub=Default] Task Completed : task-15

2018-10-18T16:17:12.629+02:00 info vmware-converter-worker[04620] [Originator@6876 sub=ThreadPool] Thread delisted

2018-10-18T16:17:12.645+02:00 info vmware-converter-worker[03492] [Originator@6876 sub=Default] [Converter.Worker.DiagnosticManagerImpl][task-15] Generating task log bundle.

0 Kudos
POCEH
VMware Employee
VMware Employee
Jump to solution

Should check on Agent's side, seems that agent crashes...

Proxy mode is special mode when source computer doesn't see ESX/VC, but it's slow and into LAN environment I'll recommend not to use it.

Check if ESX is registered in VC with IP instead of FQDN, or ensure source machine can see ESX (you can add a record in /etc/hosts file for example)

HTH

0 Kudos
umaparvathy
Enthusiast
Enthusiast
Jump to solution

Attached the log file is previous reply post. seems like when stub adpter extends. it creates that issue. how can that be solved.

0 Kudos
POCEH
VMware Employee
VMware Employee
Jump to solution

Look for .dmp files in agent's machine.

What about newest version of converter?

0 Kudos
umaparvathy
Enthusiast
Enthusiast
Jump to solution

The team is not ready to upgrade for 6.2 . they told that the stable version is 6.1.

do i have to remove .dmp file in source machine ?

There is no .dmp files in source machine

0 Kudos
POCEH
VMware Employee
VMware Employee
Jump to solution

I have no idea why the 6.2.1 is not stable but there are fixes and improvements that you miss with older versions. The SDK remains same.

0 Kudos
umaparvathy
Enthusiast
Enthusiast
Jump to solution

After modifying the SDK code for linux and windows . now when i do with linux properties file , i getting some error.

if i give target.managed.address=vcenter01.com , it throws the error as

Unable to contact the specified host 'vcenter01.com '. The host might not be available on the network, there might be a network configuration problem, or the management services on this host are not responding.</vim25:localizedMessage></vim25:faultCause>

if i change the vcenter01.com to ip, it gives the error as

A file I/O error occurred while accessing ''.

here is the error for the log

2018-10-23T16:24:48.605+02:00 warning vmware-converter-worker[02808] [Originator@6876 sub=Default] [,0] [NFC ERROR] NfcNewAuthdConnectionEx: Failed to connect to peer. Error: Host address lookup for server esx1.com failed: No such host is known

2018-10-23T16:24:48.605+02:00 info vmware-converter-worker[02808] [Originator@6876 sub=Default] Sysimgbase_DiskLib_OpenWithPassPhrase failed with 'NBD_ERR_NETWORK_CONNECT' (error code:2338)

2018-10-23T16:24:48.605+02:00 info vmware-converter-worker[02808] [Originator@6876 sub=Default] Error 2338 opening disk vpxa-nfcssl://[ds01] HRFPLX01_FULL/HRFPLX01_FULL.vmdk@esx1.com:902!52 40 99 27 3d df 15 49-02 a1 07 b1 c9 78 1e c9.

2018-10-23T16:24:48.605+02:00 warning vmware-converter-worker[02808] [Originator@6876 sub=Default] ERROR 2338 opening disk disk-2000.

0 Kudos
POCEH
VMware Employee
VMware Employee
Jump to solution

As simple as: Failed to connect to peer. Error: Host address lookup for server esx1.com failed: No such host is known.

VC@443 and ESX@902 must be visible from Converter Agent and Converter Worker, see prerequisites.

0 Kudos
umaparvathy
Enthusiast
Enthusiast
Jump to solution

For the linux physical server conversion, when i trigger via SDK , it says  the below error . But after some time , there is a job which is running in converter machine. how to resolve the read time out issue and get the job id ?

Even the triggered job fails at 97% with a error as "Root not found" .  However root user exists on the source machine and able to ssh as root user. permit root login and lvm filter volumes are intact.

worker logs also says "root not found". there is no much information . Smiley Sad

how to solve the issue.

"failed to exeucte the convert operation from the properties file".

AxisFault: Read time out error  .

0 Kudos
POCEH
VMware Employee
VMware Employee
Jump to solution

Linux conversion is quite different from Windows conversion, check the manual, at least - there is no incremental sync, parameters are in different structures, volumes and disks are transferred differently, etc.

I do not expect to cover Windows and Linux conversion via SDK without some if/else clauses and/or additional coding.

Check if concrete Linux is converted successfully via GUI and if conversion is ok - check from logs for different parameters.

HTH

0 Kudos
umaparvathy
Enthusiast
Enthusiast
Jump to solution

i'm not using php page. it's a python script via subprocess i'm calling the java sdk .

0 Kudos
umaparvathy
Enthusiast
Enthusiast
Jump to solution

manually it throws error as

"The Helper virtual machine did not boot up"

0 Kudos
POCEH
VMware Employee
VMware Employee
Jump to solution

That's very strange. Is there something special with this machine?

Helper VM is your destination VM booted from ISO - I have no idea why the machine can't start - check the permissions of VC's account used to log in.

0 Kudos
apparently_kevi
Contributor
Contributor
Jump to solution

test
0 Kudos