After upgrade from 1.2.10 to 1.2.11 no login possible

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

Moderators: Developers, Moderators

TheBob
Posts: 19
Joined: Mon Jul 02, 2018 8:37 am

After upgrade from 1.2.10 to 1.2.11 no login possible

Post by TheBob »

Hello @all,
i have update yesterday out cacti version to 1.2.11.
The update are fully working and i forward directly to the cati main Pacge. Everything seems to be work.
This morning i try to login again and after instert login data (ldap and local) i getting back to login page.
No Main Page are displayed.
What can i Do?

OS: Ubuntu 18.04
PHP 5.6.40
Mysql 5.7.29

thanks in advanced
TheBob
User avatar
Osiris
Cacti Guru User
Posts: 1424
Joined: Mon Jan 05, 2015 10:10 am

Re: After upgrade from 1.2.10 to 1.2.11 no login possible

Post by Osiris »

Anything in your Apache error logs? Did you make any changes to config.php?

Try this MySQL command and see if it starts working:

UPDATE setting SET value'' WHERE name='auth_cache_enabled';

Then close all browsers and login again.
Before history, there was a paradise, now dust.
User avatar
Osiris
Cacti Guru User
Posts: 1424
Joined: Mon Jan 05, 2015 10:10 am

Re: After upgrade from 1.2.10 to 1.2.11 no login possible

Post by Osiris »

Last, edit your php.ini file for Apache and set

session.auto_start = off

Then restart Apache.
Before history, there was a paradise, now dust.
ank0l0g
Posts: 9
Joined: Tue Apr 07, 2020 12:24 am

Re: After upgrade from 1.2.10 to 1.2.11 no login possible

Post by ank0l0g »

Hi.

MariaDB [(none)]> use cacti;
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

Database changed
MariaDB [cacti]> UPDATE setting SET value'' WHERE name='auth_cache_enabled';
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ''' WHERE name='auth_cache_enabled'' at line 1
TheBob
Posts: 19
Joined: Mon Jul 02, 2018 8:37 am

Re: After upgrade from 1.2.10 to 1.2.11 no login possible

Post by TheBob »

Nothing in apache logs that is anything is wrong!

UPDATE setting SET value'' WHERE name='auth_cache_enabled';
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''' WHERE name='auth_cache_enabled'' at line 1

php.ini
grep -R "session.auto_start"
5.6/cli/php.ini.ucf-dist:session.auto_start = 0
5.6/cli/php.ini:session.auto_start = 0
5.6/apache2/php.ini.ucf-dist:session.auto_start = 0
5.6/apache2/php.ini:session.auto_start = 0
0 meens off so do you thing i need to change that?

Thanks a lot Osiris!
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: After upgrade from 1.2.10 to 1.2.11 no login possible

Post by TheWitness »

UPDATE setting SET value='' WHERE name='auth_cache_enabled';
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?
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: After upgrade from 1.2.10 to 1.2.11 no login possible

Post by TheWitness »

This has been reported in GitHub as well. Have not seen a solution yet, but I've got the day job too.
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?
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: After upgrade from 1.2.10 to 1.2.11 no login possible

Post by TheWitness »

Please comment out $cacti_cookie_domain from you config.php and see if that helps. We have one user reporting on GitHub that it's working now.
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?
TheBob
Posts: 19
Joined: Mon Jul 02, 2018 8:37 am

Re: After upgrade from 1.2.10 to 1.2.11 no login possible

Post by TheBob »

Please comment out $cacti_cookie_domain from you config.php

That's it!!!! Perfekt and many Thanks Witness!!!!
Happy Eastern @all
User avatar
Osiris
Cacti Guru User
Posts: 1424
Joined: Mon Jan 05, 2015 10:10 am

Re: After upgrade from 1.2.10 to 1.2.11 no login possible

Post by Osiris »

Good to hear!
Before history, there was a paradise, now dust.
User avatar
masterMetal
Posts: 1
Joined: Sat Apr 11, 2020 7:06 am
Contact:

Re: After upgrade from 1.2.10 to 1.2.11 no login possible

Post by masterMetal »

This also worked for me in Version 1.2.11

I commented out in /var/www/cacti/include/config.php the line

#$cacti_cookie_domain = 'cacti.net';

I wasted a lot of time looking for a solution:
a) updating the database users using mysql
mysql> use cacti; update user_auth set password=md5('admin') where username='admin';).

b) Changing the session.auto_start in php.ini to
session.auto_start = On

Noting worked until this I came across this post.

Many, many thanks TheWitness!
dvdlubbe
Posts: 12
Joined: Thu Aug 06, 2009 4:44 pm

Re: After upgrade from 1.2.10 to 1.2.11 no login possible

Post by dvdlubbe »

I have the exact same issue after upgrading to 1.2.11.
Unfortunately, I am not able to comment out "$cacti_cookie_domain = 'cacti.net';" since my config file doesn't contain that line. (it's still the old config file I've been using all this time)
Was my config file supposed to be updated in the process?

Maybe this was caused by the problematic upgrade to version 1.2.10 earlier?
It was stuck at 42%. I booted the server and afterwards I was suddenly able to access cacti on version 1.2.10, so I wasn't really sure if the upgrade was really succesfull or not.

Any help would be appreciated.
TheBob
Posts: 19
Joined: Mon Jul 02, 2018 8:37 am

Re: After upgrade from 1.2.10 to 1.2.11 no login possible

Post by TheBob »

The update prozess from 1.210 to 11 was also on my site quit log, about 10-15 minuntes but then everything was again.
Best is restore to 1.2.10 and do the update again.
dvdlubbe
Posts: 12
Joined: Thu Aug 06, 2009 4:44 pm

Re: After upgrade from 1.2.10 to 1.2.11 no login possible

Post by dvdlubbe »

Reinstalling 1.2.11 didn't resolve the issue unfortunately.
What I don't get is this: apparently the issue is seen only when $cacti_cookie_domain = 'cacti.net'; is enabled.
I never had this line enabled (because it wasn't in my config), so I would expect that the issue would not show at all.

Anyway, I'm still with the issue that I am not able to login. Is there anything else I can do?
Is there something in the database that needs to be changed? I'm at a loss here...
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: After upgrade from 1.2.10 to 1.2.11 no login possible

Post by TheWitness »

The classic cases have always been permission issues in the /var/lib/php/session directory, or a bad password. The $cacti_cookie_domain issues is new. We have also recently seen an issue where if you have a secure session cookie (remember me concept), that was created under https, you will be unable to login under http. The way you fix that is by deleting rows from the user_auth_cache table.

The last potential issue would be that you are on PHP7.3, and there is some compatibility issue with session management on that release. You will have to provide additional details about your setup for us to even be able to help you.
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?
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests