Skip to content

Many records in ossec.log of type: 'queue/sockets/queue' not accessible: 'Message too long' AND 'queue/sockets/queue' not accessible: 'Bad file descriptor' #1

@JarkoFreeBsd

Description

@JarkoFreeBsd

Continue from https://www.reddit.com/r/freebsd/comments/1gwkb76/comment/m0pmpzq/

Modify src/headers/defs.h file into wazuh-manager port and change the following line from:
#define OS_MAXSTR OS_SIZE_65536
to
#define OS_MAXSTR OS_SIZE_1048576 

Environment: freebsd 14.2 , Wazuh 4.10.1, Two agents:

  1. On opnsense ( freebsd 14.1) agent version 4.7.5
  2. On windows server 2022 agent version 4.10.1

In process of making wazuh-manager issues with Python3 - module pip not installed fixed with python -m ensurepip --upgrade

After build and make install error when straining wazuh manager in wazuh-modulesd:
<jemalloc>: Error in dlsym(RTLD_NEXT, "pthread_create")
Abort trap (core dumped)
failure

Install again from pkg
Relapsing all binaries in /var/ossec/bin (except wazuh-modulesd and wazuh-db - this one did not start) with built ones from the port
Wazuh ecosystem starts and works but the errors are the same:

2025/01/23 11:41:26 wazuh-remoted[7441] mq_op.c:121 at SendMSGAction(): ERROR: socketerr (not available).
2025/01/23 11:41:26 wazuh-remoted[7441] secure.c:802 at HandleSecureMessage(): ERROR: (1210): Queue 'queue/sockets/queue' not accessible: 'Bad file descriptor'
2025/01/23 11:41:26 wazuh-remoted[7441] mq_op.c:52 at StartMQWithSpecificOwnerAndPerms(): DEBUG: Connected succesfully to 'queue/sockets/queue' after 0 attempts
2025/01/23 11:41:26 wazuh-remoted[7441] mq_op.c:53 at StartMQWithSpecificOwnerAndPerms(): DEBUG: (unix_domain) Maximum send buffer set to: '1048832'.
2025/01/23 11:41:26 wazuh-remoted[7441] secure.c:807 at HandleSecureMessage(): INFO: Successfully reconnected to 'queue/sockets/queue'
2025/01/23 11:41:26 wazuh-remoted[7441] mq_op.c:121 at SendMSGAction(): ERROR: socketerr (not available).
2025/01/23 11:41:26 wazuh-remoted[7441] secure.c:802 at HandleSecureMessage(): ERROR: (1210): Queue 'queue/sockets/queue' not accessible: 'Message too long'
2025/01/23 11:41:26 wazuh-remoted[7441] mq_op.c:52 at StartMQWithSpecificOwnerAndPerms(): DEBUG: Connected succesfully to 'queue/sockets/queue' after 0 attempts
2025/01/23 11:41:26 wazuh-remoted[7441] mq_op.c:53 at StartMQWithSpecificOwnerAndPerms(): DEBUG: (unix_domain) Maximum send buffer set to: '1048832'.
2025/01/23 11:41:26 wazuh-remoted[7441] secure.c:807 at HandleSecureMessage(): INFO: Successfully reconnected to 'queue/sockets/queue'
2025/01/23 11:41:26 wazuh-remoted[7441] mq_op.c:121 at SendMSGAction(): ERROR: socketerr (not available).

The Wazuh is working normaly, exept the ossec.log is flooded.
Any ideas how to go further will be appreciated.
Thanks for all work!!!

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