Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Broken pipe or closed connection #353

Closed
ltanme opened this issue Jan 5, 2016 · 9 comments
Closed

Broken pipe or closed connection #353

ltanme opened this issue Jan 5, 2016 · 9 comments

Comments

@ltanme
Copy link

ltanme commented Jan 5, 2016

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

@enleur
Copy link
Contributor

enleur commented Jan 7, 2016

Seems that you rebooted a rabbitmq server

@manchicken
Copy link

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

@novaku
Copy link

novaku commented Mar 20, 2016

@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..

@enleur
Copy link
Contributor

enleur commented Mar 21, 2016

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

@valerianpereira
Copy link

valerianpereira commented Apr 25, 2018

@enleur Can you share the snippet?

@SunnnyGohil
Copy link

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

@vishal461
Copy link

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

@ebuildy
Copy link

ebuildy commented Jan 11, 2021

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

@dwiyudirayia
Copy link

@enleur Can you share the snippet?

Do you have snippet how to handle that?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants