install on centos 8

Maros Holub5 years ago

I try install traccar on latest centos 8, but i still get error "Uncompressing traccarExtraction failed"

[root@localhost traccar]# uname -a
Linux nas 4.18.0-147.5.1.el8_1.x86_64 #1 SMP Wed Feb 5 02:00:39 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

[root@localhost traccar]# df -h
Filesystem           Size  Used Avail Use% Mounted on
devtmpfs             7.7G     0  7.7G   0% /dev
tmpfs                7.7G     0  7.7G   0% /dev/shm
tmpfs                7.7G  8.7M  7.7G   1% /run
tmpfs                7.7G     0  7.7G   0% /sys/fs/cgroup
/dev/mapper/cl-root   50G  2.8G   48G   6% /
/dev/sda2            976M  189M  721M  21% /boot
/dev/sda1            599M  6.8M  593M   2% /boot/efi
/dev/mapper/cl-home   53G  1.2G   52G   3% /home
tmpfs                1.6G     0  1.6G   0% /run/user/0

[root@localhost traccar]# ll traccar.run 
-rwxr-xr-x. 1 root root 91801176 Feb 19 17:56 traccar.run

[root@localhost traccar]# ./traccar.run 
Creating directory out
Verifying archive integrity... All good.
Uncompressing traccarExtraction failed.
Terminated

[root@localhost traccar]#   100%  
[root@localhost traccar]#

Pls, do you have any idea, where is the problem? Thank you

Anton Tananaev5 years ago

Maybe corrupted file?

Maros Holub5 years ago

No, that is not the reason. The same file on Centos7 works OK.
But on Centos8 it doesn't work. Fresh download and installation on Centos8 (and as you can see the old file size is the same as new file size).
There must be another reason.

[root@localhost traccar]# ll
total 89652
-rwxr-xr-x. 1 root root 91801176 Feb 19 18:56 traccar.run
[root@localhost traccar]# mv traccar.run traccar.run_old
[root@localhost traccar]# ll
total 89652
-rwxr-xr-x. 1 root root 91801176 Feb 19 18:56 traccar.run_old
[root@localhost traccar]# wget https://github.com/traccar/traccar/releases/download/v4.8/traccar-linux-64-4.8.zip
--2020-02-19 18:57:23--  https://github.com/traccar/traccar/releases/download/v4.8/traccar-linux-64-4.8.zip
Resolving github.com (github.com)... 140.82.118.4
Connecting to github.com (github.com)|140.82.118.4|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://github-production-release-asset-2e65be.s3.amazonaws.com/4038949/3f2a9c00-4a69-11ea-84cf-a7a440074098?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20200219%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20200219T175525Z&X-Amz-Expires=300&X-Amz-Signature=9fa35c9dd3d5e505fbe8da35993e3419b94c77c4863d027717029637724e7f45&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment%3B%20filename%3Dtraccar-linux-64-4.8.zip&response-content-type=application%2Foctet-stream [following]
--2020-02-19 18:57:23--  https://github-production-release-asset-2e65be.s3.amazonaws.com/4038949/3f2a9c00-4a69-11ea-84cf-a7a440074098?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20200219%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20200219T175525Z&X-Amz-Expires=300&X-Amz-Signature=9fa35c9dd3d5e505fbe8da35993e3419b94c77c4863d027717029637724e7f45&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment%3B%20filename%3Dtraccar-linux-64-4.8.zip&response-content-type=application%2Foctet-stream
Resolving github-production-release-asset-2e65be.s3.amazonaws.com (github-production-release-asset-2e65be.s3.amazonaws.com)... 52.216.142.132
Connecting to github-production-release-asset-2e65be.s3.amazonaws.com (github-production-release-asset-2e65be.s3.amazonaws.com)|52.216.142.132|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 91538689 (87M) [application/octet-stream]
Saving to: 'traccar-linux-64-4.8.zip'

traccar-linux-64-4.8.zip            100%[===================================================================>]  87.30M  11.8MB/s    in 8.0s    

2020-02-19 18:57:32 (11.0 MB/s) - 'traccar-linux-64-4.8.zip' saved [91538689/91538689]

[root@localhost traccar]# ll
total 179048
-rw-r--r--. 1 root root 91538689 Feb  8 20:50 traccar-linux-64-4.8.zip
-rwxr-xr-x. 1 root root 91801176 Feb 19 18:56 traccar.run_old
[root@localhost traccar]# unzip traccar-linux-64-4.8.zip 
Archive:  traccar-linux-64-4.8.zip
  inflating: traccar.run             
  inflating: README.txt              
[root@localhost traccar]# ll
total 268704
-rw-r--r--. 1 root root      539 Feb  8 19:56 README.txt
-rw-r--r--. 1 root root 91538689 Feb  8 20:50 traccar-linux-64-4.8.zip
-rwxr-xr-x. 1 root root 91801176 Feb  8 20:17 traccar.run
-rwxr-xr-x. 1 root root 91801176 Feb 19 18:56 traccar.run_old
[root@localhost traccar]# ./traccar.run
Creating directory out
Verifying archive integrity... All good.
Uncompressing traccarExtraction failed.
Terminated
[root@localhost traccar]#   100%  
[root@localhost traccar]# 
Francis Yates5 years ago

I was having same issues.. turns out Centos8 doesnt have tar command by default

./traccar.run --nochown
Creating directory out
Verifying archive integrity... All good.
Uncompressing traccarExtraction failed.
Terminated
./traccar.run --list
Target directory: out
./traccar.run: line 205: tar: command not found
Extraction failed.
Terminated
dnf install tar
Last metadata expiration check: 0:24:55 ago on Thu 27 Feb 2020 03:29:51 EET.
Dependencies resolved.
=================================================================================================================================================================
 Package                           Architecture                         Version                                       Repository                            Size
=================================================================================================================================================================
Installing:
 tar                               x86_64                               2:1.30-4.el8                                  BaseOS                               838 k

Transaction Summary
=================================================================================================================================================================
Install  1 Package

Total download size: 838 k
Installed size: 2.8 M
Is this ok [y/N]: y
Downloading Packages:
tar-1.30-4.el8.x86_64.rpm                                                                                                        2.0 MB/s | 838 kB     00:00    
-----------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                            2.0 MB/s | 838 kB     00:00     
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                                                                         1/1 
  Installing       : tar-2:1.30-4.el8.x86_64                                                                                                                 1/1 
  Running scriptlet: tar-2:1.30-4.el8.x86_64                                                                                                                 1/1 
  Verifying        : tar-2:1.30-4.el8.x86_64                                                                                                                 1/1 

Installed:
  tar-2:1.30-4.el8.x86_64   
./traccar.run
Creating directory out
Verifying archive integrity... All good.
Uncompressing traccar  100%  
Created symlink /etc/systemd/system/multi-user.target.wants/traccar.service → /etc/systemd/system/traccar.service.
Maros Holub5 years ago

omg, i didn't think this could be the problem. Thank you very much!!