VMware Horizon Community
iceman76
Enthusiast
Enthusiast

Enabling composer fails with "There was a connection problem"

Hi,

we are evaluating vmware view 4.6 right now and we have problems enabling composer for an attached vcenter.

The setup is as follows

vCenter / Composer Server

- W2008R2 64bit

- SQL2005 Express  (9.0.3042)

- vCenter Server Standard 4.1.0 258902

- View composer 2.6.0-349155, View Composer is listening on port 18443 (default)

View Connection Server

- W2008R2 64bit

- Connection Server 64bit - 4.6.0-366101

Both systems are in the same Domain, DNS is working like a charm.

Adding VCenter to View Administrator works without problems. We are using a dedicated AD service account,

which has admin-privileges within vCenter & vew Administrator, and is local admin on vcenter & connection server

But when enabling View Composer the following error is displayed "There was a connection problem", and the composer is not enabled.

We are using a dedicated AD-service account for Composer, too. It has admin-privileges within vCenter & view Administrator, and is local admin on vcenter & connection server.

It has the relevant AD-Permissions to add computer accounts to AD.

The following error is logged in the connextion server's debug log

2011-05-20 14:35:03,837 DEBUG <TP-Processor3> [ViewFlexFactory] There was a connection problem. com.vmware.vdi.admin.ui.common.ViewFlexFactory$ViewProxy.invoke(SourceFile:87)
com.vmware.vdi.admin.ui.common.FlexRemoteException: There was a connection problem.
    at com.vmware.vdi.admin.ui.common.FlexFaultHandler.systemError(SourceFile:42)
    at com.vmware.vdi.admin.ui.bean.VCServerBean.updateVC(SourceFile:310)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.vmware.vdi.admin.ui.common.ViewFlexFactory$ViewProxy.invoke(SourceFile:76)
    at $Proxy8.updateVC(Unknown Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at flex.messaging.services.remoting.adapters.JavaAdapter.invoke(JavaAdapter.java:421)
    at flex.messaging.services.RemotingService.serviceMessage(RemotingService.java:183)
    at flex.messaging.MessageBroker.routeMessageToService(MessageBroker.java:1503)
    at flex.messaging.endpoints.AbstractEndpoint.serviceMessage(AbstractEndpoint.java:884)
    at flex.messaging.endpoints.amf.MessageBrokerFilter.invoke(MessageBrokerFilter.java:121)
    at flex.messaging.endpoints.amf.LegacyFilter.invoke(LegacyFilter.java:158)
    at flex.messaging.endpoints.amf.SessionFilter.invoke(SessionFilter.java:44)
    at flex.messaging.endpoints.amf.BatchProcessFilter.invoke(BatchProcessFilter.java:67)
    at flex.messaging.endpoints.amf.SerializationFilter.invoke(SerializationFilter.java:146)
    at flex.messaging.endpoints.BaseHTTPEndpoint.service(BaseHTTPEndpoint.java:278)
    at flex.messaging.MessageBrokerServlet.service(MessageBrokerServlet.java:322)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
    at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:659)
    at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:457)
    at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:395)
    at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:311)
    at com.vmware.vdi.admin.ui.servlet.AMFServlet.a(SourceFile:70)
    at com.vmware.vdi.admin.ui.servlet.AMFServlet.doPost(SourceFile:56)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:647)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
    at com.vmware.vdi.support.ViewAdminFilter.doFilter(SourceFile:70)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
    at com.vmware.vdi.admin.be.filters.DisableUrlSessionFilter.doFilter(SourceFile:60)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
    at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:200)
    at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:291)
    at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:775)
    at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:704)
    at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:897)
    at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
    at java.lang.Thread.run(Thread.java:619)
Caused by: VMware.Sim.Fault.InvalidParameterFaultParam: vcConfigEntry.LogonUser Detail: ValidationFailure
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
    at java.lang.Class.newInstance0(Class.java:355)
    at java.lang.Class.newInstance(Class.java:308)
    at org.apache.axis.encoding.ser.BeanDeserializer.<init>(BeanDeserializer.java:104)
    at org.apache.axis.encoding.ser.BeanDeserializer.<init>(BeanDeserializer.java:90)
    at com.vmware.SviService.InvalidParameterFault.getDeserializer(InvalidParameterFault.java:152)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.axis.encoding.ser.BaseDeserializerFactory.getSpecialized(BaseDeserializerFactory.java:154)
    at org.apache.axis.encoding.ser.BaseDeserializerFactory.getDeserializerAs(BaseDeserializerFactory.java:84)
    at org.apache.axis.encoding.DeserializationContext.getDeserializer(DeserializationContext.java:464)
    at org.apache.axis.encoding.DeserializationContext.getDeserializerForType(DeserializationContext.java:547)
    at org.apache.axis.message.SOAPFaultDetailsBuilder.onStartChild(SOAPFaultDetailsBuilder.java:157)
    at org.apache.axis.encoding.DeserializationContext.startElement(DeserializationContext.java:1035)
    at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
    at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
    at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
    at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
    at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
    at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
    at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
    at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
    at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
    at org.apache.xerces.jaxp.SAXParserImpl.parse(Unknown Source)
    at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)
    at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
    at org.apache.axis.Message.getSOAPEnvelope(Message.java:435)
    at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)
    at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)
    at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
    at org.apache.axis.client.Call.invoke(Call.java:2767)
    at org.apache.axis.client.Call.invoke(Call.java:2443)
    at org.apache.axis.client.Call.invoke(Call.java:2366)
    at org.apache.axis.client.Call.invoke(Call.java:1812)
    at com.vmware.SviService.Admin.v2_1.Binding.SslBasicAuthAdminEndpointStub.addVcConfig(SslBasicAuthAdminEndpointStub.java:1474)
    at com.vmware.vdi.admin.be.VCManager.a(SourceFile:632)
    at com.vmware.vdi.admin.be.VCManager.updateVC(SourceFile:696)
    at com.vmware.vdi.admin.ui.bean.VCServerBean.updateVC(SourceFile:266)
    ... 53 more
