Hi Wazuh team!
Could you please help me with following issue?
I've notices that ossec-remoted stops working on my Wazuh 3.9.5
Here's part of remoted logs
[root@wzh ossec]# 2019/10/14 09:26:13 ossec-remoted: INFO: Started (pid: 1527). Listening on port 1514/TCP (secure).
2019/10/14 09:26:13 ossec-remoted: INFO: (4111): Maximum number of agents allowed: '14000'.
2019/10/14 09:26:13 ossec-remoted: INFO: (1410): Reading authentication keys file.
2019/10/14 09:26:13 ossec-remoted: ERROR: Unable to open agent file. errno: 13
2019/10/14 09:26:13 ossec-remoted: CRITICAL: (1103): Could not open file '/queue/rids/2725' due to [(13)-(Permission denied)].
I've checked file permission, owner(it's ossec), and even tried to chmod to 755 just to see if this will solve the issue.
sudo -u ossec cat /var/ossec/queue/rids/2725 is also working, but remoted wont start anyway.
I'm running a cluster with 3 nodes, other nodes are not working as well:
[root@wzh04 ~]# /var/ossec/bin/ossec-remoted -f
[root@wzh04 ~]# 2019/10/14 09:30:39 ossec-remoted: INFO: Started (pid: 24692). Listening on port 1514/TCP (secure).
2019/10/14 09:30:39 ossec-remoted: INFO: (4111): Maximum number of agents allowed: '14000'.
2019/10/14 09:30:39 ossec-remoted: INFO: (1410): Reading authentication keys file.
2019/10/14 09:30:39 ossec-remoted: ERROR: Unable to open agent file. errno: 13
2019/10/14 09:30:39 ossec-remoted: CRITICAL: (1103): Could not open file '/queue/rids/sender_counter' due to [(13)-(Permission denied)].
[root@wzh04 ~]# ls -lh /var/ossec/queue/rids/sender_counter
-rw-r--r-- 1 ossec ossec 14 Oct 7 09:19 /var/ossec/queue/rids/sender_counter
That's not a first time I see issues with permissions on /queue folder, but previously changing owner recursively helped, and now it's not.
Looking forward for your answer!
Thanks,
Daniil.