Server Update - Amazon Linux 2023

dcassidy 2 years ago

Hi
I am running the Traccar server on Amazon Linux 2023 (postgresql15). I am looking at the process of updating the server.

I have followed the uninstall instructions on this site:

 sudo systemctl stop traccar
 sudo systemctl disable traccar
 sudo rm /etc/systemd/system/traccar.service
 sudo systemctl daemon-reload
 sudo rm -R /opt/traccar

When I then install the latest traccar version:

sudo wget https://www.traccar.org/download/traccar-linux-64-latest.zip
sudo unzip traccar-linux-*.zip

I then get the following message:

[ec2-user@ip-1xx-xx-x-xx ~]$ sudo unzip traccar-linux-*.zipArchive:  traccar-linux-64-latest.zipreplace traccar.run? [y]es, [n]o, [A]ll, [N]one, [r]ename:

I select A, run the installer (sudo ./traccar.run), configure the file (sudo vi /opt/traccar/conf/traccar.xml) and start the server (sudo service traccar start).

The server seems to be running ok. Is there any other commands I should issue at the uninstall stage to stop the archive message or is what I have done ok. Am I leaving any unncessary files behind, which may cause a problem in the future.

Any suggestions would be appreciated. Thanks

Dave

Anton Tananaev 2 years ago

It seems like you already have the old installation files in the folder. Specifically it tells you about "traccar.run", from what I can tell.

dcassidy 2 years ago

Hi Anton

Thanks for your reply. Is there a command I can use at the uninstall stage to remove the old installation files.

Thanks

Anton Tananaev 2 years ago

That's not part of the installed files. That's the installation package that you extracted yourself.

dcassidy 2 years ago

Ok. Thanks for your help