Php-amqplib: Broken pipe or closed connection

Created on 5 Jan 2016  路  8Comments  路  Source: php-amqplib/php-amqplib

thrown in /data/www/Device/restApi/vendor/videlalvaro/php-amqplib/PhpAmqpLib/Wire/IO/StreamIO.php on line 190
[2016-01-04 22:06:48 *15484.3] WARN zm_deactivate_swoole: Fatal error: Uncaught exception 'PhpAmqpLib\Exception\AMQPRuntimeException' with message 'Broken pipe or closed connection' in /data/www/Device/restApi/vendor/videlalvaro/php-amqplib/PhpAmqpLib/Wire/IO/StreamIO.php:190
Stack trace:

0 /data/www/Device/restApi/vendor/videlalvaro/php-amqplib/PhpAmqpLib/Connection/AbstractConnection.php(336): PhpAmqpLib\Wire\IO\StreamIO->write('\x01\x00\x01\x00\x00\x00\x16\x00<\x00(\x00\x00\rD...')

1 /data/www/Device/restApi/vendor/videlalvaro/php-amqpl

[2016-01-04 22:06:48 *15483.7] WARN zm_deactivate_swoole: Fatal error: Uncaught exception 'PhpAmqpLib\Exception\AMQPRuntimeException' with message 'Broken pipe or closed connection' in /data/www/Device/restApi/vendor/videlalvaro/php-amqplib/PhpAmqpLib/Wire/IO/StreamIO.php:190
Stack trace:

0 /data/www/Device/restApi/vendor/videlalvaro/php-amqplib/PhpAmqpLib/Connection/AbstractConnection.php(336): PhpAmqpLib\Wire\IO\StreamIO->write('\x01\x00\x01\x00\x00\x00\x16\x00<\x00(\x00\x00\rD...')

1 /data/www/Device/restApi/vendor/videlalvaro/php-amqpl

PHP Fatal error: Uncaught exception 'PhpAmqpLib\Exception\AMQPRuntimeException' with message 'Broken pipe or closed connection' in /data/www/Device/restApi/vendor/videlalvaro/php-amqplib/PhpAmqpLib/Wire/IO/StreamIO.php:190

Most helpful comment

@novaku I made Reconnect wrapper, that catches an exception, reconnects and retries the last operation. Works fine

All 8 comments

Seems that you rebooted a rabbitmq server

You should probably handle closed connections, that's not an uncommon phenomenon.

@Enleur i have the same problem, and yes i have restart rabbitmq server, how do i remove this logs? every minutes the log file is increasing 2-4GB!!!!
Need your help here if you know the solution..

@novaku I made Reconnect wrapper, that catches an exception, reconnects and retries the last operation. Works fine

@enleur Can you share the snippet?

hello @enleur
can you share Reconnect wrapper created by you?

Hello All I am facing the same problem when installing rabitmq on windows following error occured when I am trying to comment rabbitmq

Type: PhpAmqpLib\Exception\AMQPRuntimeException

Message: Broken pipe or closed connection

Filename: C:\xampp\htdocs\CodeIgniter\vendor\romainrg\codeigniter-php-amqplib\PhpAmqpLib\Wire\IO\StreamIO.php

I am facing this as well, I was connecting without username/password, fixed by using "guest" / "guest"

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Fire7 picture Fire7  路  5Comments

nubeiro picture nubeiro  路  6Comments

speller picture speller  路  5Comments

maprokopiou picture maprokopiou  路  4Comments

ramunasd picture ramunasd  路  4Comments