Cannot login cacti 1.2.11

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

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

Re: Cannot login cacti 1.2.11

Post by TheWitness »

Do both of you have a language other than English as your primary language once Cacti is up? Make the following change to lib/html.php

line: 2478

Change:

print get_md5_include_js('include/js/jquery.timepicker.js', true);

to this:

print get_md5_include_js('include/js/jquery.timepicker.js');
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?
mnl2048
Posts: 9
Joined: Mon Apr 06, 2020 10:41 am

Re: Cannot login cacti 1.2.11

Post by mnl2048 »

I have mine set to english as default.

Still can't login

Here is the one I have on the file. I haven't change it.


2475 print get_md5_include_js('include/js/jquery.multiselect.js');
2476 print get_md5_include_js('include/js/jquery.multiselect.filter.js');
2477 print get_md5_include_js('include/js/jquery.timepicker.js');
2478 print get_md5_include_js('include/js/jquery.colorpicker.js');
2479 print get_md5_include_js('include/js/jquery.tablesorter.js');
Last edited by mnl2048 on Tue Apr 07, 2020 10:57 am, edited 2 times in total.
duvi
Posts: 2
Joined: Tue Apr 07, 2020 7:29 am

Re: Cannot login cacti 1.2.11

Post by duvi »

If I change line 2478 the console error goes away. I still can't log in though, it jumps back to the login screen, it doesn't even matter if I use valid or invalid login credentials.
Login screen language is English, user interface after login was also English in 1.2.10.

By the way mine looks like this:

Code: Select all

        print get_md5_include_js('include/js/jquery.multiselect.js');
        print get_md5_include_js('include/js/jquery.multiselect.filter.js');
        print get_md5_include_js('include/js/jquery.timepicker.js', true);
        print get_md5_include_js('include/js/jquery.colorpicker.js', true);
        print get_md5_include_js('include/js/jquery.tablesorter.js');
        print get_md5_include_js('include/js/jquery.tablesorter.widgets.js', true);
So I wonder why yours is different.
adiviso82
Posts: 19
Joined: Wed Aug 05, 2015 3:12 pm

Re: Cannot login cacti 1.2.11

Post by adiviso82 »

Same issue for me, I had 1.2.8 and after the upgrade I could not login. At the same time i changed the cacti installation path so I was sure I did something wrong. So I installed a new Ubuntu 18.04 VM + apache + php7.2 + mariadb10.4 + cacti1.2.11, same problem, cannot login. I've used the same list of commands I always use.
In Ubuntu GUI I installed MySQL Workbench so I can see the database, the admin account has the correct default password "admin" (actually hash 21232f297a57a5a743894a0e4a801fc3, you can put "admin" through https://www.md5hashgenerator.com). After downloading cacti 1.2.10 on the fresh Ubuntu the login works.


LIST OF COMMANDS USED FOR 1.2.11
sudo apt-get -y install apache2

#replace /var/html/ ---> /opt/
sudo nano /etc/apache2/apache2.conf
<Directory /opt/>
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
</Directory>

sudo apt -y install mariadb-server mariadb-client
sudo apt-get -y install php php-mysql php-snmp php-gd php-gmp php-ldap php-mbstring php-xml

base_dir=/opt
touch $base_dir/cacti/log/cacti.log
chmod 777 -R $base_dir/cacti/scripts/
chmod 777 -R $base_dir/cacti/cache/
chmod 777 -R $base_dir/cacti/resource/
chmod 777 -R $base_dir/cacti/log/
chmod +x $base_dir/cacti/cli/*php
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: Cannot login cacti 1.2.11

Post by TheWitness »

Okay, at least one person has reported that you need to comment out of the config.php the $cacti_cookie_domain it was blocking loing.
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?
mnl2048
Posts: 9
Joined: Mon Apr 06, 2020 10:41 am

Re: Cannot login cacti 1.2.11

Post by mnl2048 »

TheWitness wrote: Wed Apr 08, 2020 10:10 pm Okay, at least one person has reported that you need to comment out of the config.php the $cacti_cookie_domain it was blocking loing.
This works for me. I was able to login again. Thanks.
lohmeyer
Posts: 6
Joined: Tue Apr 07, 2020 8:12 am

Re: Cannot login cacti 1.2.11

Post by lohmeyer »

Worked for me too. Thanks!
User avatar
Osiris
Cacti Guru User
Posts: 1424
Joined: Mon Jan 05, 2015 10:10 am

Re: Cannot login cacti 1.2.11

Post by Osiris »

Well, that's one way to announce a new feature. Glad it's working.
Before history, there was a paradise, now dust.
somdaraz
Posts: 3
Joined: Mon Jun 15, 2020 11:26 pm

Re: Cannot login cacti 1.2.11

Post by somdaraz »

Login to cacti without issue first at first day.
Next day, unable to login again. Also even using wrong credentials doesn't show error on login page.

Any ideas why this is happening ? I already use Cacti 1.2.12.
Thanks,
mnl2048
Posts: 9
Joined: Mon Apr 06, 2020 10:41 am

Re: Cannot login cacti 1.2.11

Post by mnl2048 »

somdaraz wrote: Mon Jun 15, 2020 11:29 pm Login to cacti without issue first at first day.
Next day, unable to login again. Also even using wrong credentials doesn't show error on login page.

Any ideas why this is happening ? I already use Cacti 1.2.12.
Thanks,
Try the cacti domain comment. Works for me.
patrickr
Posts: 23
Joined: Thu Apr 23, 2020 11:46 am

Re: Cannot login cacti 1.2.11

Post by patrickr »

mnl2048 wrote: Mon Jun 15, 2020 11:41 pm
somdaraz wrote: Mon Jun 15, 2020 11:29 pm Login to cacti without issue first at first day.
Next day, unable to login again. Also even using wrong credentials doesn't show error on login page.

Any ideas why this is happening ? I already use Cacti 1.2.12.
Thanks,
Try the cacti domain comment. Works for me.
The comment is already added in 1.2.12. I am still having login issues since going to 1.2.11.
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests