1.2.21 login/upgrade issue: missing
Moderators: Developers, Moderators
1.2.21 login/upgrade issue: missing
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.
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.
- TheWitness
- Developer
- Posts: 17061
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Re: 1.2.21 login/upgrade issue: missing
You should likely upgrade the database from the CLI
Then reset you password;
Likely a packaging issue.
Code: Select all
cd /var/www/html/cacti/cli
php -q upgrade_database.php --force-ver=1.2.19
Code: Select all
mysql -A cacti
update user_auth set password=MD5('baseball') WHERE id=1;
quit;
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?
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?
Re: 1.2.21 login/upgrade issue: missing
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.
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.
Re: 1.2.21 login/upgrade issue: missing
We're you able to change it?
Before history, there was a paradise, now dust.
Re: 1.2.21 login/upgrade issue: missing
The web error log shows that:
I didn't change anything. I did reinstall cacti.
Anyone experienced 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
Anyone experienced that?
Re: 1.2.21 login/upgrade issue: missing
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.
/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.
- TheWitness
- Developer
- Posts: 17061
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Re: 1.2.21 login/upgrade issue: missing
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?
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?
- TheWitness
- Developer
- Posts: 17061
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Re: 1.2.21 login/upgrade issue: missing
Fixed here now: https://github.com/Cacti/cacti/issues/4802
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?
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?
Re: 1.2.21 login/upgrade issue: missing
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
The Cacti Group
Director
BV IT Solutions Ltd
+--------------------------------------------------------------------------+
Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
Who is online
Users browsing this forum: No registered users and 5 guests