Web interface stops

Manuel Suárez6 years ago

I need a little help, I just updated to version 4.4 of traccar and it does not allow me to load the web interface I restart the service and it starts working again but 10 minutes later it fails again and what makes me strange is that in the log it does not aparaece nothing

root@FCB6BDA:/opt/traccar/logs# tail tracker-server.log
2019-05-01 17:22:12  INFO: [fb41839c] id: 864895030908188, time: 2019-05-01 17:2                                                                                                                                                             2:10, lat: 19.64634, lon: -101.16445, speed: 10.9, course: 287.3
2019-05-01 17:22:12  INFO: [31603f39] id: 352887079094078, time: 2019-05-01 17:2                                                                                                                                                             2:10, lat: 19.57162, lon: -100.46661, course: 0.0
2019-05-01 17:22:12  INFO: [28fe612e: gps103 < 200.68.139.13] HEX: 696d65693a383                                                                                                                                                             6343138303033333537363130342c747261636b65722c3139303530313131323135372c2c462c313                                                                                                                                                             7323135332e3030302c412c313934312e313336302c4e2c31303131312e383831362c572c342e333                                                                                                                                                             02c32382e36353b
2019-05-01 17:22:13  INFO: [28fe612e] id: 864180033576104, time: 2019-05-01 17:2                                                                                                                                                             1:53, lat: 19.68560, lon: -101.19803, speed: 4.3, course: 28.7
2019-05-01 17:22:13  INFO: [9841c8b0: gps103 < 200.68.139.30] HEX: 3836383638333                                                                                                                                                             032373130363131353b
2019-05-01 17:22:13  INFO: [9841c8b0: gps103 > 200.68.139.30] HEX: 4f4e
2019-05-01 17:22:14  INFO: [e0720f8c: gps103 < 201.175.203.88] HEX: 696d65693a38                                                                                                                                                             36343138303033363832373337312c747261636b65722c3139303530313033353934332c2c462c30                                                                                                                                                             39353933392e3030302c412c313934382e373739302c4e2c31303130332e323131362c572c302e30                                                                                                                                                             302c303b
2019-05-01 17:22:14  INFO: [f5596668: gps103 < 200.68.138.200] HEX: 696d65693a38                                                                                                                                                             36343839333033323835303338332c747261636b65722c3139303530313131323231332c2c462c31                                                                                                                                                             37323231332e30302c412c313933392e36333232312c4e2c31303131322e33323934332c572c302e                                                                                                                                                             3030302c303b
2019-05-01 17:22:14  INFO: [e0720f8c] id: 864180036827371, time: 2019-05-01 09:5                                                                                                                                                             9:39, lat: 19.81298, lon: -101.05353, course: 0.0
2019-05-01 17:22:14  INFO: [f5596668] id: 864893032850383, time: 2019-05-01 17:2                                                                                                                                                             2:13, lat: 19.66054, lon: -101.20549, course: 0.0
root@FCB6BDA:/opt/traccar/logs#
Manuel Suárez6 years ago

check the log again and give me this error

ERROR: Thread exception - For input string: "" - NumberForma                                                                                                                                                             tException (... < Config:114 < PropertiesProvider:53 < MailManager:49 < ...)
2019-05-01 17:34:59 ERROR: Thread exception - For input string: "" - NumberForma                                                                                                                                                             tException (... < Config:114 < PropertiesProvider:53 < MailManager:49 < ...)
renaud6 years ago

I have had the same issue, web interface was not responding anymore with nothing special in the logs, it printed an error about the connection. This happened about 15 minutes after upgrading to 4.4.

Anton Tananaev6 years ago

Have you checked browser console?

renaud6 years ago

Unfortunately, no, I first tried to reload the page, which failed. I had to restart the whole traccar process to get the page again. If/when I get this again, I will check the browser console.

renaud6 years ago

Popup window that appears: Error: Communication failure

From browser console, I get:

unreachable code after return statement[Learn More] ext-all.js:22:366125
Firefox can’t establish a connection to the server at wss://traccar.arnor.org/api/socket.
app.min.js:462:467

Device movements are still appearing in logs after that crash.
Traccar app is also unable to connect, so that's really the whole web interface which is down, not only for one session.

renaud6 years ago

BTW, I am using MariaDB and had to change the connection parameter.

<entry key='database.url'>jdbc:mysql://127.0.0.1:3306/traccar?serverTimezone=UTC&amp;useSSL=false&
amp;allowMultiQueries=true&amp;autoReconnect=true&amp;useUnicode=yes&amp;characterEncoding=UTF-8&a
mp;sessionVariables=sql_mode=''</entry>
Anton Tananaev6 years ago

What happens to the network calls? Are APIs still responsive?

renaud6 years ago

I have started it on the console directly with "/usr/local/jdk-1.8.0/bin/java -XX:-UsePerfData -jar /usr/local/share/traccar/tracker-server.jar /etc/traccar/traccar.xml" and there is nothing special printed in the output.

renaud6 years ago

Do you have an example of what you want me to test?

renaud6 years ago

I am currently trying with debug.html

renaud6 years ago

Unfortunately, debug.html didn't give better results :(

Firefox can’t establish a connection to the server at wss://traccar.arnor.org/api/socket. Root.js:197:17

renaud6 years ago

I am now trying to run it with the websocket libraries used in 4.3 (websocket-*-9.4.14.v20181114.jar)

renaud6 years ago
renaud6 years ago

running it only with older websocket libs made it last longer, but it still hangs. I am now trying with all jetty libs.