cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
spichol
Engaged Sweeper

Hello,

I have a problem, my agents don't show up on the Agent relay. When I check the logs I get an "AgentIsNotEnabled" error.

 

2023-02-14 10:39:42,431 [5] INFO Reading ini file.
2023-02-14 10:39:42,498 [5] INFO Getting asset id
2023-02-14 10:39:42,498 [5] INFO Existing asset id found: 5282cc0e-9c9e-48df-9904-be80450460b0
2023-02-14 10:39:42,498 [5] INFO Creating communication channel
2023-02-14 10:39:42,498 [5] INFO CreateReachableEndPoint for 5282cc0e-9c9e-48df-9904-be80450460b0
2023-02-14 10:39:42,538 [5] INFO Created RelayCommunicationSender to URL https://lsagentrelay.lansweeper.com/EchoService.svc
2023-02-14 10:39:42,538 [5] INFO Getting asset status from the server
2023-02-14 10:39:43,583 [5] ERROR A communication error occurred.
System.ServiceModel.FaultException`1[System.ServiceModel.ExceptionDetail] : AgentIsNotEnabled: 6012794a-8ec9-417f-b07b-747dd8c1f5ee (le détail de l'erreur est égal à ExceptionDetail, probablement créé par IncludeExceptionDetailInFaults=True, dont la valeur est :
Lansweeper.Echo.Server.Domain.EchoException: AgentIsNotEnabled: 6012794a-8ec9-417f-b07b-747dd8c1f5ee
at Lansweeper.Echo.Server.BL.CompanyManager.FindCompanyByAgentKey(Guid agentKey, IDbContext context)
at Lansweeper.Echo.Server.Service.EchoService.GetAssetStatus(Guid agentKey, Guid assetId)
at SyncInvokeGetAssetStatus(Object , Object[] , Object[] )
at System.ServiceModel.Dispatcher.SyncMethodInvoker.Invoke(Object instance, Object[] inputs, Object[]& outputs)
at Lansweeper.Echo.Server.IISHost.Behaviors.LoggingOperationInvoker.Invoke(Object instance, Object[] inputs, Object[]& outputs)
at System.ServiceModel.Dispatcher.DispatchOperationRuntime.InvokeBegin(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage5(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage11(MessageRpc& rpc)
at System.ServiceModel.Di...).
2023-02-14 10:39:43,583 [5] INFO Saving ini settings
2023-02-14 10:39:43,583 [5] INFO Creating ini backup.
2023-02-14 10:39:43,583 [5] INFO Waiting 4 hours until next iteration

1 ACCEPTED SOLUTION
spichol
Engaged Sweeper

Thank you for your reply.
It seems that a bug was present, because I updated Lansweeper and since then it seems to work

View solution in original post

2 REPLIES 2
Tim_N
Lansweeper Employee
Lansweeper Employee

Hello @spichol 

Here's an article that Esben wrote about makeing sure the environment is ready for LsAgent and relaying the content. The relay could not be contacted - Troubleshooting issues with your installation - Lansweeper Commun... 

In it, Esben talks about TLS settings, ports, etc. that are needed. See if this helps get you started. 

 

Tim N.
Lansweeper Employee
spichol
Engaged Sweeper

Thank you for your reply.
It seems that a bug was present, because I updated Lansweeper and since then it seems to work