FreeTAKTeam / FreeTAKHub-Installation

FreeTAKHub-Installation
Eclipse Public License 2.0
36 stars 27 forks source link

TASK [freetakserver_ui : Set service state]: FAILED #17

Closed tstechnologies closed 2 years ago

tstechnologies commented 2 years ago

ansible fails at the below line:

TASK [freetakserver_ui : Set service state] FAILED - RETRYING: [localhost]: Set service state (5 retries left). FAILED - RETRYING: [localhost]: Set service state (4 retries left). FAILED - RETRYING: [localhost]: Set service state (3 retries left). FAILED - RETRYING: [localhost]: Set service state (2 retries left). FAILED - RETRYING: [localhost]: Set service state (1 retries left).

fatal: [localhost]: FAILED! => {"attempts": 5, "changed": false, "msg": "Unable to start service fts-ui: "}

OS: Ubuntu Server 20.04.4 LTS User running playbook has sudo privileges

mighkel commented 2 years ago

Having same exact issue. Fresh DO droplet. Ubuntu 20.04 LTS x64 root Running from DO web console if that matters.

Mokusenshi commented 2 years ago

For me the same. Fresh droplet on DO with Ubuntu 20.04 LTS x64 accessing with root on the webconsole. Did the exact same steps as in the FreeTakTeam video (Zero Touch Deployment - FTS installation made easy with Ansible).

I have tried some things: -update upgrade after fresh Ubuntu install -preinstalling the for manual installation required packages -tried both ZeroTouch as ZeroTouch Advanced install

Every time it stops at [freetakserver_ui : Set service state]. One time it did give me an IP to access the UI (dont know why this time it did), but nothing showed up.

mighkel commented 2 years ago

Yeah, just a followup. Tried and destroyed about a dozen droplets, including bumping up to more RAM, several reboots. Zero touch = zero FTS for this dumb user. I give up.

Mokusenshi commented 2 years ago

Tried again today. It didn't fail this time. Things I did different than before: -Added SSH key to DO account. -Created a new droplet, with the SSH -Waited for 10 minutes after creation -Opened terminal (did NOT do any update/upgrade!) -Ran the ZeroTouch command.

It worked like it should (ok=102 and changed=52). Can acces the NodeRed page and checked the videoserver. Only thing now is that I can't acces the UI by copying the adress in my browser.... Really don't know why, because the set up looked alright.

aubp commented 2 years ago

Same Issue here. New DO droplet, ssh keys, ran the zero touch script. I was able to access node red and the video server. Unable to reach UI. I tried manually starting the services below, but they also failed to start.

systemctl start fts.service
systemctl start fts-ui.service
Mokusenshi commented 2 years ago

Today I did exact the same as last time. New droplet and run the ZeroTouch script. Last time it looked like a good install with the only issue that accessing the webUI was not possible. Today it stopped multiple tries at the Install FreeTAKServer task. Example of error below. Can't get my head around it, I'm doing exact the same as the tutorial. Would pay for a solution right now, need to get it working.

