Mautic Community Forums

How to add ports

Your software
My Mautic version is: 2.16.1
My PHP version is: 7.3
My Database type and version is:?

Your problem need to try to update your php project to connect to localhost:55672 instead of just localhost:5672
My problem is:

These errors are showing in the log: [2020-11-18 17:04:02] mautic.CRITICAL: Uncaught PHP Exception ErrorException: “stream_socket_client(): unable to connect to tcp://localhost:5672 (Network is unreachable)” at /home4/erbornb2/providencesilverco.com/mautic/vendor/php-amqplib/php-amqplib/PhpAmqpLib/Wire/IO/StreamIO.php line 141 {“exception”:"[object] (ErrorException(code: 0): stream_socket_client(): unable to connect to tcp://localhost:5672 (Network is unreachable) at /home4/erbornb2/providencesilverco.com/mautic/vendor/php-amqplib/php-amqplib/PhpAmqpLib/Wire/IO/StreamIO.php:141)"}

Steps I have tried to fix the problem: Just read and have ask my hosting company what to do they said to do the above. But I don’t know where to start need some guidance.

Hi!
Is this email sending port?

Thx,
J

I don’t know if it a sending port it says in the rabbitmq dashboard it says a listing ports. It seems that this mautic you need this rabbitmq to handle the cronjobs. When I posted this message I did not have Rabbit set up now it is seems to working but I might have the port mixed up?
Here is the new message [ [2020-11-19 22:48:59] mautic.CRITICAL: Uncaught PHP Exception ErrorException: “stream_socket_client(): unable to connect to tcp://localhost:15672:55672 (Network is unreachable)” at /home4/erbornb2/providencesilverco.com/mautic/vendor/php-amqplib/php-amqplib/PhpAmqpLib/Wire/IO/StreamIO.php line 141 {“exception”:"[object] (ErrorException(code: 0): stream_socket_client(): unable to connect to tcp://localhost:15672:55672 (Network is unreachable) at /home4/erbornb2/providencesilverco.com/mautic/vendor/php-amqplib/php-amqplib/PhpAmqpLib/Wire/IO/StreamIO.php:141)"} ]
Thx.
Ron

RabbitMQ is a queuing protocol, most users don’t need it. Unless you know what you are doing turn it off. You can do it in the Settings - Configuration - Queue Settings. Choose deactivated.
Good luck!

Thank you that seems to have stop the error. I am having a problem with loading the contacts. they don’t seem to be going and when they do only a small percentage get loaded to the segment.
Thanks
Ron

I am not connect the contact to the mail.
I have segment and contact done
I have put in the rabbitmq for the queue and it still does not move. unless I to add some in the rabbit which I have not found any literature on.
I change the local host to 55672 in the php
here is the message now?

[2020-11-19 22:48:59] mautic.CRITICAL: Uncaught PHP Exception ErrorException: “stream_socket_client(): unable to connect to tcp://localhost:15672:55672 (Network is unreachable)” at /home4/erbornb2/providencesilverco.com/mautic/vendor/php-amqplib/php-amqplib/PhpAmqpLib/Wire/IO/StreamIO.php line 141 {“exception”:"[object] (ErrorException(code: 0): stream_socket_client(): unable to connect to tcp://localhost:15672:55672 (Network is unreachable) at /home4/erbornb2/providencesilverco.com/mautic/vendor/php-amqplib/php-amqplib/PhpAmqpLib/Wire/IO/StreamIO.php:141)"}