Installation via ansible - possible connection errors - but nothing in logs

David Cole2 years ago

I could perhaps expose it and send you a dm with an address.

David Cole2 years ago

Email to support sent with ip address.

Anton Tananaev2 years ago

This endpoint is returning 404:

/api/server

Check the database table.

David Cole2 years ago

Sorry which table am I checking? I can se a DATABASECHANGELOG that mentions version 5, and some alterations it made.

Strange I just looked at my proper server (so not the one I'm rebuilding) and the modern interface works, that will be on latest docker tag.

Took over 24 hours for the rate limit to clear

Anton Tananaev2 years ago

Server table - tc_servers.

David Cole2 years ago
mysql> select * from tc_servers;
+----+----------------------------+-----------+-----------+------+------+---------+--------+--------------------+------------------------------------+------------+------------------------------+------------------+--------------------------------+------------------------------+----------+--------------+--------------------------------+
| id | registration               | latitude  | longitude | zoom | map  | bingkey | mapurl | readonly           | twelvehourformat                   | attributes | forcesettings                | coordinateformat | devicereadonly                 | limitcommands                | poilayer | announcement | disablereports                 |
+----+----------------------------+-----------+-----------+------+------+---------+--------+--------------------+------------------------------------+------------+------------------------------+------------------+--------------------------------+------------------------------+----------+--------------+--------------------------------+
|  1 | 0x00                       | -4x.xxxxx | 1xx.xxxxx |    0 | osm  |         |        | 0x00               | 0x00                               | {}         | 0x00                         |                  | 0x00                           | 0x00                         |          |              | 0x00                           |
+----+----------------------------+-----------+-----------+------+------+---------+--------+--------------------+------------------------------------+------------+------------------------------+------------------+--------------------------------+------------------------------+----------+--------------+--------------------------------+

What am I looking for? I Cant' see anything different with that record compared to my working system

Anton Tananaev2 years ago

Looks fine. Not sure what the problem is then.

David Cole2 years ago

As soon as I switch the docker-compose from traccar/traccar:4 to traccar/traccar:5 and restart refreshing the api/server subpage gets me a 404 not found. Very weird

Anton Tananaev2 years ago

Can you enable full stack traces and get the full error stack?

David Cole2 years ago

I had a look in here https://www.traccar.org/configuration-file/ but didn't see any options for turning that on. What do I had to add to get that going?

In default.xml I do have logger level "all"

Also I was looking in the default.xml and saw:

<entry key='web.path'>./web</entry>

Which is identical in both systems,and going to http://server:port/web gets a 404 anyway. Just though that might have been something.

Anton Tananaev2 years ago
David Cole2 years ago

Does this give you something.

2022-06-12 16:08:18  INFO: HikariPool-1 - Starting...
2022-06-12 16:08:21  INFO: HikariPool-1 - Added connection com.mysql.cj.jdbc.ConnectionImpl@f316aeb
2022-06-12 16:08:21  INFO: HikariPool-1 - Start completed.
2022-06-12 16:08:22  INFO: Clearing database change log checksums
2022-06-12 16:08:24  INFO: Successfully acquired change log lock
2022-06-12 16:08:25  INFO: Successfully released change log lock
2022-06-12 16:08:26  INFO: Successfully acquired change log lock
2022-06-12 16:08:26  INFO: Cannot load service: liquibase.parser.ChangeLogParser: liquibase.parser.core.json.JsonChangeLogParser Unable to get public no-arg constructor
2022-06-12 16:08:26  INFO: Cannot load service: liquibase.parser.ChangeLogParser: liquibase.parser.core.yaml.YamlChangeLogParser Unable to get public no-arg constructor
2022-06-12 16:08:31  INFO: Reading from traccar.DATABASECHANGELOG
2022-06-12 16:08:36  INFO: Reading from traccar.DATABASECHANGELOG
2022-06-12 16:08:36  INFO: Cannot load service: liquibase.hub.HubService: Provider liquibase.hub.core.StandardHubService could not be instantiated
2022-06-12 16:08:36  INFO: Successfully released change log lock
2022-06-12 16:08:42  INFO: Operating system name: Linux version: 5.15.30-2-pve architecture: amd64
2022-06-12 16:08:42  INFO: Java runtime name: OpenJDK 64-Bit Server VM vendor: Alpine version: 11.0.15+10-alpine-r0
2022-06-12 16:08:42  INFO: Memory limit heap: 512mb non-heap: 0mb
2022-06-12 16:08:42  INFO: Character encoding: UTF-8 charset: UTF-8
2022-06-12 16:08:42  INFO: Version: 5.0
2022-06-12 16:08:42  INFO: Starting server...
2022-06-12 16:08:44  INFO: jetty-10.0.7; built: 2021-10-06T19:34:02.766Z; git: da8a4553af9dd84080931fa0f8c678cd2d60f3d9; jvm 11.0.15+10-alpine-r0
2022-06-12 16:08:45  INFO: Started o.t.w.@704d3b00{/,null,AVAILABLE}
2022-06-12 16:08:45  INFO: Session workerName=node0
2022-06-12 16:08:46  WARN: JAXBContext implementation could not be found. WADL feature is disabled.
2022-06-12 16:08:47  INFO: Started o.e.j.s.ServletContextHandler@632b5c79{/,null,AVAILABLE}
2022-06-12 16:08:47  INFO: Started ServerConnector@2bc378f7{HTTP/1.1, (http/1.1)}{0.0.0.0:8082}
2022-06-12 16:08:47  INFO: Started Server@4d4df0f4{STARTING}[10.0.7,sto=0] @33186ms
2022-06-12 16:08:47  WARN: No systemd support -
java.lang.UnsatisfiedLinkError: Unable to load library 'systemd':
Error loading shared library libsystemd.so: No such file or directory
Error loading shared library libsystemd.so: No such file or directory
Native library (linux-x86-64/libsystemd.so) not found in resource path (tracker-server.jar)
        at com.sun.jna.NativeLibrary.loadLibrary(NativeLibrary.java:301)
        at com.sun.jna.NativeLibrary.getInstance(NativeLibrary.java:461)
        at com.sun.jna.Library$Handler.<init>(Library.java:192)
        at com.sun.jna.Native.load(Native.java:622)
        at com.sun.jna.Native.load(Native.java:596)
        at org.traccar.schedule.TaskHealthCheck.<init>(TaskHealthCheck.java:41)
        at org.traccar.schedule.ScheduleManager.start(ScheduleManager.java:33)
        at org.traccar.Main.run(Main.java:127)
        at org.traccar.Main.main(Main.java:107)
        Suppressed: java.lang.UnsatisfiedLinkError: Error loading shared library libsystemd.so: No such file or directory
                at com.sun.jna.Native.open(Native Method)
                at com.sun.jna.NativeLibrary.loadLibrary(NativeLibrary.java:191)
                ... 8 more
        Suppressed: java.lang.UnsatisfiedLinkError: Error loading shared library libsystemd.so: No such file or directory
                at com.sun.jna.Native.open(Native Method)
                at com.sun.jna.NativeLibrary.loadLibrary(NativeLibrary.java:204)
                ... 8 more
        Suppressed: java.io.IOException: Native library (linux-x86-64/libsystemd.so) not found in resource path (tracker-server.jar)
                at com.sun.jna.Native.extractFromResourcePath(Native.java:1145)
                at com.sun.jna.NativeLibrary.loadLibrary(NativeLibrary.java:275)
                ... 8 more

Nothing else has appeared. I added <entry key='logger.fullStackTraces'>true</entry> to traccar.xml and restarted

Anton Tananaev2 years ago

That's fine. What do you get from the server endpoint?

David Cole2 years ago

you mean from http://server:port/api or http://server:port/api/server?

Both still get 404 errors. And nothing extra in the traccer-server.log past that systemd message

Anton Tananaev2 years ago

No more ideas.