laravel-queue-rabbitmq
laravel-queue-rabbitmq copied to clipboard
Can't connect to cloudamqp.com
- Laravel Version: 6.14.0
- Package Version: 10.1.3
- RabbitMQ Version: cloudamqp.com 3.7.8 Erlang 21.0.6
- PHP 7.2
Describe the bug I can use this plugin with a local container of RabbitMQ (docker), but if i try it with cloudamqp.com i'm not able to connect to the server in the cloud. I always get the error:
"The connection timed out after 3 sec while awaiting incoming data..."
Steps To Reproduce Just install the package and try the free server that they give.
i'm using this conf template, without horizon:
'rabbitmq' => [
'driver' => 'rabbitmq',
'queue' => env('RABBITMQ_QUEUE', 'default'),
'connection' => PhpAmqpLib\Connection\AMQPLazyConnection::class,
'hosts' => [
[
'host' => env('RABBITMQ_HOST', '127.0.0.1'),
'port' => env('RABBITMQ_PORT', 5672),
'user' => env('RABBITMQ_USER', 'guest'),
'password' => env('RABBITMQ_PASSWORD', 'guest'),
'vhost' => env('RABBITMQ_VHOST', '/'),
],
],
'options' => [
'ssl_options' => [
'cafile' => env('RABBITMQ_SSL_CAFILE', null),
'local_cert' => env('RABBITMQ_SSL_LOCALCERT', null),
'local_key' => env('RABBITMQ_SSL_LOCALKEY', null),
'verify_peer' => env('RABBITMQ_SSL_VERIFY_PEER', true),
'passphrase' => env('RABBITMQ_SSL_PASSPHRASE', null),
],
],
/*
* Set to "horizon" if you wish to use Laravel Horizon.
*/
'worker' => env('RABBITMQ_WORKER', 'default'),
],
I don't know if i'm missing something to connect to this provider.
Thanks
@xXcoronaXx
If you did solve this issue, can you please please provide some more infomation.
Is this still an issue with the latest version?
@xXcoronaXx Does it work with amqproxy?
I solved this by changing my port. The cloud dashboard says a different port than needed. The port should be: 5672 (like the default value)
Closed due to inactivity.