Updating from 6.5 to 6.6

rowl3y10 days ago

Hi all,

Does anyone have step by step commands to update.

Thanks

Anton Tananaev10 days ago
rowl3y10 days ago

Thanks I have seen this already .. Just looking for the SSH commands ?

emmanuelh10 days ago

Look this https://www.bysmax.com/traccar/traccar/como-actualizar-traccar-a-la-version-mas-reciente-en-digital-ocean, is in spanish, but, have the commands

How to Update Traccar to the Latest Version on DigitalOcean

  1. Stop and uninstall the Traccar service:

    service traccar stop && sudo rm /etc/systemd/system/traccar.service
  2. Download and install the latest version of Traccar:

    rm traccar-linux* && wget https://www.traccar.org/download/traccar-linux-64-latest.zip
    unzip traccar-linux-*.zip && ./traccar.run
  3. Replace the traccar.xml configuration file (if you have modified it before):

    cat > /opt/traccar/conf/traccar.xml << EOF
    <?xml version='1.0' encoding='UTF-8'?>
    <!DOCTYPE properties SYSTEM 'http://java.sun.com/dtd/properties.dtd'>
    <properties>
        <entry key="config.default">./conf/default.xml</entry>
        <entry key='database.driver'>com.mysql.jdbc.Driver</entry>
        <entry key='database.url'>jdbc:mysql://localhost/traccar?zeroDateTimeBehavior=round&amp;serverTimezone=UTC&amp;allowPublicKeyRetrieval=true&amp;useSSL=false&amp;allowMultiQueries=true&amp;autoReconnect=true&amp;useUnicode=yes&amp;characterEncoding=UTF-8&amp;sessionVariables=sql_mode=''</entry>
        <entry key='database.user'>root</entry>
        <entry key='database.password'>root</entry>
    </properties>
    EOF
  4. Start the Traccar service:

    service traccar start
  5. Update the custom frontend (if applicable):
    Replace the custom files in the modern folder.

If the web interface does not display after accessing Traccar, try restarting the service:

service traccar stop && service traccar start