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

ELM 2011 creating hyper-v connector gives ERROR 502


Yannick Verstraeten

Question

We are using Hyper-v ( windows server 2019) as oure virtualization platform.

We have 2 clusters because we are in the middle of a migration.

On the old cluster I have no issues with adding connectors, the old cluster is also Hyper-v ( windows server 2019 )

The new cluster gives the ERROR 502 when in ELM trying to add the connector, installation of the agent on the host went fine.

 

In connector logs from ELM I see following:

 

{"name":"HttpLogger","hostname":"localhost.localdomain","pid":2023,"level":30,"reqNum":293,"msg":"[SSL] => Start: [GET] /api/Agents?filter[include]=host [path: /api/Agents]","time":"2021-02-25T15:26:15.099Z","v":0}
{"name":"HttpLogger","hostname":"localhost.localdomain","pid":2074,"level":30,"reqNum":330,"msg":"[SSL] => Start: [POST] /api/HypervConfigs/networks [path: /api/HypervConfigs/networks]","time":"2021-02-25T15:26:26.933Z","v":0}
{"name":"AgentClientFactory","hostname":"localhost.localdomain","pid":2074,"level":30,"reqNum":330,"msg":"Looking for Agent id '8683520'","time":"2021-02-25T15:26:27.001Z","v":0}
{"name":"HypervPowershellService","hostname":"localhost.localdomain","pid":2074,"level":30,"reqNum":330,"msg":"get-vmswitch","time":"2021-02-25T15:26:29.091Z","v":0}
{"name":"AgentClientService","hostname":"localhost.localdomain","pid":2074,"level":50,"reqNum":330,"msg":"POST failed: RequestError: Error: ESOCKETTIMEDOUT","time":"2021-02-25T15:28:29.146Z","v":0}
{"name":"HypervPowershellService","hostname":"localhost.localdomain","pid":2074,"level":50,"reqNum":330,"msg":"Error encountered in PowerShellScriptExecutionEngine.  Error: 'RequestError: Error: ESOCKETTIMEDOUT'","time":"2021-02-25T15:28:29.146Z","v":0}
{"name":"Networks","hostname":"localhost.localdomain","pid":2074,"level":50,"reqNum":330,"msg":"Failed to get vm networks","time":"2021-02-25T15:28:29.151Z","v":0}
{"name":"Networks","hostname":"localhost.localdomain","pid":2074,"level":50,"reqNum":330,"err":{"message":"Citrix App Layering Agent Error: Error: ESOCKETTIMEDOUT","name":"GlobalizedError","stack":"GlobalizedError: Citrix App Layering Agent Error: Error: ESOCKETTIMEDOUT\n  
at new GlobalizedError (/usr/local/lib/node_modules/unidesk-hyperv-connector/node_modules/unidesk-service-framework/src/error/GlobalizedError.ts:36:23)\n    
at /usr/local/lib/node_modules/unidesk-hyperv-connector/server/src/Services/PowershellService.ts:44:23\nFrom previous event:\n    
at HypervService.PowershellService.execute (/usr/local/lib/node_modules/unidesk-hyperv-connector/server/src/Services/PowershellService.ts:38:19)\n
at HypervService.HypervPowershellService.getVmNetworks (/usr/local/lib/node_modules/unidesk-hyperv-connector/server/src/Services/HypervPowershellService.ts:181:21)\n    
at /usr/local/lib/node_modules/unidesk-hyperv-connector/server/src/RequestHandlers/Agent/NetworksQueryHandler.ts:55:42\n    
at /usr/local/lib/node_modules/unidesk-hyperv-connector/node_modules/continuation-local-storage/context.js:84:17\n    
at bound (domain.js:402:14)\n    at runBound (domain.js:415:12)\n    at runCallback (timers.js:705:18)\n    
at tryOnImmediate (timers.js:676:5)\n    
at processImmediate (timers.js:658:5)\n    
at process.topLevelDomainCallback (domain.js:126:23)\nFrom previous event:\n    
at NetworksQueryHandler.query (/usr/local/lib/node_modules/unidesk-hyperv-connector/server/src/RequestHandlers/Agent/NetworksQueryHandler.ts:53:16)\n    
at NetworksQueryHandler.handle (/usr/local/lib/node_modules/unidesk-hyperv-connector/server/src/RequestHandlers/Agent/NetworksQueryHandler.ts:28:14)\n    
at Function.model.networks (/usr/local/lib/node_modules/unidesk-hyperv-connector/server/src/Models/HypervConfig.ts:40:30)\n    
at SharedMethod.invoke (/usr/local/lib/node_modules/unidesk-hyperv-connector/node_modules/strong-remoting/lib/shared-method.js:263:25)\n    
at HttpContext.invoke (/usr/local/lib/node_modules/unidesk-hyperv-connector/node_modules/strong-remoting/lib/http-context.js:389:12)\n    
at phaseInvoke (/usr/local/lib/node_modules/unidesk-hyperv-connector/node_modules/strong-remoting/lib/remote-objects.js:654:9)\n    
at runHandler (/usr/local/lib/node_modules/unidesk-hyperv-connector/node_modules/loopback-phase/lib/phase.js:135:5)\n    
at iterate (/usr/local/lib/node_modules/unidesk-hyperv-connector/node_modules/loopback-phase/node_modules/async/lib/async.js:146:13)\n    
at Object.async.eachSeries (/usr/local/lib/node_modules/unidesk-hyperv-connector/node_modules/loopback-phase/node_modules/async/lib/async.js:162:9)\n    
at runHandlers (/usr/local/lib/node_modules/unidesk-hyperv-connector/node_modules/loopback-phase/lib/phase.js:144:13)\n    
at iterate (/usr/local/lib/node_modules/unidesk-hyperv-connector/node_modules/loopback-phase/node_modules/async/lib/async.js:146:13)\n    
at /usr/local/lib/node_modules/unidesk-hyperv-connector/node_modules/loopback-phase/node_modules/async/lib/async.js:157:25\n    
at /usr/local/lib/node_modules/unidesk-hyperv-connector/node_modules/loopback-phase/node_modules/async/lib/async.js:154:25\n    
at execStack (/usr/local/lib/node_modules/unidesk-hyperv-connector/node_modules/strong-remoting/lib/remote-objects.js:493:7)\n    
at RemoteObjects.execHooks (/usr/local/lib/node_modules/unidesk-hyperv-connector/node_modules/strong-remoting/lib/remote-objects.js:497:10)\n
at phaseBeforeInvoke (/usr/local/lib/node_modules/unidesk-hyperv-connector/node_modules/strong-remoting/lib/remote-objects.js:650:10)\n    
at runHandler (/usr/local/lib/node_modules/unidesk-hyperv-connector/node_modules/loopback-phase/lib/phase.js:135:5)\n    
at iterate (/usr/local/lib/node_modules/unidesk-hyperv-connector/node_modules/loopback-phase/node_modules/async/lib/async.js:146:13)\n    
at /usr/local/lib/node_modules/unidesk-hyperv-connector/node_modules/loopback-phase/node_modules/async/lib/async.js:157:25\n    
at reportSharedCtorError (/usr/local/lib/node_modules/unidesk-hyperv-connector/node_modules/strong-remoting/lib/remote-objects.js:646:5)\n    
at runHandler (/usr/local/lib/node_modules/unidesk-hyperv-connector/node_modules/loopback-phase/lib/phase.js:135:5)\n    
at iterate (/usr/local/lib/node_modules/unidesk-hyperv-connector/node_modules/loopback-phase/node_modules/async/lib/async.js:146:13)\n    
at Object.async.eachSeries (/usr/local/lib/node_modules/unidesk-hyperv-connector/node_modules/loopback-phase/node_modules/async/lib/async.js:162:9)\n    
at runHandlers (/usr/local/lib/node_modules/unidesk-hyperv-connector/node_modules/loopback-phase/lib/phase.js:144:13)\n    
at iterate (/usr/local/lib/node_modules/unidesk-hyperv-connector/node_modules/loopback-phase/node_modules/async/lib/async.js:146:13)"},"msg":"Citrix App Layering Agent Error: Error: ESOCKETTIMEDOUT","time":"2021-02-25T15:28:29.151Z","v":0}
{"name":"hyperv-connector","hostname":"localhost.localdomain","pid":2074,"level":50,"reqNum":330,"msg":"Failed remote request contents:\n{\n  \"unideskAgentId\": \"8683520\"\n}","time":"2021-02-25T15:28:29.153Z","v":0}
{"name":"ResponseTranslator","hostname":"localhost.localdomain","pid":2074,"level":50,"reqNum":330,"msg":"An Error occurred: Citrix App Layering Agent Error: Error: ESOCKETTIMEDOUT","time":"2021-02-25T15:28:29.154Z","v":0}
{"name":"ErrorLogger","hostname":"localhost.localdomain","pid":2074,"level":50,"reqNum":330,"msg":"Failure: [POST] /api/HypervConfigs/networks => STATUS: 500 (GlobalizedError:Citrix App Layering Agent Error: Error: ESOCKETTIMEDOUT)","time":"2021-02-25T15:28:29.156Z","v":0}
(node:2074) [DEP0097] DeprecationWarning: Using a domain property in MakeCallback is deprecated. Use the async_context variant of MakeCallback or the AsyncResource class instead

When I try to do the powershell command get-vmswitch from a remote device with the credentials of the applayering agent, then I get the correct values back.

 

Link to comment

4 answers to this question

Recommended Posts

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...