Jump to content
x
Upvote if you also have this question or find it interesting.
Learn more
Sign in to follow this  

One machine gets stuck in Unregistered state after updating the Master and Machine Catalog, others are working fine

aspen30 | Enthusiast | 10 | Members | 27 posts

We are running Xendesktop 7, on a 2012 server. After doing some updating on the Master-machine (Windows 7 SP1 with Personal vDisk) and after that, updating the Machine Catalog (Update Machines), one of the VDI-machines won´t register, it is stuck in ”Registration State: Unregistered”.
If I remove the machine from the Delivery Group, the machine is getting ”Registered”, but if I put it back in the Delivery Group it gets stuck in Unregistered state again. If I try to create another Delivery Group, it still gets into Unregistered state when adding the machine into it.

The address for the DDC is manually entered during the VDA installation, the registry key below are identical between working machines and the machine that is Unregistered:

HKLM\Software\Citrix\VirtualDesktopAgent\
ControllerRegistrarPort 0x00000050 (80)
ListOfDDCs servername.domain.local
ProductInstalled 0x00000008 (8)
RegistryOverridesAutoUpdate 1
ResyncTimeOnFailedRegister 0x00000001 (1)

The C-drive contains a file, Personality.ini. On the machines that are working it contains:
[stringData]
$DiskMode=Private

On the machine that gets Unregistered:
$DiskMode=Shared
[VdaData]
ListOfDDCs=servername.domain.local

When running XDPing, I get some different results:

On a machine that is working:

Registry Based Configurations::

Registry based Controller list (ListOfDDCs) : [Not Conigured]
[Not Conigured]
It is not possible to enurmerate DDC list from VDA [ERROR]

--------------------------------------------------------------------
Summary::

Checking version : You are using the latest version. [OK]
Kerberos authentication not in use [ERROR]
Service port disabled for Firewall [ERROR]
It is not possible to enurmerate DDC list from VDA [ERROR]

Number of messages reported = 4

On the machine that is stuck Unregistered (AND I WANT TO POINT OUT THAT THE PORT IS 0 (ZERO), not 80 as I would guess:

Registry Based Configurations::

Registry based Controller list (ListOfDDCs) : [Not Conigured]
[Configured]
Controller : servername.domain.local
--------------------------------------------------------------------
Controllers (manually specified)::

Controller: servername.domain.local:0
DNS Lookup(servername.domain.local):
Host Name = servername.domain.local
Address #0 = IP-address (rDNS: servername.domain.local) [OK]
Ping Service: /Citrix/CdsController/IRegistrar
Connect = Unable to open connection to servername.domain.local:0
[ERROR]

ListOfDDC is set in the c:\personality.ini file to enurmerate DDC list [OK]

--------------------------------------------------------------------
Summary::

Checking version : You are using the latest version. [OK]
Kerberos authentication not in use [ERROR]
Connect = Unable to open connection to servername.domain.local:0 [ERROR]

Number of messages reported = 3

I´m getting the impression that this may have to do with something wrong with the "object" in the SQL-database (?) for XenDesktop.

These Event-Ids are occuring on the VDI-machine when trying to register with the Delivery Controller.

Information:
EventID: 1028. Source: Citrix Desktop Service
The Citrix Desktop Service is starting.

Information:
EventID: 1013. Source: Citrix Desktop Service
The Citrix Desktop Service successfully initialized communication services required for interaction between this machine and delivery controllers.

Information:
EventID: 1010. Source: Citrix Desktop Service
The Citrix Desktop Service successfully obtained the following list of 1 delivery controller(s) with which to register: 'servername.domain.local (IP-adress)'.
Warning:
EventID: 1002. Source: Citrix Desktop Service
The Citrix Desktop Service cannot connect to the delivery controller 'http://servername.domain.local:80/Citrix/CdsController/IRegistrar' (IP Address 'IP-adress')

Check that the system clock is in sync between this machine and the delivery controller. If this does not resolve the problem, please refer to Citrix Knowledge Base article CTX117248 for further information.

Error Details:
Exception 'Cannot load Counter Name data because an invalid index '' was read from the registry.' of type 'System.InvalidOperationException'..

Warning:
EventID: 1017. Source: Citrix Desktop Service
The Citrix Desktop Service failed to register with any delivery controller.

The service will retry registering with controllers in approximately 7 seconds.

Please ensure that at least one delivery controller is available for Virtual Desktop Agents to register with. Refer to Citrix Knowledge Base article CTX117248 for further information.

Warning:
EventID: 1014. Source: Citrix Desktop Service
The Citrix Desktop Service lost contact with the Citrix Desktop Delivery Controller Service on server 'servername.domain.local'.
The service will now attempt to register again.

Error details:
Exception 'Cannot access a disposed object.
Object name: 'System.ServiceModel.Channels.ServiceChannel'.' of type 'System.ObjectDisposedException'

And once again, 1002:
Warning:
EventID: 1002. Source: Citrix Desktop Service
The Citrix Desktop Service cannot connect to the delivery controller 'http://servername.domain.local:80/Citrix/CdsController/IRegistrar' (IP Address 'IP-adress')

Check that the system clock is in sync between this machine and the delivery controller. If this does not resolve the problem, please refer to Citrix Knowledge Base article CTX117248 for further information.

Error Details:
Exception 'Cannot load Counter Name data because an invalid index '' was read from the registry.' of type 'System.InvalidOperationException'..

Warning:
EventID: 1024. Source: Citrix Desktop Service
The Citrix Desktop Service is attempting registration with the delivery controller servername.domain.local (IP Address IP-adress) too rapidly. Event log messages about these attempts will be suppressed until the repetition has stopped for at least 10 minutes.

Please refer to Citrix Knowledge Base article CTX117248 for further information.

Hope that someone can help me out here

/Stefan

Share this post


Link to post

7 answers to this question

Recommended Posts

x
Mark this reply as best answer, if it answered your question.
Learn more
x
Upvote if you found this answer helpful or interesting.
Learn more
aspen30 | Enthusiast | 10 | Members | 27 posts

When running PowerShell command Get-BrokerMachine, I get the following:

PS C:\Program Files\Citrix\Desktop Studio> Get-BrokerMachine

ExtensionData : System.Runtime.Serialization.ExtensionDataObject
AgentVersion : 7.0.0.3018
AllocationType : Static
ApplicationsInUse : {}
AssignedClientName :
AssignedIPAddress :
AssociatedUserFullNames : {<Full name>}
AssociatedUserNames : {<DOMAIN\SamAccountName>}
AssociatedUserSIDs : {S-1-5-21-784404328-1681215991-10498456-7377}
AssociatedUserUPNs : {>UPN>}
Capabilities : {}
CatalogName : Windows 7 VDI PvDisk
CatalogUUID : d0cac7fb-c2ef-4ea9-a2a0-ada8939150d8
CatalogUid : 8
ColorDepth :
ControllerDNSName :
DNSName : machinename.domain.local
DeliveryType :
Description :
DesktopConditions : {}
DesktopGroupName :
DesktopGroupUUID :
DesktopGroupUid :
DesktopKind :
DesktopUid :
FaultState : None
FunctionalLevel : L7
HostedMachineId : 421d9a01-de96-277a-dfe2-7a44d2c7904a
HostedMachineName : MACHINENAME
HostingServerName : <host.domain.local>
HypHypervisorConnectionUid : 1dc816b8-a6dc-4de8-a638-0633a3608009
HypervisorConnectionName : vCenter_Connection_Name
HypervisorConnectionUid : 1
IPAddress :
IconUid :
ImageOutOfDate : False
InMaintenanceMode : True
IsAssigned : True
IsPhysical : False
LastConnectionFailure : ConnectionTimeout
LastConnectionTime : 2013-11-05 11:52:47
LastConnectionUser : <DOMAIN\SamAccountName>
LastDeregistrationReason : DesktopRemoved
LastDeregistrationTime : 2013-11-06 17:17:15
LastErrorReason :
LastErrorTime :
LastHostingUpdateTime : 2013-11-06 19:33:17
LoadIndex :
LoadIndexes :
MachineInternalState : SoftRegistered
MachineName : DOMAIN\MACHINENAME
MetadataMap : {}
OSType : Windows 7 Service Pack 1
OSVersion : Microsoft Windows NT 6.1.7601 Service Pack 1
PersistUserChanges : OnPvd
PowerActionPending : False
PowerState : On
ProvisioningType : MCS
PublishedApplications : {}
PublishedName :
PvdStage : None
RegistrationState : Registered
SID : S-1-5-21-784404328-1681215991-10498456-16892
ScheduledReboot : None
SecureIcaRequired :
SessionAutonomouslyBrokered :
SessionClientAddress :
SessionClientName :
SessionClientVersion :
SessionConnectedViaHostName :
SessionConnectedViaIP :
SessionCount : 0
SessionDeviceId :
SessionHardwareId :
SessionHidden :
SessionKey :
SessionLaunchedViaHostName :
SessionLaunchedViaIP :
SessionProtocol :
SessionSecureIcaActive :
SessionSmartAccessTags :
SessionStartTime :
SessionState :
SessionStateChangeTime :
SessionSupport : SingleSession
SessionUid :
SessionUserName :
SessionUserSID :
SessionsEstablished : 0
SessionsPending : 0
SummaryState : Unregistered
Tags : {}
UUID : 5322f906-26d2-4513-9428-585866671ec6
Uid : 2
VMToolsState : NotStarted
WillShutdownAfterUse : False
WindowsConnectionSetting : LogonEnabled

Share this post


Link to post
x
Mark this reply as best answer, if it answered your question.
Learn more
x
Upvote if you found this answer helpful or interesting.
Learn more
aspen30 | Enthusiast | 10 | Members | 27 posts

Another update

1.
I´ve tried to add the ListOfDDCs to the registry key: [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Citrix\VirtualDesktopAgent]

2.
I´ve tried to activate the Active Directory Discovery by running the PS-script: Set-ADControllerDiscovery.ps1. After this I tried to manually type the FarmGUID that the script gave me into the VirtualDesktopAgent-key on the faulting machine. I tried both the 32-bit key and the 64-bit (the one here above). nothing.... XDPing is saying that everything seems to be ok.

3.
I tried to telnet from the faulting machine to the server on port 80 and from the server to the faulting machine on port 80. Success.

I still think that the problem is in the Farms SQL-database(?). Is there a way to "Remove it from the Delivery Group", then delete the machine from the farm-db and import it back again by adding it back into the Delivery Group or something like that?

Anyone?

Share this post


Link to post
x
Mark this reply as best answer, if it answered your question.
Learn more
x
Upvote if you found this answer helpful or interesting.
Learn more
x
Mark this reply as best answer, if it answered your question.
Learn more
x
Upvote if you found this answer helpful or interesting.
Learn more
x
Mark this reply as best answer, if it answered your question.
Learn more
x
Upvote if you found this answer helpful or interesting.
Learn more
x
Mark this reply as best answer, if it answered your question.
Learn more
x
Upvote if you found this answer helpful or interesting.
Learn more
x
Mark this reply as best answer, if it answered your question.
Learn more
x
Upvote if you found this answer helpful or interesting.
Learn more
jamestho | 0 | Citrix Employees | 3 posts

I resolved an identical issue (registration failure event, resolves with PVD reset) at a customer site by resetting the WIndows Performance Counter Library:  http://support.microsoft.com/kb/300956


Registration failure event:
EventID: 1002. Source: Citrix Desktop Service
The Citrix Desktop Service cannot connect to the delivery controller 'http://servername.domain.local:80/Citrix/CdsController/IRegistrar' (IP Address 'IP-adress') 

Check that the system clock is in sync between this machine and the delivery controller. If this does not resolve the problem, please refer to Citrix Knowledge Base article CTX117248 for further information. 

Error Details: 
Exception 'Cannot load Counter Name data because an invalid index '' was read from the registry.' of type 'System.InvalidOperationException'..

Share this post


Link to post

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  
TOP
×
×
  • Create New...