Can't login cacti

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

Moderators: Developers, Moderators

Post Reply
vila
Posts: 2
Joined: Fri Jun 05, 2020 1:39 am

Can't login cacti

Post by vila »

Hi All

I installed Cacti version 1.2.11 with CentOS 8, After completed installation. I can't login default username and password: admin | admin.
Please help to advise how can i log with correct username and password?

I tried reset password in sql, But it still not working.

MariaDB [cacti]> update user_auth set password=md5('admin') where username='admin';

I appreciate your advice and help.
cigamit
Developer
Posts: 3369
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Re: Can't login cacti

Post by cigamit »

There is a fix in 1.2.12 for this. Comment out the

Code: Select all

$cacti_cookie_domain
line in your include/config.php
downnetwork
Posts: 19
Joined: Fri Apr 03, 2020 12:47 pm

Re: Can't login cacti

Post by downnetwork »

Same issue in 1.2.12 and it is commented out.
downnetwork
Posts: 19
Joined: Fri Apr 03, 2020 12:47 pm

Re: Can't login cacti

Post by downnetwork »

Same issue on 1.2.12. - It doesn't even flag a RED error if you put bogus credentials in, just loops back to login screen.

Already tested the following:

use cacti;
GRANT ALL ON cacti.* TO cacti@localhost IDENTIFIED BY 'REMOVED';
update user_auth set password=md5('REMOVED') where username='admin';
update user_auth set enabled=('on');
UPDATE settings SET value='' WHERE name='auth_cache_enabled';

php.ini
session.auto_start = 1 (tried with 0 and 1)

php -v
PHP 7.2.24-0ubuntu0.18.04.6 (cli) (built: May 26 2020 13:09:11) ( NTS )

/var/lib/php/sessions =
drwx-wx-wt 2 root root 12288 Jun 8 18:50 sessions

cacti.log
2020-06-08 18:55:59 - ERROR PHP : ini_set(): A session is active. You cannot change the session module's ini settings at this time in file: /usr/share/cacti/site/include/global.php on line: 394
2020-06-08 18:55:59 - CMDPHP PHP ERROR WARNING Backtrace: (/index.php[25]:include(), /include/auth.php[28]:require_once(), /include/global.php[394]:ini_set(), CactiErrorHandler())
2020-06-08 18:55:59 - ERROR PHP : ini_set(): A session is active. You cannot change the session module's ini settings at this time in file: /usr/share/cacti/site/include/global.php on line: 395
2020-06-08 18:55:59 - CMDPHP PHP ERROR WARNING Backtrace: (/index.php[25]:include(), /include/auth.php[28]:require_once(), /include/global.php[395]:ini_set(), CactiErrorHandler())
2020-06-08 18:55:59 - ERROR PHP : ini_set(): A session is active. You cannot change the session module's ini settings at this time in file: /usr/share/cacti/site/include/global.php on line: 396
2020-06-08 18:55:59 - CMDPHP PHP ERROR WARNING Backtrace: (/index.php[25]:include(), /include/auth.php[28]:require_once(), /include/global.php[396]:ini_set(), CactiErrorHandler())
2020-06-08 18:55:59 - ERROR PHP : ini_set(): A session is active. You cannot change the session module's ini settings at this time in file: /usr/share/cacti/site/include/global.php on line: 416
2020-06-08 18:55:59 - CMDPHP PHP ERROR WARNING Backtrace: (/index.php[25]:include(), /include/auth.php[28]:require_once(), /include/global.php[416]:ini_set(), CactiErrorHandler())
2020-06-08 18:55:59 - ERROR PHP : session_name(): Cannot change session name when session is active in file: /usr/share/cacti/site/lib/functions.php on line: 5541
2020-06-08 18:55:59 - CMDPHP PHP ERROR WARNING Backtrace: (/index.php[25]:include(), /include/auth.php[28]:require_once(), /include/global.php[444]:cacti_session_start(), /lib/functions.php[5541]:session_name(), CactiErrorHandler())

select * from user_auth_cache; (RESULTS = BLANK)
mlifeng
Posts: 4
Joined: Fri May 22, 2020 3:17 am

Re: Can't login cacti

Post by mlifeng »

cannot login with default username and password
and I already try: update user_auth set password = md5('admin') where username = 'admin'; to update the password but still nothing happen.
Attachments
WeChat Screenshot_20200609170718.png
WeChat Screenshot_20200609170718.png (149.19 KiB) Viewed 1975 times
vila
Posts: 2
Joined: Fri Jun 05, 2020 1:39 am

Re: Can't login cacti

Post by vila »

Thank all. After i replaced cacti version 1.2.12. It is working fine..
downnetwork
Posts: 19
Joined: Fri Apr 03, 2020 12:47 pm

Re: Can't login cacti

Post by downnetwork »

Same issue here still with 1.2.12, looks like a few users are having it.
somdaraz
Posts: 3
Joined: Mon Jun 15, 2020 11:26 pm

Re: Can't login cacti

Post by somdaraz »

Having the same problem. After install everything ok and can login.
Next day, unable to login. Also even using wrong credentials doesn't show error on login page.

Any ideas why this is happening ?
Thanks,
downnetwork
Posts: 19
Joined: Fri Apr 03, 2020 12:47 pm

Re: Can't login cacti

Post by downnetwork »

Lots of threads on this issue:

I was able to get into my system by disabling my direct URL and SSL cert going into /cacti and not changing the alias to /

I will need some more time to put it back together.

Thanks to the user in this thread who pointed it out: $url_path = '/'; in config.php

viewtopic.php?f=21&t=61034&sid=96dc5c97 ... 1d09b84f1b

A little more work to do, but this might be the solutoin.
Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests