We're attempting to migrate our vSphere client extension to run on version 6.7. Today I noticed that our virgo log is full of this type of stacktrace and was wondering if anybody has a solution for this?
Thank you,
Jesse
[2018-09-14T20:01:50.222Z] [WARN ] aggregation-workerthread-2 com.vmware.ph.upload.service.UploadServiceImpl Failed to get upload details from VMware server during attempt 1 of 3; Reason: java.net.UnknownHostException: vcsa.vmware.com.
For now there are no consequences - I'll try again.
[2018-09-14T20:01:50.233Z] [WARN ] aggregation-workerthread-2 com.vmware.ph.upload.service.UploadServiceImpl Failed to get upload details from VMware server during attempt 2 of 3; Reason: java.net.UnknownHostException: vcsa.vmware.com.
For now there are no consequences - I'll try again.
[2018-09-14T20:01:50.244Z] [WARN ] aggregation-workerthread-2 com.vmware.ph.upload.service.UploadServiceImpl Failed to get upload details from VMware server during attempt 3 of 3; Reason: java.net.UnknownHostException: vcsa.vmware.com.
For now there are no consequences - I'll try again.
[2018-09-14T20:01:50.245Z] [ERROR] aggregation-workerthread-2 com.vmware.ph.upload.service.UploadServiceImpl Failed 3 of 3 attempts to get upload details from VMware server. The reason for the last failure was (enable 'debug' level logging to see the stack trace for every failed attempt): java.net.UnknownHostException: vcsa.vmware.com. com.vmware.ph.upload.exception.ConnectionException: java.net.UnknownHostException: vcsa.vmware.com
at com.vmware.ph.upload.rest.PhRestClientImpl.sendUploadRequest(PhRestClientImpl.java:212)
at com.vmware.ph.upload.service.UploadServiceImpl$4.call(UploadServiceImpl.java:239)
at com.vmware.ph.upload.service.UploadServiceImpl$4.call(UploadServiceImpl.java:235)
at com.vmware.ph.upload.service.UploadServiceImpl.executeWithRetry(UploadServiceImpl.java:261)
at com.vmware.ph.upload.service.UploadServiceImpl.getUploadDetails(UploadServiceImpl.java:235)
at com.vmware.ph.upload.service.UploadServiceImpl.upload(UploadServiceImpl.java:84)
at com.vmware.ph.upload.service.UploadServiceImpl.upload(UploadServiceImpl.java:77)
at com.vmware.ph.client.api.impl.aggregation.Aggregator$UploadRunner.doUpload(Aggregator.java:307)
at com.vmware.ph.client.api.impl.aggregation.Aggregator$UploadRunner.tryToUpload(Aggregator.java:269)
at com.vmware.ph.client.api.impl.aggregation.Aggregator.tryToUpload(Aggregator.java:130)
at com.vmware.ph.client.api.impl.aggregation.Aggregator.add(Aggregator.java:114)
at com.vmware.ph.client.api.impl.PhClientImpl$2.run(PhClientImpl.java:301)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.net.UnknownHostException: vcsa.vmware.com
at java.net.InetAddress.getAllByName0(InetAddress.java:1280)
at java.net.InetAddress.getAllByName(InetAddress.java:1192)
at java.net.InetAddress.getAllByName(InetAddress.java:1126)
at org.apache.http.impl.conn.SystemDefaultDnsResolver.resolve(SystemDefaultDnsResolver.java:45)
at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:111)
at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:353)
at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:380)
at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:236)
at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:184)
at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:88)
at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110)
at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:184)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:107)
at com.vmware.ph.upload.rest.PhRestClientImpl.sendUploadRequest(PhRestClientImpl.java:188)
... 16 common frames omitted
[2018-09-14T20:01:50.245Z] [ERROR] aggregation-workerthread-2 c.vmware.ph.client.api.impl.aggregation.Aggregator$UploadRunner There was an error during the upload and the aggregated data is not uploaded.There will be other attemts to upload the same data.If however this data is not uploaded for such a period that a lot of new data is aggregated, then the old data will be discarded.If this error persists, it may mean that the PhoneHome upload server is not working,or that there is no outbound connectivity to the PhoneHome upload server.Please contact the PhoneHome team for assistance. com.vmware.ph.upload.exception.ConnectionException: java.net.UnknownHostException: vcsa.vmware.com
at com.vmware.ph.upload.rest.PhRestClientImpl.sendUploadRequest(PhRestClientImpl.java:212)
at com.vmware.ph.upload.service.UploadServiceImpl$4.call(UploadServiceImpl.java:239)
at com.vmware.ph.upload.service.UploadServiceImpl$4.call(UploadServiceImpl.java:235)
at com.vmware.ph.upload.service.UploadServiceImpl.executeWithRetry(UploadServiceImpl.java:261)
at com.vmware.ph.upload.service.UploadServiceImpl.getUploadDetails(UploadServiceImpl.java:235)
at com.vmware.ph.upload.service.UploadServiceImpl.upload(UploadServiceImpl.java:84)
at com.vmware.ph.upload.service.UploadServiceImpl.upload(UploadServiceImpl.java:77)
at com.vmware.ph.client.api.impl.aggregation.Aggregator$UploadRunner.doUpload(Aggregator.java:307)
at com.vmware.ph.client.api.impl.aggregation.Aggregator$UploadRunner.tryToUpload(Aggregator.java:269)
at com.vmware.ph.client.api.impl.aggregation.Aggregator.tryToUpload(Aggregator.java:130)
at com.vmware.ph.client.api.impl.aggregation.Aggregator.add(Aggregator.java:114)
at com.vmware.ph.client.api.impl.PhClientImpl$2.run(PhClientImpl.java:301)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.net.UnknownHostException: vcsa.vmware.com
at java.net.InetAddress.getAllByName0(InetAddress.java:1280)
at java.net.InetAddress.getAllByName(InetAddress.java:1192)
at java.net.InetAddress.getAllByName(InetAddress.java:1126)
at org.apache.http.impl.conn.SystemDefaultDnsResolver.resolve(SystemDefaultDnsResolver.java:45)
at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:111)
at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:353)
at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:380)
at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:236)
at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:184)
at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:88)
at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110)
at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:184)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:107)
at com.vmware.ph.upload.rest.PhRestClientImpl.sendUploadRequest(PhRestClientImpl.java:188)
... 16 common frames omitted
Hi,
As you correctly pointed out this stacktrace is due to the lack of connectivity. In that sense, it is expected and not an error so you can just ignore it.
This is a user setting so you can also disable this feature if you opt out of the Customer Experience Improvement Program. This is done through the vSphere Client from Administration -> Customer Experience Improvement Program screen.
Cheers,
Vladi
HI,
Seems like these errors are not connected to your plugin. It may be an environement issue - such as a mismatch between vSphere Client and vCenter Server versions, JAVA version etc.
Could you provide more information about the version and type of your vSphere Client and the vCenter Server that the client is registered with as well as your JAVA version.
In addition, do you experience any problems with deployment/functionality of your plugin on a 6.7 environment?
Best Regards,
Denis
Thank you for your response. Both vSphere Client and vCenter server versions are 6.7. Java version is 1.8. Our plugin seems to be functioning fine, no noticeable regressions at this point in our testing.
Am I correct in saying that there is an initial error that is causing vCenter to attempt to connect to vcsa.vmware.com to upload the error message/logs and this is the error that I've reported? If so, where would I find the initial/root error? Our test systems don't have connectivity to the internet and therefore can't resolve vcsa.vmware.com. Is there a way to disable this upload service?
Hi,
As you correctly pointed out this stacktrace is due to the lack of connectivity. In that sense, it is expected and not an error so you can just ignore it.
This is a user setting so you can also disable this feature if you opt out of the Customer Experience Improvement Program. This is done through the vSphere Client from Administration -> Customer Experience Improvement Program screen.
Cheers,
Vladi