Cloud-RF / tak-server

TAK Server docker setup
GNU General Public License v3.0
153 stars 52 forks source link

Java #45

Closed MikeRobertsonJr closed 6 months ago

MikeRobertsonJr commented 7 months ago

Hi,

I'm currently setting up tak-server, but encountered an issue after running ./script/setup.sh. During a check for fully initialized Java, I got this error:

Error: LinkageError occurred while loading main class com.bbn.marti.UserManager java.lang.UnsupportedClassVersionError: com/bbn/marti/UserManager has been compiled by a more recent version of the Java Runtime (class file version 61.0), this version of the Java Runtime only recognizes class file versions up to 55.0

Even after updating Java to the recommended version, I still get this message consistently. Any solutions to fix this error?

wimbime1 commented 7 months ago

I have also ran into the same issue.

cbg-teamomni commented 6 months ago

I am having the same issue. I am currently trying with TakServer 5.0. I assume that is what everyone else has attempted as well?

wimbime1 commented 6 months ago

@cbg-teamomni Yes. I've tried versions 4.7, 4.9, 4.10, and even 5.0. Unfortunately, the issues persist despite these attempts. I'm actively working on resolving them. I've also tried updating files and Java, but haven't had success thus far. I am starting to believe it is a Java problem and not the repo itself. I tried also using a different repo and installing in manually on my local machine. All pointed to Java.

cazure-n00b commented 6 months ago

Experiencing the same issue.

Error: LinkageError occurred while loading main class com.bbn.marti.UserManager
        java.lang.UnsupportedClassVersionError: com/bbn/marti/UserManager has been compiled by a more recent version of the Java Runtime (class file version 61.0), this version of the Java Runtime only recognizes class file versions up to 55.0

checking with: dpkg --list | grep -i java

dpkg --list | grep -i java
ii  ca-certificates-java            20190909ubuntu1.2                       all          Common CA certificates (JKS keystore)
ii  java-common                     0.72build2                              all          Base package for Java runtimes
ii  libatk-wrapper-java             0.38.0-5build1                          all          ATK implementation for Java using JNI
ii  libatk-wrapper-java-jni:amd64   0.38.0-5build1                          amd64        ATK implementation for Java using JNI (JNI bindings)
ii  openjdk-17-jre:amd64            17.0.10+7-1~22.04.1                     amd64        OpenJDK Java runtime, using Hotspot JIT
ii  openjdk-17-jre-headless:amd64   17.0.10+7-1~22.04.1                     amd64        OpenJDK Java runtime, using Hotspot JIT (headless)
cbg-teamomni commented 6 months ago

I have found a fork of this that does work. Try this link https://github.com/alphafox02/tak-server

cazure-n00b commented 6 months ago

@cbg-teamomni I'm afraid this hasn't worked for me. Still get the same error.

See attached .txt with the whole setup process.

root@ubuntu:~# sudo apt update
Get:1 http://security.ubuntu.com/ubuntu jammy-security InRelease [110 kB]
Hit:2 http://archive.ubuntu.com/ubuntu jammy InRelease
Get:3 http://archive.ubuntu.com/ubuntu jammy-updates InRelease [119 kB]
Get:4 http://security.ubuntu.com/ubuntu jammy-security/main amd64 Packages [1205                                                                                                                                                              kB]
Get:5 http://archive.ubuntu.com/ubuntu jammy-backports InRelease [109 kB]
Get:6 http://archive.ubuntu.com/ubuntu jammy/universe amd64 Packages [14.1 MB]
Get:7 http://security.ubuntu.com/ubuntu jammy-security/main Translation-en [219                                                                                                                                                              kB]
Get:8 http://security.ubuntu.com/ubuntu jammy-security/main amd64 c-n-f Metadata                                                                                                                                                              [11.4 kB]
Get:9 http://security.ubuntu.com/ubuntu jammy-security/restricted amd64 Packages                                                                                                                                                              [1476 kB]
Get:10 http://security.ubuntu.com/ubuntu jammy-security/restricted Translation-e                                                                                                                                                             n [244 kB]
Get:11 http://security.ubuntu.com/ubuntu jammy-security/restricted amd64 c-n-f M                                                                                                                                                             etadata [520 B]
Get:12 http://security.ubuntu.com/ubuntu jammy-security/universe amd64 Packages                                                                                                                                                              [846 kB]
Get:13 http://security.ubuntu.com/ubuntu jammy-security/universe Translation-en                                                                                                                                                              [161 kB]
Get:14 http://security.ubuntu.com/ubuntu jammy-security/universe amd64 c-n-f Met                                                                                                                                                             adata [16.8 kB]
Get:15 http://security.ubuntu.com/ubuntu jammy-security/multiverse amd64 Package                                                                                                                                                             s [37.1 kB]
Get:16 http://security.ubuntu.com/ubuntu jammy-security/multiverse Translation-e                                                                                                                                                             n [7476 B]
Get:17 http://security.ubuntu.com/ubuntu jammy-security/multiverse amd64 c-n-f M                                                                                                                                                             etadata [260 B]
Get:18 http://archive.ubuntu.com/ubuntu jammy/universe Translation-en [5652 kB]
Get:19 http://archive.ubuntu.com/ubuntu jammy/universe amd64 c-n-f Metadata [286                                                                                                                                                              kB]
Get:20 http://archive.ubuntu.com/ubuntu jammy/multiverse amd64 Packages [217 kB]
Get:21 http://archive.ubuntu.com/ubuntu jammy/multiverse Translation-en [112 kB]
Get:22 http://archive.ubuntu.com/ubuntu jammy/multiverse amd64 c-n-f Metadata [8                                                                                                                                                             372 B]
Get:23 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages [1421                                                                                                                                                              kB]
Get:24 http://archive.ubuntu.com/ubuntu jammy-updates/main Translation-en [279 k                                                                                                                                                             B]
Get:25 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 c-n-f Metadata                                                                                                                                                              [16.1 kB]
Get:26 http://archive.ubuntu.com/ubuntu jammy-updates/restricted amd64 Packages                                                                                                                                                              [1504 kB]
Get:27 http://archive.ubuntu.com/ubuntu jammy-updates/restricted Translation-en                                                                                                                                                              [247 kB]
Get:28 http://archive.ubuntu.com/ubuntu jammy-updates/restricted amd64 c-n-f Met                                                                                                                                                             adata [520 B]
Get:29 http://archive.ubuntu.com/ubuntu jammy-updates/universe amd64 Packages [1                                                                                                                                                             052 kB]
Get:30 http://archive.ubuntu.com/ubuntu jammy-updates/universe Translation-en [2                                                                                                                                                             37 kB]
Get:31 http://archive.ubuntu.com/ubuntu jammy-updates/universe amd64 c-n-f Metad                                                                                                                                                             ata [22.1 kB]
Get:32 http://archive.ubuntu.com/ubuntu jammy-updates/multiverse amd64 Packages                                                                                                                                                              [42.1 kB]
Get:33 http://archive.ubuntu.com/ubuntu jammy-updates/multiverse Translation-en                                                                                                                                                              [10.1 kB]
Get:34 http://archive.ubuntu.com/ubuntu jammy-updates/multiverse amd64 c-n-f Met                                                                                                                                                             adata [472 B]
Get:35 http://archive.ubuntu.com/ubuntu jammy-backports/main amd64 Packages [41.                                                                                                                                                             7 kB]
Get:36 http://archive.ubuntu.com/ubuntu jammy-backports/main Translation-en [10.                                                                                                                                                             5 kB]
Get:37 http://archive.ubuntu.com/ubuntu jammy-backports/main amd64 c-n-f Metadat                                                                                                                                                             a [388 B]
Get:38 http://archive.ubuntu.com/ubuntu jammy-backports/restricted amd64 c-n-f M                                                                                                                                                             etadata [116 B]
Get:39 http://archive.ubuntu.com/ubuntu jammy-backports/universe amd64 Packages                                                                                                                                                              [24.3 kB]
Get:40 http://archive.ubuntu.com/ubuntu jammy-backports/universe Translation-en                                                                                                                                                              [16.5 kB]
Get:41 http://archive.ubuntu.com/ubuntu jammy-backports/universe amd64 c-n-f Met                                                                                                                                                             adata [644 B]
Get:42 http://archive.ubuntu.com/ubuntu jammy-backports/multiverse amd64 c-n-f M                                                                                                                                                             etadata [116 B]
Fetched 29.9 MB in 4s (6958 kB/s)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
170 packages can be upgraded. Run 'apt list --upgradable' to see them.
root@ubuntu:~# sudo apt install net-tools unzip zip
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following NEW packages will be installed:
  net-tools unzip zip
0 upgraded, 3 newly installed, 0 to remove and 170 not upgraded.
Need to get 555 kB of archives.
After this operation, 1749 kB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu jammy/main amd64 net-tools amd64 1.60+git                                                                                                                                                             20181103.0eebece-1ubuntu5 [204 kB]
Get:2 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 unzip amd64 6.0-                                                                                                                                                             26ubuntu3.2 [175 kB]
Get:3 http://archive.ubuntu.com/ubuntu jammy/main amd64 zip amd64 3.0-12build2 [                                                                                                                                                             176 kB]
Fetched 555 kB in 0s (2730 kB/s)
Selecting previously unselected package net-tools.
(Reading database ... 64219 files and directories currently installed.)
Preparing to unpack .../net-tools_1.60+git20181103.0eebece-1ubuntu5_amd64.deb ..                                                                                                                                                             .
Unpacking net-tools (1.60+git20181103.0eebece-1ubuntu5) ...
Selecting previously unselected package unzip.
Preparing to unpack .../unzip_6.0-26ubuntu3.2_amd64.deb ...
Unpacking unzip (6.0-26ubuntu3.2) ...
Selecting previously unselected package zip.
Preparing to unpack .../zip_3.0-12build2_amd64.deb ...
Unpacking zip (3.0-12build2) ...
Setting up net-tools (1.60+git20181103.0eebece-1ubuntu5) ...
Setting up unzip (6.0-26ubuntu3.2) ...
Setting up zip (3.0-12build2) ...
Processing triggers for man-db (2.10.2-1) ...
Scanning processes...
Scanning linux images...

Running kernel seems to be up-to-date.

No services need to be restarted.

No containers need to be restarted.

No user sessions are running outdated binaries.

No VM guests are running outdated hypervisor (qemu) binaries on this host.
root@ubuntu:~# git clone https://github.com/Cloud-RF/tak-server.git
Cloning into 'tak-server'...
remote: Enumerating objects: 390, done.
remote: Counting objects: 100% (124/124), done.
remote: Compressing objects: 100% (53/53), done.
remote: Total 390 (delta 81), reused 71 (delta 71), pack-reused 266
Receiving objects: 100% (390/390), 799.96 KiB | 16.00 MiB/s, done.
Resolving deltas: 100% (226/226), done.
root@ubuntu:~# cd tak-server
root@ubuntu:~/tak-server# sudo apt-get update
Hit:1 http://security.ubuntu.com/ubuntu jammy-security InRelease
Hit:2 http://archive.ubuntu.com/ubuntu jammy InRelease
Hit:3 http://archive.ubuntu.com/ubuntu jammy-updates InRelease
Hit:4 http://archive.ubuntu.com/ubuntu jammy-backports InRelease
Reading package lists... Done
root@ubuntu:~/tak-server# sudo apt-get install ca-certificates curl gnupg
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
gnupg is already the newest version (2.2.27-3ubuntu2.1).
gnupg set to manually installed.
The following packages will be upgraded:
  ca-certificates curl libcurl4
3 upgraded, 0 newly installed, 0 to remove and 167 not upgraded.
Need to get 639 kB of archives.
After this operation, 23.6 kB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 ca-certificates                                                                                                                                                              all 20230311ubuntu0.22.04.1 [155 kB]
Get:2 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 curl amd64 7.81.                                                                                                                                                             0-1ubuntu1.15 [194 kB]
Get:3 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libcurl4 amd64 7                                                                                                                                                             .81.0-1ubuntu1.15 [289 kB]
Fetched 639 kB in 0s (3263 kB/s)
Preconfiguring packages ...
(Reading database ... 64300 files and directories currently installed.)
Preparing to unpack .../ca-certificates_20230311ubuntu0.22.04.1_all.deb ...
Unpacking ca-certificates (20230311ubuntu0.22.04.1) over (20211016ubuntu0.22.04.                                                                                                                                                             1) ...
Preparing to unpack .../curl_7.81.0-1ubuntu1.15_amd64.deb ...
Unpacking curl (7.81.0-1ubuntu1.15) over (7.81.0-1ubuntu1.10) ...
Preparing to unpack .../libcurl4_7.81.0-1ubuntu1.15_amd64.deb ...
Unpacking libcurl4:amd64 (7.81.0-1ubuntu1.15) over (7.81.0-1ubuntu1.10) ...
Setting up ca-certificates (20230311ubuntu0.22.04.1) ...
Updating certificates in /etc/ssl/certs...
rehash: warning: skipping ca-certificates.crt,it does not contain exactly one ce                                                                                                                                                             rtificate or CRL
19 added, 6 removed; done.
Setting up libcurl4:amd64 (7.81.0-1ubuntu1.15) ...
Setting up curl (7.81.0-1ubuntu1.15) ...
Processing triggers for man-db (2.10.2-1) ...
Processing triggers for libc-bin (2.35-0ubuntu3.1) ...
Processing triggers for ca-certificates (20230311ubuntu0.22.04.1) ...
Updating certificates in /etc/ssl/certs...
0 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d...
done.
Scanning processes...
Scanning linux images...

Running kernel seems to be up-to-date.

No services need to be restarted.

No containers need to be restarted.

No user sessions are running outdated binaries.

No VM guests are running outdated hypervisor (qemu) binaries on this host.
root@ubuntu:~/tak-server# sudo install -m 0755 -d /etc/apt/keyrings
root@ubuntu:~/tak-server# curl -fsSL https://download.docker.com/linux/ubuntu/gp                                                                                                                                                             g | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
root@ubuntu:~/tak-server# sudo chmod a+r /etc/apt/keyrings/docker.gpg
root@ubuntu:~/tak-server# echo \
  "deb [arch="$(dpkg --print-architecture)" signed-by=/etc/apt/keyrings/docker.g                                                                                                                                                             pg] https://download.docker.com/linux/ubuntu \
  "$(. /etc/os-release && echo "$VERSION_CODENAME")" stable" | \
> sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
root@ubuntu:~/tak-server# echo \
  "deb [arch="$(dpkg --print-architecture)" signed-by=/etc/apt/keyrings/docker.g                                                                                                                                                             pg] https://download.docker.com/linux/ubuntu \
  "$(. /etc/os-release && echo "$VERSION_CODENAME")" stable" | \
  sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
root@ubuntu:~/tak-server# sudo apt-get update
Get:1 https://download.docker.com/linux/ubuntu jammy InRelease [48.8 kB]
Get:2 https://download.docker.com/linux/ubuntu jammy/stable amd64 Packages [26.8                                                                                                                                                              kB]
Hit:3 http://archive.ubuntu.com/ubuntu jammy InRelease
Hit:4 http://archive.ubuntu.com/ubuntu jammy-updates InRelease
Hit:5 http://security.ubuntu.com/ubuntu jammy-security InRelease
Hit:6 http://archive.ubuntu.com/ubuntu jammy-backports InRelease
Fetched 75.6 kB in 0s (151 kB/s)
Reading package lists... Done
root@ubuntu:~/tak-server# sudo apt-get install docker-ce docker-ce-cli container                                                                                                                                                             d.io docker-buildx-plugin docker-compose-plugin
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  docker-ce-rootless-extras libltdl7 libslirp0 pigz slirp4netns
Suggested packages:
  aufs-tools cgroupfs-mount | cgroup-lite
The following NEW packages will be installed:
  containerd.io docker-buildx-plugin docker-ce docker-ce-cli
  docker-ce-rootless-extras docker-compose-plugin libltdl7 libslirp0 pigz
  slirp4netns
0 upgraded, 10 newly installed, 0 to remove and 167 not upgraded.
Need to get 117 MB of archives.
After this operation, 420 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 https://download.docker.com/linux/ubuntu jammy/stable amd64 containerd.io                                                                                                                                                              amd64 1.6.28-1 [29.6 MB]
Get:2 http://archive.ubuntu.com/ubuntu jammy/universe amd64 pigz amd64 2.6-1 [63                                                                                                                                                             .6 kB]
Get:3 https://download.docker.com/linux/ubuntu jammy/stable amd64 docker-buildx-                                                                                                                                                             plugin amd64 0.12.1-1~ubuntu.22.04~jammy [28.2 MB]
Get:4 http://archive.ubuntu.com/ubuntu jammy/main amd64 libltdl7 amd64 2.4.6-15b                                                                                                                                                             uild2 [39.6 kB]
Get:5 https://download.docker.com/linux/ubuntu jammy/stable amd64 docker-ce-cli                                                                                                                                                              amd64 5:25.0.3-1~ubuntu.22.04~jammy [13.7 MB]
Get:6 http://archive.ubuntu.com/ubuntu jammy/main amd64 libslirp0 amd64 4.6.1-1b                                                                                                                                                             uild1 [61.5 kB]
Get:7 https://download.docker.com/linux/ubuntu jammy/stable amd64 docker-ce amd6                                                                                                                                                             4 5:25.0.3-1~ubuntu.22.04~jammy [24.3 MB]
Get:8 http://archive.ubuntu.com/ubuntu jammy/universe amd64 slirp4netns amd64 1.                                                                                                                                                             0.1-2 [28.2 kB]
Get:9 https://download.docker.com/linux/ubuntu jammy/stable amd64 docker-ce-root                                                                                                                                                             less-extras amd64 5:25.0.3-1~ubuntu.22.04~jammy [9313 kB]
Get:10 https://download.docker.com/linux/ubuntu jammy/stable amd64 docker-compos                                                                                                                                                             e-plugin amd64 2.24.6-1~ubuntu.22.04~jammy [12.1 MB]
Fetched 117 MB in 1s (129 MB/s)
Selecting previously unselected package pigz.
(Reading database ... 64313 files and directories currently installed.)
Preparing to unpack .../0-pigz_2.6-1_amd64.deb ...
Unpacking pigz (2.6-1) ...
Selecting previously unselected package containerd.io.
Preparing to unpack .../1-containerd.io_1.6.28-1_amd64.deb ...
Unpacking containerd.io (1.6.28-1) ...
Selecting previously unselected package docker-buildx-plugin.
Preparing to unpack .../2-docker-buildx-plugin_0.12.1-1~ubuntu.22.04~jammy_amd64                                                                                                                                                             .deb ...
Unpacking docker-buildx-plugin (0.12.1-1~ubuntu.22.04~jammy) ...
Selecting previously unselected package docker-ce-cli.
Preparing to unpack .../3-docker-ce-cli_5%3a25.0.3-1~ubuntu.22.04~jammy_amd64.de                                                                                                                                                             b ...
Unpacking docker-ce-cli (5:25.0.3-1~ubuntu.22.04~jammy) ...
Selecting previously unselected package docker-ce.
Preparing to unpack .../4-docker-ce_5%3a25.0.3-1~ubuntu.22.04~jammy_amd64.deb ..                                                                                                                                                             .
Unpacking docker-ce (5:25.0.3-1~ubuntu.22.04~jammy) ...
Selecting previously unselected package docker-ce-rootless-extras.
Preparing to unpack .../5-docker-ce-rootless-extras_5%3a25.0.3-1~ubuntu.22.04~ja                                                                                                                                                             mmy_amd64.deb ...
Unpacking docker-ce-rootless-extras (5:25.0.3-1~ubuntu.22.04~jammy) ...
Selecting previously unselected package docker-compose-plugin.
Preparing to unpack .../6-docker-compose-plugin_2.24.6-1~ubuntu.22.04~jammy_amd6                                                                                                                                                             4.deb ...
Unpacking docker-compose-plugin (2.24.6-1~ubuntu.22.04~jammy) ...
Selecting previously unselected package libltdl7:amd64.
Preparing to unpack .../7-libltdl7_2.4.6-15build2_amd64.deb ...
Unpacking libltdl7:amd64 (2.4.6-15build2) ...
Selecting previously unselected package libslirp0:amd64.
Preparing to unpack .../8-libslirp0_4.6.1-1build1_amd64.deb ...
Unpacking libslirp0:amd64 (4.6.1-1build1) ...
Selecting previously unselected package slirp4netns.
Preparing to unpack .../9-slirp4netns_1.0.1-2_amd64.deb ...
Unpacking slirp4netns (1.0.1-2) ...
Setting up docker-buildx-plugin (0.12.1-1~ubuntu.22.04~jammy) ...
Setting up containerd.io (1.6.28-1) ...
Created symlink /etc/systemd/system/multi-user.target.wants/containerd.service →                                                                                                                                                              /lib/systemd/system/containerd.service.
Setting up docker-compose-plugin (2.24.6-1~ubuntu.22.04~jammy) ...
Setting up libltdl7:amd64 (2.4.6-15build2) ...
Setting up docker-ce-cli (5:25.0.3-1~ubuntu.22.04~jammy) ...
Setting up libslirp0:amd64 (4.6.1-1build1) ...
Setting up pigz (2.6-1) ...
Setting up docker-ce-rootless-extras (5:25.0.3-1~ubuntu.22.04~jammy) ...
Setting up slirp4netns (1.0.1-2) ...
Setting up docker-ce (5:25.0.3-1~ubuntu.22.04~jammy) ...
Created symlink /etc/systemd/system/multi-user.target.wants/docker.service → /li                                                                                                                                                             b/systemd/system/docker.service.
Created symlink /etc/systemd/system/sockets.target.wants/docker.socket → /lib/sy                                                                                                                                                             stemd/system/docker.socket.
Processing triggers for man-db (2.10.2-1) ...
Processing triggers for libc-bin (2.35-0ubuntu3.1) ...
Scanning processes...
Scanning linux images...

