Traccar 4.1 server connected with device but no web UI

Fergal Powell6 years ago

Hello all,

I have been running Traccar 3.16 on digital ocean for a little while and today I decided to upgrade to 4.1 linux 64, as I wanted to analyse requests made to the server via the API in the log file.
I made a backup of my database and config.xml and uninstalled and removed previous version then installed 4.1. I updated the traccar.xml file, I didn't touch the default.xml file, and started the service. When I go to the ip address of my droplet I cannot connect. I have also tried the ip address with port 80 and 8082 but still did not connect.

Inside my log file I can see that the device and server are communicating and the server recognises the device from previous database.
Any ideas why I cannot access the web app?

Log file

2018-10-26 14:38:48  INFO: [ba0fe0b1] disconnected
2018-10-26 14:43:01  INFO: Shutting down server...
2018-10-26 14:43:12  INFO: HikariPool-1 - Starting...
2018-10-26 14:43:12  INFO: HikariPool-1 - Start completed.
2018-10-26 14:43:13  INFO: Clearing database change log checksums
2018-10-26 14:43:13  INFO: SELECT COUNT(*) FROM traccar.DATABASECHANGELOGLOCK
2018-10-26 14:43:13  INFO: SELECT COUNT(*) FROM traccar.DATABASECHANGELOGLOCK
2018-10-26 14:43:13  INFO: SELECT `LOCKED` FROM traccar.DATABASECHANGELOGLOCK WHERE ID=1
2018-10-26 14:43:14  INFO: Successfully acquired change log lock
2018-10-26 14:43:14  INFO: SELECT MD5SUM FROM traccar.DATABASECHANGELOG WHERE MD5SUM IS NOT NULL LIMIT 1
2018-10-26 14:43:14  INFO: UPDATE traccar.DATABASECHANGELOG SET MD5SUM = NULL
2018-10-26 14:43:14  INFO: Successfully released change log lock
2018-10-26 14:43:14  INFO: SELECT COUNT(*) FROM traccar.DATABASECHANGELOGLOCK
2018-10-26 14:43:14  INFO: SELECT COUNT(*) FROM traccar.DATABASECHANGELOGLOCK
2018-10-26 14:43:14  INFO: SELECT `LOCKED` FROM traccar.DATABASECHANGELOGLOCK WHERE ID=1
2018-10-26 14:43:14  INFO: Successfully acquired change log lock
2018-10-26 14:43:17  INFO: SELECT MD5SUM FROM traccar.DATABASECHANGELOG WHERE MD5SUM IS NOT NULL LIMIT 1
2018-10-26 14:43:17  INFO: SELECT COUNT(*) FROM traccar.DATABASECHANGELOG
2018-10-26 14:43:17  INFO: Reading from traccar.DATABASECHANGELOG
2018-10-26 14:43:17  INFO: SELECT * FROM traccar.DATABASECHANGELOG ORDER BY DATEEXECUTED ASC, ORDEREXECUTED ASC
2018-10-26 14:43:17  INFO: UPDATE traccar.DATABASECHANGELOG SET MD5SUM = '8:ea6f202534dc7845fd1a49e1d8384d9c' WHERE ID = 'changelog-3.3' AND AUTHOR = 'author' AND FILENAME = 'cha$
2018-10-26 14:43:17  INFO: UPDATE traccar.DATABASECHANGELOG SET MD5SUM = '8:194e3ae7ec6d201917136e04a26e237b' WHERE ID = 'changelog-3.5' AND AUTHOR = 'author' AND FILENAME = 'cha$
2018-10-26 14:43:17  INFO: UPDATE traccar.DATABASECHANGELOG SET MD5SUM = '8:1ec7941b03749f24e365bc6126b07e1a' WHERE ID = 'changelog-3.6' AND AUTHOR = 'author' AND FILENAME = 'cha$
2018-10-26 14:43:17  INFO: UPDATE traccar.DATABASECHANGELOG SET MD5SUM = '8:2e444e379f31d0b8e09273ec7ffe87a0' WHERE ID = 'changelog-3.7' AND AUTHOR = 'author' AND FILENAME = 'cha$
2018-10-26 14:43:17  INFO: UPDATE traccar.DATABASECHANGELOG SET MD5SUM = '8:974c33d2fb399ef6477c3897450fb078' WHERE ID = 'changelog-3.7-notmssql' AND AUTHOR = 'author' AND FILENA$
2018-10-26 14:43:17  INFO: UPDATE traccar.DATABASECHANGELOG SET MD5SUM = '8:74d68027951f8d2ae6bb2e24df8365bc' WHERE ID = 'changelog-3.8' AND AUTHOR = 'author' AND FILENAME = 'cha$
2018-10-26 14:43:17  INFO: UPDATE traccar.DATABASECHANGELOG SET MD5SUM = '8:34822842d65deb843a7d16f857d52ecc' WHERE ID = 'changelog-3.9' AND AUTHOR = 'author' AND FILENAME = 'cha$
2018-10-26 14:43:17  INFO: UPDATE traccar.DATABASECHANGELOG SET MD5SUM = '8:e1ddbe83e1ecf856a912755fc118f82e' WHERE ID = 'changelog-3.10' AND AUTHOR = 'author' AND FILENAME = 'ch$
2018-10-26 14:43:17  INFO: UPDATE traccar.DATABASECHANGELOG SET MD5SUM = '8:191c21d8f0f921845cf93bbc9d0639b9' WHERE ID = 'changelog-3.10-notmssql' AND AUTHOR = 'author' AND FILEN$
2018-10-26 14:43:17  INFO: UPDATE traccar.DATABASECHANGELOG SET MD5SUM = '8:ad1f63566e8d08812fbf0b93a118ef6e' WHERE ID = 'changelog-3.10-mssql' AND AUTHOR = 'author' AND FILENAME$
2018-10-26 14:43:17  INFO: UPDATE traccar.DATABASECHANGELOG SET MD5SUM = '8:127b36b9d32a9d236df51d19b18c3766' WHERE ID = 'changelog-3.7-mssql' AND AUTHOR = 'author' AND FILENAME $
2018-10-26 14:43:17  INFO: UPDATE traccar.DATABASECHANGELOG SET MD5SUM = '8:7800f890b9706a480bd5a79b591b6ca7' WHERE ID = 'changelog-3.11' AND AUTHOR = 'author' AND FILENAME = 'ch$
2018-10-26 14:43:17  INFO: UPDATE traccar.DATABASECHANGELOG SET MD5SUM = '8:5ce520811d626ad325a014b9fcbb1a13' WHERE ID = 'changelog-3.12' AND AUTHOR = 'author' AND FILENAME = 'ch$
2018-10-26 14:43:17  INFO: UPDATE traccar.DATABASECHANGELOG SET MD5SUM = '8:a3bf7fabcde29e106fe2f89829a76a84' WHERE ID = 'changelog-3.12-notmssql' AND AUTHOR = 'author' AND FILEN$
2018-10-26 14:43:17  INFO: UPDATE traccar.DATABASECHANGELOG SET MD5SUM = '8:cfc881bd2dadb561aa9c1a467bc8cc1c' WHERE ID = 'changelog-3.12-pgsql' AND AUTHOR = 'author' AND FILENAME$
2018-10-26 14:43:17  INFO: UPDATE traccar.DATABASECHANGELOG SET MD5SUM = '8:1be7e6c0520f8be53ef1b099d96afba5' WHERE ID = 'changelog-3.14' AND AUTHOR = 'author' AND FILENAME = 'ch$
2018-10-26 14:43:17  INFO: UPDATE traccar.DATABASECHANGELOG SET MD5SUM = '8:ac8ccec176027e98bbf45dc6c15d9b05' WHERE ID = 'changelog-3.15' AND AUTHOR = 'author' AND FILENAME = 'ch$
2018-10-26 14:43:17  INFO: UPDATE traccar.DATABASECHANGELOG SET MD5SUM = '8:b59407d70bfe9bf57bc9968adfbbdf1c' WHERE ID = 'changelog-3.16' AND AUTHOR = 'author' AND FILENAME = 'ch$
2018-10-26 14:43:17  INFO: UPDATE traccar.DATABASECHANGELOG SET MD5SUM = '8:76b4849d11b000f0cb35bb8148e706f8' WHERE ID = 'changelog-4.0-clean' AND AUTHOR = 'author' AND FILENAME $
2018-10-26 14:43:17  INFO: UPDATE traccar.DATABASECHANGELOG SET MD5SUM = '8:1adabae3238e02ccc97cc422359a58a0' WHERE ID = 'changelog-4.0-clean-common' AND AUTHOR = 'author' AND FI$
2018-10-26 14:43:17  INFO: UPDATE traccar.DATABASECHANGELOG SET MD5SUM = '8:b148f52efe9c6a3e74a56e33e257a3e2' WHERE ID = 'changelog-4.0-clean-mssql' AND AUTHOR = 'author' AND FIL$
2018-10-26 14:43:17  INFO: UPDATE traccar.DATABASECHANGELOG SET MD5SUM = '8:3f14c3b08068eb7628d0d3e2941eb2d3' WHERE ID = 'changelog-3.3-admin' AND AUTHOR = 'author' AND FILENAME $
2018-10-26 14:43:17  INFO: UPDATE traccar.DATABASECHANGELOG SET MD5SUM = '8:8aa3e56afe6ba86cd004fa801507bc28' WHERE ID = 'changelog-3.17' AND AUTHOR = 'author' AND FILENAME = 'ch$
2018-10-26 14:43:17  INFO: UPDATE traccar.DATABASECHANGELOG SET MD5SUM = '8:3974bfe5a2e962c0cd663433c832c16a' WHERE ID = 'changelog-4.0-pre' AND AUTHOR = 'author' AND FILENAME = $
2018-10-26 14:43:17  INFO: UPDATE traccar.DATABASECHANGELOG SET MD5SUM = '8:65fb49c5be37693183708351c507dd50' WHERE ID = 'changelog-4.0-common' AND AUTHOR = 'author' AND FILENAME$
2018-10-26 14:43:17  INFO: UPDATE traccar.DATABASECHANGELOG SET MD5SUM = '8:9831511507d8ae1d6759c8ccf506a27a' WHERE ID = 'changelog-4.0-pg' AND AUTHOR = 'author' AND FILENAME = '$
2018-10-26 14:43:17  INFO: UPDATE traccar.DATABASECHANGELOG SET MD5SUM = '8:ac63c4153f5b2ee5c7a07056da269571' WHERE ID = 'changelog-4.0' AND AUTHOR = 'author' AND FILENAME = 'cha$
2018-10-26 14:43:17  INFO: UPDATE traccar.DATABASECHANGELOG SET MD5SUM = '8:90aedfa378aa717f8d8ae541f97b87b2' WHERE ID = 'changelog-4.0-renaming' AND AUTHOR = 'author' AND FILENA$
2018-10-26 14:43:17  INFO: SELECT COUNT(*) FROM traccar.DATABASECHANGELOG
2018-10-26 14:43:17  INFO: Reading from traccar.DATABASECHANGELOG
2018-10-26 14:43:17  INFO: SELECT * FROM traccar.DATABASECHANGELOG ORDER BY DATEEXECUTED ASC, ORDEREXECUTED ASC
2018-10-26 14:43:17  INFO: Successfully released change log lock
2018-10-26 14:43:18  INFO: Logging initialized @7102ms to org.eclipse.jetty.util.log.Slf4jLog
2018-10-26 14:43:19  INFO: Operating system name: Linux version: 4.15.0-36-generic architecture: amd64
2018-10-26 14:43:19  INFO: Java runtime name: OpenJDK 64-Bit Server VM vendor: Oracle Corporation version: 10.0.2-ojdkbuild+13
2018-10-26 14:43:19  INFO: Memory limit heap: 239mb non-heap: 0mb
2018-10-26 14:43:19  INFO: Character encoding: UTF-8 charset: UTF-8
2018-10-26 14:43:19  INFO: Version: 4.1-SNAPSHOT
2018-10-26 14:43:19  INFO: Starting server...
2018-10-26 14:43:20  INFO: jetty-9.4.12.v20180830; built: 2018-08-30T13:59:14.071Z; git: 27208684755d94a92186989f695db2d7b21ebc51; jvm 10.0.2-ojdkbuild+13
2018-10-26 14:43:20  INFO: Started o.t.w.@65600fb3{/,null,AVAILABLE}
2018-10-26 14:43:20  INFO: DefaultSessionIdManager workerName=node0
2018-10-26 14:43:20  INFO: No SessionScavenger set, using defaults
2018-10-26 14:43:20  INFO: node0 Scavenging every 600000ms
2018-10-26 14:43:22  INFO: Started o.e.j.s.ServletContextHandler@be616f0{/,null,AVAILABLE}
2018-10-26 14:43:22  INFO: Started ServerConnector@3ec9a27d{HTTP/1.1,[http/1.1]}{0.0.0.0:8082}
2018-10-26 14:43:22  INFO: Started @11192ms
2018-10-26 14:44:56  INFO: [eefc98c1] connected
2018-10-26 14:44:56  INFO: [eefc98c1: 5055 < 89.19.67.231] HEX: 504f5354202f3f69643d3437373939302674696d657374616d703d31353430353635303932266c61743d35322e36353934393732266c6f6e3d$
2018-10-26 14:44:56  INFO: [eefc98c1: 5055 > 89.19.67.231] HEX: 485454502f312e3120323030204f4b0d0a636f6e74656e742d6c656e6774683a20300d0a0d0a
2018-10-26 14:44:56  INFO: [eefc98c1] id: 477990, time: 2018-10-26 14:44:52, lat: 52.65950, lon: -0.46792, course: 0.0, accuracy: 18.9
2018-10-26 14:45:17  INFO: [eefc98c1: 5055 < 89.19.67.231] HEX: 504f5354202f3f69643d3437373939302674696d657374616d703d31353430353635313135266c61743d35322e36353934363335266c6f6e3d$
2018-10-26 14:45:17  INFO: [eefc98c1: 5055 > 89.19.67.231] HEX: 485454502f312e3120323030204f4b0d0a636f6e74656e742d6c656e6774683a20300d0a0d0a
2018-10-26 14:45:17  INFO: [eefc98c1] id: 477990, time: 2018-10-26 14:45:15, lat: 52.65946, lon: -0.46785, course: 0.0, accuracy: 50.0
2018-10-26 14:45:57  INFO: [eefc98c1: 5055 < 89.19.67.231] HEX: 504f5354202f3f69643d3437373939302674696d657374616d703d31353430353635313535266c61743d35322e36353934383334266c6f6e3d$
2018-10-26 14:45:57  INFO: [eefc98c1: 5055 > 89.19.67.231] HEX: 485454502f312e3120323030204f4b0d0a636f6e74656e742d6c656e6774683a20300d0a0d0a
2018-10-26 14:45:57  INFO: [eefc98c1] id: 477990, time: 2018-10-26 14:45:55, lat: 52.65948, lon: -0.46792, course: 0.0, accuracy: 19.7
2018-10-26 14:46:37  INFO: [eefc98c1: 5055 < 89.19.67.231] HEX: 504f5354202f3f69643d3437373939302674696d657374616d703d31353430353635313935266c61743d35322e3635393439266c6f6e3d2d30$
2018-10-26 14:46:37  INFO: [eefc98c1: 5055 > 89.19.67.231] HEX: 485454502f312e3120323030204f4b0d0a636f6e74656e742d6c656e6774683a20300d0a0d0a
2018-10-26 14:46:37  INFO: [eefc98c1] id: 477990, time: 2018-10-26 14:46:35, lat: 52.65949, lon: -0.46792, course: 0.0, accuracy: 30.0
2018-10-26 14:47:17  INFO: [eefc98c1: 5055 < 89.19.67.231] HEX: 504f5354202f3f69643d3437373939302674696d657374616d703d31353430353635323336266c61743d35322e36353934363334266c6f6e3d$
2018-10-26 14:47:17  INFO: [eefc98c1: 5055 > 89.19.67.231] HEX: 485454502f312e3120323030204f4b0d0a636f6e74656e742d6c656e6774683a20300d0a0d0a
2018-10-26 14:47:17  INFO: [eefc98c1] id: 477990, time: 2018-10-26 14:47:16, lat: 52.65946, lon: -0.46796, course: 0.0, accuracy: 50.0
2018-10-26 14:47:57  INFO: [eefc98c1: 5055 < 89.19.67.231] HEX: 504f5354202f3f69643d3437373939302674696d657374616d703d31353430353635323736266c61743d35322e36353934373632266c6f6e3d$
2018-10-26 14:47:57  INFO: [eefc98c1: 5055 > 89.19.67.231] HEX: 485454502f312e3120323030204f4b0d0a636f6e74656e742d6c656e6774683a20300d0a0d0a
2018-10-26 14:47:57  INFO: [eefc98c1] id: 477990, time: 2018-10-26 14:47:56, lat: 52.65948, lon: -0.46795, course: 0.0, accuracy: 50.2
2018-10-26 14:48:37  INFO: [eefc98c1: 5055 < 89.19.67.231] HEX: 504f5354202f3f69643d3437373939302674696d657374616d703d31353430353635333136266c61743d35322e36353934353533266c6f6e3d$
2018-10-26 14:48:37  INFO: [eefc98c1: 5055 > 89.19.67.231] HEX: 485454502f312e3120323030204f4b0d0a636f6e74656e742d6c656e6774683a20300d0a0d0a