TASK [freetakserver : Install FreeTAKServer] ***********************************************************************
fatal: [localhost]: FAILED! => {"changed": false, "cmd": ["/usr/local/bin/pip3.8", "install", "FreeTAKServer"], "msg": "stdout: Collecting FreeTAKServer\n  Downloading FreeTAKServer-1.9.8.5-py3-none-any.whl (330 kB)\n     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 330.5/330.5 KB 25.1 MB/s eta 0:00:00\nCollecting Flask-Cors==3.0.9\n  Downloading Flask_Cors-3.0.9-py2.py3-none-any.whl (14 kB)\nCollecting python-socketio==4.6.0\n  Downloading python_socketio-4.6.0-py2.py3-none-any.whl (51 kB)\n     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 51.8/51.8 KB 1.7 MB/s eta 0:00:00\nCollecting ruamel.yaml==0.17.21\n  Downloading ruamel.yaml-0.17.21-py3-none-any.whl (109 kB)\n     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 109.5/109.5 KB 19.7 MB/s eta 0:00:00\nCollecting pykml==0.2.0\n  Downloading pykml-0.2.0-py3-none-any.whl (41 kB)\n     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 41.1/41.1 KB 9.9 MB/s eta 0:00:00\nCollecting Flask-SQLAlchemy==2.4.4\n  Downloading Flask_SQLAlchemy-2.4.4-py2.py3-none-any.whl (17 kB)\nCollecting eventlet==0.29.0\n  Downloading eventlet-0.29.0-py2.py3-none-any.whl (223 kB)\n     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 223.4/223.4 KB 27.2 MB/s eta 0:00:00\nCollecting dnspython==1.16.0\n  Downloading dnspython-1.16.0-py2.py3-none-any.whl (188 kB)\n     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 188.4/188.4 KB 34.3 MB/s eta 0:00:00\nCollecting WTForms==2.3.3\n  Downloading WTForms-2.3.3-py2.py3-none-any.whl (169 kB)\n     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 169.1/169.1 KB 25.1 MB/s eta 0:00:00\nCollecting ruamel.yaml.clib==0.2.6\n  Downloading ruamel.yaml.clib-0.2.6-cp38-cp38-manylinux1_x86_64.whl (570 kB)\n     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 570.4/570.4 KB 36.9 MB/s eta 0:00:00\nCollecting Flask-HTTPAuth==4.2.0\n  Downloading Flask_HTTPAuth-4.2.0-py2.py3-none-any.whl (5.9 kB)\nCollecting python-engineio==3.13.2\n  Downloading python_engineio-3.13.2-py2.py3-none-any.whl (50 kB)\n     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 50.2/50.2 KB 3.8 MB/s eta 0:00:00\nCollecting colorama==0.4.4\n  Downloading colorama-0.4.4-py2.py3-none-any.whl (16 kB)\nCollecting geographiclib==1.52\n  Downloading geographiclib-1.52-py3-none-any.whl (38 kB)\nCollecting greenlet==1.1.2\n  Downloading greenlet-1.1.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (156 kB)\n     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 156.6/156.6 KB 5.7 MB/s eta 0:00:00\nCollecting monotonic==1.6\n  Downloading monotonic-1.6-py2.py3-none-any.whl (8.2 kB)\nCollecting itsdangerous==2.0.1\n  Downloading itsdangerous-2.0.1-py3-none-any.whl (18 kB)\nCollecting geopy==2.2.0\n  Downloading geopy-2.2.0-py3-none-any.whl (118 kB)\n     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 118.9/118.9 KB 1.9 MB/s eta 0:00:00\nCollecting PyYAML==6.0\n  Downloading PyYAML-6.0-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl (701 kB)\n     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 701.2/701.2 KB 48.8 MB/s eta 0:00:00\nCollecting protobuf==3.14.0\n  Downloading protobuf-3.14.0-cp38-cp38-manylinux1_x86_64.whl (1.0 MB)\n     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.0/1.0 MB 50.5 MB/s eta 0:00:00\nCollecting pyOpenSSL==22.0.0\n  Downloading pyOpenSSL-22.0.0-py2.py3-none-any.whl (55 kB)\n     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 55.8/55.8 KB 1.6 MB/s eta 0:00:00\nCollecting psutil==5.9.0\n  Downloading psutil-5.9.0-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (283 kB)\n     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 283.8/283.8 KB 34.0 MB/s eta 0:00:00\nCollecting Flask-Login==0.5.0\n  Downloading Flask_Login-0.5.0-py2.py3-none-any.whl (16 kB)\nCollecting tabulate==0.8.7\n  Downloading tabulate-0.8.7-py3-none-any.whl (24 kB)\nCollecting click==8.0.4\n  Downloading click-8.0.4-py3-none-any.whl (97 kB)\n     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 97.5/97.5 KB 3.1 MB/s eta 0:00:00\nCollecting Flask-SocketIO==4.3.1\n  Downloading Flask_SocketIO-4.3.1-py2.py3-none-any.whl (15 kB)\nCollecting Werkzeug==2.0.3\n  Downloading Werkzeug-2.0.3-py3-none-any.whl (289 kB)\n     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 289.2/289.2 KB 17.6 MB/s eta 0:00:00\nCollecting six==1.16.0\n  Downloading six-1.16.0-py2.py3-none-any.whl (11 kB)\nCollecting defusedxml==0.7.1\n  Downloading defusedxml-0.7.1-py2.py3-none-any.whl (25 kB)\nCollecting Flask==1.1.2\n  Downloading Flask-1.1.2-py2.py3-none-any.whl (94 kB)\n     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 94.6/94.6 KB 17.1 MB/s eta 0:00:00\nCollecting Jinja2==2.11.2\n  Downloading Jinja2-2.11.2-py2.py3-none-any.whl (125 kB)\n     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 125.8/125.8 KB 26.1 MB/s eta 0:00:00\nCollecting SQLAlchemy==1.3.20\n  Downloading SQLAlchemy-1.3.20-cp38-cp38-manylinux2010_x86_64.whl (1.3 MB)\n     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.3/1.3 MB 54.4 MB/s eta 0:00:00\nCollecting lxml==4.6.5\n  Downloading lxml-4.6.5-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_24_x86_64.whl (6.9 MB)\n     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 6.9/6.9 MB 35.8 MB/s eta 0:00:00\nCollecting MarkupSafe==2.0.1\n  Downloading MarkupSafe-2.0.1-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl (30 kB)\nCollecting pathlib==1.0.1\n  Downloading pathlib-1.0.1.tar.gz (49 kB)\n     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 49.3/49.3 KB 11.5 MB/s eta 0:00:00\n  Preparing metadata (setup.py): started\n  Preparing metadata (setup.py): finished with status 'done'\nCollecting cryptography>=35.0\n  Downloading cryptography-36.0.1-cp36-abi3-manylinux_2_24_x86_64.whl (3.6 MB)\n     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.6/3.6 MB 49.4 MB/s eta 0:00:00\nCollecting cffi>=1.12\n  Downloading cffi-1.15.0-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (446 kB)\n     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 446.7/446.7 KB 36.5 MB/s eta 0:00:00\nCollecting pycparser\n  Downloading pycparser-2.21-py2.py3-none-any.whl (118 kB)\n     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 118.7/118.7 KB 19.1 MB/s eta 0:00:00\nBuilding wheels for collected packages: pathlib\n  Building wheel for pathlib (setup.py): started\n  Building wheel for pathlib (setup.py): finished with status 'done'\n  Created wheel for pathlib: filename=pathlib-1.0.1-py3-none-any.whl size=14347 sha256=f1d23db3bf67b501cc2537b16057c94dccb090a30267cfd28ab1ce06929f86af\n  Stored in directory: /root/.cache/pip/wheels/59/02/2f/ff4a3e16a518feb111ae1405908094483ef56fec0dfa39e571\nSuccessfully built pathlib\nInstalling collected packages: tabulate, pathlib, monotonic, geographiclib, Werkzeug, SQLAlchemy, six, ruamel.yaml.clib, PyYAML, pycparser, psutil, MarkupSafe, lxml, itsdangerous, greenlet, geopy, dnspython, defusedxml, colorama, click, WTForms, ruamel.yaml, python-engineio, pykml, protobuf, Jinja2, eventlet, cffi, python-socketio, Flask, cryptography, pyOpenSSL, Flask-SQLAlchemy, Flask-SocketIO, Flask-Login, Flask-HTTPAuth, Flask-Cors, FreeTAKServer\n  Attempting uninstall: six\n    Found existing installation: six 1.14.0\n    Uninstalling six-1.14.0:\n      Successfully uninstalled six-1.14.0\n  Attempting uninstall: PyYAML\n    Found existing installation: PyYAML 5.3.1\n\n:stderr: ERROR: Cannot uninstall 'PyYAML'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.\n"}

PLAY RECAP *********************************************************************************************************
localhost                  : ok=19   changed=5    unreachable=0    failed=1    skipped=1    rescued=0    ignored=0
jonaugustine commented 2 years ago

seems to be fixed with #23

Mokusenshi commented 2 years ago

Worked for me! New droplet > ZeroTouch script > installed > webUI accessible. Thanks for the fix!

Only small problem I have is that my COT TCP and SSL are red in the system status section. Maybe I'm a noob, but do I need to do something to get those two correctly running after a fresh install?

aubp commented 2 years ago

This fixed it for me. TCP and SSL are red for me as well.

mighkel commented 2 years ago

Mostly fixed for me, I guess. New DO droplet, FTS checked out. Video server checked out. Webmap appeared to work.

Mokusenshi commented 2 years ago

Mostly fixed for me, I guess. New DO droplet, FTS checked out. Video server checked out. Webmap appeared to work.

Did you have the COT TCP and SSL blue after the install on a new droplet?

mighkel commented 2 years ago

Did you have the COT TCP and SSL blue after the install on a new droplet?

Actually, no. Turns out, still can't get SSL working, but TCP is. Both are red though.

jonaugustine commented 2 years ago

hi - I'm going to check this one off my checklist for now, open a new issue for the SSL stuff