Jump to content
Welcome to our new Citrix community!
  • 0

Studio 7.6 not working


Marc Kok

Question

hello, we have a problem with starting Xenapp Studio. The service "Citrix Environment Test Service" is not running and I can't start it. The studio error is

 

Error Id: XDDS:296C8D57

Exception:
    Citrix.Console.Models.Exceptions.ScriptException Could not connect to the Environment Test service.
       at Citrix.Console.PowerShellSdk.HealthMonitor.Scripts.ReloadServiceInstancesScript.CheckForWorkingServiceSet()
       at Citrix.Console.PowerShellSdk.HealthMonitor.Scripts.ReloadServiceInstancesScript.RunScript()
       at Citrix.Console.PowerShellInteraction.PowerShellScript`1.Run()
       at Citrix.Console.PowerShellSdk.SiteService.Scripts.LoaderScript.InitializeSite(IProgressReporter loadServicesProgress)
       at Citrix.Console.PowerShellSdk.SiteService.Scripts.LoaderScript.RunScript()
       at Citrix.Console.PowerShellInteraction.PowerShellScript`1.Run()
       at Citrix.Console.DeliveryCenter.UI.ViewModel.DesktopStudioViewModel.LoadSiteState(IProgressReporter progressReporter)
       at Citrix.Console.DeliveryCenter.UI.ViewModel.DesktopStudioViewModel.ConnectToSite(String ccsLocation, Boolean safeForDispatcher, IProgressReporter progressReporter)
       at Citrix.Console.MmcSnapin.SnapInClass.OnLoadCustomSnapinData(AsyncStatus status, Byte[] persistenceData)
   
    DesktopStudio_ErrorId : UnknownError
    ErrorCategory : NotSpecified
    DesktopStudio_PowerShellHistory : LoaderScript
    30-10-2018 12:24:59
   
    Get-ConfigServiceStatus  -AdminAddress "localhost"
    Get-ConfigServiceStatus  -AdminAddress "localhost"
    Set-Variable  -Name "sidsToExclude" -Value @()
    Get-ConfigRegisteredServiceInstance  -AdminAddress "localhost" -Filter {(((ServiceType -eq 'Config') -and (Version -eq 2))) -and ((InterfaceType -eq 'SDK') -and (-not (ServiceAccountSid -in $sidsToExclude)))} -MaxRecordCount 2147483647
    Remove-Variable  -Name "sidsToExclude"
    Set-Variable  -Name "sidsToExclude" -Value @()
    Get-ConfigRegisteredServiceInstance -AdminAddress "localhost" -Filter {(((ServiceType -eq 'Config') -and (Version -eq 2)) -or ((ServiceType -eq 'Admin') -and (Version -eq 1)) -or ((ServiceType -eq 'Log') -and (Version -eq 1)) -or ((ServiceType -eq 'Acct') -and (Version -eq 2)) -or ((ServiceType -eq 'Hyp') -and (Version -eq 2)) -or ((ServiceType -eq 'Prov') -and (Version -eq 2)) -or ((ServiceType -eq 'Broker') -and (Version -eq 2)) -or ((ServiceType -eq 'Monitor') -and (Version -eq 1)) -or ((ServiceType -eq 'Sf') -and (Version -eq 1)) -or ((ServiceType -eq 'EnvTest') -and (Version -eq 1)) -or ((ServiceType -eq 'Analytics') -and (Version -eq 1))) -and ((InterfaceType -eq 'SDK') -and (-not (ServiceAccountSid -in $sidsToExclude)))} -MaxRecordCount 2147483647 | Test-ConfigServiceInstanceAvailability -AdminAddress "localhost" -MaxDelaySeconds 5
    Remove-Variable  -Name "sidsToExclude"
    Set-Variable  -Name "sidsToExclude" -Value @()
    Get-ConfigRegisteredServiceInstance -AdminAddress "drssr02.drs.local:80" -Filter {(((ServiceType -eq 'EnvTest') -and (Version -eq 1))) -and ((InterfaceType -eq 'SDK') -and (-not (ServiceAccountSid -in $sidsToExclude)))} -MaxRecordCount 2147483647 | Test-ConfigServiceInstanceAvailability -AdminAddress "drssr02.drs.local:80" -ForceWaitForOneOfEachType -MaxDelaySeconds 60
    Remove-Variable  -Name "sidsToExclude"

 

Link to comment

16 answers to this question

Recommended Posts

  • 0

If you haven’t customized the service, then configuration of service should be as below. Please check it.

·         Service Name: Citrix Environment Test Service

·         Executable: Citrix.EnvTest.exe

·         Logon Account / Startup Type: NT AUTHORITY\NetworkService, Automatic

·         Dependencies: Workstation

 

Can you run below commands on Delivery Controller and share output of it if you can

·         Get-EnvTestConfiguration

·         Get-EnvTestDBConnection

·         Get-EnvTestService

·         Get-EnvTestServiceInstance

Link to comment
  • 0

Hi ganeshr, thanks for your help.

The service is not customized and stopped working about 1 month ago. The service name, executable, logon account and dependency (running) are as you described.

 

The outcome of the commands

PS C:\Users\administrator.DRS> Get-EnvTestConfiguration
Get-EnvTestConfiguration : An invalid URL was given for the service.  The value given was ''.
    The reason given was: Failed to connect to back-end server 'localhost' on port 80 using binding WSHttp. The server
