Remote procedure call (RPC) (using php-amqplib) in PHP server crash

193 views
Skip to first unread message

Roberto Maiocco

unread,
Mar 29, 2023, 8:46:46 AM3/29/23
to rabbitmq-users
After 15 minutes from procedure startup ( without receving messages) the server procedure hangs with an error: any idea?

here a dump of the error
Server starts at 2023-03-29 14:29:33
 [x] Awaiting RPC requests
Caught exception: Error receiving dataon 2023-03-29 14:44:34
PHP Fatal error:  Uncaught PhpAmqpLib\Exception\AMQPConnectionClosedException: Broken pipe or closed connection in C:\XAMPP\htdocs\RabbitMqMessagingPHP\vendor\php-amqplib\php-amqplib\PhpAmqpLib\Wire\IO\StreamIO.php:235
Stack trace:
#0 C:\XAMPP\htdocs\RabbitMqMessagingPHP\vendor\php-amqplib\php-amqplib\PhpAmqpLib\Connection\AbstractConnection.php(410): PhpAmqpLib\Wire\IO\StreamIO->write('\x01\x00\x01\x00\x00\x00\v\x00\x14\x00(\x00\x00\x00\x00...')
#1 C:\XAMPP\htdocs\RabbitMqMessagingPHP\vendor\php-amqplib\php-amqplib\PhpAmqpLib\Connection\AbstractConnection.php(540): PhpAmqpLib\Connection\AbstractConnection->write('\x01\x00\x01\x00\x00\x00\v\x00\x14\x00(\x00\x00\x00\x00...')
#2 C:\XAMPP\htdocs\RabbitMqMessagingPHP\vendor\php-amqplib\php-amqplib\PhpAmqpLib\Channel\AbstractChannel.php(245): PhpAmqpLib\Connection\AbstractConnection->send_channel_method_frame(1, Array, Object(PhpAmqpLib\Wire\AMQPWriter))
#3 C:\XAMPP\htdocs\RabbitMqMessagingPHP\vendor\php-amqplib\php-amqplib\PhpAmqpLib\Channel\AMQPChannel.php(198): PhpAmqpLib\Channe in C:\XAMPP\htdocs\RabbitMqMessagingPHP\vendor\php-amqplib\php-amqplib\PhpAmqpLib\Wire\IO\StreamIO.php on line 235

Fatal error: Uncaught PhpAmqpLib\Exception\AMQPConnectionClosedException: Broken pipe or closed connection in C:\XAMPP\htdocs\RabbitMqMessagingPHP\vendor\php-amqplib\php-amqplib\PhpAmqpLib\Wire\IO\StreamIO.php:235
Stack trace:
#0 C:\XAMPP\htdocs\RabbitMqMessagingPHP\vendor\php-amqplib\php-amqplib\PhpAmqpLib\Connection\AbstractConnection.php(410): PhpAmqpLib\Wire\IO\StreamIO->write('\x01\x00\x01\x00\x00\x00\v\x00\x14\x00(\x00\x00\x00\x00...')
#1 C:\XAMPP\htdocs\RabbitMqMessagingPHP\vendor\php-amqplib\php-amqplib\PhpAmqpLib\Connection\AbstractConnection.php(540): PhpAmqpLib\Connection\AbstractConnection->write('\x01\x00\x01\x00\x00\x00\v\x00\x14\x00(\x00\x00\x00\x00...')
#2 C:\XAMPP\htdocs\RabbitMqMessagingPHP\vendor\php-amqplib\php-amqplib\PhpAmqpLib\Channel\AbstractChannel.php(245): PhpAmqpLib\Connection\AbstractConnection->send_channel_method_frame(1, Array, Object(PhpAmqpLib\Wire\AMQPWriter))
#3 C:\XAMPP\htdocs\RabbitMqMessagingPHP\vendor\php-amqplib\php-amqplib\PhpAmqpLib\Channel\AMQPChannel.php(198): PhpAmqpLib\Channe in C:\XAMPP\htdocs\RabbitMqMessagingPHP\vendor\php-amqplib\php-amqplib\PhpAmqpLib\Wire\IO\StreamIO.php on line 235

System Info

Windows Pro 11 Version 22H2 (build ISO 22621.1413)
XAMPP Apache  2.4.46.0
PHP 7.4.32 (cli) (built: Sep 28 2022 19:14:45)


THX
Roberto


Roberto Maiocco

unread,
Apr 4, 2023, 11:44:27 AM4/4/23
to rabbitmq-users
I've tried even with docker and the behaviour it's different but with the same result (rpc example is useless or teh library does'nt work as expectred) 

with docker the consumer seems to be active but if I try to send a message with the producer, this seems to wait for a never-retruning acknowledge

Michal Kuratczyk

unread,
Apr 4, 2023, 12:14:16 PM4/4/23
to rabbitm...@googlegroups.com
Most likely it's a purely network-level issue. I'd recommend checking RabbitMQ logs (any info about connections?) and/or tcpdump/wireshark to see what's going on between the client and the server.

--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-user...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/rabbitmq-users/61f07d57-e406-4181-a2c6-d5d581308155n%40googlegroups.com.


--
Michał
RabbitMQ team
Reply all
Reply to author
Forward
Message has been deleted
Message has been deleted
Message has been deleted
Message has been deleted
0 new messages