1.2.21 login/upgrade issue: missing

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

Moderators: Developers, Moderators

Post Reply
jozatan
Posts: 11
Joined: Sun Apr 09, 2017 1:10 am
Location: San Diego, CA

1.2.21 login/upgrade issue: missing

Post by jozatan »

Hello.

I'm very sorry to bother you and if there was an answer, please don't get mad at me and only point me there. I really tried to find a similar topic but currently cannot solve my problem for quite a while and that's the reason I'm allowing myself to ask here.

I didn't login to my cacti for a while and I do have automatic updates running on my centos 7:

3.10.0-1160.66.1.el7.x86_64 #1 SMP Wed May 18 16:02:34 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

Currently I have installed cacti and php versions:

cacti.noarch 1.2.21-1.el7 @epel
cacti-spine.x86_64 1.2.21-1.el7 @epel

PHP 7.3.33 (cli) (built: Nov 16 2021 11:18:28) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.3.33, Copyright (c) 1998-2018 Zend Technologies

When I try to login to my cacti (I know my passwords for a fact and I could change them at any time direct in mariadb and I tried that but didn't solve anything) I'm getting the following message:

missing

In my browser and everything ends there in to url:

https://my.site/cacti/install/auth_chan ... ader=false

On my initial login page the cacti version is written as 2.1.19 as you can see from the attached screenshot.

In the past I was able to login and go to an update cacti process and everything was fine after that but this time.

I'm really puzzled at that point. Do you mind giving me a hand or a hint?

Thank you in advance.

Image

Image
User avatar
TheWitness
Developer
Posts: 17061
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: 1.2.21 login/upgrade issue: missing

Post by TheWitness »

You should likely upgrade the database from the CLI

Code: Select all

cd /var/www/html/cacti/cli
php -q upgrade_database.php --force-ver=1.2.19
Then reset you password;

Code: Select all

mysql -A cacti
update user_auth set password=MD5('baseball') WHERE id=1;
quit;
Likely a packaging issue.
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?
jozatan
Posts: 11
Joined: Sun Apr 09, 2017 1:10 am
Location: San Diego, CA

Re: 1.2.21 login/upgrade issue: missing

Post by jozatan »

TheWitness,

Thank you for your reply.

I believe (using a generator) my admin password is complex enough:

p65J&g4c!ea4VX2d

I ran the command you suggested with result:

[root@ cli]# php -q upgrade_database.php --forcever=1.2.19
NOTE: Repairing Tables for Local Database
Upgrading from v1.2.19
Upgrading from v1.2.19 (DB 1.2.19) to v1.2.20
Upgrading from v1.2.20 (DB 1.2.20) to v1.2.21
++++++++++++++++++++++++[root@ cli]#

After that I restarted the httpd.

Now when I'm trying to login, I'm getting the thing in the screenshot below. After it, I'm being redirected to the login screen again, no options to change password or anything else.

Any suggestions?

Thank you in advance.

Image
User avatar
Osiris
Cacti Guru User
Posts: 1424
Joined: Mon Jan 05, 2015 10:10 am

Re: 1.2.21 login/upgrade issue: missing

Post by Osiris »

We're you able to change it?
Before history, there was a paradise, now dust.
jozatan
Posts: 11
Joined: Sun Apr 09, 2017 1:10 am
Location: San Diego, CA

Re: 1.2.21 login/upgrade issue: missing

Post by jozatan »

Osiris wrote: Mon Jun 06, 2022 4:46 am We're you able to change it?
I did. It was a complex one, I was getting the error, I changed it to "baseball", got the same result, changed it to the complex one above, still the same result.
jozatan
Posts: 11
Joined: Sun Apr 09, 2017 1:10 am
Location: San Diego, CA

Re: 1.2.21 login/upgrade issue: missing

Post by jozatan »

The web error log shows that:

Code: Select all

[MyComputer Jun 06 10:29:30.373210 2022] [php7:notice] [pid 8868:tid 139796898842368] [client 172.16.4.83:50661] PHP Notice:  Undefined variable: passowrd in /usr/share/cacti/lib/auth.php on line 3933, referer: https://mycomputer/cacti/index.php
I didn't change anything. I did reinstall cacti.

Anyone experienced that?
jozatan
Posts: 11
Joined: Sun Apr 09, 2017 1:10 am
Location: San Diego, CA

Re: 1.2.21 login/upgrade issue: missing

Post by jozatan »

Yeee, I'm in. There is a typo in file

/usr/share/cacti/lib/auth.php

line 3933, instead of "password" is written "passowrd"

Once corrected, I was able to login and change my password, and everything else. Check the screenshot below.

Thank you for your time and all your help.

Image
User avatar
TheWitness
Developer
Posts: 17061
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: 1.2.21 login/upgrade issue: missing

Post by TheWitness »

Cool. Thanks for letting us know.
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: 17061
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: 1.2.21 login/upgrade issue: missing

Post by TheWitness »

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: 1.2.21 login/upgrade issue: missing

Post by netniV »

Not sure if the "missing" part was picked up but that appears to be because auth_changepassword was being redirected to but inside the install folder, which is not where it resides.
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 5 guests