2011-05-20 14:35:03,838 DEBUG <TP-Processor3> [ViewFlexFactory] com.vmware.vdi.admin.ui.bean.VCServerBean.updateVC 1814 ms

On vcenter Server, in the composer logs, following is logged

2011-05-20 14:35:02,929 | 3             | FATAL | Sim.ServiceCore.SimServiceApiImpl - Error: fail to execute web service call: AddVcServer
VMware.Sim.CommonLib.Exception.InvalidParameterException: UPN username format is not supported.
   bei VMware.Sim.ServiceCore.SimServiceApiVal.ValidateVcConfigEntry(VcConfigEntry vcConfigEntry)
   bei VMware.Sim.ServiceCore.SimServiceApiVal.AddVcConfig(VcConfigEntry vcConfigEntry)
   bei VMware.Sim.ServiceCore.SimServiceApiImpl.AddVcConfig(VcConfigEntry vcConfigEntry), Machine Name: VC-1, Timestamp: 20.05.2011 12:35:02, App Domain Name: SviWebService.exe, Thread Identity: , Windows Identity: NT-AUTORITÄT\SYSTEM, OS Version: Microsoft Windows NT 6.1.7600.0, reason: ValidationFailure, param: vcConfigEntry.LogonUser

Any ideas ?

8 Replies
iceman76
Enthusiast
Enthusiast

We tried something different now - we did use a LOCAL user from vcenter server (not an AD account) to connect to vcenter server from view administrator, and it worked. We were able to enable composer.

I don't understand it : in the installation guide it says :

You must create a user account in Active Directory to use with vCenter Server. You specify this user account
when you add a vCenter Server instance in View Administrator.
The user account must be in the same domain as your View Connection Server host or in a trusted domain. If
you use View Composer, you must add the user account to the local Administrators group on the vCenter
Server computer.

We will see if it works with the local user...

Reply
0 Kudos
mpryor
Commander
Commander

The final error message you found explains the reason it's failing: "UPN username format is not supported." You should specify the username in DOMAIN\username format. Using a local account to access composer and VC as you've done shoudl work, I do this in my test environments.

Reply
0 Kudos
iceman76
Enthusiast
Enthusiast

Thanks for the tip - using the domain\username format does not work when adding vcenter. I get the error-message "wrong username/password"

Reply
0 Kudos
mpryor
Commander
Commander

It does work generally, I notice you're using a long username which is larger than the SAM account name limit (>20 chars), if you try with an account using a shorter username does it then work, or if you just use the first 20chars i.e. view-vcenter-connect?

Reply
0 Kudos
iceman76
Enthusiast
Enthusiast

You are right - when using a short AD-Username it works !

Thank you...

Reply
0 Kudos
clsalgueiro
Contributor
Contributor

Hi, i´ve got the same problema, but the AD user that i´m using is shorter than 20 characters. Here the log:

VMware.Sim.CommonLib.Exception.InvalidParameterException: UPN username format is not supported.

   at VMware.Sim.ServiceCore.SimServiceApiVal.ValidateVcConfigEntry(VcConfigEntry vcConfigEntry)

   at VMware.Sim.ServiceCore.SimServiceApiVal.AddVcConfig(VcConfigEntry vcConfigEntry)

   at VMware.Sim.ServiceCore.SimServiceApiImpl.AddVcConfig(VcConfigEntry vcConfigEntry), Machine Name: VCENTER, Timestamp: 9/20/2013 5:47:17 PM, App Domain Name: SviWebService.exe, Thread Identity: , Windows Identity: OL\vcuser, OS Version: Microsoft Windows NT 6.1.7601 Service Pack 1, reason: ValidationFailure, param: vcConfigEntry.LogonUser

2013-09-20 14:48:09,988 | 25            | INFO  | ServiceCore.LockManager.LockManager - A lock is requested for AdConfigEntry with id: 29ad95ea-3fc7-4b0f-9df4-0f4d87d2cf50

2013-09-20 14:48:10,066 | 25            | INFO  | ServiceCore.LockManager.LockManager - A release is requested for AdConfigEntry with id: 29ad95ea-3fc7-4b0f-9df4-0f4d87d2cf50

Captura.JPG

which may be the problem?

Reply
0 Kudos
mpryor
Commander
Commander

clsalgueiro wrote:

Hi, i´ve got the same problema, but the AD user that i´m using is shorter than 20 characters. Here the log:

VMware.Sim.CommonLib.Exception.InvalidParameterException: UPN username format is not supported.

You don't have the same issue. The error in the log explains it exactly: you're using upn format for your username (vcuser@xxx) instead of the expected format (DOMAIN\username).

clsalgueiro
Contributor
Contributor

Master  VMware Employees  you are right. I´ve resolve the issue changing the user format. Now the error is:

AddVcServer

This VC api version (5.1) is not supported.

But this is maybe a compatibility issue between vCenter 5.1 and Composer 5.1.

Reply
0 Kudos