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

Issue installing misp_modules when following guide. #4045

Closed
jwilczek opened this issue Jan 24, 2019 · 6 comments
Closed

Issue installing misp_modules when following guide. #4045

jwilczek opened this issue Jan 24, 2019 · 6 comments
Labels
T: support Type: support. This issue is seeking support on a problem or question

Comments

@jwilczek
Copy link

jwilczek commented Jan 24, 2019

Work environment

Questions Answers
Type of issue support
OS version (server) ubuntu
OS version (client) Ubuntu 18.04
PHP version 7.2
MISP version / git hash 2.4
Browser If applicable

Expected behavior

Installation of misp_modules

Actual behavior

Getting an error when trying to install the modules

sudo -H -u www-data ${PATH_TO_MISP}/venv/bin/pip install -I -r REQUIREMENTS
Obtaining file:///usr/local/src/misp-modules (from -r REQUIREMENTS (line 2))
    Complete output from command python setup.py egg_info:
    running egg_info
    creating misp_modules.egg-info
    error: could not create 'misp_modules.egg-info': Permission denied
    
Command "python setup.py egg_info" failed with error code 1 in /usr/local/src/misp-modules/

Steps to reproduce the behavior

Following guide https://misp.github.io/MISP/INSTALL.ubuntu1804/

Logs, screenshots, configuration dump, ...

@adulau
Copy link
Member

adulau commented Jan 24, 2019

Permission denied It seems you did an installation previously with different permission (as root?) instead of the user executed (www-data). A chmod -R www-data:www-data on where misp-modules are installed would do the job. I hope this helps.

@adulau adulau closed this as completed Jan 24, 2019
@adulau adulau added the T: support Type: support. This issue is seeking support on a problem or question label Jan 24, 2019
@jwilczek
Copy link
Author

I was able to solve the issue. I should have been more clear. My point was that the install guide has you chown as root:staff. And this incompatible with the subsequent call as www-data.

sudo -H -u www-data ${PATH_TO_MISP}/venv/bin/pip install -I -r REQUIREMENTS

I think the install guide is wrong. Am I missing something?

@cowbe0x004
Copy link

Had the same issue with both ubuntu and debian guides, both failed to install REQUIREMENTS. So I did this instead,
sudo chown www-data:www-data /usr/local/src

@jwilczek
Copy link
Author

Correct, I understand the issue and was able to get around it. My point was I think the install guide is incorrect.

@davehouser1
Copy link

davehouser1 commented Aug 6, 2020

Had the same problem as well. The install guide needs to be updated.
More importantly INSTALL.sh -u, appears to exhibit the same problem.
This really needs to be reopened, and the guide needs to be fixed.

From This:

sudo apt-get install python3-dev python3-pip libpq5 libjpeg-dev tesseract-ocr libpoppler-cpp-dev imagemagick virtualenv libopencv-dev zbar-tools libzbar0 libzbar-dev libfuzzy-dev build-essential -y
sudo -u www-data virtualenv -p python3 /var/www/MISP/venv
cd /usr/local/src/
chown -R www-data .
sudo git clone https://github.com/MISP/misp-modules.git
cd misp-modules
sudo -u www-data /var/www/MISP/venv/bin/pip install -I -r REQUIREMENTS

Needs to change to this:

sudo apt-get install python3-dev python3-pip libpq5 libjpeg-dev tesseract-ocr libpoppler-cpp-dev imagemagick virtualenv libopencv-dev zbar-tools libzbar0 libzbar-dev libfuzzy-dev build-essential -y
sudo -u www-data virtualenv -p python3 /var/www/MISP/venv
cd /usr/local/src/
sudo git clone https://github.com/MISP/misp-modules.git
sudo chown -R www-data: .
cd misp-modules
sudo -u www-data /var/www/MISP/venv/bin/pip install -I -r REQUIREMENTS

@webwolf3000
Copy link

Still not fixed; above solution seems to work!

digihash added a commit to digihash/misp-modules that referenced this issue Mar 6, 2021
Added fix based on MISP/MISP#4045
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T: support Type: support. This issue is seeking support on a problem or question
Projects
None yet
Development

No branches or pull requests

5 participants