question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Reconnection failed when shutdown rabbitMq on server and swith to another cluster rabbit server

See original GitHub issue

Hi, i would like to create a nodejs script with rascal api, which is listening a rabbit queue and automatiquely reconnect to a RabbitMq server after a Rabbit shutdown and switch to another server (cluster). please find below my code in attachment, based on the Rascal documentations. My configuration : rabbit server cluster of 2 servers rabbitMq 3.7.5 javascript nodejs with rascal api : 4.7.0

index.js.txt configRascal.js.txt

It runs fine when i start de project , but , when i test the shutdown i have this message :

[2020-03-11T17:13:28.941Z] DEBUG: psf-ms-rascal-1.0.0/15684 on SCU48652 (L:\psf-ms-rascal\src\amq\listeners\index.js:15 in module.exports): Rascal listener initialized --------------
[2020-03-11T17:13:28.943Z] DEBUG: psf-ms-rascal-1.0.0/15684 on SCU48652 (L:\psf-ms-rascal\src\amq\listeners\index.js:19 in module.exports): Rascal listener running fine --------------
events.js:183
throw er; // Unhandled 'error' event

Error: read ECONNRESET
at _errnoException (util.js:1024:11)
at TCP.onread (net.js:615:25)
[nodemon] app crashed - waiting for file changes before starting...

It’s normal.

But when i start rabbitmq again , it doesn’t reconnect automatiquely.

I dont know how i can fix simply this issue.

this issue could be similar as one of them , but the code looked is completely different. So i need your. Thanks a lot . Fbernardpro.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:11 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
Fbernardprocommented, Mar 19, 2020

ok , thank’s again for advices. I let you know my progress. Regards. Francois

0reactions
Fbernardprocommented, Apr 7, 2020

Hi Stephen, Sorry, I didn’t have any time to continue to investigate on rabbit my issue these time. I will continue later after our Containment in France. Complicate to work in an abnormal state. I will let you know in time.May be reopen ir close definitevely this issue. Thank you again.Regards.Francois. Envoyé depuis Yahoo Mail pour Android

Le mar., avr. 7, 2020 à 22:47, Stephen Cresswellnotifications@github.com a écrit :

Closed #82.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Clustering Guide - RabbitMQ
A RabbitMQ cluster is a logical grouping of one or several nodes, each sharing users, virtual hosts, queues, exchanges, bindings, runtime parameters and...
Read more >
RabbitMQ cluster is not reconnecting after network failure
In pause-if-all-down mode, RabbitMQ will automatically pause cluster nodes which cannot reach any of the listed nodes. In other words ...
Read more >
Chapter 5. Clustering and dealing with failure - RabbitMQ in ...
You can lose a RabbitMQ node and your applications can reconnect to any other node in the cluster and continue producing and consuming...
Read more >
Rabbitmq cluster with spring doesn't suppor fail over correctlly
Spring-AMQP may use a different reconnection strategy. ... first server before the connection to the second server fails for some reason.
Read more >
RabbitMQ connector fails to reconnect after reply-code=404 ...
The RabbitMQ server is running in a cluster mode. The RabbitMQ server possibly uses a load balancer or a proxy to route requests....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found