laravel-queue-rabbitmq icon indicating copy to clipboard operation
laravel-queue-rabbitmq copied to clipboard

Can't connect to cloudamqp.com

Open xXcoronaXx opened this issue 5 years ago • 3 comments

  • 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 avatar Feb 10 '20 18:02 xXcoronaXx

@xXcoronaXx

If you did solve this issue, can you please please provide some more infomation.

Is this still an issue with the latest version?

adm-bome avatar Jul 20 '20 22:07 adm-bome

@xXcoronaXx Does it work with amqproxy?

aluisiora avatar Dec 04 '20 12:12 aluisiora

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)

Christophvh avatar Apr 12 '21 15:04 Christophvh

Closed due to inactivity.

M-Porter avatar Jan 25 '23 19:01 M-Porter