Skip to content

QueueError "no system resources" error raised when mqueue does not exist #3

@samv

Description

@samv

This error message is highly confusing when dealing with two services communicating over posixmq. As IPC message queues have various tunables for things like the queue size, message size, and there as global system limits that specify the maximum amount of memory that may be allocated to posixmq at any one time, you might end up thinking you got it wrong and keep increasing the queue size or system limits. However the problem is simply that the other process is not running, or has a typo in their MQ name or something. And then this is bad because too much buffering in general can lead to processing delays and lag in your "realtime" channel, especially with python as a consumer

For the specific case where the mqueue does not exist, the error should be closer to "No such file or directory" or "Message Queue has not been created" (for read-only queues)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions