Error on web interface

bjamison10 years ago

I have install this on debian 7.8.0 and I have jre installed. The install ran fine and the daemon started up fine. When I try to go to myip:8082 it get a java error of "Remote Procedure Call Error" and a blank screen, the only thing filled in is the html title does say "traccar". I don't have any error in my apache logs or the logs under /opt/traccar.

I very well may be that something isn't configured correctly as there isn't really much documentation. I have created a database in mysql called "traccar" and set the conf file to reflect the mysql db connection, but when does it create the tables? The doc page says all I have to do is create the database and it will create the tables, but when does this happen?

How can I tell what the problem is if I don't have any error in a log anywhere? I think this could be a useful application, but it needs more documentation.

Anton Tananaev10 years ago

There must be log files under /opt/traccar/logs/. Check wrapper.log file there to find details about the error.

bjamison10 years ago

Here's what the wrapper says when I start traccar:

STATUS | wrapper | 2015/04/30 10:35:02 | --> Wrapper Started as Daemon
STATUS | wrapper | 2015/04/30 10:35:02 | Java Service Wrapper Community Edition 32-bit 3.5.26
STATUS | wrapper | 2015/04/30 10:35:02 | Copyright (C) 1999-2014 Tanuki Software, Ltd. All Rights Reserved.
STATUS | wrapper | 2015/04/30 10:35:02 | http://wrapper.tanukisoftware.com
STATUS | wrapper | 2015/04/30 10:35:02 |
STATUS | wrapper | 2015/04/30 10:35:02 | Launching a JVM...
INFO | jvm 1 | 2015/04/30 10:35:03 | WrapperManager: Initializing...
INFO | jvm 1 | 2015/04/30 10:35:06 | 2015-04-30 10:35:06.857:INFO:oejs.Server:jetty-8.1.16.v20140903
INFO | jvm 1 | 2015/04/30 10:35:07 | 2015-04-30 10:35:06.947:INFO:oejw.WebInfConfiguration:Extract jar:file:/opt/traccar/traccar-web.war!/ to /tmp/jetty-0.0.0.0-8082-traccar-web.war-_-any-/webapp
INFO | jvm 1 | 2015/04/30 10:35:09 | 2015-04-30 10:35:09.883:INFO:oejw.StandardDescriptorProcessor:NO JSP Support for /, did not find org.apache.jasper.servlet.JspServlet
INFO | jvm 1 | 2015/04/30 10:35:10 | 2015-04-30 10:35:10.082:INFO:oejs.AbstractConnector:Started SelectChannelConnector@0.0.0.0:8082

Is it saying java's not installed? Because I installed openjdk-7-jre

bjamison10 years ago

Here is what the tracker-server.log says:

2015-04-30 10:35:06 INFO: Starting server...
2015-04-30 10:35:06 INFO: Operating System name: Linux version: 3.2.0-4-686-pae architecture: i386
2015-04-30 10:35:06 INFO: Java Runtime name: OpenJDK Client VM vendor: Oracle Corporation version: 24.79-b02
2015-04-30 10:35:06 INFO: Memory Limit heap: 121mb non-heap: 118mb
2015-04-30 10:35:06 INFO: Version: 2.12-SNAPSHOT

Anton Tananaev10 years ago

Everything is working correctly as far as I can tell. I use OpenJDK Java and it should work perfectly fine.

bjamison10 years ago

Well that's my point. When I go to the URL I just get an error of "Remote procedure call error", but I don't see anything in the logs that tells me what is wrong.

Anton Tananaev10 years ago

If the problem is in web interface you need to check wrapper.log for detailed error message.

bjamison10 years ago

The wrapper log is above, I already posted that and I didn't see anything in there that looks like an error. When I actually refresh on the page no new log entries are created in either log.

Anton Tananaev10 years ago

Then I guess you need to check browser developer console. It sounds like a network problem or something and has nothing nothing to do with the server.

bjamison10 years ago

Ok, well I don't believe that is the case. I had a few others try it in different browsers as well and all get the same. My browser developer console doesn't show any problems. I guess I will just have to go use openGTS instead. Traccar looked simpler to setup which is why we went with yours.

bjamison10 years ago

When should the tables get created in the mysql database? I created the table, but your documentation said I don't have to create the tables, so when should they be created? What process does that?

I installed the iOS client and it's saying Location Update without any Network Errors or anything, but no entries in the mysql database.

If my database is called "traccar" is this the correct mysql database url to use?
<entry key='database.url'>jdbc:mysql://127.0.0.0:3306/traccar?allowMultiQueries=true&autoReconnect=true</entry>

Anton Tananaev10 years ago

They are created when you open web interface.

bjamison10 years ago

Ok figured out what the “Remote Procedure Call Error” meant. It was a typo on the database url for the mysql connection. Once I corrected that and restarted the daemon, it works now.

mataier9 years ago

Здравствуйте Антон, установил сервер Traccar, работает отлично, дальше установил Traccar web Ui, как будто все работает, но в новом интерфейсе ничего не вижу, устройство смартфон :
журнал wrapper.log

org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:311)
INFO   | jvm 1    | 2016/03/25 07:24:56 | 	at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257)
INFO   | jvm 1    | 2016/03/25 07:24:56 | 	at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:544)
INFO   | jvm 1    | 2016/03/25 07:24:56 | 	at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635)
INFO   | jvm 1    | 2016/03/25 07:24:56 | 	at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)
INFO   | jvm 1    | 2016/03/25 07:24:56 | 	at java.lang.Thread.run(Thread.java:745)
INFO   | jvm 1    | 2016/03/25 07:24:56 | Caused by: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,1]
INFO   | jvm 1    | 2016/03/25 07:24:56 | Message: Premature end of file.
INFO   | jvm 1    | 2016/03/25 07:24:56 | 	at com.sun.org.apache.xerces.internal.impl.XMLStreamReaderImpl.next(XMLStreamReaderImpl.java:596)
INFO   | jvm 1    | 2016/03/25 07:24:56 | 	at org.traccar.web.server.model.GPXParser.parse(GPXParser.java:60)
INFO   | jvm 1    | 2016/03/25 07:24:56 | 	at org.traccar.web.server.model.ImportServlet.gpx(ImportServlet.java:108)
INFO   | jvm 1    | 2016/03/25 07:24:56 | 	... 42 more

журнал сервера мониторинга:

2016-03-25 07:47:26 DEBUG: [91F40CAE: 5055 < 178.88.30.217] HEX: 474554202f3f69643d3636373739342674696d657374616d703d31343538383932303436266c61743d34332e3139393038333239343933373936266c6f6e3d37362e39313934303232373535323633382673706565643d302e302662656172696e673d302e3026616c7469747564653d3933342e3833323936323835313030353626626174743d32322e3020485454502f312e310d0a557365722d4167656e743a2044616c76696b2f312e362e3020284c696e75783b20553b20416e64726f696420342e322e323b2047542d5337353832204275696c642f4a44513339290d0a486f73743a2035322e32362e38392e35383a353035350d0a436f6e6e656374696f6e3a204b6565702d416c6976650d0a4163636570742d456e636f64696e673a20677a69700d0a0d0a
2016-03-25 07:47:26 DEBUG: [91F40CAE: 5055 > 178.88.30.217] HEX: 485454502f312e3120323030204f4b0d0a0d0a
2016-03-25 07:47:26  INFO: [91F40CAE] disconnected
2016-03-25 07:47:26  WARN: Incorrect string value: '\xD1\x83\xD0\xBB. ...' for column 'address' at row 1 - SQLException (... < QueryBuilder:428 < DataManager:345 < DefaultDataHandler:27 < ...)
2016-03-25 07:47:26  INFO: [91F40CAE] id: 1, time: 2016-03-25 07:47:26, lat: 43.19908, lon: 76.91940, speed: 0.0, course: 0.0

устанавливал traccar 3.4; 3.3; теперь 3,2 версию; web war не хочет показывать местоположение?
заранее спасибо.

Anton Tananaev9 years ago

Traccar web UI это неофициальный проект, так что советую обратиться к автору за помощью.

Ошибка из tracker-server.log похожа на вот эту:

https://www.traccar.org/forums/topic/mysql-error-change/