-
Notifications
You must be signed in to change notification settings - Fork 231
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
Issues with installation of OpenUBA #49
Comments
OK, update: I created a Python virtual environment and installed Python 3.7. Had to make changes to versions in requirements.txt. The make file appears to compile - waIting for it to finish. Negate my previous message. |
@ThomasGLAllen could you please share you requirements file i am running into the same issue you had |
Sorry, just saw this. Yes, I can. Let me upload a copy of the make file. I'm in the process of troubleshooting it. I think I know what is going on. As I see it, there is a lack of documentation. OpenUBA lacks a lot of detailed documentation. What I have found out is that you need to run the make under python 3.7. I used the Python Virtual Environment to install python 3.7 and compiled under that virtual environment.I have to manually install the tools in the requirements.txt file before I ran the make. I've enclosed the results of the make file. As I said, there are a few errors - they don't look major. I'm in the process of looking at them. |
Forgot to say that I'm using OpenSUSE. |
@ThomasGLAllen can you please share your make file i did everything till the make command and it seems like its working but when i try to do the test it tells me API error and for some reason i cannot run the web UI |
Sorry for the delay in responding. I've been really busy at work and had no time to check my messages on OpenUBA. I'll respond tomorrow and give you details of what I did. |
OK, what you need to do is be sure you are using python 3.7 and use UBUNTU (latest version is fine). The makefile will not run correctly if it's another version of python. The best way to do that is to set up a python virtual environment by installing virtualenv: pip install virtualenv. Once that is done, run pyenv install 3.7.0 and you will see that 3.7 is installed in /home/username/.pyenv/versions/3.7.0/bin. Next you need to create your virtual directory as follows: /home/username/.pyenv/versions/3.7.0/bin/python3.7 -m venv OpenUBA_ENV3.7. This creates the virtual directory OpenUBA_ENV3.7. Now, cd to bin and run "source activate" and then you have your python 3.7 environment separate from your python version you installed originally on your machine if you installed one. From the virtual directory, just follow the instructions given on the OpenUBA github page and run make. It runs with no API error, but the only error (and this is minor) is that it's looking for a connection to port 62000, but apparently runs the model to completion. I'm presently going through the code to see where that is coming from. The documentation for OpenUBA is really bad, so I would never recommend this on a production server. It's got a long way to go before anyone excepts it. Also in requirements.txt, be sure to install the exact versions that are specified in requirements.txt (except for flask and colorlogs - it won't be able to find those versions, so any version I found will work). In running make, you may get no module found for flack_cors and coloredlogs; just do pip install flack-cors and coloredlogs, and run make again, and it should go straight through without error (except for the port error I mentioned above). Let me know if you have any questions. |
I've been examining OpenUBA to see its potential use in the future for our SOC. I have a few questions and issues:
Any help would be appreciated. Thanks.
Tom Allen
The text was updated successfully, but these errors were encountered: