Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't login to cacti after install completed and logout #3592

Closed
needafix opened this issue Jun 2, 2020 · 12 comments
Closed

Can't login to cacti after install completed and logout #3592

needafix opened this issue Jun 2, 2020 · 12 comments
Labels
duplicate Duplicate of another issue

Comments

@needafix
Copy link

needafix commented Jun 2, 2020

Describe the bug

I have installed, and reinstalled cacti 1.2.12 now about 8 x in the last week on a FreeBSD 11 Server that has a lot of free space.
The issue is after the install is completed, setup a couple of devices and create graphs for the devices and then logout, Upon returning to login, no error shown, just can't login. Even using incorrect credentials doesn't display an error. I have checked all logs and there is nothing regarding incorrect credentials. This time, I did not update the cacti DB with a backup cacti.sql from previous which has all my devices and graphs.

So the only update to the cacti DB was upon install from /usr/local/share/cacti/cacti.sql. So it means it has nothing to do with my back mysqldumps

Thanks

To Reproduce

Steps to reproduce the behavior:

  1. Go to '...'

  2. Click on '....'

  3. Scroll down to '....'

  4. See error

Expected behavior

A clear and concise description of what you expected to happen.

Screenshots

If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information)

  • OS: [e.g. iOS]

  • Browser [e.g. chrome, safari]

  • Version [e.g. 22]

Smartphone (please complete the following information)

  • Device: [e.g. iPhone6]

  • OS: [e.g. iOS8.1]

  • Browser [e.g. stock browser, safari]

  • Version [e.g. 22]

Additional context

Add any other context about the problem here.

@needafix needafix added bug Undesired behaviour unverified Some days we don't have a clue labels Jun 2, 2020
@bmfmancini
Copy link
Member

bmfmancini commented Jun 2, 2020 via email

@needafix
Copy link
Author

needafix commented Jun 2, 2020

//$cacti_cookie_domain = 'cacti.net';

@needafix
Copy link
Author

needafix commented Jun 2, 2020

Even if cact_cookie_domain = 'mydomain.tld' it doesn't change anything. Can't login, no error and no error if using invalid credentials.

@bmfmancini
Copy link
Member

bmfmancini commented Jun 2, 2020 via email

@needafix
Copy link
Author

needafix commented Jun 2, 2020

Yes I tried uncommenting, changing the domain to our domain. Still does the same thing cannot login. There is ~ 60GB free in /var

When I reinstalled, just after completing the install, Logged out and then attempted to login with incorrect credentials, at that time it displays in red incorrect user/pass. Now, it doesn't display this regardless of correct or incorrect credentials. It just empties the credential boxes.

@bmfmancini
Copy link
Member

bmfmancini commented Jun 3, 2020

Was this an upgrade from 1.2.11 to 1.2.12 or fresh ?

I have not tested this on freebsd but I know on Linux I have installed 1.2.12 many times without issues

1,2.11 had an issue with the config.php file and the cookiedomains

are you seeing any errors in your apache/http logs ?

@netniV
Copy link
Member

netniV commented Jun 3, 2020

Reset your admin password via MySQL, see if you can get in then?

@netniV
Copy link
Member

netniV commented Jun 3, 2020

Also, please describe the process of this install, as it sounds like you are using 1.2.12 sources but with an older database backup?

@netniV
Copy link
Member

netniV commented Jun 3, 2020

Finally, check if you have a csrf_secret.php, if you do, try renaming it away. It isn't required so won't break anything whether it's there or not (at least shouldn't)

@TheWitness
Copy link
Member

Update include/global.php from the 1.2.x branch.

@TheWitness
Copy link
Member

My apologies, the updated global.php should be correct.

@TheWitness
Copy link
Member

I'm going to assume this is resolved since the user has not provided feedback in several days.

@TheWitness TheWitness added duplicate Duplicate of another issue and removed bug Undesired behaviour unverified Some days we don't have a clue labels Jun 13, 2020
@github-actions github-actions bot locked and limited conversation to collaborators Sep 12, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
duplicate Duplicate of another issue
Projects
None yet
Development

No branches or pull requests

4 participants