Hello! I have received this error message with frequency in last days. Anybody know what is an how fix? We test the port 5672 and restart the service but no success.

Id:
fb787c2b-737f-41b1-8c08-5074c625274c
Time of Log:
23/03/2020 17:03:47
Request Key:1d81737b-c259-4af8-9b4c-904ea2247656
Module:
ServiceCenter
Tenant:
ServiceCenter
User:
PlatformServices (3)
Session Id:
+bFMB3Mku06HBso0urYp6w==
Server:
DFCDSRVV4639
Module:
Server Side Cac
Message:
Error invalidating cache. Check the Cache Invalidation Service status in the Environment Health page.
Environment InformationeSpaceVer: Id=1, PubId=0, CompiledWith=11.0.609.0
RequestUrl: https://dev-lowcode.corporativo/ServiceCenter/PlatformServices_v8_0_0.asmx (Method: POST)
AppDomain: /LM/W3SVC/1/ROOT/ServiceCenter-1-132286060756685011
FilePath: D:\P_11295_Lowcode\OutSystems\Platform Server\running\ServiceCenter.684809240\
ClientIp: 10.30.92.155
Locale: en-US
DateFormat: dd/MM/yyyy
PID: 5864 ('w3wp', Started='13/03/2020 20:47:53', Priv=598Mb, Virt=2115171Mb)
TID: 110
Thread Name:
.NET: 4.0.30319.42000
Stack:
[1] Error invalidating cache. Check the Cache Invalidation Service status in the Environment Health page.


[2] None of the specified endpoints were reachable
   at RabbitMQ.Client.ConnectionFactory.CreateConnection(IEndpointResolver endpointResolver, String clientProvidedName)
   at OutSystems.Plugin.RabbitMQ.LazyInitializer`1.get_Value()
   at OutSystems.Plugin.RabbitMQ.RabbitMQPubSub.<.ctor>b__5_0()
   at OutSystems.Plugin.RabbitMQ.LazyInitializer`1.get_Value()
   at OutSystems.Plugin.RabbitMQ.RabbitMQPubSub.Publish(String topic, String message)
   at OutSystems.HubEdition.RuntimePlatform.Internal.Cache.PubSubCache.Invalidate(ICacheInvalidationKey dependency)

[3] One or more errors occurred.
   at RabbitMQ.Client.EndpointResolverExtensions.SelectOne[T](IEndpointResolver resolver, Func`2 selector)
   at RabbitMQ.Client.Framing.Impl.AutorecoveringConnection.Init(IEndpointResolver endpoints)
   at RabbitMQ.Client.ConnectionFactory.CreateConnection(IEndpointResolver endpointResolver, String clientProvidedName)

[4] Connection failed
   at RabbitMQ.Client.Impl.SocketFrameHandler.ConnectUsingAddressFamily(AmqpTcpEndpoint endpoint, Func`2 socketFactory, Int32 timeout, AddressFamily family)
   at RabbitMQ.Client.Impl.SocketFrameHandler..ctor(AmqpTcpEndpoint endpoint, Func`2 socketFactory, Int32 connectionTimeout, Int32 readTimeout, Int32 writeTimeout)
   at RabbitMQ.Client.ConnectionFactory.CreateFrameHandler(AmqpTcpEndpoint endpoint)
   at RabbitMQ.Client.EndpointResolverExtensions.SelectOne[T](IEndpointResolver resolver, Func`2 selector)

[5] No connection could be made because the target machine actively refused it 127.0.0.1:5672
   at System.Net.Sockets.Socket.InternalEndConnect(IAsyncResult asyncResult)
   at System.Net.Sockets.Socket.EndConnect(IAsyncResult asyncResult)
   at System.Net.Sockets.Socket.<>c.<ConnectAsync>b__315_0(IAsyncResult iar)
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at RabbitMQ.Client.TcpClientAdapter.<ConnectAsync>d__2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at RabbitMQ.Client.Impl.TaskExtensions.<TimeoutAfter>d__1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at RabbitMQ.Client.Impl.SocketFrameHandler.ConnectOrFail(ITcpClient socket, AmqpTcpEndpoint endpoint, Int32 timeout)

Thanks:

João Henrique

Hi, 

please check if the Status in Health (in Service Center) is fine?

And check this document Cache Invalidation in OutSystems 11 and this document RabbitMQ management and troubleshooting

Cheers,

Nuno Verdasca

Your error lies here: No connection could be made because the target machine actively refused it 127.0.0.1:5672. 

There is something going up with your RabbitMQ installation. Check the logs for events that are related to RabbitMQ.

Hi Joao,

Did you test the connection from the Configuration Tool >> Cache tab on the server 'DFCDSRVV4639'? 

You should try this again and open up Event Viewer to monitor what happens.

Regards,

Nordin

Hello, the servers are in the same network and the port test work successful, in environment health the status is ok, the error just occurred in front-end.


Thanks:

João Henrique

Hi João,

At what point does the error exactly occur in your front-end server?

Hello, don't have a specific point when the error occur, now they appear with more frequency. By the way, the test connection in configuration tolls is ok.


Could you try to run CMD and execute the following telnet command on the server?

telnet localhost 5672

Maybe the port is being used by something else.

The test with telnet is ok, the connection closes on both sides. The update I have is that in enviroment health the status of the service has a red x and the error I mentioned has been happening twice a day at similar times.

25/03/2020 02:05:35(System)
1Error invalidating cache. Check the Cache Invalidation Service status in the Environment Health page.Server Side CacDFCDSRVV4639Detail
25/03/2020 02:00:31(System)
1Error invalidating cache. Check the Cache Invalidation Service status in the Environment Health page.Server Side CacDFCDSRVV4639Detail
24/03/2020 02:05:37(System)
1Error invalidating cache. Check the Cache Invalidation Service status in the Environment Health page.Server Side CacDFCDSRVV4639Detail
24/03/2020 02:00:35(System)
1Error invalidating cache. Check the Cache Invalidation Service status in the Environment Health page.Server Side CacDFCDSRVV4639Detail
23/03/2020 17:06:12(System)
1Error invalidating cache. Check the Cache Invalidation Service status in the Environment Health page.Server Side CacDFCDSRVV4639Detail
23/03/2020 17:03:47(System)
1Error invalidating cache. Check the Cache Invalidation Service status in the Environment Health page.Server Side CacDFCDSRVV4639Detail