Highlighted
Valued Contributor.. Valued Contributor..
Valued Contributor..
210 views

Failed to create host, please check log file for more details.

Hi all,

I'm running loadrunner enterprise 2020 administrator page. it's first time i'm installing loadrunner enterprise. the installation was running fine and i want to add the host-load generator but i'm unable to create host. here's the w3wp log: C:\Program Files (x86)\Micro Focus\LoadRunner Enterprise\orchidtmp\LTLogger\w3wp

LR.PNG

2020-04-01 10:39:44,696 [4624] [7] ERROR LRE.BL.Core.Hosts.HostBL - Failed to Create, reason: General error [Context: c0ea8446-3e75-4cf6-aa15-a8660185cdf1] [FullContext: BackendUrl:http://localhost:5876 UserName:emlrenserver Domain:DEFAULT Project:LAB_PROJECT]
2020-04-01 10:39:44,703 [4624] [7] ERROR HP.PC.Admin.RestApi.Web.Api_Controllers.HostsController - PCRemoteException output START
Message:
General error
StatusCode:
InternalServerError
Stacktrace:
at LRE.BL.Core.Hosts.HostBL.Create(IHost t) in c:\jenkins\workspace\LRE2020P1-CI_master\app\Common\HP.PC.BL\LRE.BL.Core\Hosts\HostBL.cs:line 58
at HP.PC.Admin.RestApi.Web.Api_Controllers.HostsController.AddBlHost(IHost blHost) in c:\jenkins\workspace\LRE2020P1-CI_master\app\Admin\HP.PC.Admin.RestApi\Web\Api Controllers\HostsController.cs:line 1008
Printing data members start:
Printing data members end:
PCRemoteException output END
[Context: c0ea8446-3e75-4cf6-aa15-a8660185cdf1] [FullContext: BackendUrl:http://localhost:5876 UserName:emlrenserver Domain:DEFAULT Project:LAB_PROJECT]
2020-04-01 10:39:44,704 [4624] [7] ERROR HP.PC.Admin.RestApi.Web.Api_Controllers.HostsController - Failed to create new Host [Context: c0ea8446-3e75-4cf6-aa15-a8660185cdf1] [FullContext: BackendUrl:http://localhost:5876 UserName:emlrenserver Domain:DEFAULT Project:LAB_PROJECT]
2020-04-01 10:39:44,707 [4624] [7] ERROR HP.PC.API.Common.Web.Behaviors.PcApiActionInvoker - Exception occur in action CreateNewHost on controller Hosts [Context: c0ea8446-3e75-4cf6-aa15-a8660185cdf1] [FullContext: BackendUrl:http://localhost:5876 UserName:emlrenserver Domain:DEFAULT Project:LAB_PROJECT]
HP.PC.API.Common.Exceptions.ServerSideException.FailedToCreateNewHostException: Failed to create Host, please check log file for more details.
at HP.PC.Admin.RestApi.Web.Api_Controllers.HostsController.InternalAddHost(CreateUpdateHostRequest newHost) in c:\jenkins\workspace\LRE2020P1-CI_master\app\Admin\HP.PC.Admin.RestApi\Web\Api Controllers\HostsController.cs:line 819
at lambda_method(Closure , Object , Object[] )
at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.<>c__DisplayClassf.<GetExecutor>b__9(Object instance, Object[] methodParameters)
at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.Execute(Object instance, Object[] arguments)
at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.<>c__DisplayClass5.<ExecuteAsync>b__4()
at System.Threading.Tasks.TaskHelpers.RunSynchronously[TResult](Func`1 func, CancellationToken cancellationToken)

Can anyone here help me please?

Thanks,

Handy

0 Likes
5 Replies
Highlighted
Contributor.. Contributor..
Contributor..

Re: Failed to create host, please check log file for more details.

Hello,

Check if the port is listening on host machine using (netstat -an | find /i "listen" | more) command.

PC server communicates to Host machine on TCP port 54245 ,54345 and 8086, if ports are not opened connection expected to fail to PC server.

FYI: https://admhelp.microfocus.com/pc/en/12.60-12.63/pdfs/PC_Install.pdf

 

Thanks,

Vikram 

0 Likes
Highlighted
Valued Contributor.. Valued Contributor..
Valued Contributor..

Re: Failed to create host, please check log file for more details.

Hi Vikram,

The only way to make it back to work is restarting the LR Enterprise server. This issue seems occur after the server is idle for more than 1 hour. Here's the listening port on host: 

hostPorts.PNG

54245 ,54345 and 8086 are listening. Firewall has been disabled.

System health check also failed to running the task.

It’s my first time doing LR Enterprise Installation so it might be misconfigured.

 

Thank you,

Handy

0 Likes
Highlighted
Contributor.. Contributor..
Contributor..

Re: Failed to create host, please check log file for more details.

Great, thanks for sharing updates

0 Likes
Highlighted
Valued Contributor.. Valued Contributor..
Valued Contributor..

Re: Failed to create host, please check log file for more details.

I've reviewed the guide https://admhelp.microfocus.com/pc/en/2020/pdfs/PC_Install.pdf, All the ports on host and server are listening except 5876

Is there anything else i should check? i'm using loadrunner enterprise 2020 SP1.

 

Thank you,

Handy

0 Likes
Highlighted
Super Contributor.
Super Contributor.

Re: Failed to create host, please check log file for more details.

Did you manage to resolve this issue?

I am experiencing exactly same problem ( and same log output) with not being able to add Host to new install of LR 2020 SP1.

The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.