Login loop

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
leostereo
Posts: 17
Joined: Fri Nov 06, 2015 10:08 am

Login loop

Post by leostereo »

Hi guys , I recently installed cacti using following link:
https://www.itzgeek.com/how-tos/linux/c ... hel-7.html
Every thing was ok.
When browsing http:/serverip/cacti.
Login appears but can not login with admin / admin. it keeps in loop.
Any idea ?
Leandro.
Edrick
Posts: 9
Joined: Fri Apr 17, 2020 12:02 am

Re: Login loop

Post by Edrick »

check your session.save_path most likely should be /tmp

I had this issue and my session.save_path in the php.ini file was set to another location and it didn't like that and kept looping
patrickr
Posts: 23
Joined: Thu Apr 23, 2020 11:46 am

Re: Login loop

Post by patrickr »

I have also finished a new install of 1.2.11 and am having the same issue. I have confirmed the directory setting you recommended is accurate but cannot login with the default admin credentials.
cigamit
Developer
Posts: 3367
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Re: Login loop

Post by cigamit »

leostereo
Posts: 17
Joined: Fri Nov 06, 2015 10:08 am

Re: Login loop

Post by leostereo »

cigamit wrote: Thu Apr 23, 2020 12:13 pm https://github.com/Cacti/cacti/issues/3436
YOU SAVED ME!!!
THANKS!!
patrickr
Posts: 23
Joined: Thu Apr 23, 2020 11:46 am

Re: Login loop

Post by patrickr »

cigamit wrote: Thu Apr 23, 2020 12:13 pm https://github.com/Cacti/cacti/issues/3436
I have tried commenting out the line with both // and #. Neither seems to work as I am still getting brought back to the login screen. Is there a second line or item I need to comment out?
patrickr
Posts: 23
Joined: Thu Apr 23, 2020 11:46 am

Re: Login loop

Post by patrickr »

When I run Firefox debugger I am seeing the following exceptions:

// Opera 10-11 does not throw on post-comma invalid pseudos
el.querySelectorAll("*,:x");
rbuggyQSA.push(",.*:");

SyntaxError: Element.querySelectorAll: '*,:x' is not a valid selector

// This should fail with an exception
// Gecko does not error, returns false instead
matches.call( el, "[s!='']:x" );
rbuggyMatches.push( "!=", pseudos );

SyntaxError: Element.matches: '[s!='']:x' is not a valid selector

// This should fail with an exception
// Gecko does not error, returns false instead
matches.call( el, "[s!='']:x" );
rbuggyMatches.push( "!=", pseudos );
});

SyntaxError: Document.querySelectorAll: 'script:last' is not a valid selector

try {
push.apply( results,
newContext.querySelectorAll( newSelector )
);

SyntaxError: Document.querySelectorAll: '.tableRowGraph:first' is not a valid selector


We have a CentOS 6 system running 0.8.8a because my coworker prefers the aggregate graphs in this version. When I login with debugger, I see no exceptions at all.

I need this fixed. The system started miraculously working yesterday morning and sent two reports last night, but hasn't sent the report for this morning and I cannot log in.
patrickr
Posts: 23
Joined: Thu Apr 23, 2020 11:46 am

Re: Login loop

Post by patrickr »

I have now created a new VM running CentOS 7 and am having the same issue on a new install.
Once the install completed, I was taking to the console page. After logging out and then attempting to log back in, I have the same issue as before.
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: Login loop

Post by TheWitness »

This can happen when switching between http and https and is expected with the new secure cookies. If it happens close all your browsers, and try agin.
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
patrickr
Posts: 23
Joined: Thu Apr 23, 2020 11:46 am

Re: Login loop

Post by patrickr »

TheWitness wrote: Sat Apr 25, 2020 12:59 pm This can happen when switching between http and https and is expected with the new secure cookies. If it happens close all your browsers, and try agin.
We don't switch between http and https. The system forwards all http traffic to https.
patrickr
Posts: 23
Joined: Thu Apr 23, 2020 11:46 am

Re: Login loop

Post by patrickr »

TheWitness wrote: Sat Apr 25, 2020 12:59 pm This can happen when switching between http and https and is expected with the new secure cookies. If it happens close all your browsers, and try agin.
I have removed all https forwarding. When I attempt to login, the url changes to http://cacti-server/cacti/graph_view.php, yet the page displayed is still the login screen.
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: Login loop

Post by TheWitness »

Did you guys not figure out about the $cacti_cookie_domain issue in config.php? You need to comment it out.
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
netniV
Cacti Guru User
Posts: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: Login loop

Post by netniV »

Please try with 1.2.12 which was released at the weekend.
Cacti Developer & Release Manager
The Cacti Group

Director
BV IT Solutions Ltd

+--------------------------------------------------------------------------+

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
Post Reply

Who is online

Users browsing this forum: No registered users and 7 guests