FreeTAKTeam / FreeTakServer

Situational Awareness Server compatible with TAK clients
Eclipse Public License 2.0
611 stars 163 forks source link

Error on a fresh install of FreeTakServer and with FreeTakServerUI #685

Open FlymannTTH opened 3 months ago

FlymannTTH commented 3 months ago

Hi, I'm running a fresh installation of Ubuntu 22.04.4 on a VM under Oracle VM VirtualBox. I've followed the tutorial for installation with pip. Installation finishes without failure, verification statement is "No broken requirements found".

When I run the FreeTakServer, I've this problems :

failed to register component: /usr/local/lib/python3.10/dist-packages/digitalpy/core/telemetry, with error: No module named 'Catalog' failed to register component: /usr/local/lib/python3.10/dist-packages/digitalpy/core/component_management, with error: module 'digitalpy.core.component_management.component_management_facade' has no attribute 'ComponentManagement' failed to register component: /usr/local/lib/python3.10/dist-packages/digitalpy/core/cot_management, with error: inconsistent use of tabs and spaces in indentation (cot_management_facade.py, line 21) failed to register component: /usr/local/lib/python3.10/dist-packages/digitalpy/core/translation, with error: No module named 'Catalog' failed to register component: /usr/local/lib/python3.10/dist-packages/digitalpy/core/logic, with error: No module named 'Catalog' failed to register component: /usr/local/lib/python3.10/dist-packages/digitalpy/core/network, with error: name 'Facade' is not defined failed to register component: /usr/local/lib/python3.10/dist-packages/digitalpy/core/health, with error: No module named 'Catalog' failed to register component: /usr/local/lib/python3.10/dist-packages/digitalpy/core/queries, with error: No module named 'Catalog' failed to register component: /usr/local/lib/python3.10/dist-packages/digitalpy/core/util, with error: No module named 'Catalog' failed to register component: /usr/local/lib/python3.10/dist-packages/digitalpy/core/persistence, with error: module 'digitalpy.core.persistence.persistence_facade' has no attribute 'Persistence' failed to register component: /usr/local/lib/python3.10/dist-packages/digitalpy/core/zmanager, with error: No module named 'Catalog' failed to register component: /usr/local/lib/python3.10/dist-packages/FreeTAKServer/core/fts_configuration, with error: module 'FreeTAKServer.core.fts_configuration.fts_configuration_facade' has no attribute 'FtsConfiguration' failed to register component: /usr/local/lib/python3.10/dist-packages/FreeTAKServer/core/domain, with error: module 'FreeTAKServer.core.domain.domain_facade' has no attribute 'Domain' failed to register component: /usr/local/lib/python3.10/dist-packages/FreeTAKServer/core/fts_core, with error: module 'FreeTAKServer.core.fts_core.fts_core_facade' has no attribute 'FtsCore' failed to register component: /usr/local/lib/python3.10/dist-packages/FreeTAKServer/core/data_package, with error: module 'FreeTAKServer.core.data_package.data_package_facade' has no attribute 'DataPackage' failed to register component: /usr/local/lib/python3.10/dist-packages/FreeTAKServer/components/extended/federation, with error: module 'FreeTAKServer.components.extended.federation.federation_facade' has no attribute 'Federation' failed to register component: /usr/local/lib/python3.10/dist-packages/FreeTAKServer/components/extended/report, with error: module 'FreeTAKServer.components.extended.report.report_facade' has no attribute 'Report' failed to register component: /usr/local/lib/python3.10/dist-packages/FreeTAKServer/components/extended/track_manager, with error: module 'FreeTAKServer.components.extended.track_manager.track_manager_facade' has no attribute 'TrackManager' failed to register component: /usr/local/lib/python3.10/dist-packages/FreeTAKServer/components/extended/cotmanager, with error: module 'FreeTAKServer.components.extended.cotmanager.cotmanager_facade' has no attribute 'Cotmanager' failed to register component: /usr/local/lib/python3.10/dist-packages/FreeTAKServer/components/extended/mission, with error: module 'FreeTAKServer.components.extended.mission.mission_facade' has no attribute 'Mission' failed to register component: /usr/local/lib/python3.10/dist-packages/FreeTAKServer/components/extended/repeater, with error: module 'FreeTAKServer.components.extended.repeater.repeater_facade' has no attribute 'Repeater' failed to register component: /usr/local/lib/python3.10/dist-packages/FreeTAKServer/components/extended/companion_parrot, with error: module 'FreeTAKServer.components.extended.companion_parrot.companion_parrot_facade' has no attribute 'CompanionParrot' failed to register component: /usr/local/lib/python3.10/dist-packages/FreeTAKServer/components/extended/master_parrot, with error: module 'FreeTAKServer.components.extended.master_parrot.master_parrot_facade' has no attribute 'MasterParrot

But the server run afterwards : initiate_sockets start 213 starting now running api 0.0.0.0 8080 (61298) wsgi starting up on http://0.0.0.0:8080 start 213 starting SSL now 0.0.0.0 8443 (61307) wsgi starting up on https://0.0.0.0:8443 CoT Service Started server started CoTService started started federation federate service server started running ssl time since last reset 0:00:30.006950 1

The UI runs without problems, except that login isn't possible : Wrong user or password

I've investigated in the database and the problem is simple, when I run 'SELECT * FROM SystemUser;' It reports there is no such table : Error: in prepare, no such table: SystemUser (1)

Perhaps I've missed a thing in the tutorial, but I didn't find any information in order to setup the SQLite Database.

I have some skills in python, SQL etc., but i'm a newbie on FreeTak. Parrot is not dead, but I can't make it singin' ^^ Kind regards,

Fly'

brothercorvo commented 3 months ago

I assume that you are using the standard credentials?

FlymannTTH commented 3 months ago

I assume that you are using the standard credentials?

If you talk about launching installation and server, I've used the sudo command like described in the installation documentation. For the server, I use standard credentials in order to try to connect, but I assume that if there is no SQLite Database, It can't be possible to login, "SystemUser" datatable beeing not present.

Thanks for the help.

Fly'

naman108 commented 1 month ago

Hey there @FlymannTTH ! Firstly, is there a reason you choose pip instead of ZT? ZT tends to be faster and more reliable. Assuming that's not an option the Database should be stored in the /opt/fts directory, could you send the database file and we can see if that's the case.