-
Notifications
You must be signed in to change notification settings - Fork 419
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cant open up sockets.. #505
Comments
I have this implemented with kubernetes as found in wazuh-kubernetes. Note that i upgraded from 4.1.5 and due to all of the renaming I assume it must be a problem with the persistent volume storing old data or the new mount paths not being changed in the statefulset |
Same issue here… |
got it running by creating the following folders by hand: docker-compose exec wazuh-manager bash
cd /var/ossec/queue
mkdir sockets
chown ossec:ossec sockets
chmod 770 sockets
mkdir logcollector
chown ossec:ossec logcollector
chmod 770 logcollector |
I added the paths in k8s and now im getting this: [cont-init.d] 2-manager: executing... k8s config update: |
Hello, thank you for reporting this, This issue seems to be related with the changes in the directory structure done in this issue: wazuh/wazuh#6885 It seems that the old directories are maintained in a permanent volume and the new ones are not created on upgrade. |
Update ReportWorking branch: https://github.com/wazuh/wazuh-docker/tree/fix-4.2-upgrade Proposed and tested three different solutions: 1. Remove ossec_queue volumeBy removing the volume from here: wazuh-docker/build-from-sources.yml Line 24 in 4b75a66
We can overwrite the old This solution was rejected due to data loss risk caused by the deletion of the databases. 2. Remove /queue/ossec from the persistent volume and add /queue/sockets and /queue/logcollectorBy adding / This solution was implemented on this commit: 6da1b19 This solution was rejected because it would be difficult to apply the same solution for future path name changes. 3. Create new function to rename pathsWe added a new function to the This solution replicates the behaviour implemented in wazuh-packages, and solves the problems of the previous solutions, avoiding data loss and providing a method to modify the paths in the future. This solution was implemented on this commit: 68bc08f Wazuh service after upgrading using the new image:
WorkaroundUntil these changes are released a possible solution for this problem would be to manually replicate the third solution and rename the affected directories
|
UpdateWe have uploaded the new images to Dockerhub and retagged v4.2.0 |
Hello! Regards. |
Hello @antonisnyc94, We have uploaded the new Regards. |
@DFolchA Great thank you! Please not that for upgrading wazuh in kubernets, I had to add a "chown ossec:ossec /var/ossec/queue/sockets" in /etc/cont-init.d/2-manager since i was getting permissions denied error during startup because the owner is root. Adding the command in containers statup wont work, due to the containers nature in mounting the volumes after startup. |
I dont understand as to why version 4.1.5 works fine and once i change the docker image to 4.2.0 I get this error. Im using the opendistro wazuh docker images. With netstat it seems like wazuh doesnt listen to anything.. Do you know any further troubleshooting steps i should take?
Thanks,
Tony
The text was updated successfully, but these errors were encountered: