Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing docker volume for RabbitMQ: Connection to RabbitMQ #4279

Closed
1 task done
mrnicegyu11 opened this issue May 30, 2023 · 3 comments · Fixed by #4280
Closed
1 task done

Missing docker volume for RabbitMQ: Connection to RabbitMQ #4279

mrnicegyu11 opened this issue May 30, 2023 · 3 comments · Fixed by #4280
Assignees
Labels
a:webserver issue related to the webserver service bug buggy, it does not work as expected

Comments

@mrnicegyu11
Copy link
Member

Is there an existing issue for this?

  • I have searched the existing issues

Which deploy/s?

No response

Current Behavior

The webserver might stay running even though she cannot connect to rabbit. Erros as such:

log_level=ERROR | log_timestamp=2023-05-30 05:49:29,365 | log_source=servicelib.rabbitmq:_connection_close_callback(26) | log_uid=None | log_msg=Rabbit connection closed with exception from amqp://******:******@staging_rabbit:PORT/?name=webserver_osparc-dalco-08-staging-simcore_staging_webserver-3_743:<Future finished exception=<ChannelNotFoundEntity: The client attempted to work with a server entity that does not exist: "NOT_FOUND - no queue 'amq_0x4b9e264ac393f09832b9b39b4addc5f5' in vhost '/'">> 

Expected Behavior

  1. werbserver retries establishing the connection to rabbitMQ a few times
  2. If webserver ultimately cannot connect to rabbitMQ, the webserver container dies gracefully with an error exit code and a clear log message. The webserver container will then be restarted by the container orchestrator

Steps To Reproduce

Unclear, this happened as a result of a reboot of machines by the Z43 IT department. To the best of our knowledge oSparc is already robust to the restart of individual machines if they are restarted gracefully.

Anything else?

@matusdrobuliak66 is the main guy involved in tracing this issue

@mrnicegyu11 mrnicegyu11 added bug buggy, it does not work as expected a:webserver issue related to the webserver service labels May 30, 2023
@mrnicegyu11 mrnicegyu11 added this to the Pastel de Nata milestone May 30, 2023
@sanderegg
Copy link
Member

The error we see is actually the webserver re-connecting to the rabbitmq. It is expected that the webserver uses a so-called exlusive queue, which is set to be durable. This means that when rabbitmq restarts it re-creates the exchanges and the queues. It seems this was not the case.
We need to go over the deployment policies of rabbitmq in order to make it re-startable as it is not the case now.

@mrnicegyu11
Copy link
Member Author

This is likely related to rabbitMQ not using a named docker volume, this needs to be checked in all deployments

@sanderegg
Copy link
Member

path /var/lib/rabbitmq shall be mounted

@sanderegg sanderegg changed the title Missing retries in the webserver: Connection to RabbitMQ Missing docker volume for RabbitMQ: Connection to RabbitMQ May 30, 2023
@sanderegg sanderegg assigned mrnicegyu11 and sanderegg and unassigned pcrespov May 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a:webserver issue related to the webserver service bug buggy, it does not work as expected
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants