MISP / MISP

MISP (core software) - Open Source Threat Intelligence and Sharing Platform
https://www.misp-project.org/
GNU Affero General Public License v3.0
5.26k stars 1.38k forks source link

RHEL 8.4 MISP Installation Errors #8669

Open guaar opened 1 year ago

guaar commented 1 year ago

Support Questions

I am trying to install MISP on RedHat 8.4 OS, during installation number of errors were detected especially with dependencies i.e. python and libraries not matching the requirements (censys, poetry core). After installation the misp workers and misp modules services fail to start.

Following Andreas Muelhemanns instructions for RHEL 8.x versions has worked well however this doesn't bring the MISP to latest release and upgrade process is unknown.

MISP version

2.4.163

Operating System

Redhat

Operating System version

8.4

PHP version

7.4

Browser

No response

Browser version

No response

Relevant log output

Next step: Install misp-stix
Processing ./app/files/scripts/misp-stix
  Installing build dependencies ... error
  ERROR: Command errored out with exit status 1:
   command: /var/www/MISP/venv/bin/python3 /var/www/MISP/venv/lib/python3.6/site-packages/pip install --ignore-installed --no-user --p                        refix /tmp/pip-build-env-ip2u3igc/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple                         -- 'poetry_core>=1.0' 'setuptools>=65.1.1'
       cwd: None
  Complete output (4 lines):
  Collecting poetry_core>=1.0
    Downloading poetry_core-1.0.8-py2.py3-none-any.whl (425 kB)
  ERROR: Could not find a version that satisfies the requirement setuptools>=65.1.1 (from versions: 0.6b1, 0.6b2, 0.6b3, 0.6b4, 0.6rc1                        , 0.6rc2, 0.6rc3, 0.6rc4, 0.6rc5, 0.6rc6, 0.6rc7, 0.6rc8, 0.6rc9, 0.6rc10, 0.6rc11, 0.7.2, 0.7.3, 0.7.4, 0.7.5, 0.7.6, 0.7.7, 0.7.8, 0                        .8, 0.9, 0.9.1, 0.9.2, 0.9.3, 0.9.4, 0.9.5, 0.9.6, 0.9.7, 0.9.8, 1.0, 1.1, 1.1.1, 1.1.2, 1.1.3, 1.1.4, 1.1.5, 1.1.6, 1.1.7, 1.2, 1.3,                         1.3.1, 1.3.2, 1.4, 1.4.1, 1.4.2, 2.0, 2.0.1, 2.0.2, 2.1, 2.1.1, 2.1.2, 2.2, 3.0, 3.0.1, 3.0.2, 3.1, 3.2, 3.3, 3.4, 3.4.1, 3.4.2, 3.4.3                        , 3.4.4, 3.5, 3.5.1, 3.5.2, 3.6, 3.7, 3.7.1, 3.8, 3.8.1, 4.0, 4.0.1, 5.0, 5.0.1, 5.0.2, 5.1, 5.2, 5.3, 5.4, 5.4.1, 5.4.2, 5.5, 5.5.1,                         5.6, 5.7, 5.8, 6.0.1, 6.0.2, 6.1, 7.0, 8.0, 8.0.1, 8.0.2, 8.0.3, 8.0.4, 8.1, 8.2, 8.2.1, 8.3, 9.0, 9.0.1, 9.1, 10.0, 10.0.1, 10.1, 10.                        2, 10.2.1, 11.0, 11.1, 11.2, 11.3, 11.3.1, 12.0, 12.0.1, 12.0.2, 12.0.3, 12.0.4, 12.0.5, 12.1, 12.2, 12.3, 12.4, 13.0.1, 13.0.2, 14.0,                         14.1, 14.1.1, 14.2, 14.3, 14.3.1, 15.0, 15.1, 15.2, 16.0, 17.0, 17.1, 17.1.1, 18.0, 18.0.1, 18.1, 18.2, 18.3, 18.3.1, 18.3.2, 18.4, 1                        8.5, 18.6, 18.6.1, 18.7, 18.7.1, 18.8, 18.8.1, 19.0, 19.1, 19.1.1, 19.2, 19.3, 19.4, 19.4.1, 19.5, 19.6, 19.6.1, 19.6.2, 19.7, 20.0, 2                        0.1, 20.1.1, 20.2.2, 20.3, 20.3.1, 20.4, 20.6.6, 20.6.7, 20.6.8, 20.7.0, 20.8.0, 20.8.1, 20.9.0, 20.10.1, 21.0.0, 21.1.0, 21.2.0, 21.2                        .1, 21.2.2, 22.0.0, 22.0.1, 22.0.2, 22.0.4, 22.0.5, 23.0.0, 23.1.0, 23.2.0, 23.2.1, 24.0.0, 24.0.1, 24.0.2, 24.0.3, 24.1.0, 24.1.1, 24                        .2.0, 24.2.1, 24.3.0, 24.3.1, 25.0.0, 25.0.1, 25.0.2, 25.1.0, 25.1.1, 25.1.2, 25.1.3, 25.1.4, 25.1.5, 25.1.6, 25.2.0, 25.3.0, 25.4.0,                         26.0.0, 26.1.0, 26.1.1, 27.0.0, 27.1.0, 27.1.2, 27.2.0, 27.3.0, 27.3.1, 28.0.0, 28.1.0, 28.2.0, 28.3.0, 28.4.0, 28.5.0, 28.6.0, 28.6.1                        , 28.7.0, 28.7.1, 28.8.0, 28.8.1, 29.0.0, 29.0.1, 30.0.0, 30.1.0, 30.2.0, 30.2.1, 30.3.0, 30.4.0, 31.0.0, 31.0.1, 32.0.0, 32.1.0, 32.1                        .1, 32.1.2, 32.1.3, 32.2.0, 32.3.0, 32.3.1, 33.1.0, 33.1.1, 34.0.0, 34.0.1, 34.0.2, 34.0.3, 34.1.0, 34.1.1, 34.2.0, 34.3.0, 34.3.1, 34                        .3.2, 34.3.3, 34.4.0, 34.4.1, 35.0.0, 35.0.1, 35.0.2, 36.0.1, 36.1.0, 36.1.1, 36.2.0, 36.2.1, 36.2.2, 36.2.3, 36.2.4, 36.2.5, 36.2.6,                         36.2.7, 36.3.0, 36.4.0, 36.5.0, 36.6.0, 36.6.1, 36.7.0, 36.7.1, 36.7.2, 36.8.0, 37.0.0, 38.0.0, 38.1.0, 38.2.0, 38.2.1, 38.2.3, 38.2.4                        , 38.2.5, 38.3.0, 38.4.0, 38.4.1, 38.5.0, 38.5.1, 38.5.2, 38.6.0, 38.6.1, 38.7.0, 39.0.0, 39.0.1, 39.1.0, 39.2.0, 40.0.0, 40.1.0, 40.1                        .1, 40.2.0, 40.3.0, 40.4.0, 40.4.1, 40.4.2, 40.4.3, 40.5.0, 40.6.0, 40.6.1, 40.6.2, 40.6.3, 40.7.0, 40.7.1, 40.7.2, 40.7.3, 40.8.0, 40                        .9.0, 41.0.0, 41.0.1, 41.1.0, 41.2.0, 41.3.0, 41.4.0, 41.5.0, 41.5.1, 41.6.0, 42.0.0, 42.0.1, 42.0.2, 43.0.0, 44.0.0, 44.1.0, 44.1.1,                         45.0.0, 45.1.0, 45.2.0, 45.3.0, 46.0.0, 46.1.0, 46.1.1, 46.1.2, 46.1.3, 46.2.0, 46.3.0, 46.3.1, 46.4.0, 47.0.0, 47.1.0, 47.1.1, 47.2.0                        , 47.3.0, 47.3.1, 47.3.2, 48.0.0, 49.0.0, 49.0.1, 49.1.0, 49.1.1, 49.1.2, 49.1.3, 49.2.0, 49.2.1, 49.3.0, 49.3.1, 49.3.2, 49.4.0, 49.5                        .0, 49.6.0, 50.0.0, 50.0.1, 50.0.2, 50.0.3, 50.1.0, 50.2.0, 50.3.0, 50.3.1, 50.3.2, 51.0.0, 51.1.0, 51.1.0.post20201221, 51.1.1, 51.1.                        2, 51.2.0, 51.3.0, 51.3.1, 51.3.2, 51.3.3, 52.0.0, 53.0.0, 53.1.0, 54.0.0, 54.1.0, 54.1.1, 54.1.2, 54.1.3, 54.2.0, 56.0.0, 56.1.0, 56.                        2.0, 57.0.0, 57.1.0, 57.2.0, 57.3.0, 57.4.0, 57.5.0, 58.0.0, 58.0.1, 58.0.2, 58.0.3, 58.0.4, 58.1.0, 58.2.0, 58.3.0, 58.4.0, 58.5.0, 5                        8.5.1, 58.5.2, 58.5.3, 59.0.1, 59.1.0, 59.1.1, 59.2.0, 59.3.0, 59.4.0, 59.5.0, 59.6.0)
  ERROR: No matching distribution found for setuptools>=65.1.1
  ----------------------------------------
WARNING: Discarding file:///var/www/MISP/app/files/scripts/misp-stix. Command errored out with exit status 1: /var/www/MISP/venv/bin/p                        ython3 /var/www/MISP/venv/lib/python3.6/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-ip2u3igc/ov                        erlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- 'poetry_core>=1.0' 'setuptools>=                        65.1.1' Check the logs for full command output.
ERROR: Command errored out with exit status 1: /var/www/MISP/venv/bin/python3 /var/www/MISP/venv/lib/python3.6/site-packages/pip insta                        ll --ignore-installed --no-user --prefix /tmp/pip-build-env-ip2u3igc/overlay --no-warn-script-location --no-binary :none: --only-binar                        y :none: -i https://pypi.org/simple -- 'poetry_core>=1.0' 'setuptools>=65.1.1' Check the logs for full command output.
Collecting zmq
  Downloading zmq-0.0.0.zip (2.2 kB)
  Preparing metadata (setup.py) ... done
Collecting redis
  Downloading redis-4.3.4-py3-none-any.whl (246 kB)
     |████████████████████████████████| 246 kB 1.8 MB/s
Collecting pyzmq
  Downloading pyzmq-24.0.1-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.whl (1.1 MB)
     |████████████████████████████████| 1.1 MB 5.1 MB/s
Collecting packaging>=20.4
  Downloading packaging-21.3-py3-none-any.whl (40 kB)
     |████████████████████████████████| 40 kB 4.6 MB/s
Collecting deprecated>=1.2.3
  Downloading Deprecated-1.2.13-py2.py3-none-any.whl (9.6 kB)
Collecting async-timeout>=4.0.2
  Downloading async_timeout-4.0.2-py3-none-any.whl (5.8 kB)
Collecting importlib-metadata>=1.0
  Downloading importlib_metadata-4.8.3-py3-none-any.whl (17 kB)
Collecting typing-extensions
  Downloading typing_extensions-4.1.1-py3-none-any.whl (26 kB)
Collecting wrapt<2,>=1.10
  Downloading wrapt-1.14.1-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (74 kB)
     |████████████████████████████████| 74 kB 4.3 MB/s
Collecting zipp>=0.5
  Downloading zipp-3.6.0-py3-none-any.whl (5.3 kB)
Collecting pyparsing!=3.0.5,>=2.0.2
  Downloading pyparsing-3.0.9-py3-none-any.whl (98 kB)
     |████████████████████████████████| 98 kB 4.8 MB/s
Building wheels for collected packages: zmq
  Building wheel for zmq (setup.py) ... done
  Created wheel for zmq: filename=zmq-0.0.0-py3-none-any.whl size=1275 sha256=8a7c9016ccde1f25a5948c83afd0cefb12beb35ef775ddf6f3289f66                        44697e5e
  Stored in directory: /usr/share/httpd/.cache/pip/wheels/fc/b7/d7/0900e1d492a05744b742f6f565a4a517bbc8d726734fd33d47
Successfully built zmq
Installing collected packages: zipp, wrapt, typing-extensions, pyparsing, pyzmq, packaging, importlib-metadata, deprecated, async-time                        out, zmq, redis
Successfully installed async-timeout-4.0.2 deprecated-1.2.13 importlib-metadata-4.8.3 packaging-21.3 pyparsing-3.0.9 pyzmq-24.0.1 redi                        s-4.3.4 typing-extensions-4.1.1 wrapt-1.14.1 zipp-3.6.0 zmq-0.0.0
Collecting git+https://github.com/kbandla/pydeep.git
  Cloning https://github.com/kbandla/pydeep.git to /tmp/pip-req-build-hjpukwxp
  Running command git clone --filter=blob:none -q https://github.com/kbandla/pydeep.git /tmp/pip-req-build-hjpukwxp
  Resolved https://github.com/kbandla/pydeep.git to commit 010b444245bf66545119ce7dc561ee36a62dd5f5
  Preparing metadata (setup.py) ... done
Collecting python-magic
  Downloading python_magic-0.4.27-py2.py3-none-any.whl (13 kB)
Collecting plyara
  Downloading plyara-2.1.1-py3-none-any.whl (23 kB)
Collecting ply>=3.11
  Downloading ply-3.11-py2.py3-none-any.whl (49 kB)
     |████████████████████████████████| 49 kB 985 kB/s
Building wheels for collected packages: pydeep
  Building wheel for pydeep (setup.py) ... done
  Created wheel for pydeep: filename=pydeep-0.4-cp36-cp36m-linux_x86_64.whl size=17361 sha256=4d13cd235739888f60855464b8046060e75c1451                        18341aa0e4de5c9d68638fb7
  Stored in directory: /tmp/pip-ephem-wheel-cache-w6mkie3y/wheels/5e/af/0d/9689ec1838bce26f71183d24b5975e092bc9fe6c2fb6ae42b0
Successfully built pydeep
Installing collected packages: ply, python-magic, pydeep, plyara
Successfully installed ply-3.11 plyara-2.1.1 pydeep-0.4 python-magic-0.4.27
Collecting lief
  Downloading lief-0.12.2-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.0 MB)
     |████████████████████████████████| 4.0 MB 3.2 MB/s
Installing collected packages: lief
Successfully installed lief-0.12.2
Processing /var/www/MISP/PyMISP
  Installing build dependencies ... error
  ERROR: Command errored out with exit status 1:
   command: /var/www/MISP/venv/bin/python3 /var/www/MISP/venv/lib/python3.6/site-packages/pip install --ignore-installed --no-user --p                        refix /tmp/pip-build-env-v1q73ik2/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple                         -- 'poetry_core>=1.1' setuptools
       cwd: None
  Complete output (2 lines):
  ERROR: Could not find a version that satisfies the requirement poetry_core>=1.1 (from versions: 1.0.0a0, 1.0.0a1, 1.0.0a2, 1.0.0a3,                         1.0.0a4, 1.0.0a5, 1.0.0a6, 1.0.0a7, 1.0.0a8, 1.0.0a9, 1.0.0b1, 1.0.0rc1, 1.0.0rc2, 1.0.0rc3, 1.0.0, 1.0.1, 1.0.2, 1.0.3, 1.0.4, 1.0.5,                         1.0.6, 1.0.7, 1.0.8, 1.1.0a1, 1.1.0a2, 1.1.0a3, 1.1.0a4, 1.1.0a5, 1.1.0a6)
  ERROR: No matching distribution found for poetry_core>=1.1
  ----------------------------------------
WARNING: Discarding file:///var/www/MISP/PyMISP. Command errored out with exit status 1: /var/www/MISP/venv/bin/python3 /var/www/MISP/                        venv/lib/python3.6/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-v1q73ik2/overlay --no-warn-scrip                        t-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- 'poetry_core>=1.1' setuptools Check the logs for full                         command output.
ERROR: Command errored out with exit status 1: /var/www/MISP/venv/bin/python3 /var/www/MISP/venv/lib/python3.6/site-packages/pip insta                        ll --ignore-installed --no-user --prefix /tmp/pip-build-env-v1q73ik2/overlay --no-warn-script-location --no-binary :none: --only-binar                        y :none: -i https://pypi.org/simple -- 'poetry_core>=1.1' setuptools Check the logs for full command output.

Created symlink /etc/systemd/system/multi-user.target.wants/misp-modules.service → /etc/systemd/system/misp-modules.service.
ERROR:root:No module named 'pybgpranking'
Traceback (most recent call last):
  File "/var/www/MISP/venv/lib/python3.6/site-packages/misp_modules/__init__.py", line 41, in <module>
    from .modules import *  # noqa
  File "/var/www/MISP/venv/lib/python3.6/site-packages/misp_modules/modules/__init__.py", line 1, in <module>
    from .expansion import *  # noqa
  File "/var/www/MISP/venv/lib/python3.6/site-packages/misp_modules/modules/expansion/bgpranking.py", line 6, in <module>
    from pybgpranking import BGPRanking
ModuleNotFoundError: No module named 'pybgpranking'
2022-10-14 07:52:55,119 - misp-modules - INFO - Launch MISP modules server from package.
INFO:misp-modules:Launch MISP modules server from package.
2022-10-14 07:52:55,121 - misp-modules - INFO - Helper loaded cache
INFO:misp-modules:Helper loaded cache
2022-10-14 07:52:55,121 - misp-modules - INFO - Unable to load MISP modules from package.
INFO:misp-modules:Unable to load MISP modules from package.
Setting "Plugin.Enrichment_services_enable" changed to 1
Setting "Plugin.Enrichment_hover_enable" changed to 1
Setting "Plugin.Enrichment_hover_popover_only" changed to 0
Setting "Plugin.Enrichment_hover_timeout" changed to "150"
Setting "Plugin.Enrichment_timeout" changed to "300"
Error: Setting change rejected.
Invalid setting "Plugin.Enrichment_bgpranking_enabled". Please make sure that the setting that you are attempting to change exists and                         if a module parameter, the modules are running.

Error: Setting change rejected.
Invalid setting "Plugin.Enrichment_countrycode_enabled". Please make sure that the setting that you are attempting to change exists an                        d if a module parameter, the modules are running.

Error: Setting change rejected.
Invalid setting "Plugin.Enrichment_cve_enabled". Please make sure that the setting that you are attempting to change exists and if a m                        odule parameter, the modules are running.

Error: Setting change rejected.
Invalid setting "Plugin.Enrichment_cve_advanced_enabled". Please make sure that the setting that you are attempting to change exists a                        nd if a module parameter, the modules are running.

Error: Setting change rejected.
Invalid setting "Plugin.Enrichment_cpe_enabled". Please make sure that the setting that you are attempting to change exists and if a m                        odule parameter, the modules are running.

Error: Setting change rejected.
Invalid setting "Plugin.Enrichment_dns_enabled". Please make sure that the setting that you are attempting to change exists and if a m                        odule parameter, the modules are running.

Error: Setting change rejected.
Invalid setting "Plugin.Enrichment_eql_enabled". Please make sure that the setting that you are attempting to change exists and if a m                        odule parameter, the modules are running.

Error: Setting change rejected.
Invalid setting "Plugin.Enrichment_btc_steroids_enabled". Please make sure that the setting that you are attempting to change exists a                        nd if a module parameter, the modules are running.

Error: Setting change rejected.
Invalid setting "Plugin.Enrichment_ipasn_enabled". Please make sure that the setting that you are attempting to change exists and if a                         module parameter, the modules are running.

Error: Setting change rejected.
Invalid setting "Plugin.Enrichment_reversedns_enabled". Please make sure that the setting that you are attempting to change exists and                         if a module parameter, the modules are running.

Error: Setting change rejected.
Invalid setting "Plugin.Enrichment_yara_syntax_validator_enabled". Please make sure that the setting that you are attempting to change                         exists and if a module parameter, the modules are running.

Error: Setting change rejected.
Invalid setting "Plugin.Enrichment_yara_query_enabled". Please make sure that the setting that you are attempting to change exists and                         if a module parameter, the modules are running.

Error: Setting change rejected.
Invalid setting "Plugin.Enrichment_wiki_enabled". Please make sure that the setting that you are attempting to change exists and if a                         module parameter, the modules are running.

Error: Setting change rejected.
Invalid setting "Plugin.Enrichment_threatminer_enabled". Please make sure that the setting that you are attempting to change exists an                        d if a module parameter, the modules are running.

Error: Setting change rejected.
Invalid setting "Plugin.Enrichment_threatcrowd_enabled". Please make sure that the setting that you are attempting to change exists an                        d if a module parameter, the modules are running.

Error: Setting change rejected.
Invalid setting "Plugin.Enrichment_hashdd_enabled". Please make sure that the setting that you are attempting to change exists and if                         a module parameter, the modules are running.

Error: Setting change rejected.
Invalid setting "Plugin.Enrichment_rbl_enabled". Please make sure that the setting that you are attempting to change exists and if a m                        odule parameter, the modules are running.

Error: Setting change rejected.
Invalid setting "Plugin.Enrichment_sigma_syntax_validator_enabled". Please make sure that the setting that you are attempting to chang                        e exists and if a module parameter, the modules are running.

Error: Setting change rejected.
Invalid setting "Plugin.Enrichment_stix2_pattern_syntax_validator_enabled". Please make sure that the setting that you are attempting                         to change exists and if a module parameter, the modules are running.

Error: Setting change rejected.
Invalid setting "Plugin.Enrichment_sigma_queries_enabled". Please make sure that the setting that you are attempting to change exists                         and if a module parameter, the modules are running.

Error: Setting change rejected.
Invalid setting "Plugin.Enrichment_dbl_spamhaus_enabled". Please make sure that the setting that you are attempting to change exists a                        nd if a module parameter, the modules are running.

Error: Setting change rejected.
Invalid setting "Plugin.Enrichment_btc_scam_check_enabled". Please make sure that the setting that you are attempting to change exists                         and if a module parameter, the modules are running.

Error: Setting change rejected.
Invalid setting "Plugin.Enrichment_macvendors_enabled". Please make sure that the setting that you are attempting to change exists and                         if a module parameter, the modules are running.

Error: Setting change rejected.
Invalid setting "Plugin.Enrichment_qrcode_enabled". Please make sure that the setting that you are attempting to change exists and if                         a module parameter, the modules are running.

Error: Setting change rejected.
Invalid setting "Plugin.Enrichment_ocr_enrich_enabled". Please make sure that the setting that you are attempting to change exists and                         if a module parameter, the modules are running.

Error: Setting change rejected.
Invalid setting "Plugin.Enrichment_pdf_enrich_enabled". Please make sure that the setting that you are attempting to change exists and                         if a module parameter, the modules are running.

Error: Setting change rejected.
Invalid setting "Plugin.Enrichment_docx_enrich_enabled". Please make sure that the setting that you are attempting to change exists an                        d if a module parameter, the modules are running.

Error: Setting change rejected.
Invalid setting "Plugin.Enrichment_xlsx_enrich_enabled". Please make sure that the setting that you are attempting to change exists an                        d if a module parameter, the modules are running.

Error: Setting change rejected.
Invalid setting "Plugin.Enrichment_pptx_enrich_enabled". Please make sure that the setting that you are attempting to change exists an                        d if a module parameter, the modules are running.

Error: Setting change rejected.
Invalid setting "Plugin.Enrichment_ods_enrich_enabled". Please make sure that the setting that you are attempting to change exists and                         if a module parameter, the modules are running.

Error: Setting change rejected.
Invalid setting "Plugin.Enrichment_odt_enrich_enabled". Please make sure that the setting that you are attempting to change exists and                         if a module parameter, the modules are running.

Error: Setting change rejected.
Invalid setting "Plugin.Enrichment_urlhaus_enabled". Please make sure that the setting that you are attempting to change exists and if                         a module parameter, the modules are running.

Error: Setting change rejected.
Invalid setting "Plugin.Enrichment_malwarebazaar_enabled". Please make sure that the setting that you are attempting to change exists                         and if a module parameter, the modules are running.

Error: Setting change rejected.
Invalid setting "Plugin.Enrichment_html_to_markdown_enabled". Please make sure that the setting that you are attempting to change exis                        ts and if a module parameter, the modules are running.

Error: Setting change rejected.
Invalid setting "Plugin.Enrichment_socialscan_enabled". Please make sure that the setting that you are attempting to change exists and                         if a module parameter, the modules are running.

Setting "Plugin.Enrichment_services_url" changed to "http://127.0.0.1"
Setting "Plugin.Enrichment_services_port" changed to "6666"
Setting "Plugin.Import_services_enable" changed to 1
Setting "Plugin.Import_services_url" changed to "http://127.0.0.1"
Setting "Plugin.Import_services_port" changed to "6666"
Setting "Plugin.Import_timeout" changed to "300"
Error: Setting change rejected.
Invalid setting "Plugin.Import_ocr_enabled". Please make sure that the setting that you are attempting to change exists and if a modul                        e parameter, the modules are running.

Error: Setting change rejected.
Invalid setting "Plugin.Import_mispjson_enabled". Please make sure that the setting that you are attempting to change exists and if a                         module parameter, the modules are running.

Error: Setting change rejected.
Invalid setting "Plugin.Import_openiocimport_enabled". Please make sure that the setting that you are attempting to change exists and                         if a module parameter, the modules are running.

Error: Setting change rejected.
Invalid setting "Plugin.Import_threatanalyzer_import_enabled". Please make sure that the setting that you are attempting to change exi                        sts and if a module parameter, the modules are running.

Error: Setting change rejected.
Invalid setting "Plugin.Import_csvimport_enabled". Please make sure that the setting that you are attempting to change exists and if a                         module parameter, the modules are running.

Setting "Plugin.Export_services_enable" changed to 1
Setting "Plugin.Export_services_url" changed to "http://127.0.0.1"
Setting "Plugin.Export_services_port" changed to "6666"
Setting "Plugin.Export_timeout" changed to "300"
Error: Setting change rejected.
Invalid setting "Plugin.Export_pdfexport_enabled". Please make sure that the setting that you are attempting to change exists and if a                         module parameter, the modules are running.

Extra attachments

No response

Code of Conduct

syloktools commented 1 year ago

Your pip install is bombing out so it is crashing the install script. Can you update the version of python you are using in the venv for MISP and try again? I also recommend building MISP from scratch/command by command so that you understand the process and dependencies.

guaar commented 1 year ago

Your pip install is bombing out so it is crashing the install script. Can you update the version of python you are using in the venv for MISP and try again? I also recommend building MISP from scratch/command by command so that you understand the process and dependencies.

Thanks for your reply. I followed the guide from Andreas here: https://github.com/amuehlem/MISP-RPM/blob/master/RHEL8.md - this has worked perfectly without any errors.

The error output is the result of using MISP's installation guide here: https://misp.github.io/MISP/INSTALL.rhel8/.

iZAK328 commented 1 year ago

Following Andreas Muelhemanns instructions for RHEL 8.x versions has worked well however this doesn't bring the MISP to latest release and upgrade process is unknown.

From what I know, the RPM packages do update to the latest versions of MISP however it might not be as fast as the git repo. There is a newer 2.4.164 version available in the repo and can be installed using sudo yum update misp.

shorif2000 commented 1 year ago

I am facing same issue

[root@misp MISP]# venv/bin/pip install /var/www/MISP/app/files/scripts/misp-stix/
Processing ./app/files/scripts/misp-stix
  Installing build dependencies ... error
  ERROR: Command errored out with exit status 1:
   command: /var/www/MISP/venv/bin/python3 /var/www/MISP/venv/lib/python3.6/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-enfgihle/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- 'poetry_core>=1.0' 'setuptools>=65.1.1'
       cwd: None
  Complete output (4 lines):
  Collecting poetry_core>=1.0
    Downloading poetry_core-1.0.8-py2.py3-none-any.whl (425 kB)
  ERROR: Could not find a version that satisfies the requirement setuptools>=65.1.1 (from versions: 0.6b1, 0.6b2, 0.6b3, 0.6b4, 0.6rc1, 0.6rc2, 0.6rc3, 0.6rc4, 0.6rc5, 0.6rc6, 0.6rc7, 0.6rc8, 0.6rc9, 0.6rc10, 0.6rc11, 0.7.2, 0.7.3, 0.7.4, 0.7.5, 0.7.6, 0.7.7, 0.7.8, 0.8, 0.9, 0.9.1, 0.9.2, 0.9.3, 0.9.4, 0.9.5, 0.9.6, 0.9.7, 0.9.8, 1.0, 1.1, 1.1.1, 1.1.2, 1.1.3, 1.1.4, 1.1.5, 1.1.6, 1.1.7, 1.2, 1.3, 1.3.1, 1.3.2, 1.4, 1.4.1, 1.4.2, 2.0, 2.0.1, 2.0.2, 2.1, 2.1.1, 2.1.2, 2.2, 3.0, 3.0.1, 3.0.2, 3.1, 3.2, 3.3, 3.4, 3.4.1, 3.4.2, 3.4.3, 3.4.4, 3.5, 3.5.1, 3.5.2, 3.6, 3.7, 3.7.1, 3.8, 3.8.1, 4.0, 4.0.1, 5.0, 5.0.1, 5.0.2, 5.1, 5.2, 5.3, 5.4, 5.4.1, 5.4.2, 5.5, 5.5.1, 5.6, 5.7, 5.8, 6.0.1, 6.0.2, 6.1, 7.0, 8.0, 8.0.1, 8.0.2, 8.0.3, 8.0.4, 8.1, 8.2, 8.2.1, 8.3, 9.0, 9.0.1, 9.1, 10.0, 10.0.1, 10.1, 10.2, 10.2.1, 11.0, 11.1, 11.2, 11.3, 11.3.1, 12.0, 12.0.1, 12.0.2, 12.0.3, 12.0.4, 12.0.5, 12.1, 12.2, 12.3, 12.4, 13.0.1, 13.0.2, 14.0, 14.1, 14.1.1, 14.2, 14.3, 14.3.1, 15.0, 15.1, 15.2, 16.0, 17.0, 17.1, 17.1.1, 18.0, 18.0.1, 18.1, 18.2, 18.3, 18.3.1, 18.3.2, 18.4, 18.5, 18.6, 18.6.1, 18.7, 18.7.1, 18.8, 18.8.1, 19.0, 19.1, 19.1.1, 19.2, 19.3, 19.4, 19.4.1, 19.5, 19.6, 19.6.1, 19.6.2, 19.7, 20.0, 20.1, 20.1.1, 20.2.2, 20.3, 20.3.1, 20.4, 20.6.6, 20.6.7, 20.6.8, 20.7.0, 20.8.0, 20.8.1, 20.9.0, 20.10.1, 21.0.0, 21.1.0, 21.2.0, 21.2.1, 21.2.2, 22.0.0, 22.0.1, 22.0.2, 22.0.4, 22.0.5, 23.0.0, 23.1.0, 23.2.0, 23.2.1, 24.0.0, 24.0.1, 24.0.2, 24.0.3, 24.1.0, 24.1.1, 24.2.0, 24.2.1, 24.3.0, 24.3.1, 25.0.0, 25.0.1, 25.0.2, 25.1.0, 25.1.1, 25.1.2, 25.1.3, 25.1.4, 25.1.5, 25.1.6, 25.2.0, 25.3.0, 25.4.0, 26.0.0, 26.1.0, 26.1.1, 27.0.0, 27.1.0, 27.1.2, 27.2.0, 27.3.0, 27.3.1, 28.0.0, 28.1.0, 28.2.0, 28.3.0, 28.4.0, 28.5.0, 28.6.0, 28.6.1, 28.7.0, 28.7.1, 28.8.0, 28.8.1, 29.0.0, 29.0.1, 30.0.0, 30.1.0, 30.2.0, 30.2.1, 30.3.0, 30.4.0, 31.0.0, 31.0.1, 32.0.0, 32.1.0, 32.1.1, 32.1.2, 32.1.3, 32.2.0, 32.3.0, 32.3.1, 33.1.0, 33.1.1, 34.0.0, 34.0.1, 34.0.2, 34.0.3, 34.1.0, 34.1.1, 34.2.0, 34.3.0, 34.3.1, 34.3.2, 34.3.3, 34.4.0, 34.4.1, 35.0.0, 35.0.1, 35.0.2, 36.0.1, 36.1.0, 36.1.1, 36.2.0, 36.2.1, 36.2.2, 36.2.3, 36.2.4, 36.2.5, 36.2.6, 36.2.7, 36.3.0, 36.4.0, 36.5.0, 36.6.0, 36.6.1, 36.7.0, 36.7.1, 36.7.2, 36.8.0, 37.0.0, 38.0.0, 38.1.0, 38.2.0, 38.2.1, 38.2.3, 38.2.4, 38.2.5, 38.3.0, 38.4.0, 38.4.1, 38.5.0, 38.5.1, 38.5.2, 38.6.0, 38.6.1, 38.7.0, 39.0.0, 39.0.1, 39.1.0, 39.2.0, 40.0.0, 40.1.0, 40.1.1, 40.2.0, 40.3.0, 40.4.0, 40.4.1, 40.4.2, 40.4.3, 40.5.0, 40.6.0, 40.6.1, 40.6.2, 40.6.3, 40.7.0, 40.7.1, 40.7.2, 40.7.3, 40.8.0, 40.9.0, 41.0.0, 41.0.1, 41.1.0, 41.2.0, 41.3.0, 41.4.0, 41.5.0, 41.5.1, 41.6.0, 42.0.0, 42.0.1, 42.0.2, 43.0.0, 44.0.0, 44.1.0, 44.1.1, 45.0.0, 45.1.0, 45.2.0, 45.3.0, 46.0.0, 46.1.0, 46.1.1, 46.1.2, 46.1.3, 46.2.0, 46.3.0, 46.3.1, 46.4.0, 47.0.0, 47.1.0, 47.1.1, 47.2.0, 47.3.0, 47.3.1, 47.3.2, 48.0.0, 49.0.0, 49.0.1, 49.1.0, 49.1.1, 49.1.2, 49.1.3, 49.2.0, 49.2.1, 49.3.0, 49.3.1, 49.3.2, 49.4.0, 49.5.0, 49.6.0, 50.0.0, 50.0.1, 50.0.2, 50.0.3, 50.1.0, 50.2.0, 50.3.0, 50.3.1, 50.3.2, 51.0.0, 51.1.0, 51.1.0.post20201221, 51.1.1, 51.1.2, 51.2.0, 51.3.0, 51.3.1, 51.3.2, 51.3.3, 52.0.0, 53.0.0, 53.1.0, 54.0.0, 54.1.0, 54.1.1, 54.1.2, 54.1.3, 54.2.0, 56.0.0, 56.1.0, 56.2.0, 57.0.0, 57.1.0, 57.2.0, 57.3.0, 57.4.0, 57.5.0, 58.0.0, 58.0.1, 58.0.2, 58.0.3, 58.0.4, 58.1.0, 58.2.0, 58.3.0, 58.4.0, 58.5.0, 58.5.1, 58.5.2, 58.5.3, 59.0.1, 59.1.0, 59.1.1, 59.2.0, 59.3.0, 59.4.0, 59.5.0, 59.6.0)
  ERROR: No matching distribution found for setuptools>=65.1.1
  ----------------------------------------
WARNING: Discarding file:///var/www/MISP/app/files/scripts/misp-stix. Command errored out with exit status 1: /var/www/MISP/venv/bin/python3 /var/www/MISP/venv/lib/python3.6/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-enfgihle/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- 'poetry_core>=1.0' 'setuptools>=65.1.1' Check the logs for full command output.
ERROR: Command errored out with exit status 1: /var/www/MISP/venv/bin/python3 /var/www/MISP/venv/lib/python3.6/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-enfgihle/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- 'poetry_core>=1.0' 'setuptools>=65.1.1' Check the logs for full command output
Timdebruijn commented 1 year ago

Hi, we have the same issue as well:

venv/bin/pip install /var/www/MISP/app/files/scripts/misp-stix/
Processing ./app/files/scripts/misp-stix
  Installing build dependencies ... error
  ERROR: Command errored out with exit status 1:
   command: /var/www/MISP/venv/bin/python3 /var/www/MISP/venv/lib/python3.6/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-l0p41bax/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- 'poetry_core>=1.0' 'setuptools>=65.1.1'
       cwd: None
  Complete output (4 lines):
  Collecting poetry_core>=1.0
    Using cached poetry_core-1.0.8-py2.py3-none-any.whl (425 kB)
  ERROR: Could not find a version that satisfies the requirement setuptools>=65.1.1 (from versions: 0.6b1, 0.6b2, 0.6b3, 0.6b4, 0.6rc1, 0.6rc2, 0.6rc3, 0.6rc4, 0.6rc5, 0.6rc6, 0.6rc7, 0.6rc8, 0.6rc9, 0.6rc10, 0.6rc11, 0.7.2, 0.7.3, 0.7.4, 0.7.5, 0.7.6, 0.7.7, 0.7.8, 0.8, 0.9, 0.9.1, 0.9.2, 0.9.3, 0.9.4, 0.9.5, 0.9.6, 0.9.7, 0.9.8, 1.0, 1.1, 1.1.1, 1.1.2, 1.1.3, 1.1.4, 1.1.5, 1.1.6, 1.1.7, 1.2, 1.3, 1.3.1, 1.3.2, 1.4, 1.4.1, 1.4.2, 2.0, 2.0.1, 2.0.2, 2.1, 2.1.1, 2.1.2, 2.2, 3.0, 3.0.1, 3.0.2, 3.1, 3.2, 3.3, 3.4, 3.4.1, 3.4.2, 3.4.3, 3.4.4, 3.5, 3.5.1, 3.5.2, 3.6, 3.7, 3.7.1, 3.8, 3.8.1, 4.0, 4.0.1, 5.0, 5.0.1, 5.0.2, 5.1, 5.2, 5.3, 5.4, 5.4.1, 5.4.2, 5.5, 5.5.1, 5.6, 5.7, 5.8, 6.0.1, 6.0.2, 6.1, 7.0, 8.0, 8.0.1, 8.0.2, 8.0.3, 8.0.4, 8.1, 8.2, 8.2.1, 8.3, 9.0, 9.0.1, 9.1, 10.0, 10.0.1, 10.1, 10.2, 10.2.1, 11.0, 11.1, 11.2, 11.3, 11.3.1, 12.0, 12.0.1, 12.0.2, 12.0.3, 12.0.4, 12.0.5, 12.1, 12.2, 12.3, 12.4, 13.0.1, 13.0.2, 14.0, 14.1, 14.1.1, 14.2, 14.3, 14.3.1, 15.0, 15.1, 15.2, 16.0, 17.0, 17.1, 17.1.1, 18.0, 18.0.1, 18.1, 18.2, 18.3, 18.3.1, 18.3.2, 18.4, 18.5, 18.6, 18.6.1, 18.7, 18.7.1, 18.8, 18.8.1, 19.0, 19.1, 19.1.1, 19.2, 19.3, 19.4, 19.4.1, 19.5, 19.6, 19.6.1, 19.6.2, 19.7, 20.0, 20.1, 20.1.1, 20.2.2, 20.3, 20.3.1, 20.4, 20.6.6, 20.6.7, 20.6.8, 20.7.0, 20.8.0, 20.8.1, 20.9.0, 20.10.1, 21.0.0, 21.1.0, 21.2.0, 21.2.1, 21.2.2, 22.0.0, 22.0.1, 22.0.2, 22.0.4, 22.0.5, 23.0.0, 23.1.0, 23.2.0, 23.2.1, 24.0.0, 24.0.1, 24.0.2, 24.0.3, 24.1.0, 24.1.1, 24.2.0, 24.2.1, 24.3.0, 24.3.1, 25.0.0, 25.0.1, 25.0.2, 25.1.0, 25.1.1, 25.1.2, 25.1.3, 25.1.4, 25.1.5, 25.1.6, 25.2.0, 25.3.0, 25.4.0, 26.0.0, 26.1.0, 26.1.1, 27.0.0, 27.1.0, 27.1.2, 27.2.0, 27.3.0, 27.3.1, 28.0.0, 28.1.0, 28.2.0, 28.3.0, 28.4.0, 28.5.0, 28.6.0, 28.6.1, 28.7.0, 28.7.1, 28.8.0, 28.8.1, 29.0.0, 29.0.1, 30.0.0, 30.1.0, 30.2.0, 30.2.1, 30.3.0, 30.4.0, 31.0.0, 31.0.1, 32.0.0, 32.1.0, 32.1.1, 32.1.2, 32.1.3, 32.2.0, 32.3.0, 32.3.1, 33.1.0, 33.1.1, 34.0.0, 34.0.1, 34.0.2, 34.0.3, 34.1.0, 34.1.1, 34.2.0, 34.3.0, 34.3.1, 34.3.2, 34.3.3, 34.4.0, 34.4.1, 35.0.0, 35.0.1, 35.0.2, 36.0.1, 36.1.0, 36.1.1, 36.2.0, 36.2.1, 36.2.2, 36.2.3, 36.2.4, 36.2.5, 36.2.6, 36.2.7, 36.3.0, 36.4.0, 36.5.0, 36.6.0, 36.6.1, 36.7.0, 36.7.1, 36.7.2, 36.8.0, 37.0.0, 38.0.0, 38.1.0, 38.2.0, 38.2.1, 38.2.3, 38.2.4, 38.2.5, 38.3.0, 38.4.0, 38.4.1, 38.5.0, 38.5.1, 38.5.2, 38.6.0, 38.6.1, 38.7.0, 39.0.0, 39.0.1, 39.1.0, 39.2.0, 40.0.0, 40.1.0, 40.1.1, 40.2.0, 40.3.0, 40.4.0, 40.4.1, 40.4.2, 40.4.3, 40.5.0, 40.6.0, 40.6.1, 40.6.2, 40.6.3, 40.7.0, 40.7.1, 40.7.2, 40.7.3, 40.8.0, 40.9.0, 41.0.0, 41.0.1, 41.1.0, 41.2.0, 41.3.0, 41.4.0, 41.5.0, 41.5.1, 41.6.0, 42.0.0, 42.0.1, 42.0.2, 43.0.0, 44.0.0, 44.1.0, 44.1.1, 45.0.0, 45.1.0, 45.2.0, 45.3.0, 46.0.0, 46.1.0, 46.1.1, 46.1.2, 46.1.3, 46.2.0, 46.3.0, 46.3.1, 46.4.0, 47.0.0, 47.1.0, 47.1.1, 47.2.0, 47.3.0, 47.3.1, 47.3.2, 48.0.0, 49.0.0, 49.0.1, 49.1.0, 49.1.1, 49.1.2, 49.1.3, 49.2.0, 49.2.1, 49.3.0, 49.3.1, 49.3.2, 49.4.0, 49.5.0, 49.6.0, 50.0.0, 50.0.1, 50.0.2, 50.0.3, 50.1.0, 50.2.0, 50.3.0, 50.3.1, 50.3.2, 51.0.0, 51.1.0, 51.1.0.post20201221, 51.1.1, 51.1.2, 51.2.0, 51.3.0, 51.3.1, 51.3.2, 51.3.3, 52.0.0, 53.0.0, 53.1.0, 54.0.0, 54.1.0, 54.1.1, 54.1.2, 54.1.3, 54.2.0, 56.0.0, 56.1.0, 56.2.0, 57.0.0, 57.1.0, 57.2.0, 57.3.0, 57.4.0, 57.5.0, 58.0.0, 58.0.1, 58.0.2, 58.0.3, 58.0.4, 58.1.0, 58.2.0, 58.3.0, 58.4.0, 58.5.0, 58.5.1, 58.5.2, 58.5.3, 59.0.1, 59.1.0, 59.1.1, 59.2.0, 59.3.0, 59.4.0, 59.5.0, 59.6.0)
  ERROR: No matching distribution found for setuptools>=65.1.1
  ----------------------------------------
WARNING: Discarding file:///var/www/MISP/app/files/scripts/misp-stix. Command errored out with exit status 1: /var/www/MISP/venv/bin/python3 /var/www/MISP/venv/lib/python3.6/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-l0p41bax/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- 'poetry_core>=1.0' 'setuptools>=65.1.1' Check the logs for full command output.
ERROR: Command errored out with exit status 1: /var/www/MISP/venv/bin/python3 /var/www/MISP/venv/lib/python3.6/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-l0p41bax/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- 'poetry_core>=1.0' 'setuptools>=65.1.1' Check the logs for full command output.

Is there any update on this issue?