You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2022-09-22 12:17:40

joao_goncalves2021
Member
Registered: 2021-05-03
Posts: 3

GLPI 10.0.2 Application URL Issue when using multiple instances

Hello,

I've come across an issue I found while configuring GLPI with two instances connected to the same database and a load balancer to balance the traffic between both instances.
When accessing the endpoint of the LB I can see GLPI's login page from either instances, but when trying to login to one of the instances, the page crashes saying you have been redirected too many times, then it refreshes itself and redirects me to GLPI's front page for some moments and finally crashes redirecting me to the following URL:

https:// glpi . example . intra/ajax/dashboard.php?dashboard=central&action=get_dashboard_items&embed=0

With my understanding of the troubleshooting I've done, this is due to the "URL of the Application" is blank, in case I insert the IP of one of the instances, seems just fine, however then the LB is not doing its job.

Note: Also I have a NFS mount on instance 1 for all directories inside /glpi/files/ besides the logs directory.

Any clue on why is this happening?

Best Regards,
João Gonçalves

Offline

#2 2022-09-24 13:49:42

cconard96
Moderator
Registered: 2018-07-31
Posts: 2,813
Website

Re: GLPI 10.0.2 Application URL Issue when using multiple instances

What happens if you set the URL of the Application to your LB URL on both instances instead of leaving it blank?


GLPI Collaborator and Plugin Developer.
My non-English comments are automated translations. Sorry for any confusion that causes.
Mes commentaires non anglais sont des traductions automatiques. Désolé pour toute confusion qui cause.
Mis comentarios que no están en inglés son traducciones automáticas. Perdón por cualquier confusión que cause.

Offline

#3 2022-09-26 16:31:59

joao_goncalves2021
Member
Registered: 2021-05-03
Posts: 3

Re: GLPI 10.0.2 Application URL Issue when using multiple instances

Hello,

In case I set the URL to my LB, the same problem occurs, I can login, the main dashboard is loaded but then I keep getting redirected and eventually the page will crash and just display a blank page.
I set the URL of the Application to localhost and it fixed the issue but not entirely. Since sometime GLPI is redirecting the User's login to the URL defined on that setting, sometimes I'm being redirected to the localhost of my machine instead of pointing to the localhost of instance1 or instance2.

Thanks for your reply! smile

Best Regards,
João Gonçalves

Offline

Board footer

Powered by FluxBB