Running kernel seems to be up-to-date.

No services need to be restarted.

No containers need to be restarted.

No user sessions are running outdated binaries.

No VM guests are running outdated hypervisor (qemu) binaries on this host.
root@ubuntu:~/tak-server# cd /takserver
-bash: cd: /takserver: No such file or directory
root@ubuntu:~/tak-server# cd
root@ubuntu:~# ls
snap  tak-server
root@ubuntu:~# cd tak-server/
root@ubuntu:~/tak-server# chmod +x scripts/setup.sh
root@ubuntu:~/tak-server# ./scripts/setup.sh

I might have done something wrong here:

root@ubuntu:~/tak-server# echo \
  "deb [arch="$(dpkg --print-architecture)" signed-by=/etc/apt/keyrings/docker.g                                                                                                                                                             pg] https://download.docker.com/linux/ubuntu \
  "$(. /etc/os-release && echo "$VERSION_CODENAME")" stable" | \
> sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
root@ubuntu:~/tak-server# echo \
  "deb [arch="$(dpkg --print-architecture)" signed-by=/etc/apt/keyrings/docker.g                                                                                                                                                             pg] https://download.docker.com/linux/ubuntu \
  "$(. /etc/os-release && echo "$VERSION_CODENAME")" stable" | \
  sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
FarrantAlex commented 6 months ago

It's a Java version thing. An update will be pushed this week for 5.0

FarrantAlex commented 6 months ago

Done