Traccar Load Balancing 401 exception

Sifumwike10 months 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-trace10 months ago

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

Sifumwike10 months ago

Hello,

I did explain the configuration.

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

Anton Tananaev10 months ago

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

Sifumwike10 months 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 Tananaev10 months ago

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

Sifumwike10 months ago

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