Errors on new docker deployment of Traccar

Sdooweloc 3 days ago

I am trying to set up traccar with docker following the notes Docker docs and using the mysql image here Compose File

After deploying it and watching the logs the database seems to start up fine but the traccar server seems to be stuck in a boot loop with the below error in the logs.

2026-01-20 16:50:14 ERROR: Main method error - Access denied for user 'traccar'@'172.18.0.26' (using password: YES) - CJException (... < DatabaseModule:80 < <gener:-1 < *:-1 < ... < MainModule:139 < <gener:-1 < ...)

if anyone could help that would be appreciated. would love to try this system out and see if it works for my needs but not even being able to get the stock compose file to work is definitely a depressing/demoralizing start.

Anton Tananaev 3 days ago

Are you sure you have modified anything in that docker compose file?

Sdooweloc 3 days ago

The only things I edited at first was trying to set it up with my reverse proxy and changing the mount points for the DB and logs.
I had tried doing it without the proxy settings before and it still hadnt worked but i just tried it again and now it seems to be working as I have a dashboard on IP:8082
However, i would really like to get the reverse proxy working. The way i normally do it is with Traefik and labels on the container itself.

Definitely weird that i got different results with two different tests with the same parameters but i can chalk that up to PEBKAC and admit i must have screwed something up lol.

The weird thing is that the reverse proxy was only on the traccar container so i wouldnt expect that to interfere with the mysql container connection at all so any advice you have there would be appreciated.