Traccar Load Balancing 401 exception

Sifumwike 2 years ago

Hello, I have got this configuration on my infrastructure.

A load balancer that routes traffic to 3 traccar servers which connect to one database source.

The issue comes when I log in via the Load balancer, I am presented with a 401 authorization message while when I try to log in in individual traccar server nodes it does not happen.

How can I fix this?

Track-trace 2 years ago

And that question without showing any setup or configuration of your your server setup?

Sifumwike 2 years ago

Hello,

I did explain the configuration.

What extra setup or configuration information would you like to know for you to understand more?

Anton Tananaev 2 years ago

Have you configured your load balancer to have sticky connection? Because the user session will be per server.

Sifumwike 2 years ago

Yes sticky sessions are enabled.

By any means does the cookie name and cookie ttl have to be specific values known by the traccar platform?

Anton Tananaev 2 years ago

Hmmm.. the cookie is created by the platform, so of course it has to be specific. The one that platform returns.

Sifumwike 2 years ago

Upon inspecting the network requests, I think it should be the JSESSIONID