traccar.xml

<?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>

    <!--

    This is the main configuration file. All your configuration parameters should be placed in this file.

    Default configuration parameters are located in the "default.xml" file. You should not modify it to avoid issues
    with upgrading to a new version. Parameters in the main config file override values in the default file. Do not
    remove "config.default" parameter from this file unless you know what you are doing.

    For list of available parameters see following page: https://www.traccar.org/configuration-file/

    -->
    <entry key='web.port'>8082</entry>
    <entry key='database.driver'>com.mysql.jdbc.Driver</entry>
    <entry key='database.url'>jdbc:mysql://localhost/traccar?useSSL=false&amp;allowMultiQueries=true&amp;autoReconnect=true&amp;useUnicode=yes&amp;characterEncoding=UTF-8&amp;ses$
    <entry key='database.user'>traccar</entry>
    <entry key='database.password'>traccar</entry>

    <entry key='server.timeout'>120</entry>

</properties>

Thanks, hope someone can help!

Anton Tananaev6 years ago

You should be able to connect to the web app on port 8082. Log shows that it is working.

Fergal Powell6 years ago

Yep you are absolutely correct, it has been accessible on that port the whole time, I just made a silly mistake trying to access it at ipaddress/8082 when I should have been using ipaddress:8082. Thanks for the response Anton.