mautic / docker-mautic

Docker Image for Mautic
https://www.mautic.org
353 stars 268 forks source link

Change default rabbitmq vhost to be compatible with DSN parsing in Mautic #265

Closed mollux closed 5 months ago

mollux commented 5 months ago

the default RabbitMQ vhost is named /, which is encoded to %2F

See https://www.cloudamqp.com/blog/what-is-a-rabbitmq-vhost.html#:~:text=When%20configuring%20RabbitMQ%2C%20at%20least,to%20create%20a%20new%20vhost. and https://symfony.com/doc/current/messenger.html#amqp-transport

There is a bug in Mautic 5 (still figuring out what's going on), that prevents storing the %2F value when saving the settings via the UI.

This PR provides a workaround, by renaming the default RabbitMQ vhost from / to mautic

To test this PR:

renanwilliam commented 2 months ago

I'm getting an error vhost mautic/messages not found when trying to send any e-mail using queue:

image
renanwilliam commented 2 months ago

Looks like is necessary remove the /messages from DSN configuration

mautibot commented 2 months ago

This pull request has been mentioned on Mautic Forums. There might be relevant details there:

https://forum.mautic.org/t/delayed-actions-are-not-being-executed/31995/9