traccar / traccar-docker

Traccar Docker
301 stars 148 forks source link

WebUI shows 404 - Not found #100

Closed CoarsePiglet closed 2 years ago

CoarsePiglet commented 2 years ago

Hi Team

Trying to update to the latest docker container "traccar/traccar", Traccar stopped worked entirely. (5.4)

In the Web UI I get the plain message: "404 - Not Found". The log entry is down below.

Looks like it fails on systemd not found, but I have no idea what is causing this. Google and forums are of no help.

I already set this entry and it doesn't work: <entry key='web.healthCheck'>false</entry> I am using a MySQL database driver, MariaDB 10.6.

Any help or hints towards the right direction are very much appreciated, thank you

2022-10-24 21:41:09  WARN: JAXBContext implementation could not be found. WADL feature is disabled.
2022-10-24 21:41:10  INFO: Started o.e.j.s.ServletContextHandler@620572db{/,null,AVAILABLE}
2022-10-24 21:41:10  INFO: Started ServerConnector@7dbae40{HTTP/1.1, (http/1.1)}{0.0.0.0:8082}
2022-10-24 21:41:10  INFO: Started Server@638afcaa{STARTING}[10.0.12,sto=0] @9354ms
2022-10-24 21:41:10  WARN: No systemd support - 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) - UnsatisfiedLinkError (... < TaskHealthCheck:49 < <gener:-1 < *:-1 < ... < ScheduleManager:42 < ...)

Install information

2022-10-24 21:41:02  INFO: Operating system name: Linux version: 5.19.14-Unraid architecture: amd64
2022-10-24 21:41:02  INFO: Java runtime name: OpenJDK 64-Bit Server VM vendor: Alpine version: 11.0.17+8-alpine-r0

I also have this thread on the Traccar forum

CoarsePiglet commented 2 years ago

Any update on this? The issue is persistent.

tananaev commented 2 years ago

The error stack trace indicates that you have not disabled the health check.

https://github.com/traccar/traccar/blob/master/src/main/java/org/traccar/schedule/TaskHealthCheck.java#L49

CoarsePiglet commented 2 years ago

I have been able to fix the issue. unRAID doesn't support file mappings, so I had the entire conf folder mapped. The default.xml was not the latest version, after updating that, it works. Found solution because of: https://www.traccar.org/forums/topic/web-gui-404-not-found-from-one-day-to-another/page/3/