Login token was expired, please try again

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
jeepsburg
Posts: 8
Joined: Wed Nov 08, 2017 8:22 am

Login token was expired, please try again

Post by jeepsburg »

Seeing very similar results to what were mentioned https://support.nagios.com/forum/viewto ... 16&t=63928 and https://support.nagios.com/forum/viewto ... =7&t=63434, but there were no solutions posted, so I wanted to make a new post.
Running 5.8.7, but this has been happening with the last several versions which we've been running on.

1) click on a rapid response link in a host/service email alert, e.g.,
https://nagios.foo.com/nagiosxi/rr.php? ... d3d79c738f
2) you are brought to a page that says "Error: This rapid response URL has expired and can no longer be used.
You must login to view this object."
3) click the Login link on this page and you are brought to the main XI login page
4) enter valid credentials and click login
5) "Login token was expired, please try again." is displayed
6) Until the related browser cookie is deleted, the same message is displayed after every attempt and I cannot login. Sometimes refreshing the page 5-10 times works, and sometimes it doesn't

I've checked all the time/date commands as mentioned in the first post, and everything is synced up with the correct time zone.
Using Chrome, but an incognito chrome window will log in no problem.
I've run df -h and all drives are 65% or less used.

tail -F /var/log/httpd/* shows the following lines when I click login

Code: Select all

==> /var/log/httpd/ssl_access_log <==
172.X.X.X - - [09/Mar/2022:16:22:27 -0500] "POST /nagiosxi/login.php HTTP/1.1" 302 -

==> /var/log/httpd/ssl_request_log <==
[09/Mar/2022:16:22:27 -0500] 172.X.X.X TLSv1.2 ECDHE-RSA-AES128-GCM-SHA256 "POST /nagiosxi/login.php HTTP/1.1" -

==> /var/log/httpd/ssl_access_log <==
172.X.X.X - - [09/Mar/2022:16:22:28 -0500] "GET /nagiosxi/login.php?nspfailure=1 HTTP/1.1" 200 26532

==> /var/log/httpd/ssl_request_log <==
[09/Mar/2022:16:22:28 -0500] 172.X.X.X TLSv1.2 ECDHE-RSA-AES128-GCM-SHA256 "GET /nagiosxi/login.php?nspfailure=1 HTTP/1.1" 26532
Any help is appreciated!
User avatar
pbroste
Posts: 1288
Joined: Tue Jun 01, 2021 1:27 pm

Re: Login token was expired, please try again

Post by pbroste »

Hello @AirBank_HD

Please create a ticket for this in our new Answer Hub and include a link back to this forum thread so we can get a remote session setup. Please provide the System Profile too.

Code: Select all

rm -rf /usr/local/nagiosxi/var/components/profile.zip
/usr/local/nagiosxi/scripts/components/getprofile.sh SUPPORT
Then upload the resulting /usr/local/nagiosxi/var/components/profile.zip​ file to the new Answer Hub ticket.
We're moving to a new support system!

The Nagios Answer Hub is a place where you can get help with technical questions from our experts. There, you can quickly open tickets and join discussion boards.

Request Nagios Answer Hub access here: https://info.nagios.com/answer-hub-access-new-users

After completing the access form, you will be given access to a portal where new tickets can be created. We will keep the old customer forum sections and ticket system available for current cases to be resolved.
Thanks,
Perry
User avatar
pbroste
Posts: 1288
Joined: Tue Jun 01, 2021 1:27 pm

Re: Login token was expired, please try again

Post by pbroste »

Thanks for opening a ticket in the Answer Hub, will go ahead and lock this one up.

Perry
Locked