Error trying to send message to rabbitmq

1,231 views
Skip to first unread message

Esteban Buitrago

unread,
Apr 24, 2020, 11:10:05 AM4/24/20
to rabbitmq-users
Good morning, 
I´m trying to queue a message to my rabbit but it isn´t queued. I check the error and I get: 

2020-04-24 14:54:47.811 [error] <0.1225.0> Channel error on connection <0.777.0> (10.70.0.106:48290 -> 10.70.0.242:5672, vhost: 'v_host', user: 'user'), channel 6:
operation basic.publish caused a channel exception precondition_failed: message size 449299729 is larger than configured max size 134217728

I had search where I can change that limit but I not found any config file in my server, I just can see /etc/rabbitmq/enabled_plugins and /usr/lib/rabbitmq with subfolders autocomplete, bin and lib.

Rabbit : 3.8.2
Erlang 22.0.7
My rabbit is in a server Ubuntu 18.04.2

Thanks for help.

Luke Bakken

unread,
Apr 24, 2020, 11:30:10 AM4/24/20
to rabbitmq-users
Hi Esteban,

You should not send messages that large through RabbitMQ. If you have the option to compress the message, you should do that. Otherwise, store the message in a different system and pass a "pointer" (like a URI) to the message through RabbitMQ.

If you absolutely must send a message that large, you can increase the max message size to 512MiB in /etc/rabbitmq/rabbitmq.conf

max_message_size = 536870912

You will have to restart RabbitMQ after creating that file.

Thanks,
Luke
Reply all
Reply to author
Forward
0 new messages