Can't login cacti
Moderators: Developers, Moderators
Can't login cacti
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.
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.
Re: Can't login cacti
There is a fix in 1.2.12 for this. Comment out the
line in your include/config.php
Code: Select all
$cacti_cookie_domain
-
- Posts: 19
- Joined: Fri Apr 03, 2020 12:47 pm
Re: Can't login cacti
Same issue in 1.2.12 and it is commented out.
-
- Posts: 19
- Joined: Fri Apr 03, 2020 12:47 pm
Re: Can't login cacti
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)
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)
Re: Can't login cacti
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.
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 (149.19 KiB) Viewed 1974 times
Re: Can't login cacti
Thank all. After i replaced cacti version 1.2.12. It is working fine..
-
- Posts: 19
- Joined: Fri Apr 03, 2020 12:47 pm
Re: Can't login cacti
Same issue here still with 1.2.12, looks like a few users are having it.
Re: Can't login cacti
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,
Next day, unable to login. Also even using wrong credentials doesn't show error on login page.
Any ideas why this is happening ?
Thanks,
-
- Posts: 19
- Joined: Fri Apr 03, 2020 12:47 pm
Re: Can't login cacti
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.
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.
Who is online
Users browsing this forum: No registered users and 0 guests