Traccar 5 doesn't work

Vyre2 years ago

Hi,
After upgrading to traccar 5 in docker the web server seems to not start at all despite the docker running without any errors in the log.
If I change back to traccar:4.15 everything starts working. I know it's not a lot of information but I even tried to copy my current docker-compose and set up new folders for everything (essentially creating new db) but it still doesn't work.

Is there any way I can troubleshoot it further, like some debug flags? DB is created just fine, the connection between db and traccar is made but the webserver doesn't seem to work.

Anton Tananaev2 years ago

What is not working exactly?

Vyre2 years ago

traccar 4.15
traccar 5

Okay so I double checked both versions and despite the /api/session not responding for both versions, 4.15 works and I can login normally, but with 5 it doesn't let me and throws 404 when trying to login.

On traccar 5 In the console i can see the following: traccar5

Anton Tananaev2 years ago

Have you changed any code in the web app?

Vyre2 years ago

I did not, the only thing I'm changing is this in docker-compose:

traccar:
image: 'traccar/traccar:latest'

traccar:
image: 'traccar/traccar:4.15'

I also noticed that Traccar 5 can't connect to the db for some reason

2022-06-22 13:19:37 38 [Warning] Aborted connection 38 to db: 'traccar' user: 'traccar' host: '172.18.0.7' (Got an error reading communication packets)
2022-06-22 13:19:37 40 [Warning] Aborted connection 40 to db: 'traccar' user: 'traccar' host: '172.18.0.7' (Got an error reading communication packets)
2022-06-22 13:19:37 36 [Warning] Aborted connection 36 to db: 'traccar' user: 'traccar' host: '172.18.0.7' (Got an error reading communication packets)
2022-06-22 13:19:37 37 [Warning] Aborted connection 37 to db: 'traccar' user: 'traccar' host: '172.18.0.7' (Got an error reading communication packets)```
Anton Tananaev2 years ago

I've seen similar issues. Maybe there's some problem with Java on Docker?

Vyre2 years ago

Could be, your response made me try debian image instead of alpine and it works just fine on traccar 5.

Álvaro2 years ago

image: 'traccar/traccar:latest' = NOT work
image: 'traccar/traccar:4.15' = NOT work
image: 'traccar/traccar:5.0-debian' = work

Anton Tananaev2 years ago

So is "traccar:4.15" not working? Comments above indicate that it does. Are you sure it's the same issue?

amipub2 years ago

traccar 5.0 crashes when I want to modify the properties of a user, thank you

Anton Tananaev2 years ago

You should create a ticket with details. But ideally you should try master first.