Code Monkey home page Code Monkey logo

Comments (5)

teddytpc1 avatar teddytpc1 commented on June 18, 2024

The TAR files are being created and will be uploaded to the dev Bucket in order to perform validations.

from wazuh-bosh.

teddytpc1 avatar teddytpc1 commented on June 18, 2024

The Bosh deployment was tested. An error was thrown. It is related to clusterd. It is not starting:

2021/12/06 15:40:42 DEBUG: [Cluster] [Main] Removing '/var/ossec/queue/cluster/'.
2021/12/06 15:40:42 DEBUG: [Cluster] [Main] Removed '/var/ossec/queue/cluster/'.
2021/12/06 15:40:44 ERROR: [Cluster] [Main] Unhandled exception: [Errno 2] No such file or directory
Traceback (most recent call last):
  File "/var/ossec/framework/scripts/wazuh-clusterd.py", line 199, in <module>
    asyncio.run(main_function(args, cluster_configuration, cluster_items, main_logger))
  File "/var/ossec/framework/python/lib/python3.9/asyncio/runners.py", line 44, in run
    return loop.run_until_complete(main)
  File "/var/ossec/framework/python/lib/python3.9/asyncio/base_events.py", line 642, in run_until_complete
    return future.result()
  File "/var/ossec/framework/scripts/wazuh-clusterd.py", line 72, in master_main
    from wazuh.core.cluster import master, local_server
  File "/var/ossec/framework/python/lib/python3.9/site-packages/wazuh-4.3.0-py3.9.egg/wazuh/core/cluster/master.py", line 23, in <module>
    from wazuh.core.cluster.dapi import dapi
  File "/var/ossec/framework/python/lib/python3.9/site-packages/wazuh-4.3.0-py3.9.egg/wazuh/core/cluster/dapi/dapi.py", line 34, in <module>
    process_pool = ProcessPoolExecutor(max_workers=1)
  File "/var/ossec/framework/python/lib/python3.9/concurrent/futures/process.py", line 642, in __init__
    self._call_queue = _SafeQueue(
  File "/var/ossec/framework/python/lib/python3.9/concurrent/futures/process.py", line 165, in __init__
    super().__init__(max_size, ctx=ctx)
  File "/var/ossec/framework/python/lib/python3.9/multiprocessing/queues.py", line 43, in __init__
    self._rlock = ctx.Lock()
  File "/var/ossec/framework/python/lib/python3.9/multiprocessing/context.py", line 68, in Lock
    return Lock(ctx=self.get_context())
  File "/var/ossec/framework/python/lib/python3.9/multiprocessing/synchronize.py", line 162, in __init__
    SemLock.__init__(self, SEMAPHORE, 1, 1, ctx=ctx)
  File "/var/ossec/framework/python/lib/python3.9/multiprocessing/synchronize.py", line 57, in __init__
    sl = self._semlock = _multiprocessing.SemLock(
FileNotFoundError: [Errno 2] No such file or directory

If the option -r is added (to start it with root), the daemon starts:
./wazuh-clusterd -r

from wazuh-bosh.

teddytpc1 avatar teddytpc1 commented on June 18, 2024

Some additional tests were executed yesterday. A chown wazuh:wazuh command was executed recursively in /var/ossec but the issue persists.

from wazuh-bosh.

teddytpc1 avatar teddytpc1 commented on June 18, 2024

The pre-start script for Manager and Worker deployments. The following line was added to resolve the wazuh-clusterd issue:
chmod 777 /dev/shm

This was tested and it is working fine. Branch name is: 22-4.3-configs

from wazuh-bosh.

teddytpc1 avatar teddytpc1 commented on June 18, 2024

Some configurations were made in order to fix some deprecated tags in ossec.conf. Everything is working properly.
PR was created.

from wazuh-bosh.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.