How to Install Traccar server on AWS Amazon step by step (Tutorial)

Julio.Rodriguez9 years ago

First that nothing, I want to thank all those who made possible this project "Traccar" in particular the Lord Anton Tananaev many thanks.

  1. the first is that we must acquire a VPS of your choice, in my case I use Ubuntu Server 14.
    http://postimg.org/image/bg67ob8rb

2 we need to access our VPS using putty here you have a tutorial on how to do it. How to configure putty

  1. Once inside our vps using Putty we proceed with the installation of the Traccar Server

4-steps to follow once inside our VPS

# sudo su
# apt - get update
# wget https://github.com/tananaev/traccar/releases/download/v3.1/traccar-linux-64-3.1.zip
(In case you use VPS 64-bit (recommended)
# wget https://github.com/tananaev/traccar/releases/download/v3.1/traccar-linux-32-3.1.zip
(VPS 32-bit)
#unzip traccar-linux-64-3.1. zip
#apkg - configure - a
#apt-get install mysql-server phpmyadmin unzip
#vi /opt/traccar/conf/linux.cfg

http://postimg.org/image/r6yhcko33

   <entry key="database.driver">com.mysql.jdbc.Driver</entry>
   <entry key="database.datasource">com.mysql.jdbc.jdbc2.optional.MysqlDataSource</entry>
   <entry key="database.url">jdbc:mysql://localhost/anyusername
allowMultiqueries=true&autoreconnect=</entry>
   <entry key='database.user'>anyusername</entry>
   <entry key='database.password'>youphpmyadminpassword</entry>

Press ESC
:wq
http://postimg.org/image/texpho1et

# sudo apt-get install openjdk-7-jre
# sudo /opt/traccar/bin/traccar start

Now we access the browser with the ip of our server, to open the ports of our vps on AWS, follow these steps;
1 http://postimg.org/image/efy8fhdvt
2 http://postimg.org/image/w4pz73pmx
3 http://postimg.org/image/izah0zvrd

Finally, in the client installed on the device, we will put our IP and port 5055.
http://postimg.org/image/ttnujlicz

Julio Rodriguez-.

code07.net9 years ago

Is this still valid for the new version 3.4

the new version is on this address
https://github.com/tananaev/traccar/releases/download/v3.4/traccar-linux-64-3.4.zip

Anton Tananaev9 years ago

Yes, it should still be valid.

excepticons9 years ago

Hi.
Excellent work!
Anton and Julio are amazing!

Please, I have an issue in the line #vi /opt/traccar/conf/linux.cfg
I have a Amazon AWS EC2 eith Ubuntu. I'm installing doing steps and using traccar-linux-64-3.5.zip version. But, when I try to edit the file with path using nano editor, nano says that path doesnt exist.
I checked and the directory traccar is not within the directory opt.

My screen

Please, can you help me?

Thanks.

Gustavo

excepticons9 years ago

Hi @Julio.Rodriguez

Please, there is an installation guide for Windows server?

I have installed Traccar server on Windows, and I can run into server (AWS Windows Server 2012 64) with http://localhost:8082 working fine, but if I try to run outside of Windows Server using its public IP (http://52.24.224.XX:8082/) it does not work.

Also, I cant configure a iPhone and Android phones for tracking. The AWS server has the configured rules for TCP and UDP with port 8082.

Thank you.

Gustavo

Anton Tananaev9 years ago

Most likely it means you haven't opened ports in firewall.

excepticons9 years ago

Ohm, yeah, Anton.
My mistake.
Thank you!

Julio.Rodriguez9 years ago

Hello gustavo, I'm working on a guide for windows server, currently acquired the GPSWOX platform, and in my company we are developing it, take a look, gpswox.com

excepticons9 years ago

Hello, Julio.
Wow! Really nice.
I'm really interested in Accessories and sensors.
I will waiting when gpswox is open for public.
Thanks.

Gustavo.

Iorek8 years ago

Use

#sudo ./traccar.run

instead of

#apkg –configure –a

Also, AWS uses yum instead of apt-get

saikrupa20127 years ago

hi anton !
i have ubuntu 16.04 aws instance on which iam trying to install traccar .
i followed all the above steps @Julio.Rodriguez.
i am getting errors for following steps
step 2: apt-get update

Err:7 http://old-releases.ubuntu.com/ubuntu xenial-security/main Sources
  404  Not Found
Ign:9 http://old-releases.ubuntu.com/ubuntu xenial-security/restricted Sources
Ign:11 http://old-releases.ubuntu.com/ubuntu xenial-security/universe Sources
Ign:12 http://old-releases.ubuntu.com/ubuntu xenial-security/multiverse Sources
Ign:14 http://old-releases.ubuntu.com/ubuntu xenial-security/main amd64 Packages
Ign:15 http://old-releases.ubuntu.com/ubuntu xenial-security/main all Packages
Ign:16 http://old-releases.ubuntu.com/ubuntu xenial-security/main Translation-en_US
Ign:17 http://old-releases.ubuntu.com/ubuntu xenial-security/main Translation-en
Ign:18 http://old-releases.ubuntu.com/ubuntu xenial-security/restricted amd64 Packages
Ign:19 http://old-releases.ubuntu.com/ubuntu xenial-security/restricted all Packages
Ign:20 http://old-releases.ubuntu.com/ubuntu xenial-security/restricted Translation-en_US
Fetched 15.1 kB in 11s (1,359 B/s)
Reading package lists... Done
W: The repository 'http://old-releases.ubuntu.com/ubuntu xenial-security Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: Failed to fetch http://us-east-2.ec2.old-releases.ubuntu.com/ubuntu/dists/xenial/InRelease  Could not resolve 'us-east-2.ec2.old-releases.ubuntu.com'
W: Failed to fetch http://us-east-2.ec2.old-releases.ubuntu.com/ubuntu/dists/xenial-updates/InRelease  Could not resolve 'us-east-2.ec2.old-releases.ubuntu.com'
W: Failed to fetch http://us-east-2.ec2.old-releases.ubuntu.com/ubuntu/dists/xenial-backports/InRelease  Could not resolve 'us-east-2.ec2.old-releases.ubuntu.com'
E: Failed to fetch http://old-releases.ubuntu.com/ubuntu/dists/xenial-security/main/source/Sources  404  Not Found
E: Failed to fetch http://download.webmin.com/download/repository/dists/sarge/Release  Unable to find expected entry 'contribdeb/binary-amd64/Packages' in Release file (Wrong sources.list entry or malformed file)
W: Some index files failed to download. They have been ignored, or old ones used instead.

step 6:
I Used:

#sudo ./traccar.run

instead of

#apkg –configure –a

step7:

apt-get install mysql-server phpmyadmin unzip

error with apt-get install
so installed deb file.

step9:

sudo apt-get install openjdk-7-jre

error:Installed deb file

root@ip-172-31-0-67:/home/ubuntu# ls
jcameron-key.asc       jre-7u80-linux-x64.rpm                                        readme                          traccar-linux-64-3.1.zip
jcameron-key.asc.1    mysql-apt-config_0.8.9-1_all.deb                         README.txt                   traccar.run
jdk-7u80-linux-x64    openjdk-7-jre-lib_7u151-2.6.11-2ubuntu0.14.04.1_all.deb                       server-jre-8u65-linux-x64.tar.gz  tracker
jre1.7.0_80                 phpmyadmin_3.4.10.1-1_all.deb                                                                traccar-linux-3.13.zip

step 10:

sudo /opt/traccar/bin/traccar start

error:

root@ip-172-31-0-67:/# sudo /opt/traccar/bin/traccar start
Starting traccar...
Waiting for traccar......................
WARNING: traccar may have failed to start.
Lucas Bastos6 years ago

Did someone get to install newest Traccar version on AWS EC2?

Sunny 6 years ago

Hi

Please, there is an installation guide for Ubuntu server?

I have installed Traccar server on Ubuntu , and I can run into server (AWS Windows Server 2016 64) in vm http://172.31.31.19:8082/ working fine, but if I try to run outside of Ubuntu Server using its public IP (http://172.31.31.19:8082/) it does not work.

Also, I can't configure a Android phones for tracking. The AWS server has the configured rules for TCP and UDP with port 8082.

Thank you.

sunny