may be off-line or may not be running the appropriate service
    The HTTP service located at http://localhost/Citrix/EnvTestServiceContract/v1 is unavailable.  This could be becaus
e the service is too busy or because no endpoint was found listening at the specified address. Please ensure that the a
ddress is correct and try accessing the service again later.
    The remote server returned an error: (503) Server Unavailable..
At line:1 char:1
+ Get-EnvTestConfiguration
+ ~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [Get-EnvTestConfiguration], InvalidOperationException
    + FullyQualifiedErrorId : Citrix.XDPowerShell.Status.CommunicationError,Citrix.EnvTest.Sdk.Commands.GetEnvTestConf
   igurationCommand

 

PS C:\Users\administrator.DRS> Get-EnvTestDBConnection
Get-EnvTestDBConnection : An invalid URL was given for the service.  The value given was ''.
    The reason given was: Failed to connect to back-end server 'localhost' on port 80 using binding WSHttp. The server
may be off-line or may not be running the appropriate service
    The HTTP service located at http://localhost/Citrix/EnvTestServiceContract/v1 is unavailable.  This could be becaus
e the service is too busy or because no endpoint was found listening at the specified address. Please ensure that the a
ddress is correct and try accessing the service again later.
    The remote server returned an error: (503) Server Unavailable..
At line:1 char:1
+ Get-EnvTestDBConnection
+ ~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [Get-EnvTestDBConnection], InvalidOperationException
    + FullyQualifiedErrorId : Citrix.XDPowerShell.Status.CommunicationError,Citrix.EnvTest.Sdk.Cmdlets.DataStore.Comma
   nds.GetEnvTestDBConnectionCommand

 

PS C:\Users\administrator.DRS> Get-EnvTestService
Get-EnvTestService : An invalid URL was given for the service.  The value given was ''.
    The reason given was: Failed to connect to back-end server 'localhost' on port 80 using binding WSHttp. The server
may be off-line or may not be running the appropriate service
    The HTTP service located at http://localhost/Citrix/EnvTestServiceContract/v1 is unavailable.  This could be becaus
e the service is too busy or because no endpoint was found listening at the specified address. Please ensure that the a
ddress is correct and try accessing the service again later.
    The remote server returned an error: (503) Server Unavailable..
At line:1 char:1
+ Get-EnvTestService
+ ~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [Get-EnvTestService], InvalidOperationException
    + FullyQualifiedErrorId : Citrix.XDPowerShell.Status.CommunicationError,Citrix.EnvTest.Sdk.Cmdlets.Management.Comm
   ands.GetEnvTestServiceCommand

 

PS C:\Users\administrator.DRS> Get-EnvTestServiceInstance
Get-EnvTestServiceInstance : An invalid URL was given for the service.  The value given was ''.
    The reason given was: Failed to connect to back-end server 'localhost' on port 80 using binding WSHttp. The server
may be off-line or may not be running the appropriate service
    The HTTP service located at http://localhost/Citrix/EnvTestServiceContract/v1 is unavailable.  This could be becaus
e the service is too busy or because no endpoint was found listening at the specified address. Please ensure that the a
ddress is correct and try accessing the service again later.
    The remote server returned an error: (503) Server Unavailable..
At line:1 char:1
+ Get-EnvTestServiceInstance
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [Get-EnvTestServiceInstance], InvalidOperationException
    + FullyQualifiedErrorId : Citrix.XDPowerShell.Status.CommunicationError,Citrix.EnvTest.Sdk.Cmdlets.Registration.Co
   mmands.GetEnvTestServiceInstanceCommand

 

 

 

 

Link to comment
  • 0

Might endpoints not registered in the Central Configuration Service

 

Can you run below PowerShell cmdlet on Delivery Controller?

·         Add-PsSnapin Citrix*

·         Get-EnvTestServiceInstance| Register-ConfigServiceInstance

·         Get-ConfigRegisteredServiceInstance -ServiceType Config | Reset-EnvTestServiceGroupMembership

 

If above command didn’t resolve issue, please reach to our technical support team.

Link to comment
  • 0

Hi ganeshr,

Get the same error "Failed to connect to back-end server 'localhost' on port 80 using binding WSHttp" Is there any debug logging possible so that I can see what's going wrong.

 

When I look at the "Citrix.EnvTest.exe.Config" I see that it's trying to connect ta a service endpoint running on port 80 that doesn't exists. When I look at another customer whit the same Xenapp version the service endpoint doesn't exists there also. When type the URL "http://localhost/Citrix/EnvTestServiceContract/v1" in a browser I get an "http 400 error" from the customer with no problems and get an "http 503 error" at the customer whit the service problem.

 

Customer doesn't have a subscription anymore so support from Citrix will be difficult….

Thanks for the help.

 

Link to comment
  • 0

Yes, you can collect debug log. Add following line under <appSettings> section in Citrix.EnvTest.exe.Config


<add key="LogToCDF" value="1" />
<add key="LogFileName" value ="C:\Logs\DDC.log"/>
<add key="OverwriteLogFile" value ="1"/>

 

can you able to share Citrix.EnvTest.exe.config file of issue environment?

Link to comment
  • 0

I had the same issue, turns out Citrix have changed the name of the service at some point, and probably some failed upgrade have not changed the config file.

I changed this line:

<service behaviorConfiguration="ServiceBehavior" name="Citrix.Configuration.SDK.WcfService">

 

to this:

service behaviorConfiguration="ServiceBehavior" name="Citrix.Configuration.WcfService">

 

This made the service start again.

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...