Traccar Load Balancing 401 exception

Sifumwikea year 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-tracea year ago

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

Sifumwikea year ago

Hello,

I did explain the configuration.

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

Anton Tananaeva year ago

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

Sifumwikea year 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 Tananaeva year ago

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

Sifumwikea year ago

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