If the RabbitMQ partition '/var/lib/rabbitmq' shows high disk usage that continues to grow, follow the steps below to identify and resolve the issue: Â Check the RabbitMQ queue:
rabbitmqctl list_queues -p intra-cyops
Review the message count for 'cyops.gateway.crudhub.data'.
If the number of messages is very high, proceed with the next steps.
 Verify the audit logs:
/var/log/cyops-gateway/gateway.log
In the event of an error similar to the one below, it indicates that the message size exceeds the configured limit:
java.lang.IllegalStateException: Message body is too large (69320449), maximum configured size is 67108864
 Perform the steps below to fix the issue: Backup the configuration file:
cp -p /opt/cyops/configs/cyops-gateway/gateway.properties /opt/cyops/configs/cyops-gateway/gateway.properties_bkpÂ
Edit the configuration file to increase the size limit (default is 64).
vi /opt/cyops/configs/cyops-gateway/gateway.properties
max_inbound_message_body_size=128
Save the file and restart the service:
systemctl restart cyops-tomcat
Validate the fix:
Recheck the queue. The message count should begin to decrease gradually as messages are consumed, eventually freeing up RabbitMQ disk space.
Note: This guide cannot be applied before FortiSOAR v7.5.2 or v7.6.1, since the parameter max_inbound_message_body_size was not introduced.
|