Skip to content
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

Problem when try to install module, can't add module to IRIS #4

Open
yahoopl opened this issue Aug 8, 2023 · 5 comments
Open

Problem when try to install module, can't add module to IRIS #4

yahoopl opened this issue Aug 8, 2023 · 5 comments

Comments

@yahoopl
Copy link

yahoopl commented Aug 8, 2023

OS: clean Debian 12

sudo ./buildnpush2iris.sh -a
[BUILDnPUSH2IRIS] Pushing to Worker and App container!
[BUILDnPUSH2IRIS] Starting the build and push process..
./buildnpush2iris.sh: line 30: python3.9: command not found
ls: cannot access './dist': No such file or directory
[BUILDnPUSH2IRIS] Found latest module file:
[BUILDnPUSH2IRIS] Copy module file to worker container..
"docker cp" requires exactly 2 arguments.
See 'docker cp --help'.

Usage: docker cp [OPTIONS] CONTAINER:SRC_PATH DEST_PATH|-
docker cp [OPTIONS] SRC_PATH|- CONTAINER:DEST_PATH

Copy files/folders between a container and the local filesystem
[BUILDnPUSH2IRIS] Installing module in worker container..
ERROR: Directory 'dependencies/' is not installable. Neither 'setup.py' nor 'pyproject.toml' found.

[notice] A new release of pip is available: 23.0.1 -> 23.2.1
[notice] To update, run: pip install --upgrade pip
[BUILDnPUSH2IRIS] Restarting worker container..
iriswebapp_worker
[BUILDnPUSH2IRIS] Copy module file to app container..
"docker cp" requires exactly 2 arguments.
See 'docker cp --help'.

Usage: docker cp [OPTIONS] CONTAINER:SRC_PATH DEST_PATH|-
docker cp [OPTIONS] SRC_PATH|- CONTAINER:DEST_PATH

Copy files/folders between a container and the local filesystem
[BUILDnPUSH2IRIS] Installing module in app container..
ERROR: Directory 'dependencies/' is not installable. Neither 'setup.py' nor 'pyproject.toml' found.

[notice] A new release of pip is available: 23.0.1 -> 23.2.1
[notice] To update, run: pip install --upgrade pip
[BUILDnPUSH2IRIS] Restarting app container..
iriswebapp_app
[BUILDnPUSH2IRIS] Completed!

@tkolaski
Copy link

tkolaski commented Aug 11, 2023

Same problem on Debian 12
Os: Debian 12
Python: Python 3.11.2

ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
evtx2splunk 2.0.1 requires certifi==2021.10.8, but you have certifi 2023.7.22 which is incompatible.
evtx2splunk 2.0.1 requires idna==3.3, but you have idna 3.4 which is incompatible.
docx-generator 0.8.0 requires setuptools>=65.5.1, but you have setuptools 59.6.0 which is incompatible.

@shaker402
Copy link

dear tkolaski, how do you fix the above

@45triX
Copy link

45triX commented Mar 12, 2024

If you use this ommand docker exec -it iriswebapp_worker /bin/sh and issue the command pip install --upgrade pip that will solve the pip issue. I'm struggling as to what the ./.dist directory is and what files it should contain. It needs the setup.py file and the pyproject.toml but other than that IDK

@shaker402
Copy link

thank you for your help , the integration done successfully , but i can not searching task , I had the following error in Dim Task:
Task ID:
97cb0817-a10c-4a36-b773-303e29ed64c5
Task finished on:
2024-03-15 00:59:52.192154
Module name:
iris_wazuhindexer_module
Hook name:
on_manual_trigger_ioc
User:
administrator
Case ID:
1
Success:
Failure
Logs
Traceback (most recent call last): File "/iriswebapp/app/iris_engine/module_handler/module_handler.py", line 478, in task_hook_wrapper task_status = mod_inst.hooks_handler(hook_name, hook_ui_name, data=_obj) File "/opt/venv/lib/python3.9/site-packages/iris_wazuhindexer_module/IrisWazuhindexerInterface.py", line 95, in hooks_handler case = CaseDetailsSchema().dump(data) File "/opt/venv/lib/python3.9/site-packages/marshmallow/schema.py", line 549, in dump result = self._serialize(processed_obj, many=many) File "/opt/venv/lib/python3.9/site-packages/marshmallow/schema.py", line 517, in _serialize value = field_obj.serialize(attr_name, obj, accessor=self.get_attribute) File "/opt/venv/lib/python3.9/site-packages/marshmallow/fields.py", line 340, in serialize return self._serialize(value, attr, obj, **kwargs) File "/opt/venv/lib/python3.9/site-packages/marshmallow/fields.py", line 1981, in _serialize return self._serialize_method(obj) File "/iriswebapp/app/schema/marshables.py", line 2255, in get_status_name return CaseStatus(obj.status_id).name AttributeError: 'list' object has no attribute 'status_id'

could you help me to fix it

@shaker402
Copy link

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants