PaloAltoNetworks / minemeld-ansible

Ansible playbook for installing MineMeld on Linux
Apache License 2.0
48 stars 48 forks source link

Ubuntu 16.04 install issue #58

Open banhao opened 5 years ago

banhao commented 5 years ago

ansible-playbook -K -i 127.0.0.1, local.yml

SUDO password:

PLAY [minemeld playbook] ***

TASK [Gathering Facts] ***** ok: [127.0.0.1]

TASK [infrastructure : debug] ** ok: [127.0.0.1] => { "msg": "Loading vars for Ubuntu 16.04" }

TASK [infrastructure : include_vars] *** ok: [127.0.0.1] => (item=/root/minemeld-ansible/roles/infrastructure/vars/Ubuntu-16.04.yml)

TASK [infrastructure : create minemeld group] ** ok: [127.0.0.1]

TASK [infrastructure : include task based on distribution] ***** skipping: [127.0.0.1]

TASK [infrastructure : install packages] *** ok: [127.0.0.1] => (item=rabbitmq-server) ok: [127.0.0.1] => (item=redis-server) ok: [127.0.0.1] => (item=collectd-core) ok: [127.0.0.1] => (item=nginx)

TASK [infrastructure : start rabbitmq-server] ** ok: [127.0.0.1]

TASK [infrastructure : start redis-server] ***** ok: [127.0.0.1]

TASK [infrastructure : start collectd] ***** ok: [127.0.0.1]

TASK [infrastructure : start nginx] **** ok: [127.0.0.1]

TASK [minemeld : include_vars] ***** ok: [127.0.0.1] => (item=/root/minemeld-ansible/roles/minemeld/vars/Ubuntu-16.04.yml)

TASK [minemeld : include pre-task based on distribution] *** skipping: [127.0.0.1]

TASK [minemeld : minemeld user] **** ok: [127.0.0.1]

TASK [minemeld : main directory] *** ok: [127.0.0.1]

TASK [minemeld : local directory] ** ok: [127.0.0.1]

TASK [minemeld : data directory] *** ok: [127.0.0.1]

TASK [minemeld : config directory] ***** ok: [127.0.0.1]

TASK [minemeld : traced config directory] ** ok: [127.0.0.1]

TASK [minemeld : API config directory] ***** ok: [127.0.0.1]

TASK [minemeld : trace directory] ** ok: [127.0.0.1]

TASK [minemeld : library directory] **** ok: [127.0.0.1]

TASK [minemeld : certs directory] ** ok: [127.0.0.1]

TASK [minemeld : local certs directory] **** ok: [127.0.0.1]

TASK [minemeld : prototypes local directory] *** ok: [127.0.0.1]

TASK [minemeld : supervisor config directory] ** ok: [127.0.0.1]

TASK [minemeld : log directory] **** ok: [127.0.0.1]

TASK [minemeld : PID directory] **** ok: [127.0.0.1]

TASK [minemeld : www directory] **** ok: [127.0.0.1]

TASK [minemeld : install packages] ***** ok: [127.0.0.1] => (item=p7zip-full) ok: [127.0.0.1] => (item=git) ok: [127.0.0.1] => (item=g++) ok: [127.0.0.1] => (item=libleveldb-dev) ok: [127.0.0.1] => (item=librrd-dev) ok: [127.0.0.1] => (item=libxslt1-dev) ok: [127.0.0.1] => (item=libc-ares-dev) ok: [127.0.0.1] => (item=libsnappy-dev)

TASK [minemeld : minemeld-node-prototypes repo] **** ok: [127.0.0.1]

TASK [minemeld : minemeld-node-prototypes current link] **** ok: [127.0.0.1]

TASK [minemeld : minemeld-core repo] *** ok: [127.0.0.1]

TASK [minemeld : virtualenv] *** ok: [127.0.0.1]

TASK [minemeld : minemeld virtualenv] ** ok: [127.0.0.1]

TASK [minemeld : virtualenv permissions] *** changed: [127.0.0.1]

TASK [minemeld : requirements] ***** fatal: [127.0.0.1]: FAILED! => {"changed": false, "cmd": "/opt/minemeld/engine/current/bin/pip2 freeze", "msg": "\n:stderr: Traceback (most recent call last):\n File \"/opt/minemeld/engine/current/bin/pip2\", line 7, in \n from pip._internal import main\n File \"/usr/local/lib/python2.7/dist-packages/pip/_internal/init.py\", line 19, in \n from pip._vendor.urllib3.exceptions import DependencyWarning\n File \"/usr/local/lib/python2.7/dist-packages/pip/_vendor/urllib3/init.py\", line 8, in \n from .connectionpool import (\n File \"/usr/local/lib/python2.7/dist-packages/pip/_vendor/urllib3/connectionpool.py\", line 29, in \n from .connection import (\n File \"/usr/local/lib/python2.7/dist-packages/pip/_vendor/urllib3/connection.py\", line 2, in \n import datetime\nImportError: No module named datetime\n"} to retry, use: --limit @/root/minemeld-ansible/local.retry

PLAY RECAP ***** 127.0.0.1 : ok=33 changed=1 unreachable=0 failed=1

banhao commented 5 years ago

Ubuntu 16.04 is just upgraded from 14.04 apt-get update apt-get upgrade all the packs are latest.

jtschichold commented 5 years ago

It seems generated by the upgrade itself: https://askubuntu.com/questions/509283/python-no-module-named-datetime

isaeed22 commented 1 year ago

TASK [minemeld : minemeld user] ** fatal: [127.0.0.1]: FAILED! => {"changed": false, "msg": "usermod: user minemeld is currently used by process 1224\n", "name": "minemeld", "rc": 8}

I have got this error. Do you know what can I do?

banhao commented 1 year ago

I didn't fix this issue. I switched to use Docker image, current version is 0.9.70. Have been running more than 4 years, still stable no issue.

isaeed22 commented 1 year ago

I didn't fix this issue. I switched to use Docker image, current version is 0.9.70. Have been running more than 4 years, still stable no issue.

Could you please share how to install it with Docker? where can I download the image?

banhao commented 1 year ago

https://live.paloaltonetworks.com/t5/general-articles/running-minemeld-using-docker/ta-